carte-server 0.0.8 → 0.0.9

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: 62e6b5113d7bafffdb2e35701cabd5a01ae26532
4
- data.tar.gz: 8f4dd2dee37acd726a75e5c4477e5d7ec325e4ab
3
+ metadata.gz: 2f6b43e925dea02cd986b8267fd5bf77d8ff88ef
4
+ data.tar.gz: df37f4fd415e613d6ae5af207c9db1f620c9e049
5
5
  SHA512:
6
- metadata.gz: af45cdb68b5f9de14cfc855e1199453ba0762f41bd6a781dd0e9f5db467f86713da9bd29f138d419e77b8d3bfbff7de045a30a972baf2f28b1631fdc9029853c
7
- data.tar.gz: 015f9690877ab8a0f6ac5ca9f982b1774163ed38a9fef3fe237f02a516b1278403af5897a1d6f9e4f9113b6eb141030a84f94639b80dee25de4b13f3059fc299
6
+ metadata.gz: 5db00e8726f2a0a85986436437d857b9698d9ca92fa11c912bde8accaaff01dc7397b05d6a7c8dc6ae35c8ab431ae1a9c1edd863055158ddb3997b92b14dcd86
7
+ data.tar.gz: 06100017a72c998eafd854b558273c6b7b533170a7180163edff5105542a023878c62893db087a64f123c55ee252ec92880a400573ecb251e92742dd6a5040a0
@@ -58,7 +58,7 @@ module.exports = React.createClass
58
58
  {
59
59
  if @props.card.get("tags")
60
60
  @props.card.get("tags").map (tag)->
61
- <span className="pull-right tools">&nbsp;&nbsp;<a href={"/#/?tags=" + tag}><i className="glyphicon glyphicon-tag" />&nbsp;{tag}</a></span>
61
+ <span className="pull-right tools">&nbsp;&nbsp;<a href={"#/?tags=" + tag}><i className="glyphicon glyphicon-tag" />&nbsp;{tag}</a></span>
62
62
  }
63
63
  </div>
64
64
  </div>
@@ -47,13 +47,13 @@ module.exports = React.createClass
47
47
  <div className="row">
48
48
  <div className="col-sm-6" style={{padding:"0px"}}>
49
49
  <ul className="nav nav-pills">
50
- <li><a 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>
51
- <li><a 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>
52
- <li><a href={"/#/?" + @randomParam()} style={{padding:'6px 12px',fontWeight: if @props.cards.query.order == 'random' then 'bold' else 'normal'}}>Random</a></li>
50
+ <li><a 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>
51
+ <li><a 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>
52
+ <li><a href={"#/?" + @randomParam()} style={{padding:'6px 12px',fontWeight: if @props.cards.query.order == 'random' then 'bold' else 'normal'}}>Random</a></li>
53
53
  {
54
54
  if @props.cards.query.tags
55
55
  @props.cards.query.tags.split(',').map (tag)=>
56
- <li><a href={"/#/?" + @tagParam(tag)} style={padding:'6px 12px'}><i className="glyphicon glyphicon-tag" />&nbsp;{tag}</a></li>
56
+ <li><a href={"#/?" + @tagParam(tag)} style={padding:'6px 12px'}><i className="glyphicon glyphicon-tag" />&nbsp;{tag}</a></li>
57
57
  }
58
58
  </ul>
59
59
  </div>
@@ -64,7 +64,7 @@ module.exports = React.createClass
64
64
  <li>
65
65
  {
66
66
  if @props.cards.page
67
- <a href={"/#/?" + @randomParam()} style={{padding:'6px 12px'}}>
67
+ <a href={"#/?" + @randomParam()} style={{padding:'6px 12px'}}>
68
68
  <i className="glyphicon glyphicon-refresh" />
69
69
  </a>
70
70
  else
@@ -83,7 +83,7 @@ module.exports = React.createClass
83
83
  <div className="row">
84
84
  <div className="col-sm-12" style={{padding:"0px"}}>
85
85
  <ul className="nav nav-pills">
86
- <li><a href={"/#/" + @props.card.get('title')} style={fontWeight:'bold'}>{@props.card.get('title')}</a></li>
86
+ <li><a href={"#/" + @props.card.get('title')} style={fontWeight:'bold'}>{@props.card.get('title')}</a></li>
87
87
  </ul>
88
88
  </div>
89
89
  </div>
@@ -16,9 +16,9 @@ module.exports = React.createClass
16
16
  {
17
17
  if @props.cards.page
18
18
  if @props.cards.page.current > 1
19
- href = "/#/?" + @pageParam(@props.cards.page.current - 1)
19
+ href = "#/?" + @pageParam(@props.cards.page.current - 1)
20
20
  else
21
- href = "/#/?" + @pageParam(@props.cards.page.total)
21
+ href = "#/?" + @pageParam(@props.cards.page.total)
22
22
  else
23
23
  href = "javascript:void(0)"
24
24
  <a href={href} aria-label="Previous" style={{padding:'6px 12px'}}>
@@ -29,7 +29,7 @@ module.exports = React.createClass
29
29
  <li style={width:'4.0em',textAlign:'center'}>
30
30
  {
31
31
  if @props.cards.page
32
- <a href={"/#/?" + @pageParam(@props.cards.page.current)} style={{padding:'6px 12px'}}>
32
+ <a href={"#/?" + @pageParam(@props.cards.page.current)} style={{padding:'6px 12px'}}>
33
33
  {@props.cards.page.current} / {@props.cards.page.total}
34
34
  </a>
35
35
  else
@@ -42,9 +42,9 @@ module.exports = React.createClass
42
42
  {
43
43
  if @props.cards.page
44
44
  if @props.cards.page.current < @props.cards.page.total
45
- href = "/#/?" + @pageParam(@props.cards.page.current + 1)
45
+ href = "#/?" + @pageParam(@props.cards.page.current + 1)
46
46
  else
47
- href = "/#/?" + @pageParam(1)
47
+ href = "#/?" + @pageParam(1)
48
48
  else
49
49
  href = "javascript:void(0)"
50
50
  <a href={href} aria-label="Next" style={{padding:'6px 12px'}}>
@@ -2,6 +2,6 @@ require 'sinatra/base'
2
2
 
3
3
  module Carte
4
4
  class Server < Sinatra::Base
5
- VERSION = "0.0.8"
5
+ VERSION = "0.0.9"
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.8",
4
+ "version": "0.0.9",
5
5
  "main": "lib/carte.coffee",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carte-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - tily