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 @@
11 [
22 [
33 "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>"
55 ], [
66 "2015-05-24",
77 "New <a href=\"/rust/\">Rust</a> documentation"
assets/javascripts/templates/pages/about_tmpl.coffee+5−0
@@ -360,6 +360,11 @@ credits = [ · 359 unmodified lines
360360 '2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors',
361361 'MIT',
362362 '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'
363368 ], [
364369 'Webpack',
365370 '2012-2015 Tobias Koppers',
assets/javascripts/views/pages/javascript.coffee+1−0
@@ -34,4 +34,5 @@ app.views.JavascriptPage · 33 unmodified lines
3434
3535 app.views.RequirejsPage =
3636 app.views.SocketioPage =
37+app.views.VuePage =
3738 app.views.JavascriptWithMarkupCheckPage
assets/javascripts/views/pages/vue.coffee+0−14
@@ -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