Skip to content

Commit 570f6a0

Browse files
Embed new slides
1 parent 589db69 commit 570f6a0

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# fbreactions
2-
- Live at [fbreactions.io](fbreactions.io)
2+
- Live at [fbreactions.io](https://fbreactions.io)
33
- [港台媒體FB心情數據分析](https://slides.com/chunyinvincentlau/fbreactions)
4-
- [Making of fbreactions.io](https://slides.com/chunyinvincentlau/fbreactions-making-of/)
4+
- [Making of fbreactions.io](https://bit.ly/fbreactionsio)
55

66
# Stack
77
- UI: ES6 + angular 1.5 + webpack + semanticui

ui/index.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@
264264
方法:
265265
</h2>
266266
<div class="">
267-
<a href="https://slides.com/chunyinvincentlau/fbreactions-making-of/">Slides</a>
267+
<iframe src="//slides.com/chunyinvincentlau/fbreactionsio/embed" width="576" height="420" scrolling="no" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
268268
</div>
269269
</section>
270270
<section id="method" class="ui container center aligned">
271271
<h2 class="ui horizontal divider header">
272272
開心多啲LIKE多啲 - LIKE 我啦!
273273
</h2>
274-
<div id="like-button">
274+
<div id="like-button"></div>
275275
</section>
276276
<footer class="ui center aligned grid">
277277
<div class="row">

ui/src/app/index.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Dataviz from './dataviz.jsx'
55
// https://github.com/whatwg/fetch/issues/56
66
import { Provider, connect } from 'react-redux'
77
import { combineReducers, createStore } from 'redux'
8-
//
8+
//
99
require('./index.css')
1010
// TODO pre load locale-data
1111
import zh from 'react-intl/locale-data/zh'
@@ -45,7 +45,7 @@ function getEndpoint (location, offset) {
4545
// TODO
4646
// first load set it
4747
// cannot base on another state to reduce
48-
function selectedDate (state = '' , action) {
48+
function selectedDate (state = '', action) {
4949
switch (action.type) {
5050
case FETCH_AGG:
5151
return action.payload.selectedDate
@@ -54,7 +54,7 @@ function selectedDate (state = '' , action) {
5454
}
5555
// https://github.com/acdlite/flux-standard-action
5656
// Hacky to make use of meta to skip unrelated actions
57-
function reactionsByDay (location, state = {} , action) {
57+
function reactionsByDay (location, state = {}, action) {
5858
if (!action.payload) {
5959
return {}
6060
}
@@ -65,7 +65,7 @@ function reactionsByDay (location, state = {} , action) {
6565
}
6666
return state
6767
}
68-
function tops (location, state = [] , action) {
68+
function tops (location, state = [], action) {
6969
if (!action.payload) {
7070
return []
7171
}

ui/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var config = {
3131
{ test: /\.css$/, loader: 'style-loader!css-loader' },
3232
{ test: /\.png$/, loader: 'url-loader?limit=100000' },
3333
{ test: /\.(woff(2)?|eot|svg|ttf)$/, loaders: [
34-
'url-loader?limit=100000'
34+
'url-loader?limit=100000'
3535
] },
3636
{ test: /\.jpg$/, loader: 'file-loader' }
3737
]

0 commit comments

Comments
 (0)