carte-server 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config.json +12 -1
- data/lib/carte/client.coffee +1 -0
- data/lib/carte/client/views/list.cjsx +2 -0
- data/lib/carte/server.rb +1 -0
- data/lib/carte/server/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81e563d2f145372384e814a906391a8dcbfd9c90
|
4
|
+
data.tar.gz: e32d135bfd79cae9602708a24cee742bb83cf046
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ab2c1163049dda3b0eed605b56ce8ac010ac8dfef5e490c9e284814b59377390882c2512bc82954395d59c39ff77c2cae21ad334e6ef1e2ec688d0a0d8e959
|
7
|
+
data.tar.gz: 7e54aab85fbaa0958e7430ae93f271c63b36d9a2862d12158d6084ca5fbd8b9d13be68fe1213bf3dfdd1ad4f7d8180119095675b9751f156306752f3dd0885c9
|
data/config.json
CHANGED
@@ -3,5 +3,16 @@
|
|
3
3
|
"description": "Sandbox for Carte",
|
4
4
|
"public_folder": "public",
|
5
5
|
"script_path": "public/app.js",
|
6
|
-
"link_color": "yellow"
|
6
|
+
"link_color": "yellow",
|
7
|
+
"api_path": "",
|
8
|
+
"models": {
|
9
|
+
"card": {
|
10
|
+
"title": {
|
11
|
+
"length": {"maximum": "170"}
|
12
|
+
},
|
13
|
+
"description": {
|
14
|
+
"length": {"maximum": "170"}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
7
18
|
}
|
data/lib/carte/client.coffee
CHANGED
@@ -7,6 +7,7 @@ Router = require('./client/router')
|
|
7
7
|
|
8
8
|
Backbone.$ = $
|
9
9
|
cssify.byUrl('//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css')
|
10
|
+
cssify.byUrl('//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css')
|
10
11
|
|
11
12
|
$(document).ready ()->
|
12
13
|
AppView = React.createFactory(AppViewComponent)
|
@@ -6,6 +6,7 @@ Cards = require('./cards')
|
|
6
6
|
CardCollection = require('../models/cards')
|
7
7
|
Pagination = require('./pagination')
|
8
8
|
helpers = require('../helpers')
|
9
|
+
config = require('../../shared/config')
|
9
10
|
|
10
11
|
module.exports = React.createClass
|
11
12
|
displayName: 'List'
|
@@ -46,6 +47,7 @@ module.exports = React.createClass
|
|
46
47
|
<li><a onClick={helpers.reload} href={"#/?" + @atozParam()} style={{padding:'6px 12px',fontWeight: if @props.cards.query.sort == 'title' and @props.cards.query.order != 'random' then 'bold' else 'normal'}}>A to Z</a></li>
|
47
48
|
<li><a onClick={helpers.reload} href={"#/?" + @latestParam()} style={{padding:'6px 12px',fontWeight: if @props.cards.query.sort == 'updated_at' and @props.cards.query.order != 'random' then 'bold' else 'normal'}}>Latest</a></li>
|
48
49
|
<li><a onClick={helpers.reload} href={"#/?" + @randomParam()} style={{padding:'6px 12px',fontWeight: if @props.cards.query.order == 'random' then 'bold' else 'normal'}}>Random</a></li>
|
50
|
+
<li><a href={config.api_path + "/api/cards.xml?" + @queryParam({}, [])} style={{padding:'6px 12px'}}><i className="fa fa-rss" /></a></li>
|
49
51
|
{
|
50
52
|
if @props.cards.query.tags
|
51
53
|
@props.cards.query.tags.split(',').map (tag)=>
|
data/lib/carte/server.rb
CHANGED
data/lib/carte/server/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carte-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tily
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|