Permalink
Browse files

Change as a Rails Engine gem, can not run.

  • Loading branch information...
1 parent f7bc70d commit ce88a6dbb2983641b112872d803f550b2f3fd715 @huacnlee huacnlee committed Apr 16, 2012
Showing with 487 additions and 8,208 deletions.
  1. BIN .DS_Store
  2. +1 −1 Gemfile
  3. +0 −7 Rakefile
  4. BIN app/assets/images/avatar/large.jpg
  5. BIN app/assets/images/avatar/normal.jpg
  6. BIN app/assets/images/avatar/small.jpg
  7. BIN app/assets/images/bg.png
  8. BIN app/assets/images/feed.png
  9. BIN app/assets/images/jquery.jdialog/close.gif
  10. BIN app/assets/images/jquery.jdialog/shadow.png
  11. BIN app/assets/images/rails.png
  12. +0 −111 app/assets/javascripts/bootstrap-alerts.js
  13. +0 −53 app/assets/javascripts/bootstrap-dropdown.js
  14. +0 −303 app/assets/javascripts/bootstrap-twipsy.js
  15. +0 −188 app/assets/javascripts/jquery.jdialog.js
  16. 0 app/assets/stylesheets/.gitkeep
  17. +0 −79 app/assets/stylesheets/application.scss
  18. +0 −2,363 app/assets/stylesheets/bootstrap.css
  19. +0 −23 app/assets/stylesheets/cpanel.scss
  20. +0 −36 app/assets/stylesheets/front.scss
  21. +0 −12 app/assets/stylesheets/home.scss
  22. +0 −20 app/assets/stylesheets/jquery.jdialog.scss
  23. +0 −82 app/assets/stylesheets/topics.scss
  24. +0 −21 app/assets/stylesheets/users.scss
  25. +0 −8 app/assets/stylesheets/window.scss
  26. +0 −60 app/controllers/application_controller.rb
  27. +0 −12 app/controllers/cpanel/application_controller.rb
  28. +0 −6 app/controllers/cpanel/home_controller.rb
  29. +0 −84 app/controllers/cpanel/nodes_controller.rb
  30. +0 −57 app/controllers/cpanel/photos_controller.rb
  31. +0 −87 app/controllers/cpanel/replies_controller.rb
  32. +0 −84 app/controllers/cpanel/sections_controller.rb
  33. +0 −84 app/controllers/cpanel/topics_controller.rb
  34. +0 −95 app/controllers/cpanel/users_controller.rb
  35. +0 −15 app/controllers/gridfs_controller.rb
  36. +0 −50 app/controllers/home_controller.rb
  37. +13 −0 app/controllers/homeland/application_controller.rb
  38. +19 −0 app/controllers/homeland/replies_controller.rb
  39. +134 −0 app/controllers/homeland/topics_controller.rb
  40. +0 −9 app/controllers/nodes_controller.rb
  41. +0 −74 app/controllers/notes_controller.rb
  42. +0 −106 app/controllers/photos_controller.rb
  43. +0 −18 app/controllers/replies_controller.rb
  44. +0 −137 app/controllers/topics_controller.rb
  45. +0 −10 app/controllers/users_controller.rb
  46. +0 −65 app/helpers/application_helper.rb
  47. +15 −0 app/helpers/homeland/application_helper.rb
  48. +17 −0 app/helpers/homeland/topics_helper.rb
  49. +0 −3 app/helpers/nodes_helper.rb
  50. +0 −2 app/helpers/notes_helper.rb
  51. +0 −2 app/helpers/photos_helper.rb
  52. +0 −3 app/helpers/replies_helper.rb
  53. +0 −3 app/helpers/sections_helper.rb
  54. +0 −21 app/helpers/topics_helper.rb
  55. +0 −42 app/helpers/users_helper.rb
  56. +0 −7 app/mailers/base_mailer.rb
  57. +7 −0 app/mailers/homeland/base_mailer.rb
  58. +12 −0 app/mailers/homeland/topic_mailer.rb
  59. +0 −10 app/mailers/topic_mailer.rb
  60. +0 −7 app/mailers/user_mailer.rb
  61. +0 −11 app/mailers/watch_mailer.rb
  62. +0 −13 app/models/authorization.rb
  63. +55 −0 app/models/homeland/node.rb
  64. +35 −0 app/models/homeland/reply.rb
  65. +17 −0 app/models/homeland/section.rb
  66. +96 −0 app/models/homeland/topic.rb
  67. +0 −29 app/models/mongoid/soft_delete.rb
  68. +0 −53 app/models/node.rb
  69. +0 −37 app/models/note.rb
  70. +0 −15 app/models/photo.rb
  71. +0 −148 app/models/received_mail.rb
  72. +0 −33 app/models/reply.rb
  73. +0 −15 app/models/section.rb
  74. +0 −4 app/models/setting.rb
  75. +0 −101 app/models/topic.rb
  76. +0 −130 app/models/user.rb
  77. +0 −37 app/uploaders/photo_uploader.rb
  78. BIN app/views/.DS_Store
  79. +0 −25 app/views/cpanel/home/index.html.erb
  80. +0 −30 app/views/cpanel/nodes/_form.html.erb
  81. +0 −8 app/views/cpanel/nodes/edit.html.erb
  82. +0 −31 app/views/cpanel/nodes/index.html.erb
  83. +0 −6 app/views/cpanel/nodes/new.html.erb
  84. +0 −13 app/views/cpanel/photos/_form.html.erb
  85. +0 −3 app/views/cpanel/photos/edit.html.erb
  86. +0 −25 app/views/cpanel/photos/index.html.erb
  87. +0 −8 app/views/cpanel/photos/new.html.erb
  88. +0 −20 app/views/cpanel/photos/show.html.erb
  89. +0 −26 app/views/cpanel/replies/_form.html.erb
  90. +0 −5 app/views/cpanel/replies/edit.html.erb
  91. +0 −34 app/views/cpanel/replies/index.html.erb
  92. +0 −22 app/views/cpanel/sections/_form.html.erb
  93. +0 −8 app/views/cpanel/sections/edit.html.erb
  94. +0 −28 app/views/cpanel/sections/index.html.erb
  95. +0 −7 app/views/cpanel/sections/new.html.erb
  96. +0 −46 app/views/cpanel/topics/_form.html.erb
  97. +0 −8 app/views/cpanel/topics/edit.html.erb
  98. +0 −30 app/views/cpanel/topics/index.html.erb
  99. +0 −6 app/views/cpanel/topics/new.html.erb
  100. +0 −66 app/views/cpanel/users/_form.html.erb
  101. +0 −7 app/views/cpanel/users/edit.html.erb
  102. +0 −33 app/views/cpanel/users/index.html.erb
  103. +0 −6 app/views/cpanel/users/new.html.erb
  104. +0 −12 app/views/devise/confirmations/new.html.erb
  105. +0 −5 app/views/devise/mailer/confirmation_instructions.html.erb
  106. +0 −8 app/views/devise/mailer/reset_password_instructions.html.erb
  107. +0 −7 app/views/devise/mailer/unlock_instructions.html.erb
  108. +0 −5 app/views/devise/menu/_login_items.html.erb
  109. +0 −10 app/views/devise/menu/_registration_items.html.erb
  110. +0 −31 app/views/devise/passwords/edit.html.erb
  111. +0 −24 app/views/devise/passwords/new.html.erb
  112. +0 −120 app/views/devise/registrations/edit.html.erb
  113. +0 −45 app/views/devise/registrations/new.html.erb
  114. +0 −44 app/views/devise/sessions/new.html.erb
  115. +0 −19 app/views/devise/shared/_links.erb
  116. +0 −12 app/views/devise/unlocks/new.html.erb
  117. +0 −10 app/views/errors/404.html.erb
  118. 0 app/views/{ → homeland}/replies/edit.html.erb
  119. 0 app/views/{ → homeland}/shared/_error_messages.html.erb
  120. 0 app/views/{ → homeland}/topic_mailer/got_reply.html.erb
  121. 0 vendor/plugins/fetcher/init.rb → app/views/homeland/topics/_base.html.erb
  122. +1 −1 app/views/{ → homeland}/topics/_form.html.erb
  123. +3 −4 app/views/{ → homeland}/topics/_sidebar.html.erb
  124. 0 app/views/{ → homeland}/topics/edit.html.erb
  125. 0 app/views/{ → homeland}/topics/feed.builder
  126. +2 −11 app/views/{ → homeland}/topics/index.html.erb
  127. 0 app/views/{ → homeland}/topics/new.html.erb
  128. 0 app/views/{ → homeland}/topics/show.html.erb
  129. +0 −80 app/views/layouts/application.html.erb
  130. +0 −46 app/views/layouts/cpanel.html.erb
  131. +0 −9 app/views/layouts/mailer.html.erb
  132. +0 −11 app/views/layouts/window.html.erb
  133. +0 −3 app/views/notes/_base.html.erb
  134. +0 −13 app/views/notes/_form.html.erb
  135. +0 −21 app/views/notes/_sidebar.html.erb
  136. +0 −10 app/views/notes/edit.html.erb
  137. +0 −28 app/views/notes/index.html.erb
  138. +0 −11 app/views/notes/new.html.erb
  139. +0 −28 app/views/notes/show.html.erb
  140. +0 −3 app/views/photos/create.html.erb
  141. +0 −14 app/views/photos/tiny_new.html.erb
  142. +0 −11 app/views/topics/_base.html.erb
  143. +0 −8 app/views/user_mailer/welcome.html.erb
  144. +0 −63 app/views/users/show.html.erb
  145. +0 −4 config.ru
  146. +0 −53 config/application.rb
  147. +0 −14 config/boot.rb
  148. +0 −39 config/config.yml.default
  149. +0 −6 config/environment.rb
  150. +0 −41 config/environments/development.rb
  151. +0 −72 config/environments/production.rb
  152. +0 −39 config/environments/test.rb
  153. +0 −7 config/initializers/backtrace_silencers.rb
  154. +0 −6 config/initializers/carrierwave.rb
  155. +0 −143 config/initializers/devise.rb
  156. +0 −10 config/initializers/inflections.rb
  157. +0 −5 config/initializers/mime_types.rb
  158. +0 −13 config/initializers/omniauth.rb
  159. +0 −19 config/initializers/redis.rb
  160. +0 −7 config/initializers/secret_token.rb
  161. +0 −11 config/initializers/session_store.rb
  162. +0 −8 config/initializers/will_paginate.rb
  163. +0 −39 config/locales/devise.zh-CN.yml
  164. +0 −5 config/locales/en.yml
  165. +0 −82 config/locales/zh-CN.yml
  166. +0 −23 config/mailer_daemon.yml.default
  167. +0 −24 config/mongoid.yml
  168. +0 −24 config/mongoid.yml.default
  169. +0 −11 config/redis.yml
  170. +0 −11 config/redis.yml.default
  171. +6 −32 config/routes.rb
  172. +0 −15 config/thin.yml
  173. +0 −127 db/schema.rb
  174. +0 −48 db/seeds.rb
  175. +0 −2 doc/README_FOR_APP
  176. +18 −0 homeland.gemspec
  177. +0 −74 lib/daemon.rb
  178. +7 −0 lib/homeland.rb
  179. +23 −0 lib/homeland/rails.rb
  180. +6 −0 lib/homeland/setting.rb
  181. +0 −26 public/404.html
  182. +0 −26 public/422.html
  183. +0 −26 public/500.html
  184. BIN public/favicon.ico
  185. +0 −5 public/robots.txt
  186. +0 −27 script/mailer_daemon_fetcher
  187. +0 −6 script/rails
  188. +0 −17 script/test_mail.rb
  189. 0 vendor/plugins/.gitkeep
  190. +0 −20 vendor/plugins/fetcher/MIT-LICENSE
  191. +0 −101 vendor/plugins/fetcher/README.rdoc
  192. +0 −22 vendor/plugins/fetcher/Rakefile
  193. +0 −10 vendor/plugins/fetcher/generators/fetcher_daemon/USAGE
  194. +0 −9 vendor/plugins/fetcher/generators/fetcher_daemon/fetcher_daemon_generator.rb
  195. +0 −23 vendor/plugins/fetcher/generators/fetcher_daemon/templates/config.yml
  196. +0 −27 vendor/plugins/fetcher/generators/fetcher_daemon/templates/daemon
  197. +0 −74 vendor/plugins/fetcher/generators/fetcher_daemon/templates/daemon.rb
  198. +0 −1 vendor/plugins/fetcher/install.rb
  199. +0 −22 vendor/plugins/fetcher/lib/fetcher.rb
  200. +0 −63 vendor/plugins/fetcher/lib/fetcher/base.rb
  201. +0 −88 vendor/plugins/fetcher/lib/fetcher/imap.rb
  202. +0 −50 vendor/plugins/fetcher/lib/fetcher/pop.rb
  203. +0 −12 vendor/plugins/fetcher/lib/generators/fetcher_daemon/fetcher_daemon_generator.rb
  204. +0 −21 vendor/plugins/fetcher/lib/vendor/plain_imap.rb
  205. +0 −125 vendor/plugins/fetcher/lib/vendor/secure_pop.rb
  206. +0 −4 vendor/plugins/fetcher/tasks/fetcher_tasks.rake
  207. +0 −74 vendor/plugins/fetcher/test/fetcher_test.rb
  208. +0 −1 vendor/plugins/fetcher/uninstall.rb
View
Binary file not shown.
View
@@ -1,4 +1,4 @@
-source 'http://rubygems.org'
+source 'http://ruby.taobao.org'
gem "rails", "3.1.1"
gem "bson_ext", "1.4.1"
View
@@ -1,7 +0,0 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require File.expand_path('../config/application', __FILE__)
-require 'rake'
-
-Homeland::Application.load_tasks
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
@@ -1,111 +0,0 @@
-/* ==========================================================
- * bootstrap-alerts.js v1.3.0
- * http://twitter.github.com/bootstrap/javascript.html#alerts
- * ==========================================================
- * Copyright 2011 Twitter, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ========================================================== */
-
-
-!function( $ ){
-
- /* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
- * ======================================================= */
-
- var transitionEnd
-
- $(document).ready(function () {
-
- $.support.transition = (function () {
- var thisBody = document.body || document.documentElement
- , thisStyle = thisBody.style
- , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
- return support
- })()
-
- // set CSS transition event type
- if ( $.support.transition ) {
- transitionEnd = "TransitionEnd"
- if ( $.browser.webkit ) {
- transitionEnd = "webkitTransitionEnd"
- } else if ( $.browser.mozilla ) {
- transitionEnd = "transitionend"
- } else if ( $.browser.opera ) {
- transitionEnd = "oTransitionEnd"
- }
- }
-
- })
-
- /* ALERT CLASS DEFINITION
- * ====================== */
-
- var Alert = function ( content, options ) {
- this.settings = $.extend({}, $.fn.alert.defaults, options)
- this.$element = $(content)
- .delegate(this.settings.selector, 'click', this.close)
- }
-
- Alert.prototype = {
-
- close: function (e) {
- var $element = $(this).parent('.alert-message')
-
- e && e.preventDefault()
- $element.removeClass('in')
-
- function removeElement () {
- $element.remove()
- }
-
- $.support.transition && $element.hasClass('fade') ?
- $element.bind(transitionEnd, removeElement) :
- removeElement()
- }
-
- }
-
-
- /* ALERT PLUGIN DEFINITION
- * ======================= */
-
- $.fn.alert = function ( options ) {
-
- if ( options === true ) {
- return this.data('alert')
- }
-
- return this.each(function () {
- var $this = $(this)
-
- if ( typeof options == 'string' ) {
- return $this.data('alert')[options]()
- }
-
- $(this).data('alert', new Alert( this, options ))
-
- })
- }
-
- $.fn.alert.defaults = {
- selector: '.close'
- }
-
- $(document).ready(function () {
- new Alert($('body'), {
- selector: '.alert-message[data-alert] .close'
- })
- })
-
-}( window.jQuery || window.ender );
@@ -1,53 +0,0 @@
-/* ============================================================
- * bootstrap-dropdown.js v1.3.0
- * http://twitter.github.com/bootstrap/javascript.html#dropdown
- * ============================================================
- * Copyright 2011 Twitter, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============================================================ */
-
-
-!function( $ ){
-
- /* DROPDOWN PLUGIN DEFINITION
- * ========================== */
-
- $.fn.dropdown = function ( selector ) {
- return this.each(function () {
- $(this).delegate(selector || d, 'click', function (e) {
- var li = $(this).parent('li')
- , isActive = li.hasClass('open')
-
- clearMenus()
- !isActive && li.toggleClass('open')
- return false
- })
- })
- }
-
- /* APPLY TO STANDARD DROPDOWN ELEMENTS
- * =================================== */
-
- var d = 'a.menu, .dropdown-toggle'
-
- function clearMenus() {
- $(d).parent('li').removeClass('open')
- }
-
- $(function () {
- $('html').bind("click", clearMenus)
- $('body').dropdown( '[data-dropdown] a.menu, [data-dropdown] .dropdown-toggle' )
- })
-
-}( window.jQuery || window.ender );
Oops, something went wrong. Retry.

0 comments on commit ce88a6d

Please sign in to comment.