Skip to content

Commit

Permalink
Fix the update script and theme urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfalaize committed Sep 25, 2016
1 parent 1ed3120 commit 585b1fd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
36 changes: 18 additions & 18 deletions data/data-fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,79 +14,79 @@
"key": "theme",
"keyLabel": "theme",
"inputType": "select",
"value": "https//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap-theme.min.css",
"value": "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap-theme.min.css",
"options": [
{
"label": "Bootstrap (default)",
"value": "https//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap-theme.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap-theme.min.css"
},
{
"label": "Amelia",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/amelia/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/amelia/bootstrap.min.css"
},
{
"label": "Cerulean",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/cerulean/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/cerulean/bootstrap.min.css"
},
{
"label": "Cosmo",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/cosmo/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/cosmo/bootstrap.min.css"
},
{
"label": "Custom",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/custom/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/custom/bootstrap.min.css"
},
{
"label": "Cyborg",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/cyborg/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/cyborg/bootstrap.min.css"
},
{
"label": "Darkly",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/darkly/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/darkly/bootstrap.min.css"
},
{
"label": "Flatly",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/flatly/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/flatly/bootstrap.min.css"
},
{
"label": "Journal",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/journal/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/journal/bootstrap.min.css"
},
{
"label": "Lumen",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/lumen/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/lumen/bootstrap.min.css"
},
{
"label": "Material Design",
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/4.0.2/bootstrap-material-design.min.css"
},
{
"label": "Readable",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/readable/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/readable/bootstrap.min.css"
},
{
"label": "Simplex",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/simplex/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/simplex/bootstrap.min.css"
},
{
"label": "Slate",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/slate/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/slate/bootstrap.min.css"
},
{
"label": "Spacelab",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/spacelab/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/spacelab/bootstrap.min.css"
},
{
"label": "Superhero",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/superhero/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/superhero/bootstrap.min.css"
},
{
"label": "United",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/united/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/united/bootstrap.min.css"
},
{
"label": "Yeti",
"value": "https//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/yeti/bootstrap.min.css"
"value": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.1.1-1/css/yeti/bootstrap.min.css"
}
]
}
Expand Down
20 changes: 20 additions & 0 deletions version/scripts/update-1.1.2-to-1.1.3.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,25 @@ var updateVersion = function(cv) {

updateCVUtils.insertField(keySkillField, "skills/types/categories/skills/name", false, cv);

angular.forEach(cv, function(cvLocale) {
angular.forEach(cvLocale, function(fields) {
angular.forEach(fields, function(field) {
if (field.key === "model") {
angular.forEach(field.options, function(option) {
angular.forEach(option.onchange, function(onchange) {
angular.forEach(onchange.options, function(op) {
op.value = "https:" + op.value;
});
var newOp = new Object();
newOp.label = "Material Design"
newOp.value = "https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/4.0.2/bootstrap-material-design.min.css";
onchange.options.push(newOp);
});
});
}
});
});
});

return cv;
};

0 comments on commit 585b1fd

Please sign in to comment.