Skip to content

Commit 3499fd1

Browse files
committed
initial commit
0 parents  commit 3499fd1

File tree

111 files changed

+2409
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+2409
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.bundle/
2+
log/*.log
3+
pkg/
4+
test/dummy/db/*.sqlite3
5+
test/dummy/log/*.log
6+
test/dummy/tmp/
7+
test/dummy/.sass-cache

Gemfile

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
source "http://rubygems.org"
2+
3+
# Declare your gem's dependencies in lit.gemspec.
4+
# Bundler will treat runtime dependencies like base dependencies, and
5+
# development dependencies will be added by default to the :development group.
6+
gemspec
7+
8+
# jquery-rails is used by the dummy application
9+
gem "jquery-rails"
10+
gem "haml", ">= 3.0.0"
11+
gem 'ransack'
12+
gem 'kaminari'
13+
14+
# Declare any dependencies that are still in development here instead of in
15+
# your gemspec. These might include edge Rails or gems from your path or
16+
# Git. Remember to move these dependencies to your gemspec before releasing
17+
# your gem to rubygems.org.
18+
19+
# To use debugger
20+
# gem 'debugger'
21+
22+
group :assets do
23+
gem 'coffee-rails', '>= 3.0.0'
24+
end
25+
26+
group :test do
27+
gem 'capybara'
28+
gem 'database_cleaner'
29+
gem 'launchy'
30+
end
31+
32+
group :development, :test do
33+
gem 'devise'
34+
end

Gemfile.lock

+170
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
PATH
2+
remote: .
3+
specs:
4+
lit (0.0.1)
5+
bootstrap-sass (~> 2.1)
6+
haml
7+
jquery-rails
8+
kaminari
9+
rails (> 3.1.0)
10+
ransack
11+
sass-rails (~> 3.1)
12+
13+
GEM
14+
remote: http://rubygems.org/
15+
specs:
16+
actionmailer (3.2.8)
17+
actionpack (= 3.2.8)
18+
mail (~> 2.4.4)
19+
actionpack (3.2.8)
20+
activemodel (= 3.2.8)
21+
activesupport (= 3.2.8)
22+
builder (~> 3.0.0)
23+
erubis (~> 2.7.0)
24+
journey (~> 1.0.4)
25+
rack (~> 1.4.0)
26+
rack-cache (~> 1.2)
27+
rack-test (~> 0.6.1)
28+
sprockets (~> 2.1.3)
29+
activemodel (3.2.8)
30+
activesupport (= 3.2.8)
31+
builder (~> 3.0.0)
32+
activerecord (3.2.8)
33+
activemodel (= 3.2.8)
34+
activesupport (= 3.2.8)
35+
arel (~> 3.0.2)
36+
tzinfo (~> 0.3.29)
37+
activeresource (3.2.8)
38+
activemodel (= 3.2.8)
39+
activesupport (= 3.2.8)
40+
activesupport (3.2.8)
41+
i18n (~> 0.6)
42+
multi_json (~> 1.0)
43+
addressable (2.3.2)
44+
arel (3.0.2)
45+
bcrypt-ruby (3.0.1)
46+
bootstrap-sass (2.1.1.0)
47+
builder (3.0.4)
48+
capybara (1.1.2)
49+
mime-types (>= 1.16)
50+
nokogiri (>= 1.3.3)
51+
rack (>= 1.0.0)
52+
rack-test (>= 0.5.4)
53+
selenium-webdriver (~> 2.0)
54+
xpath (~> 0.1.4)
55+
childprocess (0.3.5)
56+
ffi (~> 1.0, >= 1.0.6)
57+
coffee-rails (3.2.2)
58+
coffee-script (>= 2.2.0)
59+
railties (~> 3.2.0)
60+
coffee-script (2.2.0)
61+
coffee-script-source
62+
execjs
63+
coffee-script-source (1.4.0)
64+
database_cleaner (0.9.1)
65+
devise (2.1.2)
66+
bcrypt-ruby (~> 3.0)
67+
orm_adapter (~> 0.1)
68+
railties (~> 3.1)
69+
warden (~> 1.2.1)
70+
erubis (2.7.0)
71+
execjs (1.4.0)
72+
multi_json (~> 1.0)
73+
ffi (1.1.5)
74+
haml (3.1.7)
75+
hike (1.2.1)
76+
i18n (0.6.1)
77+
journey (1.0.4)
78+
jquery-rails (2.1.3)
79+
railties (>= 3.1.0, < 5.0)
80+
thor (~> 0.14)
81+
json (1.7.5)
82+
kaminari (0.14.1)
83+
actionpack (>= 3.0.0)
84+
activesupport (>= 3.0.0)
85+
launchy (2.1.2)
86+
addressable (~> 2.3)
87+
libwebsocket (0.1.5)
88+
addressable
89+
mail (2.4.4)
90+
i18n (>= 0.4.0)
91+
mime-types (~> 1.16)
92+
treetop (~> 1.4.8)
93+
mime-types (1.19)
94+
multi_json (1.3.6)
95+
nokogiri (1.5.5)
96+
orm_adapter (0.4.0)
97+
polyamorous (0.5.0)
98+
activerecord (~> 3.0)
99+
polyglot (0.3.3)
100+
rack (1.4.1)
101+
rack-cache (1.2)
102+
rack (>= 0.4)
103+
rack-ssl (1.3.2)
104+
rack
105+
rack-test (0.6.2)
106+
rack (>= 1.0)
107+
rails (3.2.8)
108+
actionmailer (= 3.2.8)
109+
actionpack (= 3.2.8)
110+
activerecord (= 3.2.8)
111+
activeresource (= 3.2.8)
112+
activesupport (= 3.2.8)
113+
bundler (~> 1.0)
114+
railties (= 3.2.8)
115+
railties (3.2.8)
116+
actionpack (= 3.2.8)
117+
activesupport (= 3.2.8)
118+
rack-ssl (~> 1.3.2)
119+
rake (>= 0.8.7)
120+
rdoc (~> 3.4)
121+
thor (>= 0.14.6, < 2.0)
122+
rake (0.9.2.2)
123+
ransack (0.7.0)
124+
actionpack (~> 3.0)
125+
activerecord (~> 3.0)
126+
polyamorous (~> 0.5.0)
127+
rdoc (3.12)
128+
json (~> 1.4)
129+
rubyzip (0.9.9)
130+
sass (3.2.1)
131+
sass-rails (3.2.5)
132+
railties (~> 3.2.0)
133+
sass (>= 3.1.10)
134+
tilt (~> 1.3)
135+
selenium-webdriver (2.25.0)
136+
childprocess (>= 0.2.5)
137+
libwebsocket (~> 0.1.3)
138+
multi_json (~> 1.0)
139+
rubyzip
140+
sprockets (2.1.3)
141+
hike (~> 1.2)
142+
rack (~> 1.0)
143+
tilt (~> 1.1, != 1.3.0)
144+
sqlite3 (1.3.6)
145+
thor (0.16.0)
146+
tilt (1.3.3)
147+
treetop (1.4.12)
148+
polyglot
149+
polyglot (>= 0.3.1)
150+
tzinfo (0.3.34)
151+
warden (1.2.1)
152+
rack (>= 1.0)
153+
xpath (0.1.4)
154+
nokogiri (~> 1.3)
155+
156+
PLATFORMS
157+
ruby
158+
159+
DEPENDENCIES
160+
capybara
161+
coffee-rails (>= 3.0.0)
162+
database_cleaner
163+
devise
164+
haml (>= 3.0.0)
165+
jquery-rails
166+
kaminari
167+
launchy
168+
lit!
169+
ransack
170+
sqlite3

MIT-LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 2012 YOURNAME
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.rdoc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
= Lit
2+
3+
Translate your apps with pleasure (sort of...) and for free ;)
4+
5+
6+
7+
Highly inspired by Copycopter
8+
9+
This project rocks and uses MIT-LICENSE.

Rakefile

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env rake
2+
begin
3+
require 'bundler/setup'
4+
rescue LoadError
5+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6+
end
7+
begin
8+
require 'rdoc/task'
9+
rescue LoadError
10+
require 'rdoc/rdoc'
11+
require 'rake/rdoctask'
12+
RDoc::Task = Rake::RDocTask
13+
end
14+
15+
RDoc::Task.new(:rdoc) do |rdoc|
16+
rdoc.rdoc_dir = 'rdoc'
17+
rdoc.title = 'Lit'
18+
rdoc.options << '--line-numbers'
19+
rdoc.rdoc_files.include('README.rdoc')
20+
rdoc.rdoc_files.include('lib/**/*.rb')
21+
end
22+
23+
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24+
load 'rails/tasks/engine.rake'
25+
26+
27+
28+
Bundler::GemHelper.install_tasks
29+
30+
require 'rake/testtask'
31+
32+
Rake::TestTask.new(:test) do |t|
33+
t.libs << 'lib'
34+
t.libs << 'test'
35+
t.pattern = 'test/**/*_test.rb'
36+
t.verbose = false
37+
end
38+
39+
40+
task :default => :test

app/assets/images/lit/.gitkeep

Whitespace-only changes.
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// the compiled file.
9+
//
10+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11+
// GO AFTER THE REQUIRES BELOW.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require jquery-ui
16+
//= require bootstrap
17+
//= require_tree .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jQuery ->
2+
$("a[rel=popover]").popover()
3+
$(".tooltip").tooltip()
4+
$("a[rel=tooltip]").tooltip()
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Place all the behaviors and hooks related to the matching controller here.
2+
// All this logic will automatically be available in application.js.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$(document).ready ->
2+
$('td.localization_row').on 'click', ->
3+
$this = $(this)
4+
unless parseInt($this.data('editing'))
5+
$.get $this.data('edit')
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the top of the
9+
* compiled file, but it's generally better to create a new file per style scope.
10+
*
11+
*= require_self
12+
*= require './bootstrap_and_overrides.css'
13+
*/
14+
.detail_wrapper{
15+
padding: 10px 0 0 50px;
16+
}
17+
.detail_wrapper table tr td.locale_row{
18+
width: 50px;
19+
}
20+
.localization_key_row .localization_keys_options{
21+
display: none;
22+
float: right;
23+
}
24+
.localization_key_row:hover .localization_keys_options{
25+
display: block;
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Set the correct sprite paths
2+
$iconSpritePath: asset-url('glyphicons-halflings.png', image);
3+
$iconWhiteSpritePath: asset-url('glyphicons-halflings-white.png', image);
4+
$baseFontSize: 13px;
5+
$baseLineHeight: 18px;
6+
@import "bootstrap";
7+
body { padding-top: 60px; }
8+
@import "bootstrap-responsive";
9+
10+
.btn-invite {
11+
&:active, &.active {
12+
background-color: #99cc99; } }
13+
14+
.btn-save {
15+
&:active, &.active {
16+
background-color: #cccc66; } }
17+
18+
.btn-discard {
19+
&:active, &.active {
20+
background-color: #cc9999; } }
21+
h1 { font-size: 30px; line-height: 36px; }
22+
h2 { font-size: 24px; line-height: 36px; }
23+
h3 { font-size: 18px; line-height: 27px; }
24+
h4 { font-size: 14px; line-height: 18px; }
25+
h5 { font-size: 12px; line-height: 18px; }
26+
h6 { font-size: 11px; line-height: 18px; }
27+
28+
h1 small { font-size: 18px; }
29+
h2 small { font-size: 18px; }
30+
h3 small { font-size: 14px; }
31+
h4 small { font-size: 12px; }
32+
h1, h2, h3, h4, h5, h6 {
33+
color: inherit;
34+
font-family: inherit;
35+
font-weight: bold;
36+
margin: 0;
37+
text-rendering: optimizelegibility;
38+
}
39+
h6 {
40+
color: #999999;
41+
font-size: 11px;
42+
text-transform: uppercase;
43+
}
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
Place all the styles related to the matching controller here.
3+
They will automatically be included in application.css.
4+
*/

0 commit comments

Comments
 (0)