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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9924e7dfa9f1be40fac1767395cb53f4855c016
4
- data.tar.gz: 79e9aaf3531ef5494142426b88ef6838a5886532
3
+ metadata.gz: 81e563d2f145372384e814a906391a8dcbfd9c90
4
+ data.tar.gz: e32d135bfd79cae9602708a24cee742bb83cf046
5
5
  SHA512:
6
- metadata.gz: f5845160a604995b0ea42460a4b34bb66d5fe0ef2203ba94c341046ea23cd78b31cd70a68b75feeec9dfbb9928e63b954843e9510ae147f9d973d6e28a47183e
7
- data.tar.gz: a2c858d32f6fe6b28aae28fbe1e63e8d91ef643c813b7fc3d1f1bfaef3d9a9d3e7ace4b445937ef090c48c273ef92fb539555bdf76e5e9427876230a54675636
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
  }
@@ -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
@@ -54,6 +54,7 @@ module Carte
54
54
  end
55
55
 
56
56
  get '/app.js' do
57
+ cache_control :public
57
58
  send_file settings.carte['script_path']
58
59
  end
59
60
 
@@ -2,6 +2,6 @@ require 'sinatra/base'
2
2
 
3
3
  module Carte
4
4
  class Server < Sinatra::Base
5
- VERSION = "0.0.10"
5
+ VERSION = "0.0.11"
6
6
  end
7
7
  end
data/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "carte-client",
3
3
  "description": "something like dictionary, wiki, or information card",
4
- "version": "0.0.10",
4
+ "version": "0.0.11",
5
5
  "main": "lib/carte.coffee",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
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.10
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-03 00:00:00.000000000 Z
11
+ date: 2015-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler