git ssb

3+

dangerousbeans / scuttle-vue



Commit 95abe15cae3a8bbe4acc0fd971506a9b69d3dc16

menu bar

Joran committed on 11/17/2017, 12:17:24 AM
Parent: 55cdd08baf0ea682874a8dcd25f8c44f2bb43b69

Files changed

index.htmlchanged
src/components/Message.vuechanged
src/components/Navbar.vuechanged
index.htmlView
@@ -1,14 +1,15 @@
11 <!DOCTYPE html>
22 <html lang="en">
33 <head>
44 <meta charset="utf-8">
5 + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
56 <title>ScuttleVue</title>
67 <link rel="stylesheet" href="dist/build.css">
78 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
8-<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
9-<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
10-<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
9 + <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
10 + <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
11 + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
1112 </head>
1213 <body>
1314 <div id="app"></div>
1415 <script src="dist/build.js"></script>
src/components/Message.vueView
@@ -23,10 +23,11 @@
2323 |
2424 <span >{{ relatedMessages.length }} replies</span>
2525 <button type="button" class="btn btn-outline-info btn-sm" @click="raw = !raw">Raw</button>
2626 </div>
27- <message v-for="mess in relatedMessages" :message="mess">
28- </message>
27 + <!-- {{ relatedMessages }} -->
28 + <!-- <message v-for="mess in relatedMessages" :message="mess">
29 + </message> -->
2930
3031 </div>
3132
3233
@@ -68,10 +69,10 @@
6869 if(a.length > 1)
6970 {
7071 // console.log(a)
7172 // remove last item as it's a ref to this message
72- a.splice(-1,1)
73- this.relatedMessages = a.map(function(e){ return nn(e) })
73 + a = a.splice(-1,1)
74 + this.relatedMessages = a//.map(function(e){ return nn(e) })
7475 }
7576
7677 },
7778
@@ -93,14 +94,14 @@
9394 this.$depject_api.signifier[0](
9495 this.message.value.author(), this.setAuthor
9596 )
9697
97- if(this.message.key())
98- {
99- this.$depject_api.getThread[0](
100- this.message.key(), this.setRelatedMessages
101- )
102- }
98 + // if(this.message.key())
99 + // {
100 + // this.$depject_api.getThread[0](
101 + // this.message.key(), this.setRelatedMessages
102 + // )
103 + // }
103104 this.image_url = this.$depject_api.avatar_image[0](
104105 this.message.value.author()
105106 )
106107
src/components/Navbar.vueView
@@ -1,11 +1,21 @@
11 <template>
22 <nav class="navbar navbar-light bg-light justify-content-between">
33 <span>
4- <a class="navbar-brand" href="#/public">Public</a>
5- <a class="navbar-brand" href="#/profile">Profile</a>
6- <!-- <a class="navbar-brand" href="#/infinitely">Infinite scroller</a> -->
4 + <a class="navbar-brand" href="#/">ScuttleVue❈</a>
5 +
6 + <ul class="navbar-nav mr-auto">
7 + <li class="nav-item active">
8 + <a class="nav-link" href="#/profile">Profile</a>
9 + </li>
10 + </ul>
11 +
12 + <div class="my-2 my-lg-0">
13 + Settings
14 + </div>
715 </span>
16 +
17 +
818 </nav>
919 </template>
1020
1121 <script>

Built with git-ssb-web