Commit f751befca328d1641698aae232fecfce5f188e0c

Authored by Caio Almeida
1 parent 9cc21dfb

Use local badge files instead of shield.io in order to improve performance

ConfJuvApp/builds/confjuv-dev.apk
No preview for this file type
ConfJuvApp/builds/confjuvapp-live.apk
No preview for this file type
ConfJuvApp/builds/confjuvapp-web.zip
No preview for this file type
ConfJuvApp/config.xml
1 1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2   -<widget id="com.ionicframework.confjuvapp748431" version="0.0.10" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  2 +<widget id="com.ionicframework.confjuvapp748431" version="0.0.12" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3 3 <name>#3ConfJuv</name>
4 4 <description>Aplicativo móvel para 3ª Conferência Nacional de Juventude</description>
5 5 <author email="confjuvapp@gmail.com" href="http://www.juventude.gov.br/"></author>
... ...
ConfJuvApp/get-badges.sh 0 → 100755
... ... @@ -0,0 +1,14 @@
  1 +#!/bin/bash
  2 +cd www/img
  3 +wget "https://img.shields.io/badge/tema-Direito à Cidade e Mobilidade-ff9800.svg" -O badge-101577.svg
  4 +wget "https://img.shields.io/badge/tema-Segurança e Paz-ff9800.svg" -O badge-101578.svg
  5 +wget "https://img.shields.io/badge/tema-Meio Ambiente-ff9800.svg" -O badge-101576.svg
  6 +wget "https://img.shields.io/badge/tema-Esporte e Lazer-ff9800.svg" -O badge-101575.svg
  7 +wget "https://img.shields.io/badge/tema-Direito à Comunicação-ff9800.svg" -O badge-101574.svg
  8 +wget "https://img.shields.io/badge/tema-Cultura-ff9800.svg" -O badge-101573.svg
  9 +wget "https://img.shields.io/badge/tema-Saúde-ff9800.svg" -O badge-101572.svg
  10 +wget "https://img.shields.io/badge/tema-Diversidade e Igualdade-ff9800.svg" -O badge-101571.svg
  11 +wget "https://img.shields.io/badge/tema-Trabalho-ff9800.svg" -O badge-101570.svg
  12 +wget "https://img.shields.io/badge/tema-Educação-ff9800.svg" -O badge-101569.svg
  13 +wget "https://img.shields.io/badge/tema-Cidadania-ff9800.svg" -O badge-99896.svg
  14 +cd ..
... ...
ConfJuvApp/www/html/_proposal.html
... ... @@ -24,7 +24,7 @@
24 24 <p style="clear: both;"></p>
25 25  
26 26 <p class="proposal-badges">
27   - <img ng-src="https://img.shields.io/badge/tema-{{proposal.topic.title}}-ff9800.svg" alt="" />
  27 + <img ng-src="img/badge-{{proposal.topic.id}}.svg" alt="" />
28 28 <img ng-repeat="tag in proposal.tag_list" ng-src="https://img.shields.io/badge/tag-{{tag}}-4db6ac.svg" alt="" />
29 29 </p>
30 30  
... ...
ConfJuvApp/www/html/_proposal_list.html
... ... @@ -21,7 +21,7 @@
21 21 {{proposal.body | htmlToPlainText | limitTo:280}}...
22 22 </div>
23 23 <div class="card-footer">
24   - <img ng-src="https://img.shields.io/badge/tema-{{proposal.topic.title}}-ff9800.svg" alt="" />
  24 + <img ng-src="img/badge-{{proposal.topic.id}}.svg" alt="" />
25 25 <a ng-click="openProposal(proposal)" class="icon-left ion-android-open"> Acessar</a>
26 26 </div>
27 27 <br style="clear: both;" />
... ...
ConfJuvApp/www/img/badge-101569.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="103" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="103" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h64v20H39z"/><path fill="url(#b)" d="M0 0h103v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="70" y="15" fill="#010101" fill-opacity=".3">Educação</text><text x="70" y="14">Educação</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101570.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="99" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="99" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h60v20H39z"/><path fill="url(#b)" d="M0 0h99v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="68" y="15" fill="#010101" fill-opacity=".3">Trabalho</text><text x="68" y="14">Trabalho</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101571.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="189" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="189" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h150v20H39z"/><path fill="url(#b)" d="M0 0h189v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="113" y="15" fill="#010101" fill-opacity=".3">Diversidade e Igualdade</text><text x="113" y="14">Diversidade e Igualdade</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101572.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="85" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="85" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h46v20H39z"/><path fill="url(#b)" d="M0 0h85v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="61" y="15" fill="#010101" fill-opacity=".3">Saúde</text><text x="61" y="14">Saúde</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101573.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="91" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="91" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h52v20H39z"/><path fill="url(#b)" d="M0 0h91v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="64" y="15" fill="#010101" fill-opacity=".3">Cultura</text><text x="64" y="14">Cultura</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101574.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="179" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="179" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h140v20H39z"/><path fill="url(#b)" d="M0 0h179v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="108" y="15" fill="#010101" fill-opacity=".3">Direito à Comunicação</text><text x="108" y="14">Direito à Comunicação</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101575.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="138" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="138" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h99v20H39z"/><path fill="url(#b)" d="M0 0h138v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="87.5" y="15" fill="#010101" fill-opacity=".3">Esporte e Lazer</text><text x="87.5" y="14">Esporte e Lazer</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101576.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="133" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="133" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h94v20H39z"/><path fill="url(#b)" d="M0 0h133v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="85" y="15" fill="#010101" fill-opacity=".3">Meio Ambiente</text><text x="85" y="14">Meio Ambiente</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101577.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="217" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="217" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h178v20H39z"/><path fill="url(#b)" d="M0 0h217v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="127" y="15" fill="#010101" fill-opacity=".3">Direito à Cidade e Mobilidade</text><text x="127" y="14">Direito à Cidade e Mobilidade</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-101578.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="145" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="145" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h106v20H39z"/><path fill="url(#b)" d="M0 0h145v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="91" y="15" fill="#010101" fill-opacity=".3">Segurança e Paz</text><text x="91" y="14">Segurança e Paz</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/img/badge-99896.svg 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<svg xmlns="http://www.w3.org/2000/svg" width="106" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="106" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h39v20H0z"/><path fill="#ff9800" d="M39 0h67v20H39z"/><path fill="url(#b)" d="M0 0h106v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">tema</text><text x="19.5" y="14">tema</text><text x="71.5" y="15" fill="#010101" fill-opacity=".3">Cidadania</text><text x="71.5" y="14">Cidadania</text></g></svg>
0 2 \ No newline at end of file
... ...
ConfJuvApp/www/js/controllers.js
... ... @@ -410,7 +410,7 @@ angular.module(&#39;confjuvapp.controllers&#39;, [])
410 410 }
411 411 else {
412 412 // Initiate the modal
413   - $ionicModal.fromTemplateUrl('html/_proposal.html?3', {
  413 + $ionicModal.fromTemplateUrl('html/_proposal.html?4', {
414 414 scope: $scope,
415 415 animation: 'slide-in-up'
416 416 }).then(function(modal) {
... ...