rsence-pre 3.0.0.2 → 3.0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/client/README.md +57 -9
- data/client/js/datetime/calendar_pulldown/calendar_pulldown.coffee +4 -4
- data/client/js/menus/minimenu/minimenu.js +1 -0
- 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: 0d5815813e6446789184142c879d2221cc257b32
|
4
|
+
data.tar.gz: 65c160a4a11eed947c52cd188a8cab225d45e43b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f9f5b6a7e55bb928b15aa757255ed6d0703e20607072101064b4ea1a0fb49df0c41920e32fd6c465e58f3f5eec7d09292e142d738af192e7d85bad1ee0ad0d
|
7
|
+
data.tar.gz: 379816290d414e03d88d65b996666ef0f277a7edd9c7104e5802311231378de474d7939efc1144217d082fb0d16cfcecff3392e87988fbd8f3a6294c3c41bb79
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.0.
|
1
|
+
3.0.0.3.pre
|
data/client/README.md
CHANGED
@@ -1,17 +1,65 @@
|
|
1
|
-
# About rsnc.js
|
2
1
|
|
3
|
-
|
4
|
-
|
2
|
+
*rsnc.js* is a client-side single page framework for
|
3
|
+
rapidly developing large and complex webapps with minimal effort.
|
4
|
+
All component classes follow the same basic API no matter what
|
5
|
+
your widgets look like. Theming is done by simple component-
|
6
|
+
and theme-specific html and css templates.
|
7
|
+
UI construction can be done using just a simple
|
8
|
+
[YAML][yaml_site] / [JSON][json_site]
|
9
|
+
structure format, which even beginners can rapidly prototype
|
10
|
+
with.
|
5
11
|
|
6
|
-
|
7
|
-
|
12
|
+
For more advanced users, there is a nice [API][rsnc_api] which supports
|
13
|
+
[CoffeeScript][coffeescript] and JS.
|
8
14
|
|
9
|
-
##
|
15
|
+
## Usage
|
10
16
|
Clone this repository into the root of an RSence repository clone as 'client'.
|
11
|
-
|
17
|
+
|
18
|
+
(install the [dependencies](#))
|
12
19
|
git clone git@rsence.org:rsence.git rsence
|
13
20
|
git clone git@rsence.org:rsnc.git rsence/client
|
21
|
+
(run your code, see [examples](#))
|
22
|
+
|
23
|
+
## Facts
|
24
|
+
|
25
|
+
*rsnc.js* is an object-oriented framework and classes are
|
26
|
+
designed to be extended. The superclasses do all the difficult
|
27
|
+
housekeeping for you. Client-server as well as client-client communication
|
28
|
+
is done via automatic value synchronization.
|
29
|
+
|
30
|
+
Interdependencies are kept at a minimum, so you don't have
|
31
|
+
to worry about referencing your variables throughout various
|
32
|
+
parts of your project, and `this` is practically always `this`.
|
33
|
+
|
34
|
+
If you are using the [RSence][rsence_site] server, your
|
35
|
+
code will automatically be built and deployed to all
|
36
|
+
connected clients.
|
37
|
+
This means that while developing, you can keep
|
38
|
+
writing code and at each save, your browsers will refresh
|
39
|
+
to show the current state of progress. Besides building the
|
40
|
+
client packages and serving them, the server doesn't
|
41
|
+
participate in user interface tasks. It's entirely data
|
42
|
+
oriented, to keep your UI and data models cleanly separate.
|
43
|
+
|
44
|
+
## License
|
45
|
+
*rsnc.js* is licensed under the [MIT license][rsnc_license].
|
46
|
+
You are encouraged to [fork it on Github][github_rsnc] and to write your own
|
47
|
+
server interface to suit your needs. The [protocol][rsnc_protocol] is very
|
48
|
+
simple to implement and requires just a single JSON POST listener
|
49
|
+
/ responder for the [data pump][data_pump].
|
14
50
|
|
15
51
|
## More information:
|
16
|
-
[rsnc
|
17
|
-
[
|
52
|
+
* [rsnc.js Website][rsnc_site]
|
53
|
+
* [RSence Website](rsence_site)
|
54
|
+
* `#rsence` on FreeNode
|
55
|
+
|
56
|
+
[yaml_site]: http://yaml.org/
|
57
|
+
[json_site]: http://json.org/
|
58
|
+
[rsnc_api]: http://rsnc.io/api/
|
59
|
+
[coffeescript]: http://coffeescript.org
|
60
|
+
[rsnc_site]: http://rsnc.io/
|
61
|
+
[rsence_site]: http://rsence.org/
|
62
|
+
[data_pump]: http://rsnc.io/data_pump/
|
63
|
+
[rsnc_protocol]: http://rsnc.io/protocol/
|
64
|
+
[github_rsnc]: https://github.com/jammi/rsnc/
|
65
|
+
[rsnc_license]: MIT-LICENSE.txt
|
@@ -11,13 +11,13 @@ HCalendarPulldown = HMiniMenu.extend
|
|
11
11
|
calendarRect: ->
|
12
12
|
[ x, y ] = [ @pageX(), @pageY() ]
|
13
13
|
if @options.calendarHorizontalAlign == 'right'
|
14
|
-
x = x - 200 +
|
14
|
+
x = x - 200 + @rect.width
|
15
15
|
else
|
16
|
-
x = x + @rect.width
|
16
|
+
x = x + @rect.width
|
17
17
|
if @options.calendarVerticalAlign == 'bottom'
|
18
|
-
y = y - 200
|
18
|
+
y = y - 200
|
19
19
|
else
|
20
|
-
y = y
|
20
|
+
y = y
|
21
21
|
return [ x, y, 200, 200 ]
|
22
22
|
repositionMenuItems: ->
|
23
23
|
@menuItemView.setRect( @calendarRect() )
|
@@ -29,6 +29,7 @@ HMiniMenu = HRadioButtonList.extend({
|
|
29
29
|
_listItems = this.listItems ? (this.listItems.length ? this.listItems : {length:0} ) : {length:0},
|
30
30
|
h = _listItems.length*this.subComponentHeight,
|
31
31
|
i = 0;
|
32
|
+
y -= this.rect.height;
|
32
33
|
y -= (i-1)*this.subComponentHeight;
|
33
34
|
if(y < 0){
|
34
35
|
y = this.subComponentHeight%y;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsence-pre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Riassence Inc.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rsence-deps
|