History

Finish Vue.js scraper

Thibaut committed 11 years ago

Commit f1cef991 parent eea35dd16 files · +46 −26Browse files

Showing the changes to assets/javascripts (4 of 16 files). Show all

Unified · Split

4 files
  1. assets/javascripts/news.json +1 −1
  2. assets/javascripts/templates/pages/about_tmpl.coffee +5 −0
  3. assets/javascripts/views/pages/javascript.coffee +1 −0
  4. assets/javascripts/views/pages/vue.coffee +0 −14
assets/javascripts/news.json+1−1
@@ -1,7 +1,7 @@
1[1[
2 [2 [
3 "2015-07-05",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 "2015-05-24",6 "2015-05-24",
7 "New <a href=\"/rust/\">Rust</a> documentation"7 "New <a href=\"/rust/\">Rust</a> documentation"
assets/javascripts/templates/pages/about_tmpl.coffee+5−0
@@ -360,6 +360,11 @@ credits = [ · 359 unmodified lines
360 '2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors',360 '2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors',
361 'MIT',361 'MIT',
362 'https://raw.github.com/jashkenas/underscore/master/LICENSE'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 'Webpack',369 'Webpack',
365 '2012-2015 Tobias Koppers',370 '2012-2015 Tobias Koppers',
assets/javascripts/views/pages/javascript.coffee+1−0
@@ -34,4 +34,5 @@ app.views.JavascriptPage · 33 unmodified lines
34 34
35app.views.RequirejsPage =35app.views.RequirejsPage =
36app.views.SocketioPage =36app.views.SocketioPage =
37app.views.VuePage =
37app.views.JavascriptWithMarkupCheckPage38app.views.JavascriptWithMarkupCheckPage
assets/javascripts/views/pages/vue.coffee+0−14
@@ -1,14 +0,0 @@
1#= require views/pages/base
2
3class 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