diff options
author | Mark Powers <markppowers0@gmail.com> | 2019-03-16 20:01:48 -0400 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2019-03-16 20:01:48 -0400 |
commit | 13407c1acdf6a8c8893c78f2c1959e7ac8752b20 (patch) | |
tree | 69ae2f2e2ad5eed529a4d50c3a8a00a7aa83ae1e /src/html | |
parent | 23c5e6810888c30f10167405f0516f62b32d8f5b (diff) |
Update
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/admin.html | 14 | ||||
-rw-r--r-- | src/html/index.html | 17 |
2 files changed, 14 insertions, 17 deletions
diff --git a/src/html/admin.html b/src/html/admin.html index 0f98eea..a1fcec8 100644 --- a/src/html/admin.html +++ b/src/html/admin.html @@ -13,8 +13,8 @@ var feed = new Vue({ el: '#stats', data: { - stats: {ip: [], url: []}, - showIpTable: true, + stats: {cookie: [], url: []}, + showSessionTable: true, showUrlTable: true, }, created() { @@ -55,13 +55,13 @@ <div id="stats"> <h1>Stats</h1> <div> - <input type="checkbox" id="showIp" v-model="showIpTable"> - <label for="showIp">Show IP Stats</label> + <input type="checkbox" id="showSession" v-model="showSessionTable"> + <label for="showSession">Show Session Stats</label> </div> - <table class="table ip-table" v-if="showIpTable"> + <table class="table session-table" v-if="showSessionTable"> <tr><th>Host</th><th>Total Requests</th></tr> - <tr v-for="item in stats.ip"> - <td>{{item.ip}}</td><td>{{item.c}}</td> + <tr v-for="item in stats.cookie"> + <td>{{item.cookie.substring(0,10)}}...</td><td>{{item.c}}</td> </tr> </table> <div> diff --git a/src/html/index.html b/src/html/index.html index 73ed147..f004784 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -28,17 +28,14 @@ <body> <h1>Welcome to Mark's Kitchen</h1> - <div class="main-page"> - <nav class="float-left sidebar"> - <ul> - <li><a href="bread" class="btn btn-primary">Bread</a></li> - <li><a href="blog" class="btn btn-primary">Blog</a></li> - <li><a href="essay" class="btn btn-primary">Essays</a></li> - </ul> - </nav> + <nav class="titlebar"> + <a href="bread" class="btn btn-primary">Bread</a> + <a href="blog" class="btn btn-primary">Blog</a> + <a href="essay" class="btn btn-primary">Essays</a> + </nav> + + <div id="feed"></div> - <div id="feed"></div> - </div> <footer> <div>Mark Powers</div> </footer> |