2022-11-28 18:22:50 +01:00
|
|
|
require "merged/version"
|
|
|
|
require "merged/engine"
|
2023-01-27 13:55:27 +01:00
|
|
|
require "generators/merged/install/install_generator"
|
2023-01-26 21:41:24 +01:00
|
|
|
require "generators/merged/update/update_generator"
|
2022-11-28 18:22:50 +01:00
|
|
|
|
|
|
|
module Merged
|
2022-11-30 12:21:06 +01:00
|
|
|
|
2023-01-26 21:41:24 +01:00
|
|
|
# Directory inside the app/assets/images
|
2023-01-27 13:55:27 +01:00
|
|
|
mattr_accessor :images_dir
|
2023-01-27 18:21:19 +01:00
|
|
|
@@images_dir = "merged"
|
2023-01-29 12:48:37 +01:00
|
|
|
|
2023-01-26 21:41:24 +01:00
|
|
|
# directory in root to store data
|
2023-01-27 13:55:27 +01:00
|
|
|
mattr_accessor :data_dir
|
2023-01-27 18:21:19 +01:00
|
|
|
@@data_dir = "."
|
2023-01-29 12:48:37 +01:00
|
|
|
|
|
|
|
# text colors, keys are options shown to user, values what gets replaced
|
|
|
|
mattr_accessor :text_color
|
|
|
|
@@text_color = { "white" => "text-white",
|
|
|
|
"none" => "",
|
|
|
|
"light_blue" => "text-cyan-100",
|
|
|
|
"light_gray" => "text-gray-100",
|
|
|
|
"solid_blue" => "text-cyan-700",
|
|
|
|
"solid_red" => "text-orange-800",
|
|
|
|
"solid_green" => "text-green-700",
|
|
|
|
"solid_petrol" => "text-teal-700",
|
|
|
|
"solid_indigo" => "text-indigo-800",
|
|
|
|
"solid_black" => "text-slate-800",
|
|
|
|
}
|
|
|
|
|
|
|
|
# margin option, keys are options shown to user, values what gets replaced
|
|
|
|
mattr_accessor :margin
|
|
|
|
@@margin = { "none" => "m-0",
|
|
|
|
"small" => " m-2 md:m-4 lg:6 xl:m-8",
|
|
|
|
"medium" => "m-5 md:m-8 lg:10 xl:m-14",
|
|
|
|
"large" => " m-8 md:m-12 lg:16 xl:m-20",}
|
|
|
|
|
|
|
|
# background colors
|
|
|
|
mattr_accessor :background
|
|
|
|
@@background = {"white" => "bg-white",
|
|
|
|
"none" => "",
|
|
|
|
"light_blue" => "bg-cyan-100",
|
|
|
|
"light_gray" => "bg-gray-100",
|
|
|
|
"light_orange" => "bg-orange-50",
|
|
|
|
"solid_blue" => "bg-cyan-700 text-white",
|
|
|
|
"solid_red" => "bg-amber-600 text-white",
|
|
|
|
"solid_green" => "bg-green-700 text-white",
|
|
|
|
"solid_petrol" => "bg-teal-700 text-white",
|
|
|
|
"solid_indigo" => "bg-cyan-900 text-white",
|
|
|
|
"solid_black" => "bg-slate-900 text-white", }
|
|
|
|
|
|
|
|
# shade options
|
|
|
|
mattr_accessor :shade_color
|
|
|
|
@@shade_color = {"white_25" => "bg-white/25",
|
|
|
|
"none" => "",
|
|
|
|
"black_25" => "bg-black/25",
|
|
|
|
"light_blue_25" => "bg-cyan-100/25",
|
|
|
|
"light_red_25" => "bg-orange-300/25",
|
|
|
|
"solid_blue_25" => "bg-cyan-700/25",
|
|
|
|
"solid_red_25" => "bg-orange-800/25", }
|
|
|
|
|
|
|
|
# amount of text columns
|
|
|
|
mattr_accessor :text_columns
|
|
|
|
@@text_columns = {
|
|
|
|
"3" => "columns-1 md:columns-2 lg:columns-3",
|
|
|
|
"4" => "columns-1 md:columns-2 lg:columns-3 xl:columns-4",
|
|
|
|
"2" => "columns-1 md:columns-2" }
|
|
|
|
|
|
|
|
# amount of text columns
|
|
|
|
mattr_accessor :columns
|
|
|
|
@@columns = { "1" => "grid-cols-1",
|
|
|
|
"2" => "grid-cols-1 md:grid-cols-2"
|
|
|
|
"3" => "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
|
|
|
"4" => "grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
|
|
|
|
"5" => "grid-cols-1 md:grid-cols-3 lg:grid-cols-5",
|
|
|
|
"6" => "grid-cols-2 md:grid-cols-4 lg:grid-cols-6", }
|
|
|
|
|
2022-11-28 18:22:50 +01:00
|
|
|
end
|