Permalink
Browse files

app rebranded to desantapp

  • Loading branch information...
1 parent 1646495 commit 25065b3ab8f3c368fe89c63ba16a004a8c6ad50c @nu7hatch committed Jul 23, 2012
Showing with 187 additions and 187 deletions.
  1. +1 −1 .env.sample
  2. +1 −1 .rvmrc
  3. +8 −8 README.md
  4. +3 −3 Vagrantfile
  5. +2 −2 apps/admin/app.rb
  6. +9 −9 apps/admin/assets/app/app.js
  7. +1 −1 apps/admin/assets/app/collections/cities.js
  8. +1 −1 apps/admin/assets/app/collections/countries.js
  9. +1 −1 apps/admin/assets/app/collections/mercator_data.js
  10. +1 −1 apps/admin/assets/app/collections/referers.js
  11. +1 −1 apps/admin/assets/app/collections/signups.js
  12. +3 −3 apps/admin/assets/app/helpers/scrolling.js
  13. +4 −4 apps/admin/assets/app/mixins/default_listing.js
  14. +4 −4 apps/admin/assets/app/mixins/infinite_scroll.js
  15. +1 −1 apps/admin/assets/app/models/session.js
  16. +5 −5 apps/admin/assets/app/setup.js
  17. +1 −1 apps/admin/assets/app/views/ajax_loader_view.js
  18. +2 −2 apps/admin/assets/app/views/chrome_view.js
  19. +1 −1 apps/admin/assets/app/views/listing_counter_view.js
  20. +15 −15 apps/admin/assets/app/views/locations_list_view.js
  21. +3 −3 apps/admin/assets/app/views/locations_map_view.js
  22. +10 −10 apps/admin/assets/app/views/loginform_view.js
  23. +2 −2 apps/admin/assets/app/views/navbar_view.js
  24. +8 −8 apps/admin/assets/app/views/referers_list_view.js
  25. +10 −10 apps/admin/assets/app/views/signups_view.js
  26. +1 −1 apps/admin/forms/login_form.rb
  27. +2 −2 apps/admin/loggers/login_logger.rb
  28. +1 −1 apps/admin/presenters/cities_presenter.rb
  29. +1 −1 apps/admin/presenters/countries_presenter.rb
  30. +1 −1 apps/admin/presenters/latest_signups_presenter.rb
  31. +1 −1 apps/admin/presenters/referers_presenter.rb
  32. +2 −2 apps/admin/spec/forms/login_form_spec.rb
  33. +5 −5 apps/admin/spec/presenters/cities_presenter_spec.rb
  34. +5 −5 apps/admin/spec/presenters/countries_presenter_spec.rb
  35. +4 −4 apps/admin/spec/presenters/latest_signups_presenter_spec.rb
  36. +5 −5 apps/admin/spec/presenters/referer_presenters_spec.rb
  37. +3 −3 apps/admin/views/layout.erb
  38. +2 −2 apps/core/app.rb
  39. +3 −3 apps/core/assets/app/app.js
  40. +1 −1 apps/core/assets/app/helpers/common_helpers.js
  41. +2 −2 apps/core/assets/app/mixins/enable_form.js
  42. +2 −2 apps/core/assets/app/models/signup.js
  43. +2 −2 apps/core/assets/app/setup.js
  44. +3 −3 apps/core/assets/app/views/flash_view.js
  45. +9 −9 apps/core/assets/app/views/signup_view.js
  46. +1 −1 apps/core/helpers/metric_helpers.rb
  47. +2 −2 apps/core/loggers/signup_logger.rb
  48. +1 −1 apps/core/models/signup.rb
  49. +1 −1 apps/core/services/signup_service.rb
  50. +10 −10 apps/core/spec/models/signup_spec.rb
  51. +3 −3 apps/core/spec/services/signup_service_spec.rb
  52. +1 −1 apps/core/spec/support/blueprints.rb
  53. +1 −1 apps/core/views/index.erb
  54. +3 −3 apps/core/views/layout.erb
  55. +2 −2 boot.rb
  56. +2 −2 config.ru
  57. +1 −1 config/001_apps.rb
  58. +2 −2 lib/{airstrip.rb → desant.rb}
  59. +1 −1 lib/{airstrip → desant}/version.rb
  60. +2 −2 lib/tasks/populate.rake
  61. +1 −1 spec/spec_helper.rb
View
@@ -1,7 +1,7 @@
RACK_ENV=development
DATABASE_ADAPTER=mysql2
-DATABASE_NAME=airstrip
+DATABASE_NAME=desant
DATABASE_HOST=localhost
DATABASE_PORT=3306
DATABASE_USER=
View
2 .rvmrc
@@ -1,3 +1,3 @@
rvm_gemset_create_on_use_flag=1
rvm_project_rvmrc_default=1
-rvm ruby-1.9.3-p194@airstrip
+rvm ruby-1.9.3-p194@desant
View
@@ -1,18 +1,18 @@
-# Airstrip - Open Source Landing Pages!
+# Desant - Open Source Landing Pages!
-_Airstrip_ is an open source, neat landing page application. It's simple to
+_Desant_ is an open source, neat landing page application. It's simple to
use, customize and extend to your needs. There's an awesome admin area
too - it will give you all the information and statistics you need.
## Quick start with Vagrant
-There's a public Vagrant box configured to run with _Airstrip_. You can hop
+There's a public Vagrant box configured to run with _Desant_. You can hop
into the project qucikly by running:
$ gem install vagrant # if not installed yet
$ vagrant up
$ vagrant ssh
- vagrant@vagrant:~$ cd airstrip
+ vagrant@vagrant:~$ cd desant
Now just go and perform traditional installation steps described below.
@@ -22,7 +22,7 @@ First of all, install all the dependencies using _Bundler_:
$ bundle
-_Airstrip_ uses _MySQL_ or _PostgresSQL_ as backend, so you should have
+_Desant_ uses _MySQL_ or _PostgresSQL_ as backend, so you should have
one of these databases installed and running. First, copy `.env.sample`
to `.env` - this file contains i.a. database configuration and admin setup:
@@ -74,7 +74,7 @@ rake task:
## Design introduction
-_Airstrip_ is not a Rails app, it's an experiment with full stack, single
+_Desant_ is not a Rails app, it's an experiment with full stack, single
page application in _Backbone.js_ managed by _Sinatra_ backend. Here's
the directory structure explained:
@@ -107,7 +107,7 @@ are routed in config.ru, with standard Rack::Router.
The main goal of the experiment was to provide system for easy and robust
work on _Backbone.js_ application and reusable backend elements. It's also
aims to get rid of stupid Rails' assumptions that action = page, and models
-are used both in forms and presentations. In _Airstrip_, **models** are separated
+are used both in forms and presentations. In _Desant_, **models** are separated
from **forms** and **presenters**. Model takes care about business logic, when
forms handle input and presenters output. More sophisticated operations
are handled with **services**. This design makes the stuff easy to test
@@ -117,4 +117,4 @@ and reuse across the projects.
Copyright (C) 2012 by Chris Kowalik a.k.a nu7hatch
-_Airstrip_ is distributed under an MIT-style license. See LICENSE for details.
+_Desant_ is distributed under an MIT-style license. See LICENSE for details.
View
@@ -3,11 +3,11 @@
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
- config.vm.box = "airstrip"
+ config.vm.box = "desantapp"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
- config.vm.box_url = "https://dl.dropbox.com/s/693uz0riijn60ia/ubuntu-precise-server-x64-airstrip.box?dl=1"
+ config.vm.box_url = "https://dl.dropbox.com/s/693uz0riijn60ia/ubuntu-precise-server-x64-desantapp.box?dl=1"
# Boot with a GUI so you can see the screen. (Default is headless)
# config.vm.boot_mode = :gui
@@ -34,5 +34,5 @@ Vagrant::Config.run do |config|
# Share an additional folder to the guest VM. The first argument is
# an identifier, the second is the path on the guest to mount the
# folder, and the third is the path on the host to the actual folder.
- config.vm.share_folder "v-root", "/home/vagrant/airstrip", "", :nfs => true
+ config.vm.share_folder "v-root", "/home/vagrant/desant", "", :nfs => true
end
View
@@ -5,11 +5,11 @@
require_rel 'forms'
require_rel 'loggers'
-module Airstrip
+module Desant
module Admin
class App < Reusable::Application
# Configuration
- set :app_title, "Airstrip Admin"
+ set :app_title, "Desant Admin"
set :root, File.dirname(__FILE__)
# Custom extensions.
@@ -1,4 +1,4 @@
-Airstrip.Admin.Router = Backbone.Router.extend({
+Desant.Admin.Router = Backbone.Router.extend({
routes: {
'admin': 'home',
'admin/': 'home',
@@ -10,32 +10,32 @@ Airstrip.Admin.Router = Backbone.Router.extend({
},
initialize: function() {
- this.session = new Airstrip.Admin.Session();
+ this.session = new Desant.Admin.Session();
},
home: function() {
- Airstrip.Admin.chromeView.makeSureRender()
+ Desant.Admin.chromeView.makeSureRender()
this.navigate('admin/signups', true)
},
login: function() {
- Airstrip.Admin.loginFormView = new Airstrip.Admin.LoginFormView()
- Airstrip.Admin.loginFormView.render()
+ Desant.Admin.loginFormView = new Desant.Admin.LoginFormView()
+ Desant.Admin.loginFormView.render()
},
signupsList: function() {
- (new Airstrip.Admin.SignupsListView()).render()
+ (new Desant.Admin.SignupsListView()).render()
},
citiesList: function() {
- (new Airstrip.Admin.LocationsListView({ group: 'cities' })).render()
+ (new Desant.Admin.LocationsListView({ group: 'cities' })).render()
},
countriesList: function() {
- (new Airstrip.Admin.LocationsListView({ group: 'countries' })).render()
+ (new Desant.Admin.LocationsListView({ group: 'countries' })).render()
},
referersList: function() {
- (new Airstrip.Admin.ReferersListView()).render()
+ (new Desant.Admin.ReferersListView()).render()
},
})
@@ -4,7 +4,7 @@
*
* This collection is paginated.
*/
-Airstrip.Admin.Cities = Backbone.Collection.extend({
+Desant.Admin.Cities = Backbone.Collection.extend({
url: function() {
return '/admin/api/cities?page=' + this.page
},
@@ -4,7 +4,7 @@
*
* This collection is paginated.
*/
-Airstrip.Admin.Countries = Backbone.Collection.extend({
+Desant.Admin.Countries = Backbone.Collection.extend({
url: function() {
return '/admin/api/countries?page=' + this.page
},
@@ -2,7 +2,7 @@
* Public: A collection of the data used to display markers on
* the locations (cities or countries) graph.
*/
-Airstrip.Admin.MercatorData = Backbone.Collection.extend({
+Desant.Admin.MercatorData = Backbone.Collection.extend({
url: function() {
return "/admin/api/" + this.options.group + "/map"
},
@@ -4,7 +4,7 @@
*
* This collection is paginated.
*/
-Airstrip.Admin.Referers = Backbone.Collection.extend({
+Desant.Admin.Referers = Backbone.Collection.extend({
url: function() {
return '/admin/api/referers?page=' + this.page
},
@@ -4,7 +4,7 @@
*
* This collection is paginated.
*/
-Airstrip.Admin.Signups = Backbone.Collection.extend({
+Desant.Admin.Signups = Backbone.Collection.extend({
url: function() {
return '/admin/api/signups?page=' + this.page
},
@@ -6,7 +6,7 @@
* callback - A Function callback to be exectuted.
*
*/
-Airstrip.Admin.whenScrollReached = function(cond, callback) {
+Desant.Admin.whenScrollReached = function(cond, callback) {
$window = $(window)
scrollTop = $window.scrollTop()
triggerPoint = $(document).height() - $window.height() - 100;
@@ -22,7 +22,7 @@ Airstrip.Admin.whenScrollReached = function(cond, callback) {
* callback - A Function callback to be bound with scrolling.
*
*/
-Airstrip.Admin.bindScroll = function(callback) {
+Desant.Admin.bindScroll = function(callback) {
$window = $(window)
$window.unbind('scroll')
$window.scroll(callback)
@@ -31,6 +31,6 @@ Airstrip.Admin.bindScroll = function(callback) {
/**
* Public: Unbinds all window's scroll callbacks.
*/
-Airstrip.Admin.unbindScroll = function() {
+Desant.Admin.unbindScroll = function() {
$(window).unbind('scroll')
}
@@ -14,15 +14,15 @@
* }
* })
*
- * _.extend(UsersListItemsView.prototype, Airstrip.Admin.Mixins.DefaultListing)
+ * _.extend(UsersListItemsView.prototype, Desant.Admin.Mixins.DefaultListing)
*
*/
-Airstrip.Admin.Mixins.DefaultListing = {
+Desant.Admin.Mixins.DefaultListing = {
/**
* Public: Initializes listing configuration.
*/
initListing: function() {
- this.counter = new Airstrip.Admin.ListingCounterView()
+ this.counter = new Desant.Admin.ListingCounterView()
this.isLoading = false
this.showEmpty = true
this.done = false
@@ -50,7 +50,7 @@ Airstrip.Admin.Mixins.DefaultListing = {
}
},
error: function(collection, resp) {
- Airstrip.renderFlash('error', "Couldn't load content for the page!")
+ Desant.renderFlash('error', "Couldn't load content for the page!")
}
}).complete(function() {
self.isLoading = false
@@ -11,15 +11,15 @@
* }
* })
*
- * _.extend(UsersListView.prototype, Airstrip.Admin.Mixins.InifiniteScrollListing)
+ * _.extend(UsersListView.prototype, Desant.Admin.Mixins.InifiniteScrollListing)
*/
-Airstrip.Admin.Mixins.InifiniteScrollListing = {
+Desant.Admin.Mixins.InifiniteScrollListing = {
/**
* Public: Initializez infinite scrolling configuration.
*/
initScroll: function() {
_.bindAll(this, 'checkScroll')
- Airstrip.Admin.bindScroll(this.checkScroll)
+ Desant.Admin.bindScroll(this.checkScroll)
},
/**
@@ -32,7 +32,7 @@ Airstrip.Admin.Mixins.InifiniteScrollListing = {
var self = this
condition = !this.items.isLoading && !this.items.done
- Airstrip.Admin.whenScrollReached(condition, function() {
+ Desant.Admin.whenScrollReached(condition, function() {
self.items.render()
})
}
@@ -2,7 +2,7 @@
* Public; Admin sessions logic. App should have one global
* instance of this model (eg. app.session).
*/
-Airstrip.Admin.Session = Backbone.Model.extend({
+Desant.Admin.Session = Backbone.Model.extend({
url: '/admin/session',
defaults: {
@@ -20,18 +20,18 @@
//
//= require ./app
-window.Airstrip = {
+window.Desant = {
Mixins: {},
}
-window.Airstrip.Admin = {
+window.Desant.Admin = {
Mixins: {},
}
$(function() {
- Airstrip.Admin.router = new Airstrip.Admin.Router();
- app = Airstrip.Admin.router
+ Desant.Admin.router = new Desant.Admin.Router();
+ app = Desant.Admin.router
app.session.fetch().complete(function() {
- Airstrip.Admin.chromeView = new Airstrip.Admin.ChromeView()
+ Desant.Admin.chromeView = new Desant.Admin.ChromeView()
Backbone.history.start({ pushState: true })
})
})
@@ -3,7 +3,7 @@
* to all the ajax start/stop events, so you don't have to worry
* about it at all.
*/
-Airstrip.Admin.AjaxLoaderView = Backbone.View.extend({
+Desant.Admin.AjaxLoaderView = Backbone.View.extend({
el: '#ajax_loader',
events: {
@@ -4,7 +4,7 @@
* Application should have global instance of this view (eg.
* app.chromeView).
*/
-Airstrip.Admin.ChromeView = Backbone.View.extend({
+Desant.Admin.ChromeView = Backbone.View.extend({
el: '#yield',
template: JST['templates/admin/chrome'],
@@ -19,7 +19,7 @@ Airstrip.Admin.ChromeView = Backbone.View.extend({
render: function() {
this.$el.html(this.template())
this.$el.addClass('logged')
- this.navbarView = (new Airstrip.Admin.NavbarView()).render()
+ this.navbarView = (new Desant.Admin.NavbarView()).render()
return this
},
@@ -2,7 +2,7 @@
* Public: This is a view for listing counters. It shows a number
* of the items displayed compared to total count of the listing.
*/
-Airstrip.Admin.ListingCounterView = Backbone.View.extend({
+Desant.Admin.ListingCounterView = Backbone.View.extend({
el: '#counter',
template: JST['templates/admin/listing_counter'],
Oops, something went wrong.

0 comments on commit 25065b3

Please sign in to comment.