diff --git a/.env.example b/.env.example deleted file mode 100644 index 5c9a27d37..000000000 --- a/.env.example +++ /dev/null @@ -1,8 +0,0 @@ -ADMIN_CODE= -AWS_ACCESS_KEY_ID= -AWS_REGION=us-east-1 -AWS_SECRET_ACCESS_KEY= -HTTP_HOST=locohost:3000 -HTTP_PROTOCOL=http -PORT=3000 -S3_BUCKET=dev.pixie.strd6.com diff --git a/.gitignore b/.gitignore index 0f868376b..3ed3f3c4e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,34 @@ -!/log/.keep -!/tmp/.keep -*.dump -.byebug_history +.bundle .env -.sass-cache -/.bundle -/db/*.sqlite3 -/db/*.sqlite3-journal -/log/* -/tmp/* -/public/assets/ +.project +.redcar +.rvmrc +.rbenv-version +.DS_Store +config/database.yml +config/oauth.yml +config/s3.yml +config/settings.yml +config/slurp.yml +db/*.sqlite3 +db/sphinx +dump.sql* +log/*.log +log/*.pid +tmp/**/* +nbproject +Pixie.tmproj +public/apps +public/assets +public/stylesheets/*.css +public/stylesheets/codemirror/*.css +public/stylesheets/pixie/*.css +public/stylesheets/editors/*.css +public/test +public/production +public/development +public/system +projects.zip +dev_email.yml +tmp/* +.jhw-cache diff --git a/.metrics b/.metrics new file mode 100644 index 000000000..2031ca3be --- /dev/null +++ b/.metrics @@ -0,0 +1,3 @@ +MetricFu::Configuration.run do |config| + config.metrics -= [:rcov, :rails_best_practices] +end diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index ff365e06b..000000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -3.1.3 diff --git a/Capfile b/Capfile new file mode 100644 index 000000000..a96a4d04a --- /dev/null +++ b/Capfile @@ -0,0 +1,25 @@ +# Load DSL and Setup Up Stages +require 'capistrano/setup' + +# Includes default deployment tasks +require 'capistrano/deploy' + +# Includes tasks from other gems included in your Gemfile +# +# For documentation on these, see for example: +# +# https://github.com/capistrano/rvm +# https://github.com/capistrano/rbenv +# https://github.com/capistrano/chruby +# https://github.com/capistrano/bundler +# https://github.com/capistrano/rails +# + +require 'capistrano/rvm' +require 'capistrano/bundler' +require 'capistrano/rails/assets' +require 'capistrano/rails/migrations' +require "whenever/capistrano" + +# Loads custom tasks from `lib/capistrano/tasks' if you have any defined. +Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r } diff --git a/Gemfile b/Gemfile index da0f0b5c0..182aea7e1 100644 --- a/Gemfile +++ b/Gemfile @@ -1,64 +1,81 @@ -ruby '3.1.3' -source 'https://rubygems.org' +source "https://rubygems.org" -git_source(:github) do |repo_name| - repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") - "https://github.com/#{repo_name}.git" +gem 'rails', '3.2.11' + +group :assets do + gem 'coffee-rails', '~> 3.2.1' + gem 'coffee-script-source', '~> 1.2.0' + gem 'compass-rails' + gem 'sass-rails' + gem 'uglifier' + gem 'turbo-sprockets-rails3' end -gem 'rails', '6.1.7.3' +group :production do + gem 'unicorn' +end gem 'acts-as-taggable-on' -gem 'authlogic' -gem 'aws-sdk-s3' -gem 'coffee-rails' -gem 'dynamic_form', git: 'https://github.com/payrollhero/dynamic_form.git', ref: '7f90400' -gem 'exception_notification' -gem 'exception_notification-rake' -gem 'foreman' -gem 'haml-rails' +gem "authlogic" +gem "aws-sdk" +gem 'backbone-source' +gem 'bluecloth' +gem 'bootstrap-sass', '~> 2.0.4.0' +gem "coffee-filter" +gem 'cornerstone-source' +gem 'dynamic_form' +gem 'editor_base', :git => "git://github.com/PixieEngine/EditorBase.git" +gem "exception_notification", :git => "git://github.com/rails/exception_notification.git", :require => 'exception_notifier' +gem 'haml' +gem 'haml_coffee_assets' +gem 'html5-boilerplate' +gem 'jquery-image_reader' gem 'mail' -gem 'memoist' -gem 'paperclip' -gem 'pg' -gem 'pg_search' -gem 'public_activity' -gem 'puma' +gem "mocha" +gem 'paperclip', '~> 3.4.0' +gem "pg" +gem 'pixel_editor', :git => 'git://github.com/PixieEngine/PixelEditor.git' +gem "pixie_sass", :git => "git://github.com/PixieEngine/pixie_sass" +gem "public_activity" +gem 'rabl' gem 'rack-cors', :require => 'rack/cors' -gem 'rails_admin' -gem 'redcarpet' -gem 'responders' -gem 'rmagick' -gem 'sanitize' -gem 'sass-rails' -gem 'scrypt' -gem 'sidekiq' -gem "webrick", "~> 1.7" -gem 'whenever' -gem 'will_paginate' +gem 'rails_autolink' +gem "require" +# TODO: Delegate image processing to external service +gem 'rmagick', :require => 'RMagick' +gem "squeel" +gem "sanitize" -group :test do - gem 'factory_girl_rails' - gem 'mocha', require: false - gem 'rails-controller-testing' - gem 'shoulda' -end +gem "execjs" -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug', platform: :mri - gem 'dotenv-rails' +gem 'underscore-source' +gem "will_paginate", '3.0.3' +gem "whenever" + +group :test do + gem "factory_girl", :git => "git://github.com/thoughtbot/factory_girl.git" + gem "minitest" + gem "pry" + gem "shoulda" + gem "test-unit" + gem "turn", :require => false end group :development do - # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. - gem 'web-console', '>= 3.3.0' - gem 'listen', '~> 3.0.5' - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' - gem 'spring-watcher-listen', '~> 2.0.0' + gem "capistrano", + require: false + gem 'capistrano-rails', + require: false + gem 'capistrano-bundler', + require: false + gem 'capistrano-rvm', + require: false end -# Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] -gem 'sassc-rails' +group :development, :test do + gem 'growl' + #gem "jasmine" + #gem 'jasmine-headless-webkit' + #gem 'jasmine-spec-extras' + gem 'rb-fsevent' +end diff --git a/Gemfile.lock b/Gemfile.lock index 2a357849b..28fb2c7a1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,337 +1,267 @@ GIT - remote: https://github.com/payrollhero/dynamic_form.git - revision: 7f904005f6001a0b908dd879c34547b0e87a34e7 - ref: 7f90400 + remote: git://github.com/PixieEngine/EditorBase.git + revision: 769429b0dbab12259f9e230d88e18d6e4ceda3cd specs: - dynamic_form (1.1.4) + editor_base (0.0.1) + backbone-source + bootstrap-sass + coffee-filter + compass + cornerstone-source + haml_coffee_assets + jquery-source + underscore-source + +GIT + remote: git://github.com/PixieEngine/PixelEditor.git + revision: 1a89b3b9fe55cb31f2a492973b2e57ed62e03726 + specs: + pixel_editor (0.0.1) + +GIT + remote: git://github.com/PixieEngine/pixie_sass + revision: 9c4f7df796b02fde788f8e484d2b079f60e957b8 + specs: + pixie_sass (0.0.1) + compass + +GIT + remote: git://github.com/rails/exception_notification.git + revision: 192a49a02d63d28b23ed41cebadfedd490929cf1 + specs: + exception_notification (1.0.0) + +GIT + remote: git://github.com/thoughtbot/factory_girl.git + revision: 4b6ada72cfe551becf13e9e707d1591833379075 + specs: + factory_girl (2.3.2) + activesupport GEM remote: https://rubygems.org/ specs: - actioncable (6.1.7.3) - actionpack (= 6.1.7.3) - activesupport (= 6.1.7.3) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailbox (6.1.7.3) - actionpack (= 6.1.7.3) - activejob (= 6.1.7.3) - activerecord (= 6.1.7.3) - activestorage (= 6.1.7.3) - activesupport (= 6.1.7.3) - mail (>= 2.7.1) - actionmailer (6.1.7.3) - actionpack (= 6.1.7.3) - actionview (= 6.1.7.3) - activejob (= 6.1.7.3) - activesupport (= 6.1.7.3) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (6.1.7.3) - actionview (= 6.1.7.3) - activesupport (= 6.1.7.3) - rack (~> 2.0, >= 2.0.9) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.1.7.3) - actionpack (= 6.1.7.3) - activerecord (= 6.1.7.3) - activestorage (= 6.1.7.3) - activesupport (= 6.1.7.3) - nokogiri (>= 1.8.5) - actionview (6.1.7.3) - activesupport (= 6.1.7.3) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.1.7.3) - activesupport (= 6.1.7.3) - globalid (>= 0.3.6) - activemodel (6.1.7.3) - activesupport (= 6.1.7.3) - activemodel-serializers-xml (1.0.2) - activemodel (> 5.x) - activesupport (> 5.x) - builder (~> 3.1) - activerecord (6.1.7.3) - activemodel (= 6.1.7.3) - activesupport (= 6.1.7.3) - activestorage (6.1.7.3) - actionpack (= 6.1.7.3) - activejob (= 6.1.7.3) - activerecord (= 6.1.7.3) - activesupport (= 6.1.7.3) - marcel (~> 1.0) - mini_mime (>= 1.1.0) - activesupport (6.1.7.3) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 1.6, < 2) - minitest (>= 5.1) - tzinfo (~> 2.0) - zeitwerk (~> 2.3) - acts-as-taggable-on (9.0.1) - activerecord (>= 6.0, < 7.1) - authlogic (6.4.2) - activemodel (>= 5.2, < 7.1) - activerecord (>= 5.2, < 7.1) - activesupport (>= 5.2, < 7.1) - request_store (~> 1.0) - aws-eventstream (1.0.3) - aws-partitions (1.263.0) - aws-sdk-core (3.89.1) - aws-eventstream (~> 1.0, >= 1.0.2) - aws-partitions (~> 1, >= 1.239.0) - aws-sigv4 (~> 1.1) - jmespath (~> 1.0) - aws-sdk-kms (1.27.0) - aws-sdk-core (~> 3, >= 3.71.0) - aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.60.1) - aws-sdk-core (~> 3, >= 3.83.0) - aws-sdk-kms (~> 1) - aws-sigv4 (~> 1.1) - aws-sigv4 (1.1.0) - aws-eventstream (~> 1.0, >= 1.0.2) - bindex (0.8.1) - builder (3.2.4) - byebug (9.0.6) + actionmailer (3.2.11) + actionpack (= 3.2.11) + mail (~> 2.4.4) + actionpack (3.2.11) + activemodel (= 3.2.11) + activesupport (= 3.2.11) + builder (~> 3.0.0) + erubis (~> 2.7.0) + journey (~> 1.0.4) + rack (~> 1.4.0) + rack-cache (~> 1.2) + rack-test (~> 0.6.1) + sprockets (~> 2.2.1) + activemodel (3.2.11) + activesupport (= 3.2.11) + builder (~> 3.0.0) + activerecord (3.2.11) + activemodel (= 3.2.11) + activesupport (= 3.2.11) + arel (~> 3.0.2) + tzinfo (~> 0.3.29) + activeresource (3.2.11) + activemodel (= 3.2.11) + activesupport (= 3.2.11) + activesupport (3.2.11) + i18n (~> 0.6) + multi_json (~> 1.0) + acts-as-taggable-on (2.2.2) + rails (~> 3.0) + ansi (1.4.3) + arel (3.0.2) + authlogic (3.1.0) + activerecord (>= 3.0.7) + aws-sdk (1.8.0) + httparty (~> 0.7) + json (~> 1.4) + nokogiri (>= 1.4.4) + uuidtools (~> 2.1) + backbone-source (0.0.3) + bluecloth (2.2.0) + bootstrap-sass (2.0.4.2) + builder (3.0.4) + capistrano (3.1.0) + i18n + rake (>= 10.0.0) + sshkit (~> 1.3) + capistrano-bundler (1.1.2) + capistrano (~> 3.0) + sshkit (~> 1.2) + capistrano-rails (1.1.1) + capistrano (~> 3.1) + capistrano-bundler (~> 1.1) + capistrano-rvm (0.1.1) + capistrano (~> 3.0) + sshkit (~> 1.2) chronic (0.10.2) - climate_control (0.2.0) - coffee-rails (5.0.0) + chunky_png (1.2.6) + cocaine (0.4.2) + coderay (1.0.9) + coffee-filter (0.1.1) coffee-script (>= 2.2.0) - railties (>= 5.2.0) - coffee-script (2.4.1) + haml (>= 3.0.18) + coffee-rails (3.2.2) + coffee-script (>= 2.2.0) + railties (~> 3.2.0) + coffee-script (2.2.0) coffee-script-source execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.2.2) - connection_pool (2.2.5) - crass (1.0.6) - date (3.3.1) - dotenv (2.8.1) - dotenv-rails (2.8.1) - dotenv (= 2.8.1) - railties (>= 3.2) - erubi (1.11.0) - exception_notification (4.5.0) - actionmailer (>= 5.2, < 8) - activesupport (>= 5.2, < 8) - exception_notification-rake (0.3.1) - exception_notification (~> 4.3) - rake (>= 0.9.0) - execjs (2.7.0) - factory_girl (4.9.0) + coffee-script-source (1.2.0) + compass (0.12.2) + chunky_png (~> 1.2) + fssm (>= 0.2.7) + sass (~> 3.1) + compass-rails (1.0.3) + compass (>= 0.12.2, < 0.14) + cornerstone-source (0.1.5) + dynamic_form (1.1.4) + erubis (2.7.0) + execjs (1.4.0) + multi_json (~> 1.0) + fssm (0.2.9) + growl (1.0.3) + haml (3.1.7) + haml_coffee_assets (1.5.1) + coffee-script (>= 1.0.0) + sprockets (>= 2.0.3) + tilt (>= 1.3.3) + hike (1.2.1) + html5-boilerplate (1.0.0) + compass (>= 0.11.1) + httparty (0.9.0) + multi_json (~> 1.0) + multi_xml + i18n (0.6.9) + journey (1.0.4) + jquery-image_reader (0.1.1) + jquery-source + jquery-source (1.7.1) + json (1.8.3) + kgio (2.9.3) + mail (2.4.4) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + method_source (0.8.1) + mime-types (1.19) + minitest (2.12.1) + mocha (0.9.12) + multi_json (1.2.0) + multi_xml (0.5.1) + net-scp (1.1.2) + net-ssh (>= 2.6.5) + net-ssh (2.8.0) + nokogiri (1.5.11) + paperclip (3.4.0) + activemodel (>= 3.0.0) + activerecord (>= 3.0.0) activesupport (>= 3.0.0) - factory_girl_rails (4.9.0) - factory_girl (~> 4.9.0) - railties (>= 3.0.0) - ffi (1.15.5) - ffi-compiler (1.0.1) - ffi (>= 1.0.0) - rake - foreman (0.87.2) - globalid (1.1.0) - activesupport (>= 5.0) - haml (6.1.1) - temple (>= 0.8.2) - thor - tilt - haml-rails (2.1.0) - actionpack (>= 5.1) - activesupport (>= 5.1) - haml (>= 4.0.6) - railties (>= 5.1) - i18n (1.13.0) - concurrent-ruby (~> 1.0) - jmespath (1.6.1) - kaminari (1.2.2) - activesupport (>= 4.1.0) - kaminari-actionview (= 1.2.2) - kaminari-activerecord (= 1.2.2) - kaminari-core (= 1.2.2) - kaminari-actionview (1.2.2) - actionview - kaminari-core (= 1.2.2) - kaminari-activerecord (1.2.2) - activerecord - kaminari-core (= 1.2.2) - kaminari-core (1.2.2) - listen (3.0.8) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - loofah (2.19.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.8.0) - mini_mime (>= 0.1.1) - net-imap - net-pop - net-smtp - marcel (1.0.2) - memoist (0.15.0) - metaclass (0.0.4) - method_source (1.0.0) - mime-types (3.4.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2023.0218.1) - mimemagic (0.3.10) - nokogiri (~> 1) - rake - mini_mime (1.1.2) - mini_portile2 (2.8.1) - minitest (5.18.0) - mocha (1.2.1) - metaclass (~> 0.0.1) - nested_form (0.3.2) - net-imap (0.3.2) - date - net-protocol - net-pop (0.1.2) - net-protocol - net-protocol (0.2.1) - timeout - net-smtp (0.3.3) - net-protocol - nio4r (2.5.8) - nokogiri (1.14.3) - mini_portile2 (~> 2.8.0) - racc (~> 1.4) - paperclip (6.1.0) - activemodel (>= 4.2.0) - activesupport (>= 4.2.0) + cocaine (~> 0.4.0) mime-types - mimemagic (~> 0.3.0) - terrapin (~> 0.6.0) - pg (1.4.5) - pg_search (2.3.6) - activerecord (>= 5.2) - activesupport (>= 5.2) - public_activity (2.0.2) - actionpack (>= 5.0.0) - activerecord (>= 5.0) + pg (0.18.2) + polyamorous (0.5.0) + activerecord (~> 3.0) + polyglot (0.3.3) + power_assert (0.2.2) + pry (0.9.12.2) + coderay (~> 1.0.5) + method_source (~> 0.8) + slop (~> 3.4) + public_activity (1.4.1) + actionpack (>= 3.0.0) + activerecord (>= 3.0) i18n (>= 0.5.0) - railties (>= 5.0.0) - puma (4.3.12) - nio4r (~> 2.0) - racc (1.6.2) - rack (2.2.6.4) - rack-cors (1.1.1) - rack (>= 2.0.0) - rack-protection (2.2.0) + railties (>= 3.0.0) + rabl (0.6.10) + activesupport (>= 2.3.14) + multi_json (~> 1.0) + rack (1.4.3) + rack-cache (1.2) + rack (>= 0.4) + rack-cors (0.2.7) + rack + rack-ssl (1.3.2) rack - rack-test (2.0.2) - rack (>= 1.3) - rails (6.1.7.3) - actioncable (= 6.1.7.3) - actionmailbox (= 6.1.7.3) - actionmailer (= 6.1.7.3) - actionpack (= 6.1.7.3) - actiontext (= 6.1.7.3) - actionview (= 6.1.7.3) - activejob (= 6.1.7.3) - activemodel (= 6.1.7.3) - activerecord (= 6.1.7.3) - activestorage (= 6.1.7.3) - activesupport (= 6.1.7.3) - bundler (>= 1.15.0) - railties (= 6.1.7.3) - sprockets-rails (>= 2.0.0) - rails-controller-testing (1.0.5) - actionpack (>= 5.0.1.rc1) - actionview (>= 5.0.1.rc1) - activesupport (>= 5.0.1.rc1) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.4) - loofah (~> 2.19, >= 2.19.1) - rails_admin (3.1.2) - activemodel-serializers-xml (>= 1.0) - kaminari (>= 0.14, < 2.0) - nested_form (~> 0.3) - rails (>= 6.0, < 8) - turbo-rails (~> 1.0) - railties (6.1.7.3) - actionpack (= 6.1.7.3) - activesupport (= 6.1.7.3) - method_source - rake (>= 12.2) - thor (~> 1.0) - rake (13.0.6) - rb-fsevent (0.9.8) - rb-inotify (0.9.8) - ffi (>= 0.5.0) - redcarpet (3.5.1) - redis (4.5.1) - request_store (1.3.2) - responders (3.0.1) - actionpack (>= 5.0) - railties (>= 5.0) - rmagick (4.0.0) - sanitize (6.0.1) - crass (~> 1.0.2) - nokogiri (>= 1.12.0) - sass-rails (6.0.0) - sassc-rails (~> 2.1, >= 2.1.1) - sassc (2.4.0) - ffi (~> 1.9) - sassc-rails (2.1.2) - railties (>= 4.0.0) - sassc (>= 2.0) - sprockets (> 3.0) - sprockets-rails - tilt - scrypt (3.0.7) - ffi-compiler (>= 1.0, < 2.0) - shoulda (3.6.0) - shoulda-context (~> 1.0, >= 1.0.1) - shoulda-matchers (~> 3.0) - shoulda-context (1.2.2) - shoulda-matchers (3.1.3) - activesupport (>= 4.0.0) - sidekiq (5.2.10) - connection_pool (~> 2.2, >= 2.2.2) - rack (~> 2.0) - rack-protection (>= 1.5.0) - redis (~> 4.5, < 4.6.0) - spring (2.1.1) - spring-watcher-listen (2.0.1) - listen (>= 2.7, < 4.0) - spring (>= 1.2, < 3.0) - sprockets (4.1.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - sprockets (>= 3.0.0) - temple (0.9.1) - terrapin (0.6.0) - climate_control (>= 0.0.3, < 1.0) - thor (1.2.1) - tilt (2.0.11) - timeout (0.3.1) - turbo-rails (1.4.0) - actionpack (>= 6.0.0) - activejob (>= 6.0.0) - railties (>= 6.0.0) - tzinfo (2.0.6) - concurrent-ruby (~> 1.0) - web-console (4.2.0) - actionview (>= 6.0.0) - activemodel (>= 6.0.0) - bindex (>= 0.4.0) - railties (>= 6.0.0) - webrick (1.7.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - whenever (0.9.7) + rack-test (0.6.2) + rack (>= 1.0) + rails (3.2.11) + actionmailer (= 3.2.11) + actionpack (= 3.2.11) + activerecord (= 3.2.11) + activeresource (= 3.2.11) + activesupport (= 3.2.11) + bundler (~> 1.0) + railties (= 3.2.11) + rails_autolink (1.0.6) + rails (~> 3.1) + railties (3.2.11) + actionpack (= 3.2.11) + activesupport (= 3.2.11) + rack-ssl (~> 1.3.2) + rake (>= 0.8.7) + rdoc (~> 3.4) + thor (>= 0.14.6, < 2.0) + raindrops (0.14.0) + rake (10.1.1) + rb-fsevent (0.9.1) + rdoc (3.12) + json (~> 1.4) + require (0.2.7) + rmagick (2.15.2) + sanitize (2.0.3) + nokogiri (>= 1.4.4, < 1.6) + sass (3.2.4) + sass-rails (3.2.5) + railties (~> 3.2.0) + sass (>= 3.1.10) + tilt (~> 1.3) + shoulda (2.11.3) + slop (3.4.5) + sprockets (2.2.2) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + squeel (1.0.13) + activerecord (~> 3.0) + activesupport (~> 3.0) + polyamorous (~> 0.5.0) + sshkit (1.3.0) + net-scp (>= 1.1.2) + net-ssh + term-ansicolor + term-ansicolor (1.3.0) + tins (~> 1.0) + test-unit (3.0.8) + power_assert + thor (0.16.0) + tilt (1.3.3) + tins (1.0.0) + treetop (1.4.12) + polyglot + polyglot (>= 0.3.1) + turbo-sprockets-rails3 (0.3.11) + railties (> 3.2.8, < 4.0.0) + sprockets (>= 2.2.0) + turn (0.9.6) + ansi + tzinfo (0.3.35) + uglifier (1.3.0) + execjs (>= 0.3.0) + multi_json (~> 1.0, >= 1.0.2) + underscore-source (1.3.3) + unicorn (4.0.1) + kgio (~> 2.4) + rack + raindrops (~> 0.6) + uuidtools (2.1.3) + whenever (0.9.2) + activesupport (>= 2.3.4) chronic (>= 0.6.3) - will_paginate (3.3.1) - zeitwerk (2.6.7) + will_paginate (3.0.3) PLATFORMS ruby @@ -339,48 +269,57 @@ PLATFORMS DEPENDENCIES acts-as-taggable-on authlogic - aws-sdk-s3 - byebug - coffee-rails - dotenv-rails - dynamic_form! - exception_notification - exception_notification-rake - factory_girl_rails - foreman - haml-rails - listen (~> 3.0.5) + aws-sdk + backbone-source + bluecloth + bootstrap-sass (~> 2.0.4.0) + capistrano + capistrano-bundler + capistrano-rails + capistrano-rvm + coffee-filter + coffee-rails (~> 3.2.1) + coffee-script-source (~> 1.2.0) + compass-rails + cornerstone-source + dynamic_form + editor_base! + exception_notification! + execjs + factory_girl! + growl + haml + haml_coffee_assets + html5-boilerplate + jquery-image_reader mail - memoist + minitest mocha - paperclip + paperclip (~> 3.4.0) pg - pg_search + pixel_editor! + pixie_sass! + pry public_activity - puma + rabl rack-cors - rails (= 6.1.7.3) - rails-controller-testing - rails_admin - redcarpet - responders + rails (= 3.2.11) + rails_autolink + rb-fsevent + require rmagick sanitize sass-rails - sassc-rails - scrypt shoulda - sidekiq - spring - spring-watcher-listen (~> 2.0.0) - tzinfo-data - web-console (>= 3.3.0) - webrick (~> 1.7) + squeel + test-unit + turbo-sprockets-rails3 + turn + uglifier + underscore-source + unicorn whenever - will_paginate - -RUBY VERSION - ruby 3.1.3p185 + will_paginate (= 3.0.3) BUNDLED WITH - 2.3.26 + 1.10.5 diff --git a/Guardfile b/Guardfile new file mode 100644 index 000000000..84970783e --- /dev/null +++ b/Guardfile @@ -0,0 +1,13 @@ +# A sample Guardfile +# More info at https://github.com/guard/guard#readme + +# Run JS and CoffeeScript files in a typical Rails 3.1/Sprockets fashion. +# Your spec files end with _spec.{js,coffee}. + +spec_location = "spec/javascripts/%s_spec" + +guard 'jasmine-headless-webkit' do + watch(%r{^(app|lib|vendor)/assets/javascripts/(.*)$}) { |m| newest_js_file(spec_location % m[1]) } + watch(%r{^spec/javascripts/(.*)[Ss]pec\..*}) { |m| newest_js_file(spec_location % m[1]) } +end + diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 000000000..2a727b4ec --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,19 @@ +Copyright (C) 2010 by STRd6 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/Procfile b/Procfile deleted file mode 100644 index 5d61ede4e..000000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: bundle exec foreman start -f Procfile.web diff --git a/Procfile.web b/Procfile.web deleted file mode 100644 index ad07cda39..000000000 --- a/Procfile.web +++ /dev/null @@ -1,2 +0,0 @@ -web: bundle exec rails server -sidekiq: bundle exec sidekiq diff --git a/README.markdown b/README.markdown new file mode 100644 index 000000000..692c9b3ad --- /dev/null +++ b/README.markdown @@ -0,0 +1,8 @@ +== Pixie + +=== Where pixels become heroes, together. + +This project is a Rails app that hosts an HTML5 Canvas pixel editor. + +TODO: Useful info in the README + diff --git a/README.md b/README.md deleted file mode 100644 index 797cbc029..000000000 --- a/README.md +++ /dev/null @@ -1,81 +0,0 @@ -# README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - - * 2.4.9 - -* System dependencies - - * Redis - - * Postgres - -* Configuration - -* How to run the test suite - - * `rails test` - -* Services (job queues, cache servers, search engines, etc.) - -* Production Dependencies - - * Heroku - - * Mailgun - - * Heroku Postgres - - * Heroku Redis - -* Deployment instructions - -## OSX Dev setup - -Install Homebrew if you don't already have it - -`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` - -Install postgresql if you don't have it - -- `brew install postgresql` -- `brew services start postgresql` - -Install ImageMagick so that you can install RMagick. -If you're on OSX Sierra, you'll need to force an older version of ImageMagick - -- `brew install imagemagick@6` -- `brew link --force imagemagick@6` - -Install all the project's dependencies with `bundle install` - -## Ubuntu Setup - -```bash -sudo apt-get install -y build-essential patch ruby-dev zlib1g-dev liblzma-dev imagemagick libmagickwand-dev postgresql libpq-dev -``` - -```bash -sudo service postgresql start -sudo su - postgres -createuser --interactive --createdb $USER -exit -``` - -## First time configuration - -Create your development database - -`bundle exec rake db:setup` - -## Syncing your local db with prod - -1. Install the Heroku CLI -2. Log in to the CLI -3. Make sure you have added the heroku remote for this project -4. Run script/sync-db-with-prod diff --git a/Rakefile b/Rakefile index e85f91391..afd60d73b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,7 @@ # 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_relative 'config/application' +require File.expand_path('../config/application', __FILE__) +require 'rake' -Rails.application.load_tasks +PixieStrd6Com::Application.load_tasks diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js deleted file mode 100644 index b16e53d6d..000000000 --- a/app/assets/config/manifest.js +++ /dev/null @@ -1,3 +0,0 @@ -//= link_tree ../images -//= link_directory ../javascripts .js -//= link_directory ../stylesheets .css diff --git a/app/assets/images/404_error.png b/app/assets/images/404_error.png new file mode 100644 index 000000000..a63fc4fae Binary files /dev/null and b/app/assets/images/404_error.png differ diff --git a/app/assets/images/500_error.png b/app/assets/images/500_error.png new file mode 100644 index 000000000..7b6a0c4f7 Binary files /dev/null and b/app/assets/images/500_error.png differ diff --git a/app/assets/images/daniel_128.jpg b/app/assets/images/daniel_128.jpg new file mode 100644 index 000000000..ccaa3afc9 Binary files /dev/null and b/app/assets/images/daniel_128.jpg differ diff --git a/app/assets/images/glyphicons-halflings-white.png b/app/assets/images/glyphicons-halflings-white.png new file mode 100755 index 000000000..3bf6484a2 Binary files /dev/null and b/app/assets/images/glyphicons-halflings-white.png differ diff --git a/app/assets/images/glyphicons-halflings.png b/app/assets/images/glyphicons-halflings.png new file mode 100755 index 000000000..79bc568c2 Binary files /dev/null and b/app/assets/images/glyphicons-halflings.png differ diff --git a/app/assets/images/new_project.png b/app/assets/images/new_project.png new file mode 100644 index 000000000..4d2e5bfcd Binary files /dev/null and b/app/assets/images/new_project.png differ diff --git a/app/assets/images/newsletters/documentation.png b/app/assets/images/newsletters/documentation.png new file mode 100644 index 000000000..04a5cefe3 Binary files /dev/null and b/app/assets/images/newsletters/documentation.png differ diff --git a/app/assets/images/newsletters/halloween_banner.png b/app/assets/images/newsletters/halloween_banner.png new file mode 100644 index 000000000..369c20853 Binary files /dev/null and b/app/assets/images/newsletters/halloween_banner.png differ diff --git a/app/assets/images/newsletters/halloween_card.png b/app/assets/images/newsletters/halloween_card.png new file mode 100644 index 000000000..107572836 Binary files /dev/null and b/app/assets/images/newsletters/halloween_card.png differ diff --git a/app/assets/images/newsletters/holiday_banner.png b/app/assets/images/newsletters/holiday_banner.png new file mode 100644 index 000000000..8c049e51a Binary files /dev/null and b/app/assets/images/newsletters/holiday_banner.png differ diff --git a/app/assets/images/newsletters/holiday_card.png b/app/assets/images/newsletters/holiday_card.png new file mode 100644 index 000000000..6469e812d Binary files /dev/null and b/app/assets/images/newsletters/holiday_card.png differ diff --git a/app/assets/images/newsletters/lines.png b/app/assets/images/newsletters/lines.png new file mode 100644 index 000000000..d56b53ccf Binary files /dev/null and b/app/assets/images/newsletters/lines.png differ diff --git a/app/assets/images/newsletters/memberships.png b/app/assets/images/newsletters/memberships.png new file mode 100644 index 000000000..277d267e0 Binary files /dev/null and b/app/assets/images/newsletters/memberships.png differ diff --git a/app/assets/images/newsletters/property_editor.png b/app/assets/images/newsletters/property_editor.png new file mode 100644 index 000000000..0c916e825 Binary files /dev/null and b/app/assets/images/newsletters/property_editor.png differ diff --git a/app/assets/images/newsletters/shadow_logo_small.png b/app/assets/images/newsletters/shadow_logo_small.png new file mode 100644 index 000000000..dbdf6a4eb Binary files /dev/null and b/app/assets/images/newsletters/shadow_logo_small.png differ diff --git a/app/assets/images/newsletters/surf_debug.png b/app/assets/images/newsletters/surf_debug.png new file mode 100644 index 000000000..719d24373 Binary files /dev/null and b/app/assets/images/newsletters/surf_debug.png differ diff --git a/app/assets/images/newsletters/tooltip.png b/app/assets/images/newsletters/tooltip.png new file mode 100644 index 000000000..36ad18546 Binary files /dev/null and b/app/assets/images/newsletters/tooltip.png differ diff --git a/app/assets/images/pixie_banner.png b/app/assets/images/pixie_banner.png new file mode 100644 index 000000000..3870828aa Binary files /dev/null and b/app/assets/images/pixie_banner.png differ diff --git a/app/assets/images/shadow_logo_small.png b/app/assets/images/shadow_logo_small.png new file mode 100644 index 000000000..dbdf6a4eb Binary files /dev/null and b/app/assets/images/shadow_logo_small.png differ diff --git a/app/assets/images/static/add.png b/app/assets/images/static/add.png new file mode 100644 index 000000000..6332fefea Binary files /dev/null and b/app/assets/images/static/add.png differ diff --git a/app/assets/images/static/application.png b/app/assets/images/static/application.png new file mode 100644 index 000000000..1dee9e366 Binary files /dev/null and b/app/assets/images/static/application.png differ diff --git a/app/assets/images/static/application_add.png b/app/assets/images/static/application_add.png new file mode 100644 index 000000000..2e945076c Binary files /dev/null and b/app/assets/images/static/application_add.png differ diff --git a/app/assets/images/static/application_delete.png b/app/assets/images/static/application_delete.png new file mode 100644 index 000000000..0a335acf6 Binary files /dev/null and b/app/assets/images/static/application_delete.png differ diff --git a/app/assets/images/static/application_edit.png b/app/assets/images/static/application_edit.png new file mode 100644 index 000000000..fb2efb877 Binary files /dev/null and b/app/assets/images/static/application_edit.png differ diff --git a/app/assets/images/static/application_go.png b/app/assets/images/static/application_go.png new file mode 100644 index 000000000..5cc2b0dd3 Binary files /dev/null and b/app/assets/images/static/application_go.png differ diff --git a/app/assets/images/static/application_osx_terminal.png b/app/assets/images/static/application_osx_terminal.png new file mode 100644 index 000000000..b3d8ce01e Binary files /dev/null and b/app/assets/images/static/application_osx_terminal.png differ diff --git a/app/assets/images/static/arrow_left.png b/app/assets/images/static/arrow_left.png new file mode 100644 index 000000000..5dc696781 Binary files /dev/null and b/app/assets/images/static/arrow_left.png differ diff --git a/app/assets/images/static/arrow_redo.png b/app/assets/images/static/arrow_redo.png new file mode 100644 index 000000000..fdc394c7c Binary files /dev/null and b/app/assets/images/static/arrow_redo.png differ diff --git a/app/assets/images/static/arrow_right.png b/app/assets/images/static/arrow_right.png new file mode 100644 index 000000000..b1a181923 Binary files /dev/null and b/app/assets/images/static/arrow_right.png differ diff --git a/app/assets/images/static/arrow_undo.png b/app/assets/images/static/arrow_undo.png new file mode 100644 index 000000000..6972c5e59 Binary files /dev/null and b/app/assets/images/static/arrow_undo.png differ diff --git a/app/assets/images/static/book.png b/app/assets/images/static/book.png new file mode 100644 index 000000000..b0f4dd792 Binary files /dev/null and b/app/assets/images/static/book.png differ diff --git a/app/assets/images/static/book_add.png b/app/assets/images/static/book_add.png new file mode 100644 index 000000000..e2f084727 Binary files /dev/null and b/app/assets/images/static/book_add.png differ diff --git a/app/assets/images/static/book_open.png b/app/assets/images/static/book_open.png new file mode 100644 index 000000000..7d863f949 Binary files /dev/null and b/app/assets/images/static/book_open.png differ diff --git a/app/assets/images/static/cd.png b/app/assets/images/static/cd.png new file mode 100644 index 000000000..ef4322357 Binary files /dev/null and b/app/assets/images/static/cd.png differ diff --git a/app/assets/images/static/chrome_webstore.png b/app/assets/images/static/chrome_webstore.png new file mode 100644 index 000000000..cb4049243 Binary files /dev/null and b/app/assets/images/static/chrome_webstore.png differ diff --git a/app/assets/images/static/closelabel.png b/app/assets/images/static/closelabel.png new file mode 100755 index 000000000..c339e5933 Binary files /dev/null and b/app/assets/images/static/closelabel.png differ diff --git a/app/assets/images/static/cog.png b/app/assets/images/static/cog.png new file mode 100644 index 000000000..67de2c6cc Binary files /dev/null and b/app/assets/images/static/cog.png differ diff --git a/app/assets/images/static/cross.png b/app/assets/images/static/cross.png new file mode 100644 index 000000000..1514d51a3 Binary files /dev/null and b/app/assets/images/static/cross.png differ diff --git a/app/assets/images/static/cup.png b/app/assets/images/static/cup.png new file mode 100644 index 000000000..b7bfcd15f Binary files /dev/null and b/app/assets/images/static/cup.png differ diff --git a/app/assets/images/static/cup_add.png b/app/assets/images/static/cup_add.png new file mode 100644 index 000000000..4ecaece29 Binary files /dev/null and b/app/assets/images/static/cup_add.png differ diff --git a/app/assets/images/static/database_save.png b/app/assets/images/static/database_save.png new file mode 100644 index 000000000..44c06dddf Binary files /dev/null and b/app/assets/images/static/database_save.png differ diff --git a/app/assets/images/static/delete.png b/app/assets/images/static/delete.png new file mode 100644 index 000000000..08f249365 Binary files /dev/null and b/app/assets/images/static/delete.png differ diff --git a/app/assets/images/static/disk.png b/app/assets/images/static/disk.png new file mode 100644 index 000000000..99d532e8b Binary files /dev/null and b/app/assets/images/static/disk.png differ diff --git a/app/assets/images/static/embed.png b/app/assets/images/static/embed.png new file mode 100644 index 000000000..c49dd301a Binary files /dev/null and b/app/assets/images/static/embed.png differ diff --git a/app/assets/images/static/feedback.png b/app/assets/images/static/feedback.png new file mode 100644 index 000000000..d28c896b5 Binary files /dev/null and b/app/assets/images/static/feedback.png differ diff --git a/app/assets/images/static/file.png b/app/assets/images/static/file.png new file mode 100644 index 000000000..5787701ec Binary files /dev/null and b/app/assets/images/static/file.png differ diff --git a/app/assets/images/static/film.png b/app/assets/images/static/film.png new file mode 100644 index 000000000..b0ce7bb19 Binary files /dev/null and b/app/assets/images/static/film.png differ diff --git a/app/assets/images/static/folder-closed.png b/app/assets/images/static/folder-closed.png new file mode 100644 index 000000000..7f2ad9566 Binary files /dev/null and b/app/assets/images/static/folder-closed.png differ diff --git a/app/assets/images/static/folder.png b/app/assets/images/static/folder.png new file mode 100644 index 000000000..4367ee60d Binary files /dev/null and b/app/assets/images/static/folder.png differ diff --git a/app/assets/images/static/grid.png b/app/assets/images/static/grid.png new file mode 100644 index 000000000..129d4a29f Binary files /dev/null and b/app/assets/images/static/grid.png differ diff --git a/app/assets/images/static/help.png b/app/assets/images/static/help.png new file mode 100644 index 000000000..5c870176d Binary files /dev/null and b/app/assets/images/static/help.png differ diff --git a/app/assets/images/static/image.png b/app/assets/images/static/image.png new file mode 100644 index 000000000..fc3c393ca Binary files /dev/null and b/app/assets/images/static/image.png differ diff --git a/app/assets/images/static/image_add.png b/app/assets/images/static/image_add.png new file mode 100644 index 000000000..fc5d6139e Binary files /dev/null and b/app/assets/images/static/image_add.png differ diff --git a/app/assets/images/static/images.png b/app/assets/images/static/images.png new file mode 100644 index 000000000..184860d1e Binary files /dev/null and b/app/assets/images/static/images.png differ diff --git a/app/assets/images/static/import.png b/app/assets/images/static/import.png new file mode 100644 index 000000000..14e7aba57 Binary files /dev/null and b/app/assets/images/static/import.png differ diff --git a/app/assets/images/static/info.png b/app/assets/images/static/info.png new file mode 100644 index 000000000..5a7a2c309 Binary files /dev/null and b/app/assets/images/static/info.png differ diff --git a/app/assets/images/static/joystick.png b/app/assets/images/static/joystick.png new file mode 100644 index 000000000..62168f56f Binary files /dev/null and b/app/assets/images/static/joystick.png differ diff --git a/app/assets/images/static/landing_logo.png b/app/assets/images/static/landing_logo.png new file mode 100644 index 000000000..99968c46c Binary files /dev/null and b/app/assets/images/static/landing_logo.png differ diff --git a/app/assets/images/static/link.png b/app/assets/images/static/link.png new file mode 100644 index 000000000..25eacb7c2 Binary files /dev/null and b/app/assets/images/static/link.png differ diff --git a/app/assets/images/static/login_arrow.png b/app/assets/images/static/login_arrow.png new file mode 100644 index 000000000..ba05c9c25 Binary files /dev/null and b/app/assets/images/static/login_arrow.png differ diff --git a/app/assets/images/static/login_arrow_white.png b/app/assets/images/static/login_arrow_white.png new file mode 100644 index 000000000..ca334022a Binary files /dev/null and b/app/assets/images/static/login_arrow_white.png differ diff --git a/app/assets/images/static/minus.png b/app/assets/images/static/minus.png new file mode 100644 index 000000000..79ed6d2ea Binary files /dev/null and b/app/assets/images/static/minus.png differ diff --git a/app/assets/images/static/next_arrow.png b/app/assets/images/static/next_arrow.png new file mode 100644 index 000000000..c6399487d Binary files /dev/null and b/app/assets/images/static/next_arrow.png differ diff --git a/app/assets/images/static/next_bg.png b/app/assets/images/static/next_bg.png new file mode 100644 index 000000000..1c30ed579 Binary files /dev/null and b/app/assets/images/static/next_bg.png differ diff --git a/app/assets/images/static/off.png b/app/assets/images/static/off.png new file mode 100755 index 000000000..9516ef369 Binary files /dev/null and b/app/assets/images/static/off.png differ diff --git a/app/assets/images/static/on.png b/app/assets/images/static/on.png new file mode 100755 index 000000000..17181a9b9 Binary files /dev/null and b/app/assets/images/static/on.png differ diff --git a/app/assets/images/static/page_white_go.png b/app/assets/images/static/page_white_go.png new file mode 100644 index 000000000..7e62a924b Binary files /dev/null and b/app/assets/images/static/page_white_go.png differ diff --git a/app/assets/images/static/pause.png b/app/assets/images/static/pause.png new file mode 100644 index 000000000..a58a3021d Binary files /dev/null and b/app/assets/images/static/pause.png differ diff --git a/app/assets/images/static/pencil.png b/app/assets/images/static/pencil.png new file mode 100644 index 000000000..0bfecd50e Binary files /dev/null and b/app/assets/images/static/pencil.png differ diff --git a/app/assets/images/static/photo_add.png b/app/assets/images/static/photo_add.png new file mode 100644 index 000000000..63cc355cb Binary files /dev/null and b/app/assets/images/static/photo_add.png differ diff --git a/app/assets/images/static/picture.png b/app/assets/images/static/picture.png new file mode 100644 index 000000000..4a158fef7 Binary files /dev/null and b/app/assets/images/static/picture.png differ diff --git a/app/assets/images/static/picture_add.png b/app/assets/images/static/picture_add.png new file mode 100644 index 000000000..d6d3f8564 Binary files /dev/null and b/app/assets/images/static/picture_add.png differ diff --git a/app/assets/images/static/picture_edit.png b/app/assets/images/static/picture_edit.png new file mode 100644 index 000000000..9a70c3499 Binary files /dev/null and b/app/assets/images/static/picture_edit.png differ diff --git a/app/assets/images/static/picture_go.png b/app/assets/images/static/picture_go.png new file mode 100644 index 000000000..27c63c5af Binary files /dev/null and b/app/assets/images/static/picture_go.png differ diff --git a/app/assets/images/static/pictures.png b/app/assets/images/static/pictures.png new file mode 100644 index 000000000..d9591c13f Binary files /dev/null and b/app/assets/images/static/pictures.png differ diff --git a/app/assets/images/static/play.png b/app/assets/images/static/play.png new file mode 100644 index 000000000..c49316e6e Binary files /dev/null and b/app/assets/images/static/play.png differ diff --git a/app/assets/images/static/plus.png b/app/assets/images/static/plus.png new file mode 100644 index 000000000..974024d5f Binary files /dev/null and b/app/assets/images/static/plus.png differ diff --git a/app/assets/images/static/redo.png b/app/assets/images/static/redo.png new file mode 100644 index 000000000..fdc394c7c Binary files /dev/null and b/app/assets/images/static/redo.png differ diff --git a/app/assets/images/static/resultset_next.png b/app/assets/images/static/resultset_next.png new file mode 100644 index 000000000..e252606d3 Binary files /dev/null and b/app/assets/images/static/resultset_next.png differ diff --git a/app/assets/images/static/save.png b/app/assets/images/static/save.png new file mode 100644 index 000000000..44c06dddf Binary files /dev/null and b/app/assets/images/static/save.png differ diff --git a/app/assets/images/static/script.png b/app/assets/images/static/script.png new file mode 100644 index 000000000..0f9ed4d48 Binary files /dev/null and b/app/assets/images/static/script.png differ diff --git a/app/assets/images/static/shadow_logo_small.png b/app/assets/images/static/shadow_logo_small.png new file mode 100644 index 000000000..dbdf6a4eb Binary files /dev/null and b/app/assets/images/static/shadow_logo_small.png differ diff --git a/app/assets/images/static/sound.png b/app/assets/images/static/sound.png new file mode 100644 index 000000000..6056d234a Binary files /dev/null and b/app/assets/images/static/sound.png differ diff --git a/app/assets/images/static/sound_add.png b/app/assets/images/static/sound_add.png new file mode 100644 index 000000000..965c503c6 Binary files /dev/null and b/app/assets/images/static/sound_add.png differ diff --git a/app/assets/images/static/sport_shuttlecock.png b/app/assets/images/static/sport_shuttlecock.png new file mode 100644 index 000000000..917287fa0 Binary files /dev/null and b/app/assets/images/static/sport_shuttlecock.png differ diff --git a/app/assets/images/static/star.png b/app/assets/images/static/star.png new file mode 100644 index 000000000..b88c85789 Binary files /dev/null and b/app/assets/images/static/star.png differ diff --git a/app/assets/images/static/status_online.png b/app/assets/images/static/status_online.png new file mode 100644 index 000000000..947bd4b62 Binary files /dev/null and b/app/assets/images/static/status_online.png differ diff --git a/app/assets/images/static/stop.png b/app/assets/images/static/stop.png new file mode 100644 index 000000000..cd3272b56 Binary files /dev/null and b/app/assets/images/static/stop.png differ diff --git a/app/assets/images/static/table.png b/app/assets/images/static/table.png new file mode 100644 index 000000000..abcd93689 Binary files /dev/null and b/app/assets/images/static/table.png differ diff --git a/app/assets/images/static/table_edit.png b/app/assets/images/static/table_edit.png new file mode 100644 index 000000000..bfcb0249a Binary files /dev/null and b/app/assets/images/static/table_edit.png differ diff --git a/app/assets/images/static/table_gear.png b/app/assets/images/static/table_gear.png new file mode 100644 index 000000000..cfc2702ac Binary files /dev/null and b/app/assets/images/static/table_gear.png differ diff --git a/app/assets/images/static/text_bold.png b/app/assets/images/static/text_bold.png new file mode 100644 index 000000000..889ae80e3 Binary files /dev/null and b/app/assets/images/static/text_bold.png differ diff --git a/app/assets/images/static/text_heading_1.png b/app/assets/images/static/text_heading_1.png new file mode 100644 index 000000000..9c122e91e Binary files /dev/null and b/app/assets/images/static/text_heading_1.png differ diff --git a/app/assets/images/static/text_horizontalrule.png b/app/assets/images/static/text_horizontalrule.png new file mode 100644 index 000000000..8dd1da1c1 Binary files /dev/null and b/app/assets/images/static/text_horizontalrule.png differ diff --git a/app/assets/images/static/text_italic.png b/app/assets/images/static/text_italic.png new file mode 100644 index 000000000..8482ac8cb Binary files /dev/null and b/app/assets/images/static/text_italic.png differ diff --git a/app/assets/images/static/text_kerning.png b/app/assets/images/static/text_kerning.png new file mode 100644 index 000000000..377def645 Binary files /dev/null and b/app/assets/images/static/text_kerning.png differ diff --git a/app/assets/images/static/text_list_bullets.png b/app/assets/images/static/text_list_bullets.png new file mode 100644 index 000000000..4a8672bde Binary files /dev/null and b/app/assets/images/static/text_list_bullets.png differ diff --git a/app/assets/images/static/text_list_numbers.png b/app/assets/images/static/text_list_numbers.png new file mode 100644 index 000000000..33b0b8df3 Binary files /dev/null and b/app/assets/images/static/text_list_numbers.png differ diff --git a/app/assets/images/static/text_quote.png b/app/assets/images/static/text_quote.png new file mode 100644 index 000000000..e3dfc24f2 Binary files /dev/null and b/app/assets/images/static/text_quote.png differ diff --git a/app/assets/images/static/thumb_up.png b/app/assets/images/static/thumb_up.png new file mode 100644 index 000000000..2bd16ccf2 Binary files /dev/null and b/app/assets/images/static/thumb_up.png differ diff --git a/app/assets/images/static/tip_pointer.png b/app/assets/images/static/tip_pointer.png new file mode 100644 index 000000000..7be0a5fd5 Binary files /dev/null and b/app/assets/images/static/tip_pointer.png differ diff --git a/app/assets/images/static/tipsy.png b/app/assets/images/static/tipsy.png new file mode 100644 index 000000000..fae80f088 Binary files /dev/null and b/app/assets/images/static/tipsy.png differ diff --git a/app/assets/images/static/undo.png b/app/assets/images/static/undo.png new file mode 100644 index 000000000..6972c5e59 Binary files /dev/null and b/app/assets/images/static/undo.png differ diff --git a/app/assets/images/static/user_comment.png b/app/assets/images/static/user_comment.png new file mode 100644 index 000000000..e54ebebaf Binary files /dev/null and b/app/assets/images/static/user_comment.png differ diff --git a/app/assets/images/static/world.png b/app/assets/images/static/world.png new file mode 100644 index 000000000..68f21d301 Binary files /dev/null and b/app/assets/images/static/world.png differ diff --git a/app/assets/images/static/x.png b/app/assets/images/static/x.png new file mode 100644 index 000000000..c11f7af69 Binary files /dev/null and b/app/assets/images/static/x.png differ diff --git a/app/assets/images/static/zip.png b/app/assets/images/static/zip.png new file mode 100644 index 000000000..abf547bc9 Binary files /dev/null and b/app/assets/images/static/zip.png differ diff --git a/app/assets/images/textured_background.png b/app/assets/images/textured_background.png new file mode 100644 index 000000000..85572daf6 Binary files /dev/null and b/app/assets/images/textured_background.png differ diff --git a/app/assets/images/tuts-s3a8684d0c4.png b/app/assets/images/tuts-s3a8684d0c4.png new file mode 100644 index 000000000..6f4f7ec4b Binary files /dev/null and b/app/assets/images/tuts-s3a8684d0c4.png differ diff --git a/app/assets/images/tuts/new_project.png b/app/assets/images/tuts/new_project.png new file mode 100644 index 000000000..9cb90fbc1 Binary files /dev/null and b/app/assets/images/tuts/new_project.png differ diff --git a/app/assets/images/tuts/pixie_user.png b/app/assets/images/tuts/pixie_user.png new file mode 100644 index 000000000..1f939ed5f Binary files /dev/null and b/app/assets/images/tuts/pixie_user.png differ diff --git a/app/assets/images/tuts/web_hooks.png b/app/assets/images/tuts/web_hooks.png new file mode 100644 index 000000000..deab772b1 Binary files /dev/null and b/app/assets/images/tuts/web_hooks.png differ diff --git a/app/assets/images/under-construction.gif b/app/assets/images/under-construction.gif deleted file mode 100644 index 56b9528fc..000000000 Binary files a/app/assets/images/under-construction.gif and /dev/null differ diff --git a/app/assets/javascripts/ajax.coffee b/app/assets/javascripts/ajax.coffee deleted file mode 100644 index f1a44c0b8..000000000 --- a/app/assets/javascripts/ajax.coffee +++ /dev/null @@ -1,130 +0,0 @@ -# Extend promises with `finally` -# From: https://github.com/domenic/promises-unwrapping/issues/18 -Promise.prototype.finally ?= (callback) -> - # We don’t invoke the callback in here, - # because we want then() to handle its exceptions - this.then( - # Callback fulfills: pass on predecessor settlement - # Callback rejects: pass on rejection (=omit 2nd arg.) - (value) -> - Promise.resolve(callback()) - .then -> return value - (reason) -> - Promise.resolve(callback()) - .then -> throw reason - ) - -# HACK: I really would prefer not to modify the native Promise prototype, but I -# know no other way... - -Promise.prototype._notify ?= (event) -> - @_progressHandlers.forEach (handler) -> - try - handler(event) - -Promise.prototype.progress ?= (handler) -> - @_progressHandlers ?= [] - @_progressHandlers.push handler - - return this - -window.ProgressPromise = (fn) -> - p = new Promise (resolve, reject) -> - notify = -> - p._progressHandlers?.forEach (handler) -> - try - handler(event) - - fn(resolve, reject, notify) - - p.then = (onFulfilled, onRejected) -> - result = Promise.prototype.then.call(p, onFulfilled, onRejected) - # Pass progress through - p.progress result._notify.bind(result) - - return result - - return p - - -window.Ajax = -> - ajax = (options={}) -> - {data, headers, method, overrideMimeType, password, url, responseType, timeout, user, withCredentials} = options - data ?= "" - headers ?= {} - method ?= "GET" - password ?= "" - responseType ?= "" - timeout ?= 0 - user ?= "" - withCredentials ?= false - - # Set up Rails token - headers['X-CSRF-Token'] ?= $('meta[name="csrf-token"]').attr('content') - - new ProgressPromise (resolve, reject, progress) -> - xhr = new XMLHttpRequest() - xhr.open(method, url, true, user, password) - xhr.responseType = responseType - xhr.timeout = timeout - xhr.withCredentialls = withCredentials - - if headers - Object.keys(headers).forEach (header) -> - value = headers[header] - xhr.setRequestHeader header, value - - if overrideMimeType - xhr.overrideMimeType overrideMimeType - - xhr.onload = (e) -> - if (200 <= this.status < 300) or this.status is 304 - resolve this.response - complete e, xhr, options - else - reject xhr - complete e, xhr, options - - xhr.onerror = (e) -> - reject xhr - complete e, xhr, options - - xhr.onprogress = progress - - xhr.send(data) - - complete = (args...) -> - completeHandlers.forEach (handler) -> - handler args... - - configure = (optionDefaults) -> - (url, options={}) -> - if typeof url is "object" - options = url - else - options.url = url - - defaults options, optionDefaults - - ajax(options) - - completeHandlers = [] - - Object.assign ajax, - ajax: configure {} - complete: (handler) -> - completeHandlers.push handler - - getJSON: configure - responseType: "json" - - getBlob: configure - responseType: "blob" - -defaults = (target, objects...) -> - for object in objects - for name of object - unless target.hasOwnProperty(name) - target[name] = object[name] - - return target diff --git a/app/assets/javascripts/application.coffee b/app/assets/javascripts/application.coffee new file mode 100644 index 000000000..68770240f --- /dev/null +++ b/app/assets/javascripts/application.coffee @@ -0,0 +1,45 @@ +#= depend_on pixie/editor/pixel/create + +#= require rails +#= require cornerstone +#= require hamlcoffee +#= require site +#= require params + +#= require bootstrap + +#= require jquery.form +#= require jquery.scrollTo-min +#= require jquery.hotkeys +#= require jquery.live_edit +#= require jquery.drop_image_reader +#= require jquery.paste_image_reader +#= require jquery.pnotify.min +#= require jquery.serialize_object +#= require jquery.take_class +#= require jquery.tipsy +#= require jquery.vector_picker +#= require jquery.timeago +#= require jquery.isotope.min + +#= require underscore +#= require backbone + +#= require pixie/editor/pixel/create + +#= require views/comments/gallery +#= require views/projects/gallery +#= require views/sprites/gallery + +#= require views/autocomplete +#= require models/autocomplete + +#= require base64 +#= require grid_gen +#= require uuid +#= require jqcolor +#= require color +#= require pixie_canvas +#= require coffee-script + +#= require templates/comments/comment_form diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js deleted file mode 100644 index 3fa6f96f3..000000000 --- a/app/assets/javascripts/application.js +++ /dev/null @@ -1,12 +0,0 @@ -//= require lib/ui -//= require ajax -//= require lib/isotope.min - -$.ajaxSetup({ - headers: { - 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content') - } -}); - -function trackPageview(e){return _gaq.push(["_trackPageview",e])} -function trackEvent(e,t,n){return _gaq.push(["_trackEvent",e,t,n])} diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js deleted file mode 100644 index 71ee1e66d..000000000 --- a/app/assets/javascripts/cable.js +++ /dev/null @@ -1,13 +0,0 @@ -// Action Cable provides the framework to deal with WebSockets in Rails. -// You can generate new channels where WebSocket features live using the rails generate channel command. -// -//= require action_cable -//= require_self -//= require_tree ./channels - -(function() { - this.App || (this.App = {}); - - App.cable = ActionCable.createConsumer(); - -}).call(this); diff --git a/app/assets/javascripts/docs.coffee b/app/assets/javascripts/docs.coffee new file mode 100644 index 000000000..63d4c15ea --- /dev/null +++ b/app/assets/javascripts/docs.coffee @@ -0,0 +1,19 @@ +#= require coffee-script +#= require corelib +#= require pixie_canvas +#= require color + +$ -> + $("code.run").each -> + # Assume it's a PixieCanvas example + codeElement = $(this) + + source = codeElement.text() + + compiledJs = CoffeeScript.compile source, bare: true + + canvas = $("").pixieCanvas() + + codeElement.after(canvas) + + eval compiledJs diff --git a/app/assets/javascripts/error_tracker.coffee b/app/assets/javascripts/error_tracker.coffee new file mode 100644 index 000000000..0aa4070fd --- /dev/null +++ b/app/assets/javascripts/error_tracker.coffee @@ -0,0 +1,9 @@ +window.onerror = (message, url, lineNumber) -> + + $.post "/js_errors", + format: 'json' + js_error: + url: url + message: message + line_number: lineNumber + user_agent: navigator.userAgent diff --git a/app/assets/javascripts/lib/isotope.min.js b/app/assets/javascripts/lib/isotope.min.js deleted file mode 100644 index 03ec41a53..000000000 --- a/app/assets/javascripts/lib/isotope.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/*! - * Isotope PACKAGED v3.0.2 - * - * Licensed GPLv3 for open source use - * or Isotope Commercial License for commercial use - * - * http://isotope.metafizzy.co - * Copyright 2016 Metafizzy - */ - -!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,n){var o,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,n);o=void 0===o?l:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return u(this,t,e)}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),n+=r?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e