Skip to content

Commit

Permalink
Commented out a lot of template components that I'm not currently using
Browse files Browse the repository at this point in the history
  • Loading branch information
christroutner committed May 20, 2018
1 parent ab2d67e commit 4ea2d28
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 50 deletions.
47 changes: 29 additions & 18 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<!-- Logo -->
<a href="index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>A</b>LT</span>
<span class="logo-mini"><b>P2P VPS</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Admin</b>LTE</span>
<span class="logo-lg"><b>P2P VPS</b></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
Expand All @@ -17,7 +17,7 @@

<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- Messages: style can be found in dropdown.less-->
<!--
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-envelope-o"></i>
Expand All @@ -26,9 +26,8 @@
<ul class="dropdown-menu">
<li class="header">You have 4 messages</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li><!-- start message -->
<li>
<a href="#">
<div class="pull-left">
<img src="/img/user2-160x160.jpg" class="img-circle" alt="User Image">
Expand All @@ -40,7 +39,7 @@
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<!-- end message -->
<li>
<a href="#">
<div class="pull-left">
Expand Down Expand Up @@ -94,7 +93,10 @@
<li class="footer"><a href="#">See All Messages</a></li>
</ul>
</li>
-->

<!-- Notifications: style can be found in dropdown.less -->
<!--
<li class="dropdown notifications-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-bell-o"></i>
Expand All @@ -103,7 +105,7 @@
<ul class="dropdown-menu">
<li class="header">You have 10 notifications</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li>
<a href="#">
Expand Down Expand Up @@ -136,7 +138,10 @@
<li class="footer"><a href="#">View all</a></li>
</ul>
</li>
-->

<!-- Tasks: style can be found in dropdown.less -->
<!--
<li class="dropdown tasks-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flag-o"></i>
Expand All @@ -145,9 +150,9 @@
<ul class="dropdown-menu">
<li class="header">You have 9 tasks</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li><!-- Task item -->
<li>
<a href="#">
<h3>
Design some buttons
Expand All @@ -161,8 +166,8 @@
</div>
</a>
</li>
<!-- end task item -->
<li><!-- Task item -->
<li>
<a href="#">
<h3>
Create a nice theme
Expand All @@ -176,8 +181,8 @@
</div>
</a>
</li>
<!-- end task item -->
<li><!-- Task item -->
<li>
<a href="#">
<h3>
Some task I need to do
Expand All @@ -191,8 +196,8 @@
</div>
</a>
</li>
<!-- end task item -->
<li><!-- Task item -->
<li>
<a href="#">
<h3>
Make beautiful transitions
Expand All @@ -206,19 +211,21 @@
</div>
</a>
</li>
<!-- end task item -->
</ul>
</li>
<li class="footer">
<a href="#">View all tasks</a>
</li>
</ul>
</li>
-->

<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="/img/profile-placeholder-white-grey.jpg" class="user-image" alt="User Image">
<span class="hidden-xs">Your Name</span>
<span class="hidden-xs">{{ this.$store.state.userInfo.username }}</span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
Expand All @@ -231,6 +238,7 @@
</p>
</li>
<!-- Menu Body -->
<!--
<li class="user-body">
<div class="row">
<div class="col-xs-4 text-center">
Expand All @@ -243,8 +251,8 @@
<a href="#">Friends</a>
</div>
</div>
<!-- /.row -->
</li>
-->
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
Expand All @@ -256,10 +264,13 @@
</li>
</ul>
</li>

<!-- Control Sidebar Toggle Button -->
<!--
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>
-->
</ul>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LeftMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<img src="/img/profile-placeholder-white-grey.jpg" class="img-circle" alt="User Image">
</div>
<div class="pull-left info">
<p>Your Name</p>
<p>{{ this.$store.state.userInfo.username }}</p>
</div>
</div>
<!-- search form -->
Expand Down
12 changes: 8 additions & 4 deletions src/components/contentHeader.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<template>
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
<h1 v-if="this.$store.state.menuState.dashboard">Dashboard</h1>
<h1 v-if="this.$store.state.menuState.marketplace">Marketplace</h1>
<h1 v-if="this.$store.state.menuState.ownedDevices">Owned Devices</h1>
<h1 v-if="this.$store.state.menuState.rentedDevices">Rented Devices</h1>
<!-- <small>Control panel</small> -->

<!--
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active">Dashboard</li>
</ol>
-->
</section>
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/components/views/marketplace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
to easily search and filter listings.
</p>
<p>
<a href="http://p2pvps.org/rent-a-vps/">Here are instructions</a> on
<a href="http://p2pvps.org/rent-a-vps/" target="_blank">Here are instructions</a> on
how to rent one of the VPSs listed below.
</p>
<br><br>
Expand Down
50 changes: 25 additions & 25 deletions src/store/mutations.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
export default {
TOGGLE_LOADING (state) {
state.callingAPI = !state.callingAPI
TOGGLE_LOADING(state) {
state.callingAPI = !state.callingAPI;
},
TOGGLE_SEARCHING (state) {
state.searching = (state.searching === '') ? 'loading' : ''
TOGGLE_SEARCHING(state) {
state.searching = state.searching === "" ? "loading" : "";
},
SET_USER (state, user) {
state.user = user
SET_USER(state, user) {
state.user = user;
},
SET_TOKEN (state, token) {
state.token = token
SET_TOKEN(state, token) {
state.token = token;
},

SET_MENU (state, newMenuState) {
state.menuState = newMenuState
SET_MENU(state, newMenuState) {
state.menuState = newMenuState;
},

SET_OWNED_DEVICES (state, newOwnedDevicesState) {
state.ownedDevices = newOwnedDevicesState
SET_OWNED_DEVICES(state, newOwnedDevicesState) {
state.ownedDevices = newOwnedDevicesState;
},
SET_RENTED_DEVICES (state, newRentedDevicesState) {
state.rentedDevices = newRentedDevicesState
SET_RENTED_DEVICES(state, newRentedDevicesState) {
state.rentedDevices = newRentedDevicesState;
},

SET_USER_ID (state, userData) {
if(userData === 'Not Logged In')
state.userInfo.GUID = 'Not Logged In'
SET_USER_ID(state, userData) {
if (userData === "Not Logged In") state.userInfo.GUID = "Not Logged In";
else {
state.userInfo.GUID = userData.user._id.toString()
state.userInfo.token = userData.token
state.userInfo.GUID = userData.user._id.toString();
state.userInfo.token = userData.token;
state.userInfo.username = userData.user.username;
}
},

UPDATE_MODAL (state, newModalData) {
state.modal = newModalData
UPDATE_MODAL(state, newModalData) {
state.modal = newModalData;

// Show the modal based on the state.
if (state.modal.show) {
$('.appModal').modal('show')
$('.appModal').modal('handleUpdate')
$(".appModal").modal("show");
$(".appModal").modal("handleUpdate");
} else {
$('.appModal').modal('hide')
$(".appModal").modal("hide");
}
}
}
};
3 changes: 2 additions & 1 deletion src/store/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export default {
notifications: [],
tasks: [],
GUID: "",
token: ""
token: "",
username: "Your Name"
},
menuState: {
dashboard: false,
Expand Down

0 comments on commit 4ea2d28

Please sign in to comment.