Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
latest-firmware [2021/02/22 14:06]
127.0.0.1 external edit
latest-firmware [2021/02/22 14:37] (current)
arthur
Line 1: Line 1:
  
 <callout type="primary" icon="true" title="Latest Smoothie commits"> <callout type="primary" icon="true" title="Latest Smoothie commits">
-{{ :/start/icon-oshw.png?40}}+{{ :start/icon-oshw.png?40|}}
  
 <html> <html>
Line 41: Line 41:
  
   data: {   data: {
-    branches: [['edge',|'master']],+    branches: ['edge', 'master'],
     currentBranch: 'edge',     currentBranch: 'edge',
     commits: null     commits: null
Line 71: Line 71:
       xhr.onload = function () {       xhr.onload = function () {
         self.commits = JSON.parse(xhr.responseText)         self.commits = JSON.parse(xhr.responseText)
-        console.log(self.commits[[0|]].html_url)+        console.log(self.commits[0].html_url)
       }       }
       xhr.send()       xhr.send()
Line 87: Line 87:
  
  
-  <p>smoothieware@{{ /currentBranch }}</p>+  <p>smoothieware@{{ currentBranch }}</p>
   <ul>   <ul>
     <li v-for="record in commits">     <li v-for="record in commits">
-      <a :href="record.html_url" target="_blank" class="commit">{{ /record.sha.slice(0, 7) }}</a> +      <a :href="record.html_url" target="_blank" class="commit">{{ record.sha.slice(0, 7) }}</a> 
-      - <span class="message">{{ /record.commit.message  }}</span><br> +      - <span class="message">{{ record.commit.message | truncate }}</span><br> 
-      by <span class="author"><a :href="record.author.html_url" target="_blank">{{ /record.commit.author.name }}</a></span> +      by <span class="author"><a :href="record.author.html_url" target="_blank">{{ record.commit.author.name }}</a></span> 
-      at <span class="date">{{ /record.commit.author.date  }}</span>+      at <span class="date">{{ record.commit.author.date | formatDate }}</span>
     </li>     </li>
   </ul>   </ul>
Line 117: Line 117:
  
 </callout> </callout>
-