Showing the changes to assets/javascripts (4 of 16 files). Show all
Unified · Split
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | [ |
| 2 | 2 | [ |
| 3 | 3 | "2015-07-05", |
| 4 | − "New documentations: <a href=\"/drupal/\">Drupal</a>, <a href=\"/phaser/\">Phaser</a> and <a href=\"/webpack/\">webpack</a>" | |
| 4 | + "New documentations: <a href=\"/drupal/\">Drupal</a>, <a href=\"/vue/\">Vue.js</a>, <a href=\"/phaser/\">Phaser</a> and <a href=\"/webpack/\">webpack</a>" | |
| 5 | 5 | ], [ |
| 6 | 6 | "2015-05-24", |
| 7 | 7 | "New <a href=\"/rust/\">Rust</a> documentation" |
| @@ -360,6 +360,11 @@ credits = [ · 359 unmodified lines | ||
| 360 | 360 | '2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors', |
| 361 | 361 | 'MIT', |
| 362 | 362 | 'https://raw.github.com/jashkenas/underscore/master/LICENSE' |
| 363 | + ], [ | |
| 364 | + 'Vue.js', | |
| 365 | + '2013-2015 Evan You, Vue.js contributors', | |
| 366 | + 'MIT', | |
| 367 | + 'https://raw.githubusercontent.com/yyx990803/vue/master/LICENSE' | |
| 363 | 368 | ], [ |
| 364 | 369 | 'Webpack', |
| 365 | 370 | '2012-2015 Tobias Koppers', |
| @@ -34,4 +34,5 @@ app.views.JavascriptPage · 33 unmodified lines | ||
| 34 | 34 | |
| 35 | 35 | app.views.RequirejsPage = |
| 36 | 36 | app.views.SocketioPage = |
| 37 | +app.views.VuePage = | |
| 37 | 38 | app.views.JavascriptWithMarkupCheckPage |
| @@ -1,14 +0,0 @@ | ||
| 1 | −#= require views/pages/base | |
| 2 | − | |
| 3 | −class app.views.VuePage extends app.views.BasePage | |
| 4 | − afterRender: -> | |
| 5 | − for el in @findAllByTag('pre') | |
| 6 | − lang = if el.classList.contains('html') or el.textContent[0] is '<' | |
| 7 | − 'markup' | |
| 8 | − else if el.classList.contains('css') | |
| 9 | − 'css' | |
| 10 | − else | |
| 11 | − 'javascript' | |
| 12 | − el.setAttribute('class', '') | |
| 13 | − @highlightCode el, lang | |
| 14 | − return | |