diff --git a/app/assets/images/.keep b/app/assets/images/.keep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/app/assets/images/animation.png b/app/assets/images/animation.png deleted file mode 100644 index 06a10f5883c4caf739cc3abde09e2a90900ff9c6..0000000000000000000000000000000000000000 Binary files a/app/assets/images/animation.png and /dev/null differ diff --git a/app/assets/images/audio.png b/app/assets/images/audio.png deleted file mode 100644 index 8eea48c8febec4428232fd62e64f45c8324cef63..0000000000000000000000000000000000000000 Binary files a/app/assets/images/audio.png and /dev/null differ diff --git a/app/assets/images/brasil.png b/app/assets/images/brasil.png deleted file mode 100644 index ed37e08e59dad0418a73307af25e4fbae635d86c..0000000000000000000000000000000000000000 Binary files a/app/assets/images/brasil.png and /dev/null differ diff --git a/app/assets/images/cc.png b/app/assets/images/cc.png deleted file mode 100644 index 76b94c028f58b7ab0ed7f97afc95558519d563fc..0000000000000000000000000000000000000000 Binary files a/app/assets/images/cc.png and /dev/null differ diff --git a/app/assets/images/colecoes.png b/app/assets/images/colecoes.png deleted file mode 100644 index 8082526e74f5cbec90c3c12a5c2fa5b9cbbb8907..0000000000000000000000000000000000000000 Binary files a/app/assets/images/colecoes.png and /dev/null differ diff --git a/app/assets/images/colections.png b/app/assets/images/colections.png deleted file mode 100644 index 8082526e74f5cbec90c3c12a5c2fa5b9cbbb8907..0000000000000000000000000000000000000000 Binary files a/app/assets/images/colections.png and /dev/null differ diff --git a/app/assets/images/contraste.png b/app/assets/images/contraste.png deleted file mode 100644 index acb1f5b8447cf69fbf2645a3b1bb6f215d0ee684..0000000000000000000000000000000000000000 Binary files a/app/assets/images/contraste.png and /dev/null differ diff --git a/app/assets/images/fnde.png b/app/assets/images/fnde.png deleted file mode 100644 index 19bf5082710dffa1fef3b06252932f090a6c6bce..0000000000000000000000000000000000000000 Binary files a/app/assets/images/fnde.png and /dev/null differ diff --git a/app/assets/images/fonte_inicial.png b/app/assets/images/fonte_inicial.png deleted file mode 100644 index 97db9e74d0504924ff3ef1cbceb07c6d679c9bc0..0000000000000000000000000000000000000000 Binary files a/app/assets/images/fonte_inicial.png and /dev/null differ diff --git a/app/assets/images/fonte_mais.png b/app/assets/images/fonte_mais.png deleted file mode 100644 index 53c8d5c33d9671bc2e0ee4f3ac95de40b75307ac..0000000000000000000000000000000000000000 Binary files a/app/assets/images/fonte_mais.png and /dev/null differ diff --git a/app/assets/images/fonte_menos.png b/app/assets/images/fonte_menos.png deleted file mode 100644 index e0d32fd6f4a2a6d60bdbaa0c4c4e8641d23eff71..0000000000000000000000000000000000000000 Binary files a/app/assets/images/fonte_menos.png and /dev/null differ diff --git a/app/assets/images/footer/sprite.png b/app/assets/images/footer/sprite.png deleted file mode 100644 index 47152ceb5f465a2b593f80b0770bf68307b101bb..0000000000000000000000000000000000000000 Binary files a/app/assets/images/footer/sprite.png and /dev/null differ diff --git a/app/assets/images/game.png b/app/assets/images/game.png deleted file mode 100644 index 7de3f9683300e2a1de001c638cfba665b905949a..0000000000000000000000000000000000000000 Binary files a/app/assets/images/game.png and /dev/null differ diff --git a/app/assets/images/geometry2.png b/app/assets/images/geometry2.png deleted file mode 100644 index d43966e05f943614a9b25746a660cf156f1a2f66..0000000000000000000000000000000000000000 Binary files a/app/assets/images/geometry2.png and /dev/null differ diff --git a/app/assets/images/geral.png b/app/assets/images/geral.png deleted file mode 100644 index 6cfd19fd84dc0db74d07d3b22949441f27a968f2..0000000000000000000000000000000000000000 Binary files a/app/assets/images/geral.png and /dev/null differ diff --git a/app/assets/images/geral_accesses.png b/app/assets/images/geral_accesses.png deleted file mode 100644 index d1923298d489ad0bfb00447445225a849c86d7bc..0000000000000000000000000000000000000000 Binary files a/app/assets/images/geral_accesses.png and /dev/null differ diff --git a/app/assets/images/geral_acessos.png b/app/assets/images/geral_acessos.png deleted file mode 100644 index 4dcfd193f51f2a8c723c252ac5bfabb60fe61142..0000000000000000000000000000000000000000 Binary files a/app/assets/images/geral_acessos.png and /dev/null differ diff --git a/app/assets/images/geral_colecoes.png b/app/assets/images/geral_colecoes.png deleted file mode 100644 index d524a23bbb0989400bc6cc6d35556524d1367106..0000000000000000000000000000000000000000 Binary files a/app/assets/images/geral_colecoes.png and /dev/null differ diff --git a/app/assets/images/geral_colections.png b/app/assets/images/geral_colections.png deleted file mode 100644 index b7a69f3c83b0d7b6be3c49c33b88d478a6ac290b..0000000000000000000000000000000000000000 Binary files a/app/assets/images/geral_colections.png and /dev/null differ diff --git a/app/assets/images/geral_download.png b/app/assets/images/geral_download.png deleted file mode 100644 index 63e5e88f17953a77927a5dc97fea6422af291fe9..0000000000000000000000000000000000000000 Binary files a/app/assets/images/geral_download.png and /dev/null differ diff --git a/app/assets/images/geral_user.png b/app/assets/images/geral_user.png deleted file mode 100644 index 6cfd19fd84dc0db74d07d3b22949441f27a968f2..0000000000000000000000000000000000000000 Binary files a/app/assets/images/geral_user.png and /dev/null differ diff --git a/app/assets/images/ico-boilerplate.png b/app/assets/images/ico-boilerplate.png deleted file mode 100644 index 1bbcfee4ec02e66ff957986e6d1edbc142735068..0000000000000000000000000000000000000000 Binary files a/app/assets/images/ico-boilerplate.png and /dev/null differ diff --git a/app/assets/images/ico-painel1.png b/app/assets/images/ico-painel1.png deleted file mode 100755 index 63f4f994798b9b11bcad586e9a99fd5859d013ec..0000000000000000000000000000000000000000 Binary files a/app/assets/images/ico-painel1.png and /dev/null differ diff --git a/app/assets/images/ico-painel2.png b/app/assets/images/ico-painel2.png deleted file mode 100755 index 517eae3cb58b66fe1c66d89d4cb61cb3ceaa7de2..0000000000000000000000000000000000000000 Binary files a/app/assets/images/ico-painel2.png and /dev/null differ diff --git a/app/assets/images/ico-switch-on-off.png b/app/assets/images/ico-switch-on-off.png deleted file mode 100644 index cc91dafba74de4068ae62b8546fc098143461052..0000000000000000000000000000000000000000 Binary files a/app/assets/images/ico-switch-on-off.png and /dev/null differ diff --git a/app/assets/images/ico-switch.png b/app/assets/images/ico-switch.png deleted file mode 100644 index b737a7f5e12acd03214b17c4835e9bb140e1c2c3..0000000000000000000000000000000000000000 Binary files a/app/assets/images/ico-switch.png and /dev/null differ diff --git "a/app/assets/images/icons/Copiar_Sele\303\247\303\243o.png" "b/app/assets/images/icons/Copiar_Sele\303\247\303\243o.png" deleted file mode 100644 index 85d33052a55cdd834c30b1c632172bf7ccaab8d3..0000000000000000000000000000000000000000 Binary files "a/app/assets/images/icons/Copiar_Sele\303\247\303\243o.png" and /dev/null differ diff --git a/app/assets/images/icons/Curtir_01.png b/app/assets/images/icons/Curtir_01.png deleted file mode 100644 index 3d737cb427e80fc295a36f5fd845db1ca9df722e..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/Curtir_01.png and /dev/null differ diff --git a/app/assets/images/icons/Curtir_02.png b/app/assets/images/icons/Curtir_02.png deleted file mode 100644 index 7a094156ef0e1fcb8f4d66a50ffaa47fe2f598d1..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/Curtir_02.png and /dev/null differ diff --git a/app/assets/images/icons/Download_01.png b/app/assets/images/icons/Download_01.png deleted file mode 100644 index 367358d049e9c2c6b5f841e459923a4f7b26b6e2..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/Download_01.png and /dev/null differ diff --git "a/app/assets/images/icons/Mover_Sele\303\247\303\243o.png" "b/app/assets/images/icons/Mover_Sele\303\247\303\243o.png" deleted file mode 100644 index 27feb4a46143bcede48aaa0b9a45e0283ce78015..0000000000000000000000000000000000000000 Binary files "a/app/assets/images/icons/Mover_Sele\303\247\303\243o.png" and /dev/null differ diff --git "a/app/assets/images/icons/Remover_da_Cole\303\247\303\243o_Sele\303\247\303\243o.png" "b/app/assets/images/icons/Remover_da_Cole\303\247\303\243o_Sele\303\247\303\243o.png" deleted file mode 100644 index bda86e5ce3e7cfc86c866645bd26aa0e633b2ca3..0000000000000000000000000000000000000000 Binary files "a/app/assets/images/icons/Remover_da_Cole\303\247\303\243o_Sele\303\247\303\243o.png" and /dev/null differ diff --git a/app/assets/images/icons/Upload.png b/app/assets/images/icons/Upload.png deleted file mode 100644 index 53aaf2819f22059cb7443ee82c6c370f19567a4b..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/Upload.png and /dev/null differ diff --git a/app/assets/images/icons/btn_add.png b/app/assets/images/icons/btn_add.png deleted file mode 100644 index bfb53a0140d0ebe64b50277f61d339837d0fc94f..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_add.png and /dev/null differ diff --git a/app/assets/images/icons/btn_add_down.png b/app/assets/images/icons/btn_add_down.png deleted file mode 100644 index 6c2151e580e276b86eb1776db15a6ffd1c103289..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_add_down.png and /dev/null differ diff --git a/app/assets/images/icons/btn_add_nobg.png b/app/assets/images/icons/btn_add_nobg.png deleted file mode 100644 index 58d29d7c9d30a2cae1dce48374ecd614aadaff06..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_add_nobg.png and /dev/null differ diff --git a/app/assets/images/icons/btn_dislike_comentario_down.png b/app/assets/images/icons/btn_dislike_comentario_down.png deleted file mode 100644 index 7d12422fdb6dac42479db4822764f7cde89c6aca..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_dislike_comentario_down.png and /dev/null differ diff --git a/app/assets/images/icons/btn_dislike_comentario_up.png b/app/assets/images/icons/btn_dislike_comentario_up.png deleted file mode 100644 index 6ac67bd2254b2847f8fcdd5e87417f599ff6c95a..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_dislike_comentario_up.png and /dev/null differ diff --git a/app/assets/images/icons/btn_like_comentario_down.png b/app/assets/images/icons/btn_like_comentario_down.png deleted file mode 100644 index c62e6ac90e86b5f7458426b96fb2f9c506b01adc..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_like_comentario_down.png and /dev/null differ diff --git a/app/assets/images/icons/btn_like_comentario_up.png b/app/assets/images/icons/btn_like_comentario_up.png deleted file mode 100644 index f95e9f8c2693ee63a91b9ab56787e90161a26d38..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_like_comentario_up.png and /dev/null differ diff --git a/app/assets/images/icons/btn_like_down.png b/app/assets/images/icons/btn_like_down.png deleted file mode 100644 index f14fdd3848c88ed1eead5f6da82771e06bc68d11..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_like_down.png and /dev/null differ diff --git a/app/assets/images/icons/btn_like_nobg.png b/app/assets/images/icons/btn_like_nobg.png deleted file mode 100644 index 50c050eedc340f906da184f8456a3812be97bc3a..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_like_nobg.png and /dev/null differ diff --git a/app/assets/images/icons/btn_like_up.png b/app/assets/images/icons/btn_like_up.png deleted file mode 100644 index b8db3af1ee8117f1c2ccbb1df46b581f57b32e79..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_like_up.png and /dev/null differ diff --git a/app/assets/images/icons/btn_report_comentario_down.png b/app/assets/images/icons/btn_report_comentario_down.png deleted file mode 100644 index 80b6a352d6f56ea0280bc531856b3aab657522c0..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_report_comentario_down.png and /dev/null differ diff --git a/app/assets/images/icons/btn_report_comentario_up.png b/app/assets/images/icons/btn_report_comentario_up.png deleted file mode 100644 index a88d32e3afe9c593dc304169466daed6215373bf..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_report_comentario_up.png and /dev/null differ diff --git a/app/assets/images/icons/btn_report_down.png b/app/assets/images/icons/btn_report_down.png deleted file mode 100644 index d5b66a28836d404f4468660739e5174987082864..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_report_down.png and /dev/null differ diff --git a/app/assets/images/icons/btn_report_nobg.png b/app/assets/images/icons/btn_report_nobg.png deleted file mode 100644 index 3a012884e7a1e600d6b93e977570229a93990672..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_report_nobg.png and /dev/null differ diff --git a/app/assets/images/icons/btn_report_up.png b/app/assets/images/icons/btn_report_up.png deleted file mode 100644 index 52c2839e2bbaeba6418c45e99e3d48bb3d7a606f..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/btn_report_up.png and /dev/null differ diff --git a/app/assets/images/icons/checked.png b/app/assets/images/icons/checked.png deleted file mode 100644 index 791b40b00d0810e4216c4ca73314dea82cdf7154..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/checked.png and /dev/null differ diff --git a/app/assets/images/icons/collection-add.png b/app/assets/images/icons/collection-add.png deleted file mode 100644 index 1fa684519e819dd3fe909bce96375fad0b335193..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/collection-add.png and /dev/null differ diff --git a/app/assets/images/icons/collection-download.png b/app/assets/images/icons/collection-download.png deleted file mode 100644 index ad972bdd8a05349a39e45731032a2e14a7eb496e..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/collection-download.png and /dev/null differ diff --git a/app/assets/images/icons/collection-fast.png b/app/assets/images/icons/collection-fast.png deleted file mode 100644 index f6ab41783c1e3c7c4e2191d3a35e5c7e2b79d017..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/collection-fast.png and /dev/null differ diff --git a/app/assets/images/icons/collection-items.png b/app/assets/images/icons/collection-items.png deleted file mode 100644 index 22190a91f0866488651423c67da56d54d411910f..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/collection-items.png and /dev/null differ diff --git a/app/assets/images/icons/collection-remove.png b/app/assets/images/icons/collection-remove.png deleted file mode 100644 index 863bb099f22a6c7c57bb6239727231ecb41b1f30..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/collection-remove.png and /dev/null differ diff --git a/app/assets/images/icons/collection.png b/app/assets/images/icons/collection.png deleted file mode 100644 index ba020f3199a45af971987ad77a5cfb83f8a81609..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/collection.png and /dev/null differ diff --git a/app/assets/images/icons/collection1.png b/app/assets/images/icons/collection1.png deleted file mode 100644 index 078a493a9d8ff6b0ebe344fd3d8c2ba8f0728e9d..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/collection1.png and /dev/null differ diff --git a/app/assets/images/icons/comments.png b/app/assets/images/icons/comments.png deleted file mode 100644 index d6e736420a7c5d71982c603cc471733e680135b0..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/comments.png and /dev/null differ diff --git a/app/assets/images/icons/contrast.png b/app/assets/images/icons/contrast.png deleted file mode 100644 index acb1f5b8447cf69fbf2645a3b1bb6f215d0ee684..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/contrast.png and /dev/null differ diff --git a/app/assets/images/icons/download.png b/app/assets/images/icons/download.png deleted file mode 100644 index af9243b430f11515a84a224bcae47b93ef11f1e0..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/download.png and /dev/null differ diff --git a/app/assets/images/icons/downloadred.png b/app/assets/images/icons/downloadred.png deleted file mode 100644 index d67b8a025b6b5b7e51bdb91a221dd8a726b05f89..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/downloadred.png and /dev/null differ diff --git a/app/assets/images/icons/filter.png b/app/assets/images/icons/filter.png deleted file mode 100644 index 1bf31b8cebf7fdfdfd922676ce2a95c6e74bc408..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/filter.png and /dev/null differ diff --git a/app/assets/images/icons/foldergreen.png b/app/assets/images/icons/foldergreen.png deleted file mode 100644 index 0c4da5a1501d915c3f7d746378b10872ddc318e5..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/foldergreen.png and /dev/null differ diff --git a/app/assets/images/icons/font-minus.png b/app/assets/images/icons/font-minus.png deleted file mode 100644 index 53c8d5c33d9671bc2e0ee4f3ac95de40b75307ac..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/font-minus.png and /dev/null differ diff --git a/app/assets/images/icons/font-plus.png b/app/assets/images/icons/font-plus.png deleted file mode 100644 index e0d32fd6f4a2a6d60bdbaa0c4c4e8641d23eff71..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/font-plus.png and /dev/null differ diff --git a/app/assets/images/icons/i_estilizado.png b/app/assets/images/icons/i_estilizado.png deleted file mode 100644 index 1a84c7209bc7e70ca956a7a52a2e01e0d71919aa..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/i_estilizado.png and /dev/null differ diff --git a/app/assets/images/icons/icone_download.png b/app/assets/images/icons/icone_download.png deleted file mode 100644 index b12921cfabed7c0138fc62bf104b25f88df7fd76..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/icone_download.png and /dev/null differ diff --git a/app/assets/images/icons/likes_counter.png b/app/assets/images/icons/likes_counter.png deleted file mode 100644 index ebf6b203d6145e5f24433586ff247594865a8f13..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/likes_counter.png and /dev/null differ diff --git a/app/assets/images/icons/report-circle.png b/app/assets/images/icons/report-circle.png deleted file mode 100644 index d5d078817dca175f6f9a01ec9271ca44da5c1f6c..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/report-circle.png and /dev/null differ diff --git a/app/assets/images/icons/report.png b/app/assets/images/icons/report.png deleted file mode 100644 index a26bb4aab44e9806465f0f69dfc60c18e661b66f..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/report.png and /dev/null differ diff --git a/app/assets/images/icons/search.png b/app/assets/images/icons/search.png deleted file mode 100644 index 3faefcad4dded07baee7fe6a7da06cc0842f137c..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/search.png and /dev/null differ diff --git a/app/assets/images/icons/selection-copy.png b/app/assets/images/icons/selection-copy.png deleted file mode 100644 index 1dabd051939bc6c97786f3e2246aebf7cdefcd81..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/selection-copy.png and /dev/null differ diff --git a/app/assets/images/icons/selection-download.png b/app/assets/images/icons/selection-download.png deleted file mode 100644 index 46168302edc3557bdcdccd1aea08111881defe07..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/selection-download.png and /dev/null differ diff --git a/app/assets/images/icons/selection-move.png b/app/assets/images/icons/selection-move.png deleted file mode 100644 index f242b1b3397e00100c0f9db08fb442b28b2d710b..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/selection-move.png and /dev/null differ diff --git a/app/assets/images/icons/signup.png b/app/assets/images/icons/signup.png deleted file mode 100644 index 083ccb7ad3cb5f5a4cda6f4efa515d0199754d5a..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/signup.png and /dev/null differ diff --git a/app/assets/images/icons/square.png b/app/assets/images/icons/square.png deleted file mode 100644 index 6a344b9ffb5dbac0733e36912b632d4ba804f2ad..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/square.png and /dev/null differ diff --git a/app/assets/images/icons/star-gold.png b/app/assets/images/icons/star-gold.png deleted file mode 100644 index 14d216f875885a2b3ab8f92ff7129b139da0363e..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/star-gold.png and /dev/null differ diff --git a/app/assets/images/icons/star-grey.png b/app/assets/images/icons/star-grey.png deleted file mode 100644 index d56e678777363b947eee5f8a534a6a5bce87ee13..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/star-grey.png and /dev/null differ diff --git a/app/assets/images/icons/unchecked.png b/app/assets/images/icons/unchecked.png deleted file mode 100644 index 7b26d97cc6ed9606a6cf3f24ed8c84e3ffff6268..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/unchecked.png and /dev/null differ diff --git a/app/assets/images/icons/upload-add.png b/app/assets/images/icons/upload-add.png deleted file mode 100644 index 5e458c3752b65e7a12d98904ee033fc193a604ab..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/upload-add.png and /dev/null differ diff --git a/app/assets/images/icons/upload.png b/app/assets/images/icons/upload.png deleted file mode 100644 index ed76e10e18e65b5f1521311c21331b6e3cfeec31..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/upload.png and /dev/null differ diff --git a/app/assets/images/icons/visualization.png b/app/assets/images/icons/visualization.png deleted file mode 100644 index 12a1183a472acb3b7e77d2afb241ab54b7fc8288..0000000000000000000000000000000000000000 Binary files a/app/assets/images/icons/visualization.png and /dev/null differ diff --git a/app/assets/images/image.png b/app/assets/images/image.png deleted file mode 100644 index a2edff781729dc4027e9c53afa41da710bae3b77..0000000000000000000000000000000000000000 Binary files a/app/assets/images/image.png and /dev/null differ diff --git a/app/assets/images/iros.jpg b/app/assets/images/iros.jpg deleted file mode 100644 index 8d5571b1f0de7f30042b6517116570b92128220a..0000000000000000000000000000000000000000 Binary files a/app/assets/images/iros.jpg and /dev/null differ diff --git a/app/assets/images/learning-object-preview-large.png b/app/assets/images/learning-object-preview-large.png deleted file mode 100644 index bbfb4087443833a867e3257ad5e6e3bee5492d64..0000000000000000000000000000000000000000 Binary files a/app/assets/images/learning-object-preview-large.png and /dev/null differ diff --git a/app/assets/images/learning-object-preview.png b/app/assets/images/learning-object-preview.png deleted file mode 100644 index 4b52e2eb2c0448bbbc602e0d4d7e42ba7909bd94..0000000000000000000000000000000000000000 Binary files a/app/assets/images/learning-object-preview.png and /dev/null differ diff --git a/app/assets/images/link.png b/app/assets/images/link.png deleted file mode 100644 index 8e2fd7bd72e5a23a83f9dfad75983cd8ab560819..0000000000000000000000000000000000000000 Binary files a/app/assets/images/link.png and /dev/null differ diff --git a/app/assets/images/logo.png b/app/assets/images/logo.png deleted file mode 100644 index fd66544072ba7863cd8b9d691fea4c81b162b347..0000000000000000000000000000000000000000 Binary files a/app/assets/images/logo.png and /dev/null differ diff --git a/app/assets/images/logo_brasil.png b/app/assets/images/logo_brasil.png deleted file mode 100644 index 46dd6a59d8b6477d66c96c657b1213f99a47a09e..0000000000000000000000000000000000000000 Binary files a/app/assets/images/logo_brasil.png and /dev/null differ diff --git a/app/assets/images/logo_c3.png b/app/assets/images/logo_c3.png deleted file mode 100644 index 08fca9c57e7b398d2c768dec5f3eed9e9426ddf0..0000000000000000000000000000000000000000 Binary files a/app/assets/images/logo_c3.png and /dev/null differ diff --git a/app/assets/images/logo_fnde.jpg b/app/assets/images/logo_fnde.jpg deleted file mode 100644 index f12285faf149ed9603db4d003864321fbbaeafdb..0000000000000000000000000000000000000000 Binary files a/app/assets/images/logo_fnde.jpg and /dev/null differ diff --git a/app/assets/images/logo_ministerio.png b/app/assets/images/logo_ministerio.png deleted file mode 100644 index f1da0b032991ee57ec2ed728c28c0721d4a5b84f..0000000000000000000000000000000000000000 Binary files a/app/assets/images/logo_ministerio.png and /dev/null differ diff --git a/app/assets/images/logo_ufpr.jpg b/app/assets/images/logo_ufpr.jpg deleted file mode 100644 index f5a688c30038aa51819cbd449e345ebf704aba4e..0000000000000000000000000000000000000000 Binary files a/app/assets/images/logo_ufpr.jpg and /dev/null differ diff --git a/app/assets/images/ls-smile.gif b/app/assets/images/ls-smile.gif deleted file mode 100644 index 69a16271dfae62611e92735a7db7f049d93769d6..0000000000000000000000000000000000000000 Binary files a/app/assets/images/ls-smile.gif and /dev/null differ diff --git a/app/assets/images/mecshow_logo.jpg b/app/assets/images/mecshow_logo.jpg deleted file mode 100644 index b4af0a4138b46e7deec26d416e5f78903c2d2ebc..0000000000000000000000000000000000000000 Binary files a/app/assets/images/mecshow_logo.jpg and /dev/null differ diff --git a/app/assets/images/missing.svg b/app/assets/images/missing.svg deleted file mode 100644 index 39e55e773a922b5f1a24e0ad5acf76ad0f722223..0000000000000000000000000000000000000000 --- a/app/assets/images/missing.svg +++ /dev/null @@ -1,227 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://web.resource.org/cc/" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - inkscape:export-ydpi="90.000000" - inkscape:export-xdpi="90.000000" - inkscape:export-filename="/home/jimmac/Desktop/wi-fi.png" - width="48px" - height="48px" - id="svg11300" - sodipodi:version="0.32" - inkscape:version="0.43+devel" - sodipodi:docbase="/home/tigert/cvs/freedesktop.org/tango-icon-theme/scalable/status" - sodipodi:docname="image-missing.svg" - inkscape:output_extension="org.inkscape.output.svg.inkscape"> - <defs - id="defs3"> - <linearGradient - id="linearGradient3563"> - <stop - style="stop-color:#ffffff;stop-opacity:1;" - offset="0" - id="stop3565" /> - <stop - style="stop-color:#939393;stop-opacity:1;" - offset="1" - id="stop3567" /> - </linearGradient> - <linearGradient - id="linearGradient3555"> - <stop - style="stop-color:#f2f2f2;stop-opacity:1;" - offset="0" - id="stop3557" /> - <stop - style="stop-color:#d0d0d0;stop-opacity:1;" - offset="1" - id="stop3559" /> - </linearGradient> - <linearGradient - style="stroke-dasharray:none;stroke-miterlimit:4.0000000;stroke-width:1.2166667" - y2="36.0328" - x2="31.0813" - y1="3.7319" - x1="12.4873" - gradientUnits="userSpaceOnUse" - id="aigrd1"> - <stop - id="stop16177" - style="stop-color:#D2D2D2;stroke-dasharray:none;stroke-miterlimit:4.0000000;stroke-width:1.2166667" - offset="0" /> - <stop - id="stop16179" - style="stop-color:#EDEDED;stroke-dasharray:none;stroke-miterlimit:4.0000000;stroke-width:1.2166667" - offset="1" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - xlink:href="#aigrd1" - id="linearGradient16280" - gradientUnits="userSpaceOnUse" - x1="12.4873" - y1="3.7319" - x2="31.0813" - y2="36.0328" - gradientTransform="matrix(1.211383,0.000000,0.000000,1.211383,-2.021433,0.189894)" /> - <linearGradient - inkscape:collect="always" - id="linearGradient12129"> - <stop - style="stop-color:#000000;stop-opacity:1;" - offset="0" - id="stop12131" /> - <stop - style="stop-color:#000000;stop-opacity:0;" - offset="1" - id="stop12133" /> - </linearGradient> - <radialGradient - inkscape:collect="always" - xlink:href="#linearGradient12129" - id="radialGradient12135" - cx="24.218407" - cy="41.636040" - fx="24.218407" - fy="41.636040" - r="22.097088" - gradientTransform="matrix(1.000000,0.000000,0.000000,0.184000,0.000000,33.97501)" - gradientUnits="userSpaceOnUse" /> - <radialGradient - inkscape:collect="always" - xlink:href="#linearGradient3555" - id="radialGradient3561" - cx="26.728037" - cy="38.34853" - fx="26.728037" - fy="38.34853" - r="17.926361" - gradientTransform="matrix(1.848501,-1.547102e-23,1.227926e-24,1.289078,-21.29931,-13.68176)" - gradientUnits="userSpaceOnUse" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient3563" - id="linearGradient3569" - x1="28.107494" - y1="34.868584" - x2="22.169001" - y2="9.8661737" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(0.000000,0.883885)" /> - </defs> - <sodipodi:namedview - stroke="#cc0000" - fill="#cc0000" - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="0.25490196" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="5.6568542" - inkscape:cx="21.313886" - inkscape:cy="27.870334" - inkscape:current-layer="layer1" - showgrid="false" - inkscape:grid-bbox="true" - inkscape:document-units="px" - inkscape:showpageshadow="false" - inkscape:window-width="770" - inkscape:window-height="630" - inkscape:window-x="180" - inkscape:window-y="85" /> - <metadata - id="metadata4"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:creator> - <cc:Agent> - <dc:title>Jakub Steiner</dc:title> - </cc:Agent> - </dc:creator> - <dc:source>http://jimmac.musichall.cz</dc:source> - <cc:license - rdf:resource="http://creativecommons.org/licenses/by-sa/2.0/" /> - <dc:title>Broken Image</dc:title> - <dc:subject> - <rdf:Bag> - <rdf:li>image</rdf:li> - <rdf:li>picture</rdf:li> - <rdf:li>photo</rdf:li> - <rdf:li>missing</rdf:li> - <rdf:li>broken</rdf:li> - <rdf:li>404</rdf:li> - </rdf:Bag> - </dc:subject> - </cc:Work> - <cc:License - rdf:about="http://creativecommons.org/licenses/by-sa/2.0/"> - <cc:permits - rdf:resource="http://web.resource.org/cc/Reproduction" /> - <cc:permits - rdf:resource="http://web.resource.org/cc/Distribution" /> - <cc:requires - rdf:resource="http://web.resource.org/cc/Notice" /> - <cc:requires - rdf:resource="http://web.resource.org/cc/Attribution" /> - <cc:permits - rdf:resource="http://web.resource.org/cc/DerivativeWorks" /> - <cc:requires - rdf:resource="http://web.resource.org/cc/ShareAlike" /> - </cc:License> - </rdf:RDF> - </metadata> - <g - id="layer1" - inkscape:label="Layer 1" - inkscape:groupmode="layer"> - <path - sodipodi:type="arc" - style="opacity:0.52763821;color:#000000;fill:url(#radialGradient12135);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.61658032;visibility:visible;display:block" - id="path12127" - sodipodi:cx="24.218407" - sodipodi:cy="41.63604" - sodipodi:rx="22.097088" - sodipodi:ry="4.0658641" - d="M 46.315495 41.63604 A 22.097088 4.0658641 0 1 1 2.1213188,41.63604 A 22.097088 4.0658641 0 1 1 46.315495 41.63604 z" - transform="translate(0.176777,0.900834)" /> - <path - id="path16181" - d="M 45.343675,39.903974 C 45.343675,41.842189 43.768877,43.416987 41.830663,43.416987 L 6.3371177,43.416987 C 4.3989037,43.416987 2.8241047,41.842189 2.8241047,39.903974 L 2.8241047,7.0947821 C 2.8241047,5.1565681 4.3989037,3.581769 6.3371177,3.581769 L 41.830663,3.581769 C 43.768877,3.581769 45.343675,5.1565681 45.343675,7.0947821 L 45.343675,39.903974 L 45.343675,39.903974 z " - style="fill:url(#linearGradient16280);fill-rule:nonzero;stroke:#646464;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" - sodipodi:nodetypes="cccccccccc" /> - <path - style="fill:url(#radialGradient3561);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient3569);stroke-width:0.99999923;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.61658032" - d="M 41.467991,35.25247 L 6.6152692,35.25247 L 6.6152692,11.250058 L 41.467991,11.250058 L 41.467991,35.25247 L 41.467991,35.25247 z " - id="path12125" - sodipodi:nodetypes="cccccc" /> - <path - style="fill:none;fill-rule:nonzero;stroke:#ffffff;stroke-width:1.00000012;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.86010359" - d="M 44.480104,39.32848 C 44.480104,41.187964 43.499604,42.345241 41.640121,42.345241 L 6.6160507,42.345241 C 4.7565677,42.345241 3.6876787,41.276353 3.6876787,39.416869 L 3.6876787,7.5970548 C 3.6876787,5.737571 5.1985087,4.403517 7.0579927,4.403517 L 41.198179,4.403517 C 43.057662,4.403517 44.480104,5.737571 44.480104,7.5970548 L 44.480104,38.974927 L 44.480104,39.32848 z " - id="path11975" - sodipodi:nodetypes="cccccccccc" /> - <g - id="g3551" - transform="matrix(0.772431,0.000000,0.000000,0.772431,10.05699,9.902145)"> - <path - d="M 11.318692,9.2240568 C 16.641997,14.693047 22.769247,19.123651 29.210664,22.931105 L 27.441568,24.159843 C 21.101863,20.04489 15.052508,15.498993 9.1840818,10.652117 L 11.318692,9.2240568 z " - id="path2565" - style="opacity:1;color:#000000;fill:#cc0000;fill-opacity:1;fill-rule:nonzero;stroke:#cc0000;stroke-width:2.58922911;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" /> - <path - d="M 26.73892,8.9210568 C 21.867631,15.95255 15.247359,21.081199 7.9065151,25.28163 L 10.087564,23.520856 C 8.7241111,24.379297 25.574485,11.804168 23.852075,10.207903 L 26.73892,8.9210568 z " - id="path2575" - style="opacity:1;color:#000000;fill:#cc0000;fill-opacity:1;fill-rule:nonzero;stroke:#cc0000;stroke-width:2.58922839;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" /> - </g> - </g> -</svg> diff --git a/app/assets/images/simulator.png b/app/assets/images/simulator.png deleted file mode 100644 index 2cc8da1ca5380352e98405aebb0f0f598c282e6f..0000000000000000000000000000000000000000 Binary files a/app/assets/images/simulator.png and /dev/null differ diff --git a/app/assets/images/software.png b/app/assets/images/software.png deleted file mode 100644 index 2722e01fa85fb94d4e80539a4d3cd8661e854e44..0000000000000000000000000000000000000000 Binary files a/app/assets/images/software.png and /dev/null differ diff --git a/app/assets/images/star-off.svg b/app/assets/images/star-off.svg deleted file mode 100644 index 9a393aa40d139025bf2324aec47830757facb84a..0000000000000000000000000000000000000000 --- a/app/assets/images/star-off.svg +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"> - <path fill="#fff" stroke="#ccc" d="M 12,2.5 14.4,9.5 21.5,9.5 15.8,13.75 18.5,21.5 12,16.625 5.5,21.5 8.2,13.75 2.5,9.5 9.6,9.5 z"/> -</svg> diff --git a/app/assets/images/star-on.svg b/app/assets/images/star-on.svg deleted file mode 100644 index aa9553d194a32f54c5682835286e4b33c6c9f460..0000000000000000000000000000000000000000 --- a/app/assets/images/star-on.svg +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"> - <path fill="#9c3" stroke="#682" d="M 12,2.5 14.4,9.5 21.5,9.5 15.8,13.75 18.5,21.5 12,16.625 5.5,21.5 8.2,13.75 2.5,9.5 9.6,9.5 z"/> -</svg> diff --git a/app/assets/images/test.png b/app/assets/images/test.png deleted file mode 100644 index 6cfd19fd84dc0db74d07d3b22949441f27a968f2..0000000000000000000000000000000000000000 Binary files a/app/assets/images/test.png and /dev/null differ diff --git a/app/assets/images/text.png b/app/assets/images/text.png deleted file mode 100644 index cdc1a384988b9419494ca0aa7ab247e0f4b49072..0000000000000000000000000000000000000000 Binary files a/app/assets/images/text.png and /dev/null differ diff --git a/app/assets/images/user-anon.png b/app/assets/images/user-anon.png deleted file mode 100644 index d2ab8da5945a930140730c855609d1e32ee7103f..0000000000000000000000000000000000000000 Binary files a/app/assets/images/user-anon.png and /dev/null differ diff --git a/app/assets/images/usuarios.png b/app/assets/images/usuarios.png deleted file mode 100644 index 72b15db2c3975d2115a89da43fa768fe260aa40e..0000000000000000000000000000000000000000 Binary files a/app/assets/images/usuarios.png and /dev/null differ diff --git a/app/assets/images/video.png b/app/assets/images/video.png deleted file mode 100644 index 1962345acdfd4d72c71326ecc00fcb03e9bcfaef..0000000000000000000000000000000000000000 Binary files a/app/assets/images/video.png and /dev/null differ diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js deleted file mode 100644 index 8cf3388e68a2c7dd24495d5cd6546a2a0277e9cb..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application.js +++ /dev/null @@ -1,28 +0,0 @@ -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. -// -// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// compiled file. -// -// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery.turbolinks -//= require jquery_ujs -//= require jquery-ui/autocomplete -//= require bootstrap-sprockets -//= require select2 -//= require select2_locale_pt-BR -//= require bootstrap-tagsinput -//= require turbolinks -//= require social-share-button -//= require resumable -//= require_tree ./application - -$(document).ready(function () { - $('[data-toggle="tooltip"]').tooltip(); -}); diff --git a/app/assets/javascripts/application/about.coffee b/app/assets/javascripts/application/about.coffee deleted file mode 100644 index 24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/about.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/application/accessibility.js b/app/assets/javascripts/application/accessibility.js deleted file mode 100644 index b3b71a486f46a4cea5e98174bd10b9de4d970962..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/accessibility.js +++ /dev/null @@ -1,136 +0,0 @@ -//// font size -var fontSize = function() { - // init - $(document).ready(function() { - size_c = readCookie('fontSize'); - if (size_c != null) reloadFontSize(size_c); - else createCookie('fontSize', 0, 365); - }); - - function reloadFontSize(size) { - size = (parseFloat(size) / 10) + 1; - // change body zoom - $('body').css('zoom', size, 'important'); - - // TODO: find a way to zoom in firefox, the way below break bootstrap modal and other things - // $('body').css('-moz-transform', "scale("+size+")", 'important'); - // $('body').css('-moz-transform-origin', '0 0', 'important'); - } - - return { - resizeText: function(increment) { - var size = parseFloat(readCookie('fontSize')); - increment = parseFloat(increment); - if (increment === 0) size = 0; - else if (((size > -6) && (increment < 0)) || ((size < 7) && (increment > 0))) { - size = size + increment; - }; - reloadFontSize(size); - createCookie('fontSize', size, 365); - } - }; -} - -//// contrast -var contrast = function() { - var contrast_elements = 'body, .barra-brasil, .search-bar, .learning-object-vertical .panel, .navbar, .well, .grey-panel, .btn, .user-header'; - - // init - $(document).ready(function() { - run(); - }); - - function run() { - var contrast_c = readCookie('contrast'); - - if (contrast_c == null || contrast_c != "true") { - $(contrast_elements).removeClass('contraste'); - $('.search-bar').css('border-top','none'); - $('#menu-bar').removeClass('menu-bar-contrast'); - $('.navbar-header').removeClass('set-Colecao'); - $('.caret').css('border-top',' 7px solid black'); - $('.grey-panel').css('border','none'); - $('.button-cancel-setup').css('font-weight','normal'); - - - var select = $('.select-tag-container').select2() - .on("select2:open", function() { - // TODO: find a way to only apply contrast first time only - if (select.length > 0) { - select.each(function () { - $(this).data('select2').$container.removeClass("selec"); - $(this).data('select2').$dropdown.removeClass("words"); - $(this).data('select2').$results.removeClass("fundo"); - }); - } - }); - } - else { - $(contrast_elements).addClass('contraste'); - $('.search-bar').css('border-top','2px solid white'); - $('#menu-bar').addClass('menu-bar-contrast'); - $('.navbar-header').addClass('set-Colecao'); - $('.caret').css('border-top',' 7px solid white'); - $('.grey-panel').css('border','7px solid white'); - $('.button-cancel-setup').css('font-weight','bold'); - $('#create_collection_form').css('color','black'); - $('#label_add_collection').css('color','black'); - - - - //contraste select2(menu esquerda) - var select = $('.select-tag-container').select2() - .on("select2:open", function() { - // TODO: find a way to only apply contrast first time only - if (select.length > 0) { - select.each(function () { - $(this).data('select2').$container.addClass("selec"); - $(this).data('select2').$dropdown.addClass("words"); - $(this).data('select2').$results.addClass("fundo"); - }); - $('.select2-search-choice:not(.my-custom-css)', this).addClass('my-custom-css'); - } - }); - } - } - - return { - change: function() { - (readCookie('contrast') == "true") ? createCookie('contrast',"false",0) : createCookie('contrast',"true",0); - run(); - } - }; -} - -//// cookies -//source: http://www.linhadecodigo.com.br/artigo/1615/acessibilidade-aumentando-e-diminuindo-tamanho-de-letra-em-seu-site.aspx -function createCookie(name,value,days) { - if (days) { - var date = new Date(); - date.setTime(date.getTime()+(days*24*60*60*1000)); - var expires = "; expires="+date.toGMTString(); - } else var expires = ""; - document.cookie = name+"="+value+expires+"; path=/"; -} - -function readCookie(name) { - var nameEQ = name + "="; - var ca = document.cookie.split(";"); - for (var i=0;i < ca.length;i++) { - var c = ca[i]; - while (c.charAt(0)==" ") c = c.substring(1,c.length); - if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); - } - return null; -} - -// define global variables -var fontSize = fontSize(); -var contrast = contrast(); - -function HandleChangeImg() -{ -// var fileinput = document.getElementById("avatar"); - var iminput = document.getElementById("pic"); -// iminput.src = ;/*"path"+ fileinput.value; -} diff --git a/app/assets/javascripts/application/autocomplete.js b/app/assets/javascripts/application/autocomplete.js deleted file mode 100644 index 22bb933d7d441c4e877c3748939481231ebd3e4d..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/autocomplete.js +++ /dev/null @@ -1,24 +0,0 @@ -$(document).ready(function() { - $('#search input[name=query]').autocomplete({ - minLength: 3, - source: function (request, response) { - $.ajax({ - url: "/autocomplete", - data: { query: request.term, search_class: $('select[name="search_class"]').val()}, - dataType: "json", - success: response, - error: function () { - response([]); - } - }); - }, - select: function(event, ui) { - window.location.href = ui.item.url; - } - }).data("uiAutocomplete")._renderItem = function(ul, item) { - return $("<li></li>") - .append(item.thumbnail) - .append(item.name) - .appendTo(ul); - }; -}); diff --git a/app/assets/javascripts/application/collections.coffee b/app/assets/javascripts/application/collections.coffee deleted file mode 100644 index 0289e4e56c771c88f98948a2259740103a4cf2af..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/collections.coffee +++ /dev/null @@ -1,189 +0,0 @@ -$ -> - # create collection popover - $('#create_collection_popover').popover - html: true - content: -> - $('#create_collection_popover_content').html() - title: -> - $('#create_collection_popover_title').html() - return - -# add/remove learning object to collection -$(document).on 'click', '.add-to-collection', -> - $(document).trigger('open_collections_modal', [learning_object: [$(this).data('loid')], type: 'add']) - -# change collection privacy -$(document).on 'click', 'input[name=privacy]', -> - url = '/collections/' + encodeURIComponent($(this).data('cid')) + '/change_privacy' - value = $('input[name=privacy]:checked').val() - $.post url, {'privacy':value}, (d) -> - d - -$(document).on 'open_collections_modal', (evt, params) -> - id = if (params.collection == undefined) then "all" else encodeURIComponent(params.collection) - url = '/collections/' + id + '/list?type=' + params.type - url += '&learning_objects_ids=' + encodeURIComponent(params.learning_object) if params.learning_object != undefined - $.get url, (d) -> - $('#collections-modal').remove() - $('body').append d - $('#collections-modal').modal('show') - return - -mount_modal_params = (e) -> - array = $(e).serializeArray() - object = {} - collection = "" - type = "" - collections = [] - learning_objects = [] - - i = 0 - length = array.length - while i < length - switch array[i].name - when 'collection' then collections.push(array[i].value) - when 'learning_object' then learning_objects.push(array[i].value) - when 'collection_id' then collection = array[i].value - when 'type' then type = array[i].value - ++i - - object.collection_id = collection - object.collections_ids = collections if collections.length > 0 - object.learning_objects_ids = learning_objects if learning_objects.length > 0 - object.type = type - return object - -$(document).on 'submit', '#collections-modal-form', (evt, params) -> - evt.preventDefault() - data = mount_modal_params(this) - - return false if (data.learning_objects_ids.length < 1) || (data.collections_ids.length < 1) || (permitted_types.indexOf(data.type) < 0) - - id = if (data.collections_ids == undefined) then data.collection_id else data.collections_ids - url = '/collections/' + encodeURIComponent(id) + '/learning_objects/' + encodeURIComponent(data.learning_objects_ids.join()) - $.ajax {method: "POST", url: url, data: data } - .done () -> - if (data.type == "move") - url = '/collections/' + encodeURIComponent(data.collection_id) + '/learning_objects/' + encodeURIComponent(data.learning_objects_ids.join()) - $.ajax {method: "DELETE", url: url, data: data } - .done -> - $(document).trigger('refresh_comments') - $(document).trigger 'flash_notice', {text: 'Operação efetuada com sucesso!', type: 'notice'} - $(document).trigger('clear_collections') - $('#collections-modal').modal('hide') - return - -# manipulate collections -# $(document).on 'ready page:load', -> -# if $('.collection-show-page').val() != undefined -# array with selected objects ids -selected_objects = [] -$ -> - selected_objects = [] -# valid types of operations in collections -permitted_types = ['add', 'download', 'copy', 'move', 'remove'] - -$(document).on 'ready page:load', -> - if $('.collection-show-page').val() != undefined - $(document).trigger('add_collection_selector') - -# add selectors to learning objects -$(document).on 'add_collection_selector', (e) -> - $('.learning-object-vertical').each (e) -> - loid = $(this).data('loid') - type = $(this).data('type') - $('.learning-object-thumbnail', this).append '<input class="collection-selector" type="checkbox" value="' + loid + '" data-type="' + type + '" ></input>' - return - -# add/remove object to array when click checkbox -$(document).on 'click', '.collection-selector', -> - if this.checked - if selected_objects.indexOf(this.value) < 0 - selected_objects.push { "class" : $(this).attr('data-type'), "value" : this.value} - $(document).trigger('check_selected_collection') - return - else - i = 0 - while i < selected_objects.length - if (selected_objects[i].value == this.value) - selected_objects.splice(i, 1) - i++ - $(document).trigger('check_selected_collection') - return - -# select all objects -$(document).on 'mark_all_collections', -> - selected_objects = [] - $('.collection-selector').prop('checked', true) - $('.collection-selector').each () -> - selected_objects.push { "class" : $(this).attr('data-type'), "value" : this.value} - console.log(selected_objects) - $(document).trigger('check_selected_collection') - -$(document).on 'change', '.count-collections-objects', -> - if ($(this).prop('checked')) - $(document).trigger('mark_all_collections') - else - $(document).trigger('clear_collections') - - -# clear selected objects -$(document).on 'clear_collections', -> - selected_objects = [] - $('.collection-selector').attr('checked', false) - $(document).trigger('check_selected_collection') - -# manipulation buttons -$(document).on 'click', '.collection-button', -> - collection = $('.collection-show-page').data('cid') - index = permitted_types.indexOf($(this).data('action')) - urls = [] - learning_objects = [] - if permitted_types[index] == 'remove' - if ($('.collection-button').data('class') == 'collections') - i = 0 - while i < selected_objects.length - learning_objects.push selected_objects[i]["value"] - i++ - urls.push '/collections/' + encodeURIComponent(collection) + '/learning_objects/' + encodeURIComponent(learning_objects.join(',')) - else - i = 0 - while i < selected_objects.length - urls.push '/bookmarks/' + encodeURIComponent(selected_objects[i]["class"]) + '/' + encodeURIComponent(selected_objects[i]["value"]) - i++ - if confirm('Você tem certeza?') - i = 0 - while i < urls.length - $.ajax { method: 'DELETE', url: urls[i] } - .done -> - $(document).trigger 'refresh_comments' - i++ - else - $(document).trigger('open_collections_modal', [collection: collection, type: permitted_types[index], learning_object: selected_objects ]) if !!(~index) - -# refresh comments via ajax -$(document).on 'refresh_comments', (e) -> - selected_objects = [] - $(document).trigger 'check_selected_collection' - - $parent = $('.learning-object-columns') - url = window.location.pathname + '?list=true' - $parent.html('Carregando...') - - $.get url, (data) -> - $parent.html('<br>' + data) - $(document).trigger 'create-learning-object-columns' - $(document).trigger 'add_collection_selector' - -# update interface when add/remove an object -$(document).on 'check_selected_collection', (e) -> - length = selected_objects.length - if length == 0 - $('.count-collections-objects').prop('checked',false) - return $('.collection-show-select-nav').slideUp('slow') - else if (length == 1) - html = "1 objeto selecionado" - else - html = length + " objetos selecionados" - $('.collection-show-select-nav .navbar-brand').html html - $('.collection-show-select-nav').slideDown('slow') diff --git a/app/assets/javascripts/application/columns.js b/app/assets/javascripts/application/columns.js deleted file mode 100644 index 496680c86072571f5b9dc42a879df429bd0e5abd..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/columns.js +++ /dev/null @@ -1,46 +0,0 @@ -$(document).ready(function() { - $(document).trigger('create-learning-object-columns'); -}); - -$(document).on('create-learning-object-columns', function() { - $parents = $(".learning-object-columns"); - - // small screen = 2 columns - if ($(window).width() < 1000) { - $parents.each(function() { - var html = '', - i = 1, - even = false; - - $("> div", this).each(function () { - append = (even) ? ' style="text-align: -webkit-right; text-align: -moz-right;"' : ''; - even = !(even); - $(this).wrap('<div class="col-sm-6"' + append +'></div>'); - }); - }); - } - // bigger screen = 3 columns hack - else { - $parents.each(function() { - var html = '', - i = 1; - - $("> div", this).each(function () { - /*if (i == 2) { - html = '<div class="col-md-6"><div class="row"><div class="col-md-3"> </div><div class="col-md-6">'; - // TODO: find a way to not remove wrapper div - html += $(this).clone().wrap('<div>').parent().html(); - html += '</div><div class="col-md-3"> </div></div></div>'; - $(this).replaceWith(html); - - i = 0; - }*/ - //else { - $(this).wrap('<div class="col-md-3"></div>'); - - i += 1; - //} - }); - }); - } -}); diff --git a/app/assets/javascripts/application/feedbacks.coffee b/app/assets/javascripts/application/feedbacks.coffee deleted file mode 100644 index 67df285c4feb8116f86e26116c5923e85948d54a..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/feedbacks.coffee +++ /dev/null @@ -1,21 +0,0 @@ -# mapping permitted actions with controller action to display right views -permitted_actions = [] -permitted_actions['send_feedback'] = 'new' -permitted_actions['report_bug'] = 'new_bug' - -# bind click events for create feedbacks and report bug -$(document).on 'click', '.report_bug', -> - $(document).trigger('open_feedback_modal', [type: 'report_bug']) - -$(document).on 'click', '.send_feedback', -> - $(document).trigger('open_feedback_modal', [type: 'send_feedback']) - -# open modal event -$(document).on 'open_feedback_modal', (evt, params) -> - type = permitted_actions[params.type] - url = "/feedback/#{type}" - $.get url, (d) -> - $('#feedback-modal').remove() - $('body').append d - $('#feedback-modal').modal('show') - return \ No newline at end of file diff --git a/app/assets/javascripts/application/learning_objects.coffee.erb b/app/assets/javascripts/application/learning_objects.coffee.erb deleted file mode 100644 index 5d95b36d89c6f6da782b686bca834366772f4a1b..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/learning_objects.coffee.erb +++ /dev/null @@ -1,11 +0,0 @@ -$ -> - $(document).on 'ajax:success', 'a.vote', (status, data, xhr) -> - $('.votes-count[data-id=\'' + data.id + '\']').text data.count - if $('.vote img').attr('alt') == 'Descurtir' - $('.vote img').attr('src',"<%= image_path('icons/btn_like_up.png') %>") - $('.vote img').attr('alt', 'Curtir').reload() - else if $('.vote img').attr('alt') == 'Curtir' - $('.vote img').attr('src',"<%= image_path('icons/btn_like_down.png') %>") - $('.vote img').attr('alt', 'Descurtir').reload() - return - return diff --git a/app/assets/javascripts/application/navigation-content.js b/app/assets/javascripts/application/navigation-content.js deleted file mode 100644 index dc7fbbfe3e36c2ea8ad63579b6e4397fd6c13300..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/navigation-content.js +++ /dev/null @@ -1,58 +0,0 @@ -var nav_content = function () { - var nav_list = [], - toggled = null, - nav_content = '.navigation-content', - nav_prefix = '.navigation-content-', - nav_dropdown = '.nav-dropdown'; - nav_close = '.navigation-content-close'; - - var closeContent = function() { - toggled = null; - $(nav_content).slideUp('slow'); - } - - $(nav_content).hide(); - $(nav_close).click(function() { closeContent(); }); - - $(nav_dropdown).each(function() { - var content = $(this).data('content'); - nav_list.push(content); - $(nav_prefix + content).hide(); - }); - - $(nav_dropdown).click(function(){ - var element = this, - content = $(element).data('content'); - - if (toggled == content) closeContent(); - else { - toggled = content; - - $(nav_content).slideUp('slow', function() { - var length = nav_list.length; - for (var i = 0; i < length; ++i) { - var content = nav_list[i]; - ($(element).data('content') == content) ? $(nav_prefix + content).show() : $(nav_prefix + content).hide(); - } - }); - - - $(nav_content).slideDown('slow'); - } - }); -} - -$(document).ready(function () { - nav_content(); - - // fix bootstrap popover click to dismiss - http://stackoverflow.com/a/14857326 - $('body').on('click', function (e) { - $('[data-toggle="popover"]').each(function () { - //the 'is' for buttons that trigger popups - //the 'has' for icons within a button that triggers a popup - if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) { - $(this).popover('hide'); - } - }); - }); -}); diff --git a/app/assets/javascripts/application/notice.coffee b/app/assets/javascripts/application/notice.coffee deleted file mode 100644 index 1049f85e4ca15be3f61745bd4530dbad8116ef62..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/notice.coffee +++ /dev/null @@ -1,11 +0,0 @@ -# flash notice () -$(document).on 'flash_notice', (e, params) -> - text = params.text - type = params.type - alert_type = if (type == 'alert') then 'alert-danger alert-dismissible' else 'alert-info' - - html = '<div class="alert '+ alert_type + '" role="alert"> - <button type="button" class="close" data-dismiss="alert" aria-label="Fechar"> - <span aria-hidden="true">×</span></button>' + text + '</div>' - - $('#content').prepend($(html)) diff --git a/app/assets/javascripts/application/registration.js b/app/assets/javascripts/application/registration.js deleted file mode 100644 index 1f2d0ab502f3d11924241fd6c459c27b2c05f24a..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/registration.js +++ /dev/null @@ -1,23 +0,0 @@ -$(document).ready (function() { - - $('.email-verify').change(function(){ - $.ajax({ - url: '/users/verify_email', - data: { email: $(this).val()}, - dataType: "json", - success: function(data) { - if (data.valid === true) { - console.log($(this)); - $('.email-verify').css('border','2px solid #27ae60'); - } - else { - $('.email-verify').css('border','2px solid #e74c3c'); - } - }, - error: function () { - response([]); - } - }); - }); - -}); diff --git a/app/assets/javascripts/application/reviews.js b/app/assets/javascripts/application/reviews.js deleted file mode 100644 index bec87d6e889ed2341b9292b969fabc68f16f0587..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/reviews.js +++ /dev/null @@ -1,29 +0,0 @@ - -$(document).ready(function(){ - $('.review').each(function(){ - - review_id = this.getAttribute("id"); - - toogle_id= "#popovertoggle_" + review_id; - content_id = "#popovercontent_" + review_id; - - content = $(content_id).html(); - - $(toogle_id).popover({ - placement : 'right', //placement of the popover. also can use top, bottom, left or right - html: 'true', //needed to show html of course - content: content, - trigger: 'hover' - }); - }); - - $('.review-button-approve').on('ajax:success', function() { - $(this).parent().children('.review-button-desapprove').removeClass('desapproved'); - $(this).addClass('approved'); - }); - - $('.review-button-desapprove').on('ajax:success', function() { - $(this).parent().children('.review-button-approve').removeClass('approved'); - $(this).addClass('desapproved'); - }); -}); \ No newline at end of file diff --git a/app/assets/javascripts/application/search.js b/app/assets/javascripts/application/search.js deleted file mode 100644 index 17ccc41ff7eea2a44f688ff3ae4d2da77317ad1e..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/search.js +++ /dev/null @@ -1,497 +0,0 @@ -////// SEARCH -var watch = {}; -var search = function() { - //// SEARCH FETCH - // get results from params - var searchFetch = function() { - - // change url with new parameters - if (!fetch_init) { fetch_init = true; } - else { searchState(params); } - - $.ajax({ - url:"/search/fetch", - type: 'get', - data: params.get_fetch(), - beforeSend: function() { - $('.result-bar').hide(); - $("#search-fetch").empty(); - $('#search-fetch').append('<div class="search-loading" style="text-align:center;"><br><div class="pong-loader">Carregando...</div></div>'); - } - }) - .done(function (data) { - $("#search-fetch").empty(); - $('.result-info-count').html($(data).filter('input:hidden[name="learning-objects-count"]').val()); - $('.result-bar').show(); - - $("#search-fetch").append(data); - - // add tooltip - $('[data-toggle="tooltip"]').tooltip(); - }); - } - - //// SEARCH WATCHERS - // get initial params from url and watch inputs for params - var searchWatchers = function() { - var intervalId = 0; - var has_init = false; - - if (!has_init) { - init(); - has_init = true; - } - - function init() { - // watch params to change inputs - watchParams(); - - // check url and set params - checkUrl(); - - // watch inputs to change params - watchSearchInput(); - watchFilterPanel(); - watchOrder(); - watchFilters(); - } - - // get parameters from url when page is loaded - function checkUrl() { - if (history.state.search_params !== undefined) { - params.reload(history.state.search_params); - } - else { - var element, - url = history.state.url, - values = url.slice(url.indexOf('?') + 1).split('&'), - length = values.length; - - for(var i = 0; i < length; i++) { - element = values[i].split('='); - params.add(decodeURIComponent(element[0]), decodeURIComponent(element[1])); - } - - // replace history state with new parameters - searchState(params, true); - } - - searchFetch(); - } - - function watchParams() { - var filter_panel = '.filter-panel'; - $(watch).on('params', function (e, action, type, value) { - // filter panel - var text = type + ': ' + value; - var object = {'type': type, 'value': value, 'text': text }; - switch(action) { - case 'add': - // params not included in filter panel - var ignored_params = ['query', 'order', 'search_class']; - // remove previous element if type is a single value only - var single_params = ['year']; - var index = single_params.indexOf(type); - if (index > -1) { - $.each($('.filter-panel').tagsinput('items'), function (i, v) { - if (v.type === single_params[index]) { - $(filter_panel).tagsinput('remove', { 'type': type, 'value': v.value }, {'ignore': true}); - } - }); - } - // add object - if (ignored_params.indexOf(type) === -1) { - $(filter_panel).tagsinput('add', object); - } - break; - case 'remove': - // remove object - $(filter_panel).tagsinput('remove', object); - break; - } - - // sidebar - // set values from params - switch(type) { - // topic - case 'topic': - // var topics = params.get('topic'); - // $('.filter-topic').each(function() { - // if (this.value !== topics) { - // $(this).val(topics).trigger('change'); - // } - // }); - watchCheckbox('topic','filter-topic',true); - break; - // type - case 'type': - watchCheckbox('type', 'filter-type', true); - break; - // schoolyear - case 'school_level': - watchCheckbox('school_level', 'filter-school-level', true); - break; - case 'year': - var year = params.get('year').split('-'); - if (year.length === 1){ - $("#filter-year input[value=single]").prop('checked',true); - $("#filter-year input[name=singleYear]").val(year[0]); - } - else{ - $("#filter-year input[value=range]").prop('checked',true); - $("#filter-year input[name=startYear]").val(year[0]); - $("#filter-year input[name=endYear]").val(year[1]); - } - break; - case 'source' : - watchCheckbox('source', 'filter-source', true); - break; - } - }); - $(watch).on('reset', function (e) { - $(filter_panel).tagsinput('removeAll'); - }); - } - - function watchSearchInput() { - $('.search-input input').val(params.get('query')); - $('.search-input select').val(params.get('search_class')); - $(document).on('submit', '.search-input form', function (event) { - event.preventDefault(); - params.reset(); - params.add('query', $('input[name="query"]', this).val()); - var search_class = $('select[name="search_class"]', this).val() - params.add('search_class', search_class); - $("#search_class").val(search_class); - searchFetch(); - }); - } - - $(document).on('click', '.pagination a', function(e) { - e.preventDefault(); - params.add('page',$(this).html()); - searchFetch(true); - }); - - function watchFilterPanel() { - $(document).on('beforeItemRemove', '.filter-panel', function(event) { - if (event.options === undefined) { - event.options = {'ignore': false}; - } - if (event.options.ignore === false) { - params.remove(event.item.type, event.item.value); - filtersFetchInterval(); - } - }); - } - - function watchOrder() { - var select = 'select[name="order"]'; - $(document).on('change', select, function (event) { - params.add('order', this.value); - searchFetch(); - }); - // reset - $(document).on('reset', watch, function (e) { - $(select).val(""); - }); - } - - function watchFilters() { - // watchFiltertopic(); - watchCheckbox('topic','filter-topic'); - watchCheckbox('type', 'filter-type'); - watchCheckbox('school_level', 'filter-school-level'); - watchCheckbox('source', 'filter-source'); - watchFilterYear(); - watchFilterRegex(); - } - - function watchFilterYear(){ - $('#filter-year button').on('click', function(event){ - event.preventDefault(); - value = $('#filter-year input[name=year]:checked').val(); - switch (value) { - case "single": - params.add('year', $('#filter-year input[name=singleYear]').val()); - break; - case "range": - start_year = $('#filter-year input[name=startYear]').val(); - end_year = $('#filter-year input[name=endYear]').val(); - params.add('year', start_year + '-' + end_year); - break; - } - filtersFetchInterval(); - }); - // reset - $(document).on('reset', watch, function (e) { - $('#filter-year input[name=singleYear]').val(""); - $('#filter-year input[name=startYear]').val(""); - $('#filter-year input[name=endYear]').val(""); - }); - } - - function watchFilterRegex() { - // $('.regex-submit').on('click', function (event) { - // event.preventDefault(); - // $.each(['all','exact','any','none'], function(index, value){ - // params.add('regex_' + value, $(".regex input[name="+value+"]").val()) - // }); - // filtersFetchInterval(); - // }); - } - - function watchFiltertopic() { - // watch for changes - // $('.filter-topic').on('select2:select', function (e) { - // params.add('topic', e.params.data.id); - // - // filtersFetchInterval(); - // }); - // $('.filter-topic').on('select2:unselect', function (e) { - // params.remove('topic', e.params.data.id); - // - // filtersFetchInterval(); - // }); - } - - function watchCheckbox(type, name, set) { - var input = 'input[name="' + name + '"]'; - if (set === undefined) { set = false; } - if (set) { - var elements = params.get(type); - if (elements !== undefined) { - $(input).each(function() { - if (elements.indexOf(this.value) > -1) { - $(this).attr('checked', true); - } - else { - $(this).attr('checked', false); - } - }); - } - } - else { - // watch for changes - $(document).on('click', input, function () { - if (this.checked) { - params.add(type, this.value); - } - else { - params.remove(type, this.value); - } - - filtersFetchInterval(); - }); - // reset - $(document).on('reset', watch, function (e) { - $(input).each(function () { - $(this).attr('checked', false); - }); - }); - } - } - - // control ajax requisitions (fetch) of filters - function filtersFetchInterval() { - // cancel previous function call - clearInterval(intervalId); - intervalId = setInterval(function () { - searchFetch(); - // cancel to not loop (interval) - clearInterval(intervalId); - }, 800); - } - } - - //// INIT - // initiate params - var params = searchParameters(); - var fetch_init = false; - - // run watchers - searchWatchers(); - - // TODO: find a way to manage all requisitions without page reload -}; - -//// SEARCH STATE -// take care of History API -var searchState = function(params, replace) { - if ((replace === undefined) || (replace !== true)) { replace = false; } - var newState = JSON.parse(JSON.stringify(history.state)); - newState.url = params.url(); - newState.search_params = params.get(); - - if (replace) { history.replaceState(newState, location.href, location.href); } - else { history.pushState(newState, newState.url, newState.url); } -} - -//// SEARCH PARAMETERS -// take care of params (setters and getters) -var searchParameters = function() { - var default_params = { - query: "", - page: 1, - order: "", - topic: [], - type: [], - school_level: [], - source: [], - year: "", - search_class: "", - regex_all: "", - regex_exact: "", - regex_any: "", - regex_none: "" - } - - // clone default_params - var params = JSON.parse(JSON.stringify(default_params)); - - function validate_type(type) { - return params[type] !== undefined; - } - - return { - reload: function(params_new) { - params = params_new; - $(watch).trigger("params", ['reload', 'all']); - }, - add: function(type, value, replace) { - if (validate_type(type)) { - if (replace === undefined) { - replace = false; - } - // if string type or replace - if ((typeof params[type] === "string") || (typeof params[type] === "number") || replace) { - if (params[type] !== value) { - params[type] = value; - $(watch).trigger("params", ['add', type, value]); - } - } - // if object, append - else { - if (params[type].indexOf(value) === -1) { - params[type].push(value); - $(watch).trigger("params", ['add', type, value]); - } - } - } - }, - remove: function(type, value) { - if (validate_type(type)) { - // value = encodeURIComponent(value); - // if string type - if ((typeof params[type] === "string") || (typeof params[type] === "number")){ - // remove element - if (params[type] !== ""){ - params[type] = ""; - $(watch).trigger("params", ['remove', type, value]); - } - } - // if object - else { - // remove only if element exists - // https://stackoverflow.com/questions/18347033/how-to-shorten-my-conditional-statements/18347047#answer-18347047 - var index = params[type].indexOf(value); - if (~index) { - params[type].splice(index,1); - $(watch).trigger("params", ['remove', type, value]); - } - } - } - }, - get: function(type) { - if (type === undefined) { - return params; - } - return params[type]; - }, - get_fetch: function() { - var params_to_send = JSON.parse(JSON.stringify(params)); - params_to_send.topic = params_to_send.topic.join(', '); - params_to_send.type = params_to_send.type.join(', '); - params_to_send.school_level = params_to_send.school_level.join(', '); - params_to_send.source = params_to_send.source.join('-s- '); - return params_to_send; - }, - url: function() { - var url = history.state.url.split('?', 1) + "?", - keys = Object.keys(params), - length = keys.length; - - // check every parameter - for (var i = 0; i < length; ++i) { - // only get non empty values - if (params[keys[i]].length > 0) { - // string concat in url - if (typeof params[keys[i]] === "string") { - url += "&" + keys[i] + "=" + params[keys[i]]; - } - // object can have more than one element to concat in url - else { - var object_length = params[keys[i]].length - for (var j = 0; j < object_length; ++j) { - url += "&" + encodeURIComponent(keys[i]) + "=" + encodeURIComponent(params[keys[i]][j]); - } - } - } - } - return url; - }, - reset: function(type) { - if (type === undefined) { - // reset params - params = JSON.parse(JSON.stringify(default_params)); - $(watch).trigger("reset"); - } - else { - // reset params.type - params[type] = JSON.parse(JSON.stringify(default_params[type])); - // $(watch).trigger("params", [type, value]); - } - } - }; -}; - -//// DROPDOWN -var runDropdown = function(element) { - if (($(element).next().data('dropdown') === 'closed')) { - $('> .caret', element).addClass('caret-up'); - $(element).next().slideDown('slow'); - $(element).next().data('dropdown', 'open'); - } - else { - $('> .caret', element).removeClass('caret-up'); - $(element).next().slideUp('slow'); - $(element).next().data('dropdown', 'closed'); - } -}; - - -$(document).ready (function(){ - - var lo_num = $('.search-input input').attr("data-lo"); - var collection_num = $('.search-input input').attr("data-collection"); - var user_num = $('.search-input input').attr("data-user"); - - $('.search-input input').attr('placeholder', "Buscar em " + lo_num + " conteúdos"); - - $('.search-input select').change( function(){ - switch($(this).val()) { - case 'LearningObject': - $('.search-input input').attr('placeholder', "Buscar em " + lo_num + " conteúdos"); - break; - case 'Collection': - $('.search-input input').attr('placeholder', "Buscar em " + collection_num + " coleções"); - break; - case 'User': - $('.search-input input').attr('placeholder', "Buscar em " + user_num + " usuários"); - break; - default: - $('.search-input input').attr('placeholder', "Buscar conteúdo"); - } - }) - -}); diff --git a/app/assets/javascripts/application/users.coffee b/app/assets/javascripts/application/users.coffee deleted file mode 100644 index 521a0c47b2c50cb7ea2038ec21a21da977e6ba6c..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/users.coffee +++ /dev/null @@ -1,4 +0,0 @@ -$('a.showmore').on 'click', -> - $('span', this).toggle() - $('.user-biography').slideToggle() - return \ No newline at end of file diff --git a/app/assets/javascripts/application/welcome.coffee b/app/assets/javascripts/application/welcome.coffee deleted file mode 100644 index 24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/application/welcome.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/links.coffee b/app/assets/javascripts/links.coffee deleted file mode 100644 index 24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/links.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/management.js b/app/assets/javascripts/management.js deleted file mode 100644 index 125effbd9a11fcc8a3abeb702437361ee6c65df0..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management.js +++ /dev/null @@ -1,229 +0,0 @@ -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. -// -// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// compiled file. -// -// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require bootstrap-sprockets -//= require jquery.turbolinks -// www.chartjs.org/docs/ -//= require Chart -//= require locastyle -//= require turbolinks -//= require_tree ./management -//= require best_in_place - -var teachers, curators, admins; -var visualised,non_visualised; -var n_complaints; -var complaints = []; -var complaints_names = []; - -$(document).ready(function(){ - if (document.getElementById("lobject") !== null) { - visualised = document.getElementById("lobject").value; - non_visualised = document.getElementById("lobject_non").value; - var data_learning_objects = dataLearningObjects(visualised,non_visualised); - } - if (document.getElementById("n_teachers") !== null) { - - teachers = document.getElementById("n_teachers").value; - curators = document.getElementById("n_curators").value; - admins = document.getElementById("n_admins").value; - var data_users = dataUsers(teachers,curators,admins); - } - - if(document.getElementById("n_complaints") != null) { - - n_complaints = document.getElementById("n_complaints").value; - - for (i = 0; i < n_complaints; i++) { - complaints[i] = document.getElementById("complaints[" + i + "]").value; - complaints_names[i] = document.getElementById("complaints_names[" + i + "]").value; - } - - var data_complaints = dataComplaints(complaints, complaints_names, n_complaints); - } - - if (document.getElementById("lcollection") !== null) { - visualised = document.getElementById("lcollection").value; - non_visualised = document.getElementById("lcollection_non").value; - var data_collections = dataCollections(visualised,non_visualised); - } - - - - var charts = ["collections","users","learning_objects","accesses","complaints"]; - - for(i=0;i<charts.length;i++) { - if ( document.getElementById(charts[i]) ) { - var ctx = document.getElementById(charts[i]).getContext("2d"); - switch ( charts[i] ){ - case "collections": - new Chart(ctx).Pie(data_collections,pie_options); - var colections_chart = new Chart(ctx).Pie(data_colections); - break; - case "users": - new Chart(ctx).Bar(data_users,bar_options); - var users_chart = new Chart(ctx).Bar(data_users); - break; - case "learning_objects": - new Chart(ctx).Pie(data_learning_objects,pie_options); - var learning_objects_chart = new Chart(ctx).Pie(data_learning_objects); - break; - case "accesses": - new Chart(ctx).Line(data_accesses,line_options); - var accesses_chart = new Chart(ctx).Line(data_accesses); - break; - case "complaints": - new Chart(ctx).Pie(data_complaints,pie_options); - var complaints_chart = new Chart(ctx).Pie(data_complaints); - break; - - default: null; - break; - } - } - } - } -); - -Chart.defaults.global = { - // Boolean - Whether to animate the chart - animation: true, - - // Number - Number of animation steps - animationSteps: 60, - - // String - Animation easing effect - // Possible effects are: - // [easeInOutQuart, linear, easeOutBounce, easeInBack, easeInOutQuad, - // easeOutQuart, easeOutQuad, easeInOutBounce, easeOutSine, easeInOutCubic, - // easeInExpo, easeInOutBack, easeInCirc, easeInOutElastic, easeOutBack, - // easeInQuad, easeInOutExpo, easeInQuart, easeOutQuint, easeInOutCirc, - // easeInSine, easeOutExpo, easeOutCirc, easeOutCubic, easeInQuint, - // easeInElastic, easeInOutSine, easeInOutQuint, easeInBounce, - // easeOutElastic, easeInCubic] - animationEasing: "easeOutQuart", - - // Boolean - If we should show the scale at all - showScale: true, - - // Boolean - If we want to override with a hard coded scale - scaleOverride: false, - - // ** Required if scaleOverride is true ** - // Number - The number of steps in a hard coded scale - scaleSteps: null, - // Number - The value jump in the hard coded scale - scaleStepWidth: 1, - // Number - The scale starting value - scaleStartValue: null, - - // String - Colour of the scale line - scaleLineColor: "rgba(0,0,0,.1)", - - // Number - Pixel width of the scale line - scaleLineWidth: 1, - - // Boolean - Whether to show labels on the scale - scaleShowLabels: true, - - // Interpolated JS string - can access value - scaleLabel: "<%=value%>", - - // Boolean - Whether the scale should stick to integers, not floats even if drawing space is there - scaleIntegersOnly: true, - - // Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value - scaleBeginAtZero: false, - - // String - Scale label font declaration for the scale label - scaleFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", - - // Number - Scale label font size in pixels - scaleFontSize: 12, - - // String - Scale label font weight style - scaleFontStyle: "normal", - - // String - Scale label font colour - scaleFontColor: "#666", - - // Boolean - whether or not the chart should be responsive and resize when the browser does. - responsive: false, - - // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container - maintainAspectRatio: true, - - // Boolean - Determines whether to draw tooltips on the canvas or not - showTooltips: true, - - // Function - Determines whether to execute the customTooltips function instead of drawing the built in tooltips (See [Advanced - External Tooltips](#advanced-usage-custom-tooltips)) - customTooltips: false, - - // Array - Array of string names to attach tooltip events - tooltipEvents: ["mousemove", "touchstart", "touchmove"], - - // String - Tooltip background colour - tooltipFillColor: "rgba(0,0,0,0.8)", - - // String - Tooltip label font declaration for the scale label - tooltipFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", - - // Number - Tooltip label font size in pixels - tooltipFontSize: 14, - - // String - Tooltip font weight style - tooltipFontStyle: "normal", - - // String - Tooltip label font colour - tooltipFontColor: "#fff", - - // String - Tooltip title font declaration for the scale label - tooltipTitleFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", - - // Number - Tooltip title font size in pixels - tooltipTitleFontSize: 14, - - // String - Tooltip title font weight style - tooltipTitleFontStyle: "bold", - - // String - Tooltip title font colour - tooltipTitleFontColor: "#fff", - - // Number - pixel width of padding around tooltip text - tooltipYPadding: 6, - - // Number - pixel width of padding around tooltip text - tooltipXPadding: 6, - - // Number - Size of the caret on the tooltip - tooltipCaretSize: 8, - - // Number - Pixel radius of the tooltip border - tooltipCornerRadius: 6, - - // Number - Pixel offset from point x to tooltip edge - tooltipXOffset: 10, - - // String - Template string for single tooltips - tooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>", - - // String - Template string for multiple tooltips - multiTooltipTemplate: "<%= value %>", - - // Function - Will fire on animation progression. - onAnimationProgress: function(){}, - - // Function - Will fire on animation completion. - onAnimationComplete: function(){} -}; diff --git a/app/assets/javascripts/management/accesses.js b/app/assets/javascripts/management/accesses.js deleted file mode 100644 index ba738f9bbf092f9b1efb85b7ca359d8ea9388690..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management/accesses.js +++ /dev/null @@ -1,71 +0,0 @@ -//confurações dos gráficos de linha -//mais infos: www.chartjs.org/docs/ -//opçoes das linhas em downloads.js - - -var data_accesses = { - labels: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho"], - datasets: [ - - { - label: "Acessos", - fillColor: "rgba(151,187,205,0.2)", - strokeColor: "rgba(151,187,205,1)", - pointColor: "rgba(151,187,205,1)", - pointStrokeColor: "#fff", - pointHighlightFill: "#fff", - pointHighlightStroke: "rgba(151,187,205,1)", - data: [150, 280, 170, 580, 320, 291,309 ] - } - ] -}; - - -var line_options = { - - ///Boolean - Whether grid lines are shown across the chart - scaleShowGridLines : true, - - //String - Colour of the grid lines - scaleGridLineColor : "rgba(0,0,0,.05)", - - //Number - Width of the grid lines - scaleGridLineWidth : 1, - - //Boolean - Whether to show horizontal lines (except X axis) - scaleShowHorizontalLines: true, - - //Boolean - Whether to show vertical lines (except Y axis) - scaleShowVerticalLines: true, - - //Boolean - Whether the line is curved between points - bezierCurve : true, - - //Number - Tension of the bezier curve between points - bezierCurveTension : 0.4, - - //Boolean - Whether to show a dot for each point - pointDot : true, - - //Number - Radius of each point dot in pixels - pointDotRadius : 4, - - //Number - Pixel width of point dot stroke - pointDotStrokeWidth : 1, - - //Number - amount extra to add to the radius to cater for hit detection outside the drawn point - pointHitDetectionRadius : 20, - - //Boolean - Whether to show a stroke for datasets - datasetStroke : true, - - //Number - Pixel width of dataset stroke - datasetStrokeWidth : 2, - - //Boolean - Whether to fill the dataset with a colour - datasetFill : true, - - //String - A legend template - legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].strokeColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>" - -}; diff --git a/app/assets/javascripts/management/colections.js b/app/assets/javascripts/management/colections.js deleted file mode 100644 index 62afadb2ae447a8d5ab8a9c45f0a2f855c686c43..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management/colections.js +++ /dev/null @@ -1,55 +0,0 @@ -//confurações dos gráficos de linha -//mais infos: www.chartjs.org/docs/ - - - -//var visual = document.getElementById("object").value; -//alert(visual); -function dataCollections(visualised,non_visualised) { - var data = [ - { - value: visualised, - color:"#F7464A", - highlight: "#FF5A5E", - label: "Visualizados" - }, - { - value: non_visualised, - color: "#46BFBD", - highlight: "#5AD3D1", - label: "Não Visualizados" - } - - ]; - return data; -} - -var pie_options = { - //Boolean - Whether we should show a stroke on each segment - segmentShowStroke : true, - - //String - The colour of each segment stroke - segmentStrokeColor : "#fff", - - //Number - The width of each segment stroke - segmentStrokeWidth : 2, - - //Number - The percentage of the chart that we cut out of the middle - percentageInnerCutout : 0, // This is 0 for Pie charts - - //Number - Amount of animation steps - animationSteps : 100, - - //String - Animation easing effect - animationEasing : "easeOutBounce", - - //Boolean - Whether we animate the rotation of the Doughnut - animateRotate : true, - - //Boolean - Whether we animate scaling the Doughnut from the centre - animateScale : false, - - //String - A legend template - legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>" - -}; diff --git a/app/assets/javascripts/management/complaints.js b/app/assets/javascripts/management/complaints.js deleted file mode 100644 index 987961aefd83b59d35d78266cfd58f031d72667f..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management/complaints.js +++ /dev/null @@ -1,68 +0,0 @@ - - -//confurações dos gráficos de linha -//mais infos: www.chartjs.org/docs/ - -function increase_brightness(hex, percent){ - // strip the leading # if it's there - hex = hex.replace(/^\s*#|\s*$/g, ''); - - // convert 3 char codes --> 6, e.g. `E0F` --> `EE00FF` - if(hex.length == 3){ - hex = hex.replace(/(.)/g, '$1$1'); - } - - var r = parseInt(hex.substr(0, 2), 16), - g = parseInt(hex.substr(2, 2), 16), - b = parseInt(hex.substr(4, 2), 16); - - return '#' + - ((0|(1<<8) + r + (256 - r) * percent / 100).toString(16)).substr(1) + - ((0|(1<<8) + g + (256 - g) * percent / 100).toString(16)).substr(1) + - ((0|(1<<8) + b + (256 - b) * percent / 100).toString(16)).substr(1); -} - - -//var visual = document.getElementById("object").value; -//alert(visual); -function dataComplaints(complaints,complaints_names, n) { - - var data = []; - - for(i = 0; i < n; i++) { - var color = "#"+((1<<24)*Math.random()|0).toString(16); - var color_highlight = increase_brightness(color,20); - data[i] = {value: complaints[i], color: color, highlight: color_highlight, label: complaints_names[i]}; - } - return data; -} - -var pie_options = { - //Boolean - Whether we should show a stroke on each segment - segmentShowStroke : true, - - //String - The colour of each segment stroke - segmentStrokeColor : "#fff", - - //Number - The width of each segment stroke - segmentStrokeWidth : 2, - - //Number - The percentage of the chart that we cut out of the middle - percentageInnerCutout : 0, // This is 0 for Pie charts - - //Number - Amount of animation steps - animationSteps : 100, - - //String - Animation easing effect - animationEasing : "easeOutBounce", - - //Boolean - Whether we animate the rotation of the Doughnut - animateRotate : true, - - //Boolean - Whether we animate scaling the Doughnut from the centre - animateScale : false, - - //String - A legend template - legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>" - -}; diff --git a/app/assets/javascripts/management/institutions.coffee b/app/assets/javascripts/management/institutions.coffee deleted file mode 100644 index b9fc9e9669381a293bbe1c93a9a5910a3ab0c590..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management/institutions.coffee +++ /dev/null @@ -1,49 +0,0 @@ -$ -> - $(document).on 'click', '*[data-institution]', -> - e = $(this) - e.popover({content: "Carregando..."}).popover('show') - all = undefined - objects = undefined - institution_id = $(this).data('institution') - url = '/institutions/' + institution_id + '/users.json' - $.get '/users/list.json', (d) -> - all = d - $.get url, (d) -> - object = d - - # generate a lookup table for object's collections id - lookup = {} - i = 0 - len = object.length - while i < len - lookup[object[i].id] = object[i] - i++ - - # mark checked objects - i = 0 - len = all.length - html = '' - while i < len - name = 'user_' + all[i].id - html += '<input type="checkbox" class="institutional-user-element" data-uid="' + all[i].id + '" data-institution-id="' + institution_id + '" id="' + name + '"' - if lookup[all[i].id] != undefined - html += " checked" - html += '>' - html += '<label for="' + name + '">' + all[i].name + '</label><br/>' - ++i - - $('.popover-content').html(html) - return - return - return - -$ -> - $(document).on 'click', 'input[class=institutional-user-element]', -> - url = '/management/institutions/' + encodeURIComponent($(this).data('institution-id')) + '/user/' + encodeURIComponent($(this).data('uid')) - if this.checked - $.ajax {method: "POST", url: url }, (d) -> - d - else - $.ajax {method: "DELETE", url: url }, (d) -> - d - return diff --git a/app/assets/javascripts/management/learning_objects.js b/app/assets/javascripts/management/learning_objects.js deleted file mode 100644 index 783f2af0fb2c832f27732000b9b83e1999b1fb6d..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management/learning_objects.js +++ /dev/null @@ -1,55 +0,0 @@ -//confurações dos gráficos de linha -//mais infos: www.chartjs.org/docs/ - - - -//var visual = document.getElementById("object").value; -//alert(visual); -function dataLearningObjects(visualised,non_visualised) { - var data = [ - { - value: visualised, - color:"#F7464A", - highlight: "#FF5A5E", - label: "Visualizados" - }, - { - value: non_visualised, - color: "#46BFBD", - highlight: "#5AD3D1", - label: "Não Visualizados" - } - - ]; - return data; -} - -var pie_options = { - //Boolean - Whether we should show a stroke on each segment - segmentShowStroke : true, - - //String - The colour of each segment stroke - segmentStrokeColor : "#fff", - - //Number - The width of each segment stroke - segmentStrokeWidth : 2, - - //Number - The percentage of the chart that we cut out of the middle - percentageInnerCutout : 0, // This is 0 for Pie charts - - //Number - Amount of animation steps - animationSteps : 100, - - //String - Animation easing effect - animationEasing : "easeOutBounce", - - //Boolean - Whether we animate the rotation of the Doughnut - animateRotate : true, - - //Boolean - Whether we animate scaling the Doughnut from the centre - animateScale : false, - - //String - A legend template - legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>" - -}; diff --git a/app/assets/javascripts/management/scores.js b/app/assets/javascripts/management/scores.js deleted file mode 100644 index bdb81b787dcc5b160d2690b72d6310553169ab35..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management/scores.js +++ /dev/null @@ -1,38 +0,0 @@ -$(document).ready(function() { - /* Activating Best In Place */ - jQuery(".best_in_place").best_in_place(); - - /* enable checkboxes updates */ - var updateCheckbox = function(url,score_type){ - $.ajax({ - method: "PUT", - url: url, - headers: { - 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content') - }, - success: function(response){console.log(response);}, - data: { score: {score_type: score_type} } - }); - }; - - - $('.score_type_checkbox').change(function() { - var form_action = $(this).parent().attr('action'); - var elements = $(this).parent().find('.score_type_checkbox'); - console.log(elements); - var values = []; - - for (var i = 0; i < elements.length; i++) { - if (elements[i].checked) - values[i] = elements[i].value; - } - - if (values.length == 0) { - alert("Você deve selecionar pelo menos uma categoria!"); - } - else { - updateCheckbox(form_action, values); - } - }); - -}); diff --git a/app/assets/javascripts/management/users.js b/app/assets/javascripts/management/users.js deleted file mode 100644 index b1de9842736a54e3402762e8acc8df156c71f81e..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management/users.js +++ /dev/null @@ -1,60 +0,0 @@ - -//Configurações de gráficos BAR -//mais infos www.chartjs.org/docs/ - -function dataUsers(teachers, curators, admins){ -var data = { - labels: [ "Professores", "Curadores", "Admnistradores"], - datasets: [ - { - label: "My First dataset", - fillColor: "rgba(100,89,54,0.5)", - strokeColor: "rgba(1,34,65,0.8)", - highlightFill: "rgba(53,13,54,0.75)", - highlightStroke: "rgba(32,80,90,1)", - data: [teachers, curators, admins] - }, - ] -}; -return data; - -} - - - - -var bar_options = { - //Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value - scaleBeginAtZero : true, - - //Boolean - Whether grid lines are shown across the chart - scaleShowGridLines : true, - - //String - Colour of the grid lines - scaleGridLineColor : "rgba(0,0,0,.05)", - - //Number - Width of the grid lines - scaleGridLineWidth : 1, - - //Boolean - Whether to show horizontal lines (except X axis) - scaleShowHorizontalLines: true, - - //Boolean - Whether to show vertical lines (except Y axis) - scaleShowVerticalLines: true, - - //Boolean - If there is a stroke on each bar - barShowStroke : true, - - //Number - Pixel width of the bar stroke - barStrokeWidth : 2, - - //Number - Spacing between each of the X value sets - barValueSpacing : 5, - - //Number - Spacing between data sets within X values - barDatasetSpacing : 1, - - //String - A legend template - legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].fillColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>" - -}; diff --git a/app/assets/javascripts/management/welcome.coffee b/app/assets/javascripts/management/welcome.coffee deleted file mode 100644 index 24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a..0000000000000000000000000000000000000000 --- a/app/assets/javascripts/management/welcome.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss deleted file mode 100644 index 65ba7f3d9594236df4225461288b4d7aad11eebd..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application.scss +++ /dev/null @@ -1,917 +0,0 @@ - - -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the bottom of the - * compiled file so the styles you add here take precedence over styles defined in any styles - * defined in the other CSS/SCSS files in this directory. It is generally better to create a new - * file per style scope. - * - *= require_tree ./application - *= require_self - *= require jquery-ui/core - *= require jquery-ui/theme - *= require jquery-ui/autocomplete - *= require font-awesome - */ - -@import "bootstrap-sprockets"; -@import "bootstrap"; -@import "select2"; -@import "select2-bootstrap"; -@import "bootstrap-tagsinput"; -@import "spinners"; -@import "font-awesome"; -@import "social-share-button"; - -$header-blue: #1676bc; -$link-grey: #343D3E; -$nav-grey: #e7e7e7; - -//// HTML/BODY -html, -body { - margin: 0; - padding: 0; - height: 100%; - - font-size: 100%; - font-weight: 300; - font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif; -} - -h1, h2, h3, h4, h5, h6 { - margin: 0; - font-weight: 300; -} - -a, a:focus, a:hover { - font-weight: 400; - color: #000; - text-decoration: none; -} - -.title-about{ - font-weight: bolder; - margin-bottom: 12px; -} - -.media-heading { - font-weight: 400; -} - -.caret { - border-left: 7px solid transparent; - border-right: 7px solid transparent; - border-top: 7px solid #000000; -} - -.caret-up { - transform: rotate(180deg); -} - -.caret-align-right { - position: absolute; - left: 90%; - top: 45%; -} - -.radio { - margin-left: 20px; -} - -//// HEADER -header { - border: 0; - margin-bottom: 16px; - - a, a:focus, a:hover { - text-decoration: none; - } - - // barra brasil - .barra-brasil { - background: #F1F1F1; - height: 32px; - padding: 0 0 0 10px; - display: block; - - #wrapper-barra-brasil { - max-width: 100% !important; - } - } - .brasil-flag { - height: 100% !important; - } - - //Style just in home page - .just-in-home{ - // bar with logo, search and user info - .search-bar { - color: #FFF; - background-color: #2178F5; - padding-bottom: 100px; - padding-top: 8px; - - // logo - .logo-container { - text-align: center; - } - .logo { - margin-top: 70px; - padding: 0; - text-align: center; - h3 { - margin-top: 10px; - font-weight: normal; - font-size: 26px; - } - a { - color: #FFF; - } - } - .logo-image { - max-width: 100px; - width: auto; - } - // accessibility - .search-accessibility { - margin-top: 0px; - img { - max-height: 25px; - height: auto; - } - } - // search - .search-input { - margin: 10px auto auto auto; - margin-bottom: 22px; - margin-top: 60px; - max-width: 580px; - width: auto; - text-align: center; - - // text input - .form-control { - /*border-bottom-left-radius: 7px;*/ - /*border-top-left-radius: 7px;*/ - border-color: #FFF; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - /*max-height: 40px;*/ - height: 40px; - width: 50%; - padding-left: 20px; - font-size: 17px; - font-weight: 200 !important; - } - .form-control1{ - border-bottom-left-radius: 0px; - border-top-left-radius: 0px; - padding-left: 0px; - width: 45%; - font-size: 18px; - padding-bottom: 7px; - height: 40px; - } - // button input - .input-group-btn { - border-bottom-right-radius: 7px; - border-top-right-radius: 7px; - - .btn, .btn:focus, .btn:hover { - height: 40px; - font-size: 18px; - color: #FF2602; - background-color: #FFF; - border-color: #FFF; - } - } - - .search-label { - font-weight: 300 !important; - color: #FFF; - } - } - // user info - .status-text { - margin-top: 20px; - font-size: 20px; - text-align: right; - - h2, h4 { - margin-top: -5px; - } - - .media-heading { - // font-size: 32px; - a { - color: #FFF; - } - } - .register-link { - color: #CED1C6; - } - .quit-link { - color: #FF2602; - } - } - } - - // navbar - .navigation { - - .nav { - max-height: 40px; - height:auto; - float: left; - - h3 { - margin-top: 3px; - font-size: 15px; - } - - .nav-button { - min-width: 30px; - height: 100%; - padding-right: 5px; - color: #343D3E; - font-weight: 500 !important; - - a { - @extend h3; - padding: 0; - color: #FFFFFF; - } - } - - .nav-button-first { - padding-left: 0 !important; - } - .divider { - width: 2px; - margin-left: 3px; - max-height: 100%; - height: auto; - background-color: #FFF; - } - } - } - - .navigation-content { - display: none; - background-color: #f2f2f2; - width: 100%; - height: 100%; - padding-bottom: 20px; - - .inner-column { - padding: 15px; - padding-top: 5px; - } - - .nav-tabs { - border: 0px; - text-align: center; - } - } - - // contrast - .search-bar-contraste { - background-color: black; - color: white; - background-image: none !important; - } -} - //Style in other pages - // bar with logo, search and user info - .out-of-home{ - .search-bar { - color: #FFF; - background-color: #2178F5; - padding: 0px; - padding-top: 8px; - margin: 0px; - - // logo - .logo-container { - text-align: left; - } - .logo { - margin-top: 10px; - padding: 0; - text-align: center; - float: left; - width: 165px; - h3 { - margin-top: 10px; - font-weight: 400; - } - a { - color: #FFF; - } - } - .logo-image { - width: 100px; - } - // accessibility - .search-accessibility { - margin-top: 25px; - text-align: right; - img { - height: 25px; - } - } - // search - .search-input { - margin: 10px auto auto auto; - margin-bottom: 30px; - max-width: 500px; - width: auto; - text-align: center; - margin-top: 50px; - - // text input - .form-control { - /*border-bottom-left-radius: 7px; - border-top-left-radius: 7px;*/ - border-color: #FFF; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - height: 40px; - width: 50%; - padding-left: 20px; - font-size: 17px; - font-weight: 200 !important; - } - .form-control1{ - border-bottom-left-radius: 0px; - border-top-left-radius: 0px; - padding-left: 0px; - width: 45%; - font-size: 17px; - padding-bottom: 7px; - height: 40px; - } - // button input - .input-group-btn { - border-bottom-right-radius: 7px; - border-top-right-radius: 7px; - - .btn, .btn:focus, .btn:hover { - height: 40px; - font-size: 18px; - color: #FF2602; - background-color: #FFF; - border-color: #FFF; - } - } - - .search-label { - font-weight: 300 !important; - color: #FFF; - } - } - // user info - .status-text { - margin-top: 20px; - // font-size: 20px; - text-align: right; - - h2, h4 { - margin-top: 5px; - } - - .media-heading { - // font-size: 32px; - a { - color: #FFF; - } - } - .register-link { - color: #CED1C6; - } - .quit-link { - color: #FF2602; - } - } - } - - // navbar - .navigation { - background: $nav-grey; - text-align: center; - - .nav { - height: 45px; - - h3 { - margin-top: 15px; - font-size: 16px; - font-weight: 300 !important; - } - - .nav-button { - min-width: 130px; - height: 100%; - padding-left: 35px; - padding-right: 35px; - // font-size: 20px; - color: #343D3E; - font-weight: 500 !important; - - a { - @extend h3; - padding: 0; - color: #343D3E; - } - } - - .nav-button-first { - padding-left: 0 !important; - } - .divider { - width: 2px; - margin-left: 3px; - height: 100%; - background-color: #dddddd; - } - } - } - - .navigation-content { - display: none; - background-color: #f2f2f2; - width: 100%; - height: 100%; - padding-bottom: 20px; - - .inner-column { - padding: 15px; - padding-top: 5px; - } - - .nav-tabs { - border: 0px; - text-align: center; - } - } - - // contrast - .search-bar-contraste { - background-color: black; - color: white; - background-image: none !important; - } -} - - -} - -.popover { - display: none; - z-index: 999; - max-width: 600px; - width: auto; - - .popover-content { - max-height: 300px; - overflow: auto; - } -} - - footer { - padding-top: 50px; - color: #FFF; - - .main { - background-color: #E6E6E6; - padding: 16px 0px 0px 0px; - min-height: 256px; - - .container-height{ - .top-padding{ - padding-top: 50px; - } - } - .logos-footer{ - display: flex; - justify-content: space-between; - width: 100%; - margin-bottom: 30px; - img{ - width: auto; - } - .logo-footer{ - height: 70px; - display: inline-block; - } - } - } - - .footerbar{ - padding: 16px; - background-color: #AAB1AD; - } - .footer-bar { - color: #FFF; - background-color: #2178F5; - - .logo { - text-align: center; - width: 165px; - margin: 10px auto auto auto; - - h3 { - margin-top: 10px; - font-weight: 400; - } - a { - color: #FFF; - } - } - } - } - - - - -td.stars { - width: 22%; -} - -td.visualis { - width: 22%; -} - -table.tipo1 td { - width: 52%; - height: 33px; -} - -table.tipo1 p { - font-size: 15px; - font-weight: bold; -} - -//////////////////////////////////////////////////////////////////////////////// - -/* Alto Contraste*/ -.contraste { - background-color: black !important; - color: white; - .white-input{ - a{ - color:yellow; - } - } - a { - color: yellow; - } - .search-bar { - color: white !important; - } - #myCarousel { - a { - color: white !important; - } - } - #search { - .form-control { - background-color: black !important; - color: white; - } - } - #subject-highlight { - background-color: black !important; - } - - .field { - input { - color: black !important; - } - } - .actions { - input { - color: black !important; - } - } - .panel-wrapper { - background-color: black !important; - border: 2px solid white; - .btn { - background-color: black !important; - border: 5px solid white; - border-style: outset; - } - } - .btn { - border:2px solid white; - } - - .user-header { - border: 7px solid white; - h3{ - color:white; - } - .btn{ - border: 2px solid white; - } - } - .grey-panel{ - input{ - color: black; - font-weight: bold; - } - .button-save-setup{ - color:yellow; - } - .btn-singin{ - color: white; - } - .btn-danger{ - color: yellow; - } - } - footer { - .footerbar{ - background-color: black; - } - .footer-bar { - border:2px solid white; - background-color: black; - } - } - .navigation-content{ - background-color: black; - } - .select-add-file{ - background-color: black; - } -} - -.menu-bar-contrast { - background-color: black !important; - border-top: 2px solid white; - border-bottom: 2px solid white; - li { - color: white !important; - a { - color: white !important; - } - a:hover { - background-color: #1E1E1E !important; - } - a:active { - background-color: #1E1E1E !important; - } - a:focus { - background-color: #1E1E1E !important; - } - .caret { - border-top: 7px white solid; - } - } - .divider { - background-color: white; - } - .dropdown-menu { - background-color: black; - } -} - -.words { - color: white; -} - -.selec { - color: black; -} - -.fundo { - background: black; -} - -.set-align { - position: relative; - margin: 5px; - padding: 0px 35px; - } - .left-edge1 { - position:absolute; - left: -35px; - } -.right-button { padding: 0px 60px; } - -.grey-panel{ - background-color: #EEEEEE; - width: 100; - padding: 40px; - text-align:center; - margin: 25px; - .btn-singin{ - width: 230px; color:white; background-color: #1676bc; - } - -} - -.add-file{ - .logo-add-file{ - width:250px; height:150px; - } - .btn-remove{ - margin-top: 15px; width: 130px; background-color: #FF2134; - } - .input-add-file{ - font-size:14pt; margin-bottom: 10px; - } - .add_file-save{ - margin-top: -10px; width: 230px; color:white; background-color: #1676bc; - } - .select-add-file{ - width: 345px; - } - .title{ - position:absolute; margin-left:60px; - } -} - -.but { - display: inline-block; - background-color: #1676bc; - color: #fff; - padding: 8px 26px; - text-decoration: none; - box-sizing: border-box; - font-family: Helvetica; - font-weight: bold; - font-size: 16px; - border: 0px; -} - -.but-shadow { - box-shadow: 1px 1px 1px #999; -} - -.but-rc { - border-radius: 4px; -} - -.center_data{ - text-align:center; -} - -.thumb{ - width:250px; - margin-left: 50px; - border: solid 1px #ccc; -} - -input.chk { - margin-top:5px; - margin-left:5px; -} - -.white-input { - .top-padding-setup{ - margin-top: 25px; - } - .input-width-setup1{ - width:370px; - } - .input-setup-name{ - width:515px; - height:60px; - font-size:18pt; - font-weight:bold; - margin-bottom: 5px; - } - .link-setup{ - color: #1676bc; - } - .link-setup-2{ - color: #FF3300; - } - .btn-file { - position: relative; - overflow: hidden; - } - .btn-file input[type=file] { - position: absolute; - top: 0; - right: 0; - min-width: 100%; - min-height: 100%; - font-size: 100px; - text-align: right; - filter: alpha(opacity=0); - opacity: 0; - outline: none; - background: white; - cursor: inherit; - display: block; - } - input{ - border:none; - } -} - -.button-cancel-setup{ - height: 35px; width: 110px; color:white; background-color: #FF3300; -} -.button-save-setup{ - height: 35px; width: 110px; color:white; background-color: #1676bc; -} - -.logos-footer{ - height: 70px; - width: auto; -} -.btn-file { - position: relative; - overflow: hidden; -} - -.add-picture{ - color:#1676bc; -} - - .btn-file { - position: relative; - overflow: hidden; -} - -.btn-file input[type=file] { - position: absolute; - top: 0; - right: 0; - min-width: 100%; - min-height: 100%; - font-size: 100px; - text-align: right; - filter: alpha(opacity=0); - opacity: 0; - outline: none; - background: white; - cursor: inherit; - display: block; -} - -.style-cadastro{ - font-color: #343D3E; - font: Arial; -} - -.navbar-inverse { - background: #59595C; - border-color: #59595C; -} -.align-everything{ - line-height: 170%; -} - -.style-input{ - width: 335px; - margin-bottom: 10px; -} - -.style-text{ - text-align: right; -} - -.field_with_errors { - display: inline; -} - -.style-check{ - padding-left: 80px; - margin-top: 40px; - margin-bottom: 40px; - .style-link{ - color: #1676bc; - text-decoration: underline; - } -} - -.style-terms-of-service{ - font-weight: bold; - font-size: 20px; - margin-bottom: 1px; -} - -.send-new-item img{ - float: left; - position: relative; -} - -.send-new-item h3{ - padding-left: 20px; - position: relative; -} diff --git a/app/assets/stylesheets/application/about.scss b/app/assets/stylesheets/application/about.scss deleted file mode 100644 index 07869b13806ca752efb245f706ca9b96816a54b7..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/about.scss +++ /dev/null @@ -1,15 +0,0 @@ -// Place all the styles related to the about controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ - -//// FAQ -.faq-row { - .question { - font-weight: 400; - } - .answer { - padding-left: 25px; - text-align: justify; - text-justify: inter-word; - } -} diff --git a/app/assets/stylesheets/application/collections.scss b/app/assets/stylesheets/application/collections.scss deleted file mode 100644 index 50eb4a46f19e5882ac04aee955872cd848971aa1..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/collections.scss +++ /dev/null @@ -1,18 +0,0 @@ -ul.collection-header { - li { - width: 100%; - margin-bottom: 10px; - } -} - -.collection-privacy { - text-align: center; - margin-top: 20px; - margin-right: 30px; -} - -.collection-show-select-nav { - .navbar-brand { - color: #FFF !important; - } -} diff --git a/app/assets/stylesheets/application/feedbacks.scss b/app/assets/stylesheets/application/feedbacks.scss deleted file mode 100644 index 6e6e94f97c6792a2b9d51a0ce7a45859f0950c8b..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/feedbacks.scss +++ /dev/null @@ -1,25 +0,0 @@ -/** Feedback Buttons **/ -// .report_bug, .send_feedback {position: fixed; bottom: 0; height: 30px; width: auto; padding: 5px; z-index: 999;} -// .report_bug {left: 25%; background-color: #730E15; color: white;} -// .send_feedback {right: 25%; background-color: #ffae0d; color: black;} -.report_bug { - position: fixed; - bottom: 0; - color:maroon !important; - text-shadow:1px 1px 0 white, - -1px -1px 0 white, - 1px -1px 0 white, - -1px 1px 0 white, - 0px 1px 0 white, - 1px 0px 0 white, - 0px -1px 0 white, - -1px 0px 0 white; - width: auto; - text-align: center; - padding: 5px; - z-index: 999; - right: 0; -} - -/** Forms **/ -.feedback-modal-form-textarea { height: 200px; } diff --git a/app/assets/stylesheets/application/form-wizard.scss b/app/assets/stylesheets/application/form-wizard.scss deleted file mode 100644 index 888168463bb9cfbfde4b0dbb84743cb7d5c54daa..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/form-wizard.scss +++ /dev/null @@ -1,239 +0,0 @@ -@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700); - -/* written by riliwan balogun http://www.facebook.com/riliwan.rabo*/ - -.board { - width: 75%; - margin: auto; - min-height: 500px; - background: #fff; - - .nav-tabs { - position: relative; - - margin: 40px auto; - margin-bottom: 0; - box-sizing: border-box; - } - > div.board-inner { - background: white; /*image-url('geometry2.png');*/ - background-size: 30%; - } - - p.narrow { - width: 60%; - margin: 10px auto; - } - - .liner { - height: 2px; - background: #ddd; - position: absolute; - width: 80%; - margin: 0 auto; - left: 0; - right: 0; - top: 50%; - z-index: 1; - } - - .nav-tabs > li.active > a { - color: #555555; - cursor: default; - background-color: transparent !important; - border: 0; - border-bottom-color: transparent; - &:hover, &:focus { - color: #555555; - cursor: default; - background-color: transparent !important; - border: 0; - border-bottom-color: transparent; - } - } - - span.round-tabs { - width: 70px; - height: 70px; - line-height: 70px; - display: inline-block; - border-radius: 100px; - background: white; - z-index: 2; - position: absolute; - left: 0; - text-align: center; - font-size: 25px; - &.one { - color: rgb(34, 194, 34); - border: 2px solid rgb(34, 194, 34); - } - } - - li.active span.round-tabs.one { - background: #fff !important; - border: 2px solid #ddd; - color: rgb(34, 194, 34); - } - - span.round-tabs.two { - color: #febe29; - border: 2px solid #febe29; - } - - li.active span.round-tabs.two { - background: #fff !important; - border: 2px solid #ddd; - color: #febe29; - } - - span.round-tabs.three { - color: #3e5e9a; - border: 2px solid #3e5e9a; - } - - li.active span.round-tabs.three { - background: #fff !important; - border: 2px solid #ddd; - color: #3e5e9a; - } - - span.round-tabs.four { - color: #f1685e; - border: 2px solid #f1685e; - } - - li.active span.round-tabs.four { - background: #fff !important; - border: 2px solid #ddd; - color: #f1685e; - } - - span.round-tabs.five { - color: #999; - border: 2px solid #999; - } - - li.active span.round-tabs.five { - background: #fff !important; - border: 2px solid #ddd; - color: #999; - } - - .nav-tabs > li { - &.active > a span.round-tabs { - background: #fafafa; - } - width: 33.33%; - } - - /*li.active:before { - content: " "; - position: absolute; - left: 45%; - opacity:0; - margin: 0 auto; - bottom: -2px; - border: 10px solid transparent; - border-bottom-color: #fff; - z-index: 1; - transition:0.2s ease-in-out; - }*/ - - li { - &:after { - content: " "; - position: absolute; - left: 45%; - opacity: 0; - margin: 0 auto; - bottom: 0px; - border: 5px solid transparent; - border-bottom-color: #ddd; - transition: 0.1s ease-in-out; - } - &.active:after { - content: " "; - position: absolute; - left: 45%; - opacity: 1; - margin: 0 auto; - bottom: 0px; - border: 10px solid transparent; - border-bottom-color: #ddd; - } - } - - .nav-tabs > li a { - width: 70px; - height: 70px; - margin: 20px auto; - border-radius: 100%; - padding: 0; - &:hover { - background: transparent; - } - } - - .tab-content { - } - - .tab-pane { - position: relative; - padding-top: 50px; - } - - .tab-content .head { - font-family: 'Roboto Condensed', sans-serif; - font-size: 25px; - text-transform: uppercase; - padding-bottom: 10px; - } - - .btn-outline-rounded { - padding: 10px 40px; - margin: 20px 0; - border: 2px solid transparent; - border-radius: 25px; - } - - .btn.green { - background-color: #5cb85c; - /*border: 2px solid #5cb85c;*/ - color: #ffffff; - } - .btn.red { - background-color: #b84e47; - /*border: 2px solid #5cb85c;*/ - color: #ffffff; - } - - @media (max-width: 585px) { - .board { - width: 90%; - height: auto !important; - } - span.round-tabs { - font-size: 16px; - width: 50px; - height: 50px; - line-height: 50px; - } - .tab-content .head { - font-size: 20px; - } - .nav-tabs > li a { - width: 50px; - height: 50px; - line-height: 50px; - } - li.active:after { - content: " "; - position: absolute; - left: 35%; - } - .btn-outline-rounded { - padding: 12px 20px; - } - } -} \ No newline at end of file diff --git a/app/assets/stylesheets/application/learning_objects.scss b/app/assets/stylesheets/application/learning_objects.scss deleted file mode 100644 index f2077fd6a3a0893d8ffa6fa7a3cc29bc736a8f48..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/learning_objects.scss +++ /dev/null @@ -1,310 +0,0 @@ -$background-grey: #e7e7e8; -$unchecked_icon: 'icons/unchecked.png'; -$checked_icon: 'icons/checked.png'; - -.learning-object-horizontal, .learning-object-vertical { - margin-bottom: 20px; - - .author-label { - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - } - - .learning-object-thumbnail { - min-width: 250px; - height: 141px; - position: relative; - - a > img { - /*background-image: url(image_path('learning-object-preview.png'));*/ - width: 250px; - height: 141px; - border: 0; - padding: 2px; - } - - .learning-object-icon-suspended { - color: red; - top: calc(50% - 41px) ; - left: calc(50% - 31px) ; - position: absolute; - } - - .learning-object-actions { - position: absolute; - bottom: 10px; - right: 10px; - } - } -} - -.learning-object-horizontal { - .learning-object-thumbnail { - float: left; - } - - .learning-object-body { - width: calc(100% - 250px); - padding: 0px; - padding-left: 5px; - float: left; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - - .learning-object-heading { - font-weight: 400; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - .learning-object-text { - white-space: normal; - text-align: justify; - } - } -} - -.learning-object-vertical { - width: 250px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - - .panel-body { - padding: 0 !important; - margin-top: 3px; - overflow: hidden; - text-overflow: ellipsis; - - .media-heading { - overflow: hidden; - text-overflow: ellipsis; - } - } - - .learning-object-thumbnail { - max-width: 250px; - height: 150px !important; - position: relative; - - .learning-object-actions { - bottom: 20px !important; - } - - .collection-selector { - position: absolute; - left: 10px; - top: 6px; - width: 28px; - height: 28px; - } - } - -} - -.glyphicon-eye-open:before, .glyphicon-star:before { - margin-right: 5px; -} - -.learning-object { - .view { - width: 530px; - height: 298px; - audio { - width: inherit; - position: relative; - top: 50%; - transform: translateY(-50%); - } - img { - width: inherit; - height: inherit; - border: 0; - } - video { - width: inherit; - height: inherit; - } - } - .stats { - text-align: right; - } - .title { - font-weight: 400; - } - .description { - padding-left: 3%; - padding-top: 10px; - } - .category { - font-weight: 400; - } - .rightbar { - margin-top: 100px; - - .panel-default{ - margin-top: 10px; - background-color: #ECECEC; - border-color: #D1CECF; - border-bottom-right-radius: 10px; - border-top-right-radius: 10px; - border-bottom-left-radius: 10px; - border-top-left-radius: 10px; - padding: 18px 18px 18px 18px; - h3{ - font-weight: 400; - font-size: 30px; - } - h4{ - margin-top: 15px; - font-weight: 400; - font-size: 20px; - } - #toggle_metadata{ - background-color: #F4F4F4; - color: #5D5D5D; - border-color: #D1D0D1; - padding-top: 10px; - padding-bottom: 10px; - border-radius: 12px; - margin-top: 8px; - } - } - .media-heading { - white-space: nowrap; - } - .rating-panel { - width: 100%; - height: 100px; - - .login-info img{ - float: left; - } - - .login-info h4{ - position: relative; - padding-left: 40px; - } - - .rating { - text-align: right; - } - } - - .actions { - - .action { - height: 50px; - width: 50px; - display: inline; - - .btn-primary{ - border-color: #CBC9CA; - background-color: #EEEEED; - } - - .btn-success{ - border-color: #C7E7F9; - background-color: #5FB761; - } - - a { - font-weight: 400; - } - img{ - width: 20px; - height: 20px; - margin-bottom: 5px; - margin-top: 5px; - } - .share{ - i{ - padding-top: 4px; - color: #818080; - width: 20px; - height: 20px; - margin-bottom: 5px; - margin-top: 5px; - } - } - .bookmark{ - i{ - padding-top: 3px; - color: #818080; - width: 20px; - height: 20px; - margin-bottom: 5px; - margin-top: 5px; - } - } - - .download{ - line-height: 35px; - width: 160px; - height: 46px; - } - - } - .action-like { - a { - color: #F05421; - font-weight: 400; - } - img { - width: 70px; - height: 70px; - margin-bottom: 3px; - } - } - } - } -} - -#collections_list_popover { - display: none; - z-index: 999; - - ul { - list-style: none; - padding: 0; - margin: 0; - - li { - a.default_btn { - span { - background: url($unchecked_icon); - width: 20px; - height: 20px; - margin: 0 5px 0 0; - } - } - a.default_btn:hover { - span { - background: url($checked_icon); - width: 20px; - height: 20px; - margin: 0 5px 0 0; - } - } - a.active_btn { - span { - background: url($checked_icon); - width: 20px; - height: 20px; - margin: 0 5px 0 0; - } - } - a.active_btn:hover { - span { - background: url($unchecked_icon); - width: 20px; - height: 20px; - margin: 0 5px 0 0; - } - } - } - } -} diff --git a/app/assets/stylesheets/application/ratingstars.scss b/app/assets/stylesheets/application/ratingstars.scss deleted file mode 100644 index 9afe06cb074c492a1a893417a734f62e66bc07ff..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/ratingstars.scss +++ /dev/null @@ -1,52 +0,0 @@ - -/****** css code provide by James Barnett at http://codepen.io/jamesbarnett/pen/vlpkh ******/ - - @import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css); - -fieldset, label { margin: 0; padding: 0; } - -/****** Style Star Rating Widget *****/ - -.rating { - float: left; - - padding-top: 1px; - padding-bottom: 1px; - - margin: 0; -} - -.rating > input { display: none; } -.rating > label:before { - margin: 3px; - font-size: 1.0em; - font-family: FontAwesome; - display: inline-block; - content: "\f005"; -} - -.rating > .half:before { - content: "\f089"; - position: absolute; -} - -.rating > label { - color: #ddd; - float: right; -} - -.rating > i { - font-style: italic; - font-size: 0.75em; - text-aling: right; -} - -/***** CSS Magic to Highlight Stars on Hover *****/ - -.rating > input:checked ~ label, /* show gold star when clicked */ -.rating:not(:checked) > label:hover, /* hover current star */ -.rating:not(:checked) > label:hover ~ label { color: #FFD700; } /* hover previous stars in list */ - -.rating > input:checked + label:hover, /* hover current star when changing rating */ -.rating > input:checked ~ label:hover, -.rating > input:checked ~ label:hover ~ label { color: #FFED85; } \ No newline at end of file diff --git a/app/assets/stylesheets/application/registration.scss b/app/assets/stylesheets/application/registration.scss deleted file mode 100644 index 2a478a3e77fd0cae88cead202972a79f5835a6df..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/registration.scss +++ /dev/null @@ -1,9 +0,0 @@ -.modal-social-warn { - .terms-container { - text-align: justify; - height: 300px; - padding: 10px; - overflow-y: auto; - border: 1px solid #bdc3c7; - } -} diff --git a/app/assets/stylesheets/application/reviews.scss b/app/assets/stylesheets/application/reviews.scss deleted file mode 100644 index 38b5c5cfcc635947ca1875e40096b4e7b6e31285..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/reviews.scss +++ /dev/null @@ -1,67 +0,0 @@ - -.review -{ - border-radius: 20px; - border-color: #C5C5C5; - border-width: 1.6px; - min-height: 150px; - - .review-title - { - margin-top:5px; - margin-bottom:15px; - } - - .review-left-data - { - padding-top:20px; - padding-left: 30px; - width:140px; - } - - .review-right-data - { - - border-left-style: solid; - border-left-width: 1.6px; - border-left-color: #CBC5C6; - - width: calc(100% - 140px); - - .review-footer - { - font-size: 10pt; - float: right; - - padding-top:20px; - padding-right: 15px; - - .review-button - { - background: #EEEEEE; - color: #818181; - font-size: 10pt; - } - .approved - { - color: green; - border: solid 1px green; - } - - .desapproved - { - color: red; - border: solid 1px red; - } - } - } - - - .popover-content - { - min-width:280px; - padding: 15px 15px 15px 15px; - margin: 5px 5px 5px 5px; - } - -} \ No newline at end of file diff --git a/app/assets/stylesheets/application/search.scss b/app/assets/stylesheets/application/search.scss deleted file mode 100644 index 045730c0116664c21fab88fe7fceff416186d18d..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/search.scss +++ /dev/null @@ -1,83 +0,0 @@ -#s2id_myelement > .select2-choice{ - background-color:green; -} - -.autocomplete { - margin-right: 5px; -} - -.search-sidebar { - margin-top: 40px; - display: none; - - .bootstrap-tagsinput { - border: 0; - border-radius: 0; - box-shadow: 0px 0px 0px; - input { - display: none; - } - - .label { - font-size: 16px; - font-weight: 300; - display: inline-block; - margin-bottom: 6px; - white-space: normal; - } - } - - .dropdown-element { - width: 95%; - margin-left: 3%; - - .label-checkbox { - width: 100%; - position: relative; - font-weight: 300; - margin-bottom: 8px; - padding-right: 15px; - - input[type=checkbox] { - position: absolute; - right: 5px; - } - } - } -} - -.nestedAccordion { - .dropdown { - margin-top: 10px !important; - margin-bottom: 10px !important; - } -} - -.select2-container { - width: 100% !important; -} - -.result-bar { - margin-top: 40px; - margin-bottom: 18px; - display: none; - - .result-info { - font-size:24px; - font-weight: 400; - color: #88888D; - line-height: 1.1; - } - - .result-order{ - font-weight: 500; - color: #88888D; - } - - .sort-dropdown { - border: 0; - border-radius: 3px; - color: #59585A; - padding-right: 20px; - } -} diff --git a/app/assets/stylesheets/application/users.scss b/app/assets/stylesheets/application/users.scss deleted file mode 100644 index 662334523081ba53307701437a3378a5e83ac3ac..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/users.scss +++ /dev/null @@ -1,84 +0,0 @@ -$header-blue: #1676bc; -$link-grey: #343D3E; -$background-grey: #e7e7e8; - -.user-image { - width: 60px; - height: 60px; - border-radius: 50%; -} - -.user-image-small { - width: 40px; - height: 40px; - border-radius: 50%; -} - -.user-image-tiny { - width: 20px; - height: 20px; - border-radius: 50%; -} - -.user-header { - background-color: $background-grey; - width: 100%; - min-height: 145px; - height: auto; - margin-top: 30px; - margin-bottom: 50px; - padding: 15px; - - h2 { - font-weight: 400; - } - .header-sub { - margin-top: 0; - color: $link-grey; - font-style: italic; - } - .header-content { - margin-top: 20px; - } - - .right-column { - text-align: right; - - .btn { - background-color: $header-blue; - color: white; - border: 0px; - min-width: 150px; - } - } -} - -.user-files { - margin-bottom: 100px; -} - -.user-biography { - padding-left: 85px !important; - display: none; -} - -.align-right { - text-align: right; -} - -.user-page-subtitle { - margin-bottom: 30px; -} - -.user-panel { - width: 100%; - min-height: 145px; - height: auto; - background-color: $background-grey; - margin-top: 20px; - padding: 20px; -} - -.avatar_input { - display: none; -} diff --git a/app/assets/stylesheets/application/welcome.scss b/app/assets/stylesheets/application/welcome.scss deleted file mode 100644 index 60ff70a295f4eb8214a17555d13615880f57abbd..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/application/welcome.scss +++ /dev/null @@ -1,160 +0,0 @@ -.mainpage-highlights { - margin-top: 30px; - - h2 { - margin-bottom: 15px; - } -} - -//// carousel -$carousel_size: 400px; - -.carousel { - height: $carousel_size; -} - -.carousel ol { - background-color: rgba(80, 80, 80, 0.7); -} - -.carousel-caption { - z-index: 10; - margin-bottom: 2px !important; - padding-bottom: 0px !important; - width: 100%; - left: 0% !important; - background-image: linear-gradient(to top, rgba(80, 80, 80, 0.7), transparent); -} - -.carousel .item { - height: $carousel_size; - background-color: #777; -} -.carousel-inner > .item > img { - position: absolute; - top: 0; - left: 0; - min-width: 100%; - height: 400px !important; - -} -.carousel-indicators{ - left: 30% !important; - width: 100% !important; - margin-bottom: 0px; - bottom: 0px !important; -} - -.carousel-indicators li { - display: inline-block; - width: 12px; - height: 12px; - margin: 12x; - text-indent: -999px; - cursor: pointer; - background-color: #000 \9; - background-color: #AABAB8; - border: 1px solid #555; - border-radius: 10px; -} - -.carousel-indicators .active { - margin: 0; - width: 12px; - height: 12px; - background-color: #FF2333; -} - -//// CONTACT -.about-contact { - .contact-row { - margin-bottom: 10px; - - h4 { - font-weight: 400; - margin-bottom: 5px; - } - } - .contact-item { - width: 30px; - height: 30px; - border-radius: 5px; - margin-right: 5px; - i { - font-size: 35px; - margin-left: -15px; - margin-top: -2px; - } - .i-google{ - background: #FFFFFF; - color: #d34836; - } - .i-twitter{ - background: #FFFFFF; - color: #1dcaff; - } - .i-facebook{ - font-size: 29px; - background: #3b5998; - color: #FFFFFF; - margin-top: 0px; - width: 30px; - border-radius: 5px; - padding-top: 1px; - } - .logo-contact{ - width: auto; - height: 70px; - margin-left: -15px; - } - } -} - -//// FAQ -.faq-row { - .question { - font-weight: 400; - } - .answer { - padding-left: 25px; - text-align: justify; - text-justify: inter-word; - } -} - -// banner in index -.registration-banner { - margin-top: 50px; - margin-bottom: 50px; - - h2{ - font-size: 25px; - } - .right-edge { - padding: 0px 45px; - margin-left: 15px; - margin-bottom: 20px; - } - - .left-edge { - position:absolute; - } - - .icon{ - max-width:50px; - width: auto; - height: 40px; - } - .icon1{ - max-width: 140px; - width: auto; - height: 140px; - } - .bt_cadastrar{ - border-color: #FFC125; - margin-top: 70px; - max-width: 220px; - width: auto; - background-color: #FFC125; - } -} diff --git a/app/assets/stylesheets/links.scss b/app/assets/stylesheets/links.scss deleted file mode 100644 index 81ec94bf1d3b5f150288cc245defb49edc785bd4..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/links.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the links controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/management.scss b/app/assets/stylesheets/management.scss deleted file mode 100644 index 4800d51f81148b300cb3daf69106e1902ec5c10a..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/management.scss +++ /dev/null @@ -1,19 +0,0 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the bottom of the - * compiled file so the styles you add here take precedence over styles defined in any styles - * defined in the other CSS/SCSS files in this directory. It is generally better to create a new - * file per style scope. - * - *= require_tree ./management - *= require locastyle - *= require_self - */ - - @import "bootstrap-sprockets"; - @import "bootstrap"; diff --git a/app/assets/stylesheets/management/carousel.scss b/app/assets/stylesheets/management/carousel.scss deleted file mode 100644 index 89da7e1046eebfd411c84d8414cc3ac48ec4ea90..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/management/carousel.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the management/carousel controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/management/score.scss b/app/assets/stylesheets/management/score.scss deleted file mode 100644 index 92f9912dcb3b38e1b5b07f97a47c03bb5d0b69ef..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/management/score.scss +++ /dev/null @@ -1,3 +0,0 @@ -.score_type_checkbox { - float:left; -} diff --git a/app/assets/stylesheets/management/welcome.scss b/app/assets/stylesheets/management/welcome.scss deleted file mode 100644 index 99c7c4dda1053994759f3ee5ca27b8444da6ef69..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/management/welcome.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Management/Welcome controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/