This commit is contained in:
Jason Snelders 2019-11-16 22:13:22 +11:00
parent 243b48be8e
commit cf0545a7b8
4 changed files with 7 additions and 7 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}

View File

@ -77,11 +77,11 @@ var app = new Vue({
this.sections = sections.getDefaultSections(); this.sections = sections.getDefaultSections();
//-- Register all components //-- Register all components
components.registerComponents(); pageComponents.registerComponents();
//-- Get the component for the initial route path //-- Get the component for the initial route path
var initialRoute = this.$route.path; var initialRoute = this.$route.path;
var component = components.getComponentByPath(initialRoute); var component = pageComponents.getComponentByPath(initialRoute);
this.setActivePageByComponent(component); this.setActivePageByComponent(component);
}, },
@ -486,7 +486,7 @@ var app = new Vue({
this.selectMenuItemForCurrentUrl(); this.selectMenuItemForCurrentUrl();
// Set the current page details based on the component mapped to the active route. // Set the current page details based on the component mapped to the active route.
var component = components.getComponentByPath(to.fullPath); var component = pageComponents.getComponentByPath(to.fullPath);
this.setActivePageByComponent(component); this.setActivePageByComponent(component);
}, },

View File

@ -2,7 +2,7 @@
* Register and manage all components. * Register and manage all components.
* This is not a part of VueJS. It is a helper so we can easily access information about each component. * This is not a part of VueJS. It is a helper so we can easily access information about each component.
*/ */
var components = { var pageComponents = {
/** /**

View File

@ -134,9 +134,6 @@
</li> </li>
</ol> </ol>
</p> </p>
<p>
All information is automatically saved in your browser as you type, which means you can close your browser, come back tomorrow and everything will be as you left it.
</p>
<p> <p>
See it in action now. Copy a resume from <a href="https://gist.github.com/jsnelders/cab89beb9bc0e677ef3f5ec30ef4260b">https://gist.github.com/jsnelders/cab89beb9bc0e677ef3f5ec30ef4260b</a>. See it in action now. Copy a resume from <a href="https://gist.github.com/jsnelders/cab89beb9bc0e677ef3f5ec30ef4260b">https://gist.github.com/jsnelders/cab89beb9bc0e677ef3f5ec30ef4260b</a>.
</p> </p>