WIP
This commit is contained in:
parent
653e764983
commit
55073fc2c5
25
app/app.js
25
app/app.js
|
|
@ -199,14 +199,12 @@ var app = new Vue({
|
||||||
|
|
||||||
getCountryName: function(countryCode)
|
getCountryName: function(countryCode)
|
||||||
{
|
{
|
||||||
//console.log("getCountryName(" + countryCode + "/" + this.countryCodes.length +"): this.countryCodes=", this.countryCodes);
|
|
||||||
for (var i = 0; i < this.countryCodes.length; i++)
|
for (var i = 0; i < this.countryCodes.length; i++)
|
||||||
{
|
{
|
||||||
var country = this.countryCodes[i];
|
var country = this.countryCodes[i];
|
||||||
//console.log("country.code=" + country.code);
|
|
||||||
if (country.code == countryCode)
|
if (country.code == countryCode)
|
||||||
{
|
{
|
||||||
//console.log("country.name=" + country.name);
|
|
||||||
return country.name;
|
return country.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -215,16 +213,9 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
displayLocation: function()
|
displayLocation: function()
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
<preview-field label="Address" v-bind:value="$root.sections.basics.location.address"></preview-field>
|
|
||||||
<preview-field label="Postal/Zip Code" v-bind:value="$root.sections.basics.location.postalCode"></preview-field>
|
|
||||||
<preview-field label="City" v-bind:value="$root.sections.basics.location.city"></preview-field>
|
|
||||||
<preview-field label="Country Code" v-bind:value="$root.sections.basics.location.countryCode"></preview-field>
|
|
||||||
<preview-field label="Region" v-bind:value="$root.sections.basics.location.region"></preview-field>
|
|
||||||
*/
|
|
||||||
|
|
||||||
return this.sections.basics.location.city + ", " + this.getCountryName(this.sections.basics.location.countryCode);
|
return this.sections.basics.location.city + ", " + this.getCountryName(this.sections.basics.location.countryCode);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -252,6 +243,8 @@ var app = new Vue({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
languageFluencyAsPercent: function(index)
|
languageFluencyAsPercent: function(index)
|
||||||
{
|
{
|
||||||
var fluency = this.$root.sections.skills[index].level;
|
var fluency = this.$root.sections.skills[index].level;
|
||||||
|
|
@ -275,6 +268,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
workEndDate: function(index)
|
workEndDate: function(index)
|
||||||
{
|
{
|
||||||
var endDate = this.$root.sections.work[index].endDate;
|
var endDate = this.$root.sections.work[index].endDate;
|
||||||
|
|
@ -285,6 +279,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
projectEndDate: function(index)
|
projectEndDate: function(index)
|
||||||
{
|
{
|
||||||
var endDate = this.$root.sections.projects[index].endDate;
|
var endDate = this.$root.sections.projects[index].endDate;
|
||||||
|
|
@ -295,6 +290,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dateMonthYear: function(dateString)
|
dateMonthYear: function(dateString)
|
||||||
{
|
{
|
||||||
var dt = new Date(dateString);
|
var dt = new Date(dateString);
|
||||||
|
|
@ -303,6 +299,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getMonthName: function(monthNumber)
|
getMonthName: function(monthNumber)
|
||||||
{
|
{
|
||||||
if (monthNumber == 1) return "January";
|
if (monthNumber == 1) return "January";
|
||||||
|
|
@ -322,6 +319,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear save data and reset the sections structure.
|
* Clear save data and reset the sections structure.
|
||||||
*/
|
*/
|
||||||
|
|
@ -339,6 +337,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
saveResume: function()
|
saveResume: function()
|
||||||
{
|
{
|
||||||
var response = confirm("Resume saved");
|
var response = confirm("Resume saved");
|
||||||
|
|
@ -350,6 +349,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open the sidebar on smaller screens.
|
* Open the sidebar on smaller screens.
|
||||||
*/
|
*/
|
||||||
|
|
@ -374,6 +374,7 @@ var app = new Vue({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open the sidebar on smaller screens.
|
* Open the sidebar on smaller screens.
|
||||||
*/
|
*/
|
||||||
|
|
@ -461,6 +462,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Collapse or un-collapse a content element by setting its collapse state to opposite of current state.
|
* Collapse or un-collapse a content element by setting its collapse state to opposite of current state.
|
||||||
* @param {string} id ID of the content element to collapse/un-collapse.
|
* @param {string} id ID of the content element to collapse/un-collapse.
|
||||||
|
|
@ -547,6 +549,7 @@ var app = new Vue({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//TODO: Disbled
|
//TODO: Disbled
|
||||||
// $data: {
|
// $data: {
|
||||||
// handler: function(val, oldVal)
|
// handler: function(val, oldVal)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue