From 644a6acc7235661ce1b2d79e4c956cd660ecaff9 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 11 Nov 2023 15:21:49 -0800 Subject: [PATCH] Remove old Image Mode stuff There was a static page explaining it, which we no longer link to; and there was an unused field in the User model for who was a beta tester for it. Goodbye! --- app/assets/stylesheets/application.css.sass | 1 - .../stylesheets/static/_image_mode.sass | 13 --- app/views/static/image_mode.html.haml | 90 ------------------- config/routes.rb | 1 - ...015_remove_image_mode_tester_from_users.rb | 5 ++ db/schema.rb | 3 +- 6 files changed, 6 insertions(+), 107 deletions(-) delete mode 100644 app/assets/stylesheets/static/_image_mode.sass delete mode 100644 app/views/static/image_mode.html.haml create mode 100644 db/migrate/20231111232015_remove_image_mode_tester_from_users.rb diff --git a/app/assets/stylesheets/application.css.sass b/app/assets/stylesheets/application.css.sass index f92d5979..99a56197 100644 --- a/app/assets/stylesheets/application.css.sass +++ b/app/assets/stylesheets/application.css.sass @@ -20,7 +20,6 @@ @import outfits/index @import outfits/new @import pets/bulk -@import static/image_mode @import static/pardon_our_dust @import static/terms @import swf_assets/links diff --git a/app/assets/stylesheets/static/_image_mode.sass b/app/assets/stylesheets/static/_image_mode.sass deleted file mode 100644 index 5bc7f12d..00000000 --- a/app/assets/stylesheets/static/_image_mode.sass +++ /dev/null @@ -1,13 +0,0 @@ -@import "../partials/clean/constants" - -body.static-image_mode - h2 - margin: - bottom: .25em - top: 1.25em - - ol, ul - font-family: $text-font - margin-bottom: 1em - padding-left: 3em - diff --git a/app/views/static/image_mode.html.haml b/app/views/static/image_mode.html.haml deleted file mode 100644 index 6808f530..00000000 --- a/app/views/static/image_mode.html.haml +++ /dev/null @@ -1,90 +0,0 @@ -- title 'Welcome to Image Mode!' - -:markdown - Yay! Image Mode! Our servers can handle Image Mode because of [your generous - donations][donate]. Thanks for all you do. - - What is Image Mode? - ------------------- - - Image Mode has two main features: - - 1. **Save images of your pets!** - On supported browsers, you will see a "Download" button. Clicking it will - start downloading a PNG image file to your computer. - 2. **No more Flash!** - In Flash Mode, your browser downloads several Flash files and layers them - on top of each other. In Image Mode, we layer images, instead. - - - How do I use it? - ---------------- - - Start using Dress to Impress normally: type in a pet name or choose a - color/species combination from the home page. Then, to the left of the pet's - image, you should see Flash highlighted. - **Click on the word Image.** Congrats, you're in! - - - What does "Waiting on X images" mean? - ------------------------------------- - - This means that some of the images you're trying to view haven't been - converted yet. They're waiting in line to be converted. These days, that line - is pretty darn short, so the message shouldn't stay up for too long at all. - Just wait patiently for the magic SWF converters to run, and you should be - good to go :) - - - How do I download an image? - --------------------------- - - Just click the Download button beneath the Flash/Image switch. If all goes - well, a download should begin automatically. - - - I don't see any Download button. - -------------------------------- - - Downloading currently only works for modern browsers that support the new - canvas feature. It is, however, supported in the latest versions of, - - * [Google Chrome](https://www.google.com/chrome) - * [Mozilla Firefox](https://www.firefox.com/) - * [Opera](https://www.opera.com/) - * [Safari](https://www.apple.com/safari/) - * [Internet Explorer](https://www.microsoft.com/ie) - - However, Internet Explorer currently is having trouble running Dress to - Impress in general, so is not recommended. - - - This image doesn't quite look right. - ------------------------------------ - - If part of your image looks a little off, like something is missing or is - transparent when it shouldn't be, hit the "Broken image?" link beneath the - Flash/Image mode switcher. Choose the image that seems broken, and report it. - The SWF converters will get on it as soon as they can. Thanks for your help! - - Please note that, because our SWF converters use open-source software instead - of Adobe's software, some SWF files that use more complex features may not - come out right, no matter how many times we convert them. Usually this involves - fancy blur effects: Ghost pets, for example, have a sharp blue silhouette behind - them instead of a blue glow. There's not much we can do about that for the - time being. Most of them are okay, but if an image is just plain unusable…well, - that's what Flash mode is for! - - - What do I do if I find a problem? Have a suggestion? Just want to talk? - ----------------------------------------------------------------------- - - Email me at . Report Image Mode bugs, ask questions, - give me cool ideas, or just say whatever you want. That's what I'm here for. - - - Thanks again! Enjoy Image Mode! - ------------------------------- - - [donate]: #{donate_path} - diff --git a/config/routes.rb b/config/routes.rb index 7b564a15..57a33118 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -74,7 +74,6 @@ OpenneoImpressItems::Application.routes.draw do get '/donate' => 'campaigns#current', as: :donate # Static pages! - get 'image-mode' => 'static#image_mode', :as => :image_mode get '/pardon-our-dust' => 'static#pardon_our_dust', :as => :pardon_our_dust get '/terms' => redirect("https://impress-2020.openneo.net/terms"), :as => :terms diff --git a/db/migrate/20231111232015_remove_image_mode_tester_from_users.rb b/db/migrate/20231111232015_remove_image_mode_tester_from_users.rb new file mode 100644 index 00000000..40ba92e6 --- /dev/null +++ b/db/migrate/20231111232015_remove_image_mode_tester_from_users.rb @@ -0,0 +1,5 @@ +class RemoveImageModeTesterFromUsers < ActiveRecord::Migration[7.1] + def change + remove_column :users, :image_mode_tester, :boolean, default: false, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 4c21b240..60ff6855 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2023_11_10_043543) do +ActiveRecord::Schema[7.1].define(version: 2023_11_11_232015) do create_table "auth_servers", id: :integer, charset: "latin1", force: :cascade do |t| t.string "short_name", limit: 10, null: false t.string "name", limit: 40, null: false @@ -278,7 +278,6 @@ ActiveRecord::Schema[7.1].define(version: 2023_11_10_043543) do t.boolean "beta", default: false, null: false t.string "remember_token" t.datetime "remember_created_at", precision: nil - t.boolean "image_mode_tester", default: false, null: false t.integer "owned_closet_hangers_visibility", default: 1, null: false t.integer "wanted_closet_hangers_visibility", default: 1, null: false t.integer "contact_neopets_connection_id"