databasium 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +32 -0
- data/MIT-LICENSE +20 -0
- data/README.md +109 -0
- data/Rakefile +6 -0
- data/app/assets/builds/application.js +9045 -0
- data/app/assets/builds/application.js.map +7 -0
- data/app/assets/builds/databasium.css +2 -0
- data/app/assets/config/databasium_manifest.js +1 -0
- data/app/assets/javascript/databasium/application.js +2 -0
- data/app/assets/javascript/databasium/controllers/attribute_controller.js +27 -0
- data/app/assets/javascript/databasium/controllers/collapse_controller.js +18 -0
- data/app/assets/javascript/databasium/controllers/error_controller.js +15 -0
- data/app/assets/javascript/databasium/controllers/filter_controller.js +224 -0
- data/app/assets/javascript/databasium/controllers/flash_controller.js +18 -0
- data/app/assets/javascript/databasium/controllers/graph_controller.js +193 -0
- data/app/assets/javascript/databasium/controllers/index.js +7 -0
- data/app/assets/javascript/databasium/controllers/layout_controller.js +13 -0
- data/app/assets/javascript/databasium/controllers/model_controller.js +32 -0
- data/app/assets/javascript/databasium/controllers/new_migration_controller.js +107 -0
- data/app/assets/javascript/databasium/controllers/relation_controller.js +10 -0
- data/app/assets/javascript/databasium/controllers/search_controller.js +23 -0
- data/app/assets/javascript/databasium/controllers/table_controller.js +283 -0
- data/app/assets/javascript/databasium/controllers/table_select_controller.js +19 -0
- data/app/assets/javascript/databasium/controllers/toggle_controller.js +28 -0
- data/app/assets/javascript/databasium/controllers/validation_controller.js +78 -0
- data/app/assets/javascript/databasium/shapes/erd_table_shape.js +54 -0
- data/app/assets/stylesheets/databasium/application.css +15 -0
- data/app/assets/stylesheets/databasium/colors.css +55 -0
- data/app/assets/stylesheets/databasium/custom.css +36 -0
- data/app/assets/stylesheets/databasium/databasium_engine.css +6 -0
- data/app/assets/stylesheets/databasium/pagy-tailwind.css +66 -0
- data/app/components/base.rb +50 -0
- data/app/components/databasium/collapsable.rb +62 -0
- data/app/components/databasium/forms/model.rb +147 -0
- data/app/components/databasium/forms/search.rb +31 -0
- data/app/components/databasium/global/error.rb +60 -0
- data/app/components/databasium/global/flash.rb +73 -0
- data/app/components/databasium/global/header_actions.rb +36 -0
- data/app/components/databasium/global/sidebar.rb +45 -0
- data/app/components/databasium/global/suggestion.rb +25 -0
- data/app/components/databasium/migrations/action.rb +39 -0
- data/app/components/databasium/migrations/file.rb +58 -0
- data/app/components/databasium/migrations/form.rb +222 -0
- data/app/components/databasium/migrations/header_actions.rb +87 -0
- data/app/components/databasium/migrations/migration_status.rb +22 -0
- data/app/components/databasium/migrations/preview.rb +29 -0
- data/app/components/databasium/migrations/show_turbo_stream.rb +19 -0
- data/app/components/databasium/migrations/sidebar.rb +28 -0
- data/app/components/databasium/models/attributes.rb +49 -0
- data/app/components/databasium/models/form.rb +100 -0
- data/app/components/databasium/models/header_actions.rb +51 -0
- data/app/components/databasium/models/model_preview.rb +31 -0
- data/app/components/databasium/models/sidebar.rb +25 -0
- data/app/components/databasium/models/templates/attribute.rb +99 -0
- data/app/components/databasium/models/templates/base.rb +6 -0
- data/app/components/databasium/models/templates/relation.rb +56 -0
- data/app/components/databasium/models/templates/validation.rb +285 -0
- data/app/components/databasium/navigation/base_icon.rb +32 -0
- data/app/components/databasium/navigation/frontend_icon.rb +17 -0
- data/app/components/databasium/navigation/get_icon.rb +26 -0
- data/app/components/databasium/navigation/icon.rb +28 -0
- data/app/components/databasium/navigation/icon_panel.rb +26 -0
- data/app/components/databasium/navigation/post_icon.rb +25 -0
- data/app/components/databasium/navigation/put_icon.rb +18 -0
- data/app/components/databasium/records/filter.rb +73 -0
- data/app/components/databasium/records/foreign_records.rb +84 -0
- data/app/components/databasium/records/header_actions.rb +110 -0
- data/app/components/databasium/records/show_turbo_stream.rb +75 -0
- data/app/components/databasium/records/sidebar.rb +23 -0
- data/app/components/databasium/records/table/record_panel.rb +60 -0
- data/app/components/databasium/records/table/row.rb +104 -0
- data/app/components/databasium/records/table.rb +125 -0
- data/app/components/databasium/records/table_turbo_frame.rb +37 -0
- data/app/components/databasium/records/utilities.rb +25 -0
- data/app/components/databasium/schemas/header_actions.rb +99 -0
- data/app/components/databasium/schemas/sidebar.rb +25 -0
- data/app/components/databasium/search_results/migrations.rb +37 -0
- data/app/components/databasium/search_results/models.rb +36 -0
- data/app/components/databasium/search_results/schema_models.rb +37 -0
- data/app/components/databasium/search_results/tables.rb +31 -0
- data/app/components/databasium/type_select.rb +35 -0
- data/app/controllers/databasium/application_controller.rb +68 -0
- data/app/controllers/databasium/homepage_controller.rb +5 -0
- data/app/controllers/databasium/migrations_controller.rb +186 -0
- data/app/controllers/databasium/models_controller.rb +105 -0
- data/app/controllers/databasium/records_controller.rb +156 -0
- data/app/controllers/databasium/schemas_controller.rb +52 -0
- data/app/helpers/databasium/application_helper.rb +4 -0
- data/app/helpers/databasium/heroicon_helper.rb +21 -0
- data/app/helpers/databasium/models_helper.rb +4 -0
- data/app/jobs/databasium/application_job.rb +4 -0
- data/app/mailers/databasium/application_mailer.rb +6 -0
- data/app/models/databasium/application_record.rb +5 -0
- data/app/models/model.json +0 -0
- data/app/services/databasium/migration.rb +176 -0
- data/app/services/databasium/model.rb +182 -0
- data/app/services/databasium/record.rb +65 -0
- data/app/services/databasium/schema.rb +146 -0
- data/app/views/base.rb +13 -0
- data/app/views/databasium/errors/non_development.rb +21 -0
- data/app/views/databasium/homepage/index.rb +29 -0
- data/app/views/databasium/migrations/index.rb +33 -0
- data/app/views/databasium/migrations/new.rb +29 -0
- data/app/views/databasium/models/index.rb +31 -0
- data/app/views/databasium/models/new.rb +37 -0
- data/app/views/databasium/records/index.rb +24 -0
- data/app/views/databasium/schemas/index.rb +39 -0
- data/app/views/layouts/databasium/application.rb +56 -0
- data/config/importmap.rb +12 -0
- data/config/initializers/heroicon.rb +12 -0
- data/config/initializers/pagy.rb +48 -0
- data/config/initializers/phlex.rb +19 -0
- data/config/routes.rb +31 -0
- data/config/tailwind.config.js +10 -0
- data/lib/databasium/engine.rb +57 -0
- data/lib/databasium/engine_mount.rb +37 -0
- data/lib/databasium/middleware/conditional_check_pending.rb +27 -0
- data/lib/databasium/templates/create_table_migration.rb.tt +29 -0
- data/lib/databasium/templates/migration.rb.tt +48 -0
- data/lib/databasium/templates/model.rb.tt +23 -0
- data/lib/databasium/version.rb +3 -0
- data/lib/databasium.rb +11 -0
- data/lib/tasks/databasium_tasks.rake +4 -0
- metadata +272 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Databasium
|
|
4
|
+
module EngineMount
|
|
5
|
+
module_function
|
|
6
|
+
|
|
7
|
+
def mount_path
|
|
8
|
+
explicit = Rails.application.config.databasium&.mount_path
|
|
9
|
+
return normalize_path(explicit) if explicit.present?
|
|
10
|
+
|
|
11
|
+
detected_mount_path
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def clear_mount_path_cache!
|
|
15
|
+
@detected_mount_path = nil
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def detected_mount_path
|
|
19
|
+
@detected_mount_path ||= find_mount_path_from_routes
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def find_mount_path_from_routes
|
|
23
|
+
route = Rails.application.routes.routes.find { |r| databasium_route?(r) }
|
|
24
|
+
normalize_path(route&.path&.spec&.to_s) || "/databasium"
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def databasium_route?(route)
|
|
28
|
+
app = route.app
|
|
29
|
+
app == Databasium::Engine || (app.respond_to?(:app) && app.app == Databasium::Engine)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def normalize_path(path)
|
|
33
|
+
cleaned = path.to_s.split("(").first.presence || "/"
|
|
34
|
+
cleaned == "/" ? "/" : cleaned.chomp("/")
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Databasium
|
|
4
|
+
module Middleware
|
|
5
|
+
class ConditionalCheckPending < ActiveRecord::Migration::CheckPending
|
|
6
|
+
def call(env)
|
|
7
|
+
request = ActionDispatch::Request.new(env)
|
|
8
|
+
return @app.call(env) if databasium_request?(request)
|
|
9
|
+
|
|
10
|
+
super
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
private
|
|
14
|
+
|
|
15
|
+
def databasium_request?(request)
|
|
16
|
+
prefix = mount_path
|
|
17
|
+
path = request.path
|
|
18
|
+
|
|
19
|
+
path == prefix || path.start_with?("#{prefix}/")
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def mount_path
|
|
23
|
+
Databasium::EngineMount.mount_path
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
|
|
2
|
+
def change
|
|
3
|
+
create_table :<%= table_name %><%= primary_key_type %> do |t|
|
|
4
|
+
<% attributes.each do |attribute| -%>
|
|
5
|
+
<% if attribute.password_digest? -%>
|
|
6
|
+
t.string :password_digest<%= attribute.inject_options %>
|
|
7
|
+
<% elsif attribute.token? -%>
|
|
8
|
+
t.string :<%= attribute.name %><%= attribute.inject_options %>
|
|
9
|
+
<% elsif attribute.reference? -%>
|
|
10
|
+
t.<%= attribute.type %> :<%= attribute.name %><%= attribute.inject_options %><%= foreign_key_type %>
|
|
11
|
+
<% elsif !attribute.virtual? -%>
|
|
12
|
+
t.<%= attribute.type %> :<%= attribute.name %><%= attribute.inject_options %>
|
|
13
|
+
<% end -%>
|
|
14
|
+
<% end -%>
|
|
15
|
+
<% unless attributes.empty? -%>
|
|
16
|
+
|
|
17
|
+
<% end -%>
|
|
18
|
+
<% if options[:timestamps] -%>
|
|
19
|
+
t.timestamps
|
|
20
|
+
<% end -%>
|
|
21
|
+
end
|
|
22
|
+
<% attributes.select(&:token?).each do |attribute| -%>
|
|
23
|
+
add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>, unique: true
|
|
24
|
+
<% end -%>
|
|
25
|
+
<% attributes_with_index.each do |attribute| -%>
|
|
26
|
+
add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>
|
|
27
|
+
<% end -%>
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
|
|
2
|
+
<%- if migration_action == 'add' -%>
|
|
3
|
+
def change
|
|
4
|
+
<% attributes.each do |attribute| -%>
|
|
5
|
+
<%- if attribute.reference? -%>
|
|
6
|
+
add_reference :<%= table_name %>, :<%= attribute.name %><%= attribute.inject_options %><%= foreign_key_type %>
|
|
7
|
+
<%- elsif attribute.token? -%>
|
|
8
|
+
add_column :<%= table_name %>, :<%= attribute.name %>, :string<%= attribute.inject_options %>
|
|
9
|
+
add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>, unique: true
|
|
10
|
+
<%- elsif !attribute.virtual? -%>
|
|
11
|
+
add_column :<%= table_name %>, :<%= attribute.name %>, :<%= attribute.type %><%= attribute.inject_options %>
|
|
12
|
+
<%- if attribute.has_index? -%>
|
|
13
|
+
add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>
|
|
14
|
+
<%- end -%>
|
|
15
|
+
<%- end -%>
|
|
16
|
+
<%- end -%>
|
|
17
|
+
end
|
|
18
|
+
<%- elsif migration_action == 'join' -%>
|
|
19
|
+
def change
|
|
20
|
+
create_join_table :<%= join_tables.first %>, :<%= join_tables.second %> do |t|
|
|
21
|
+
<%- attributes.each do |attribute| -%>
|
|
22
|
+
<%- if attribute.reference? -%>
|
|
23
|
+
t.references :<%= attribute.name %><%= attribute.inject_options %><%= foreign_key_type %>
|
|
24
|
+
<%- elsif !attribute.virtual? -%>
|
|
25
|
+
<%= '# ' unless attribute.has_index? -%>t.index <%= attribute.index_name %><%= attribute.inject_index_options %>
|
|
26
|
+
<%- end -%>
|
|
27
|
+
<%- end -%>
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
<%- else -%>
|
|
31
|
+
def change
|
|
32
|
+
<% attributes.each do |attribute| -%>
|
|
33
|
+
<%- if migration_action -%>
|
|
34
|
+
<%- if attribute.reference? -%>
|
|
35
|
+
remove_reference :<%= table_name %>, :<%= attribute.name %><%= attribute.inject_options %><%= foreign_key_type %>
|
|
36
|
+
<%- else -%>
|
|
37
|
+
<%- if attribute.has_index? -%>
|
|
38
|
+
remove_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>
|
|
39
|
+
<%- end -%>
|
|
40
|
+
<%- if !attribute.virtual? -%>
|
|
41
|
+
remove_column :<%= table_name %>, :<%= attribute.name %>, :<%= attribute.type %><%= attribute.inject_options %>
|
|
42
|
+
<%- end -%>
|
|
43
|
+
<%- end -%>
|
|
44
|
+
<%- end -%>
|
|
45
|
+
<%- end -%>
|
|
46
|
+
end
|
|
47
|
+
<%- end -%>
|
|
48
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<% attributes&.each do |attr| -%>
|
|
2
|
+
# <%= attr[:name] %><%= " " * (longest_name_length - attr[:name].length)%>: <%= attr[:type] %>
|
|
3
|
+
<% end %>
|
|
4
|
+
class <%= model_name.classify %> < ApplicationRecord
|
|
5
|
+
<% relations&.each do |rel| -%>
|
|
6
|
+
<% case rel[:type] -%>
|
|
7
|
+
<% when "has_many" -%>
|
|
8
|
+
<%= rel[:type] %> :<%= relation_name(rel) %>
|
|
9
|
+
<% when "has_and_belongs_to_many" -%>
|
|
10
|
+
<%= rel[:type] %> :<%= relation_name(rel) %>
|
|
11
|
+
<% when "belongs_to", "has_one" -%>
|
|
12
|
+
<%= rel[:type] %> :<%= relation_name(rel) %>
|
|
13
|
+
<% end -%>
|
|
14
|
+
<% end -%>
|
|
15
|
+
<% attributes&.each do |attr| -%>
|
|
16
|
+
<% attr[:validations]&.each do |val| -%>
|
|
17
|
+
validates :<%= val[:name] -%>, <%= val[:type] -%>: <%= val[:value].to_s %>
|
|
18
|
+
<% end -%>
|
|
19
|
+
<% end -%>
|
|
20
|
+
<% unknown&.each do |line| -%>
|
|
21
|
+
<%= line -%>
|
|
22
|
+
<% end -%>
|
|
23
|
+
<%= "end" if unknown.nil? || unknown&.empty? -%>
|
data/lib/databasium.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: databasium
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Róbert Švihla
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rails
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: 8.0.2
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: 8.0.2
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: heroicon
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '1.0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '1.0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: pagy
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '43.2'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '43.2'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: phlex-rails
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '2.4'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '2.4'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: turbo-rails
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - "~>"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '2.0'
|
|
75
|
+
type: :runtime
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '2.0'
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: stimulus-rails
|
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '1.3'
|
|
89
|
+
type: :runtime
|
|
90
|
+
prerelease: false
|
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - "~>"
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '1.3'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: importmap-rails
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - "~>"
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '2.0'
|
|
103
|
+
type: :runtime
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - "~>"
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '2.0'
|
|
110
|
+
description: "Databasium is a Rails engine for helping Rails developers with managing
|
|
111
|
+
database.\n It provides Rails application with 4 primary resources:\n - Records:
|
|
112
|
+
to create, read, update and delete data in your database.\n - Migrations: to
|
|
113
|
+
manage database migrations.\n - Models: to manage Active Record models.\n -
|
|
114
|
+
Schema: generates entity-relationship diagram(ERD) of database from Active Record
|
|
115
|
+
models.\n It is intended to be used only in development environment.\n It
|
|
116
|
+
is not meant to be used in production.\n For security reasons it will try to
|
|
117
|
+
abort application when it is tried to be used in production, just to be sure :). "
|
|
118
|
+
email:
|
|
119
|
+
- robertsvihla@gmail.com
|
|
120
|
+
executables: []
|
|
121
|
+
extensions: []
|
|
122
|
+
extra_rdoc_files: []
|
|
123
|
+
files:
|
|
124
|
+
- CHANGELOG.md
|
|
125
|
+
- MIT-LICENSE
|
|
126
|
+
- README.md
|
|
127
|
+
- Rakefile
|
|
128
|
+
- app/assets/builds/application.js
|
|
129
|
+
- app/assets/builds/application.js.map
|
|
130
|
+
- app/assets/builds/databasium.css
|
|
131
|
+
- app/assets/config/databasium_manifest.js
|
|
132
|
+
- app/assets/javascript/databasium/application.js
|
|
133
|
+
- app/assets/javascript/databasium/controllers/attribute_controller.js
|
|
134
|
+
- app/assets/javascript/databasium/controllers/collapse_controller.js
|
|
135
|
+
- app/assets/javascript/databasium/controllers/error_controller.js
|
|
136
|
+
- app/assets/javascript/databasium/controllers/filter_controller.js
|
|
137
|
+
- app/assets/javascript/databasium/controllers/flash_controller.js
|
|
138
|
+
- app/assets/javascript/databasium/controllers/graph_controller.js
|
|
139
|
+
- app/assets/javascript/databasium/controllers/index.js
|
|
140
|
+
- app/assets/javascript/databasium/controllers/layout_controller.js
|
|
141
|
+
- app/assets/javascript/databasium/controllers/model_controller.js
|
|
142
|
+
- app/assets/javascript/databasium/controllers/new_migration_controller.js
|
|
143
|
+
- app/assets/javascript/databasium/controllers/relation_controller.js
|
|
144
|
+
- app/assets/javascript/databasium/controllers/search_controller.js
|
|
145
|
+
- app/assets/javascript/databasium/controllers/table_controller.js
|
|
146
|
+
- app/assets/javascript/databasium/controllers/table_select_controller.js
|
|
147
|
+
- app/assets/javascript/databasium/controllers/toggle_controller.js
|
|
148
|
+
- app/assets/javascript/databasium/controllers/validation_controller.js
|
|
149
|
+
- app/assets/javascript/databasium/shapes/erd_table_shape.js
|
|
150
|
+
- app/assets/stylesheets/databasium/application.css
|
|
151
|
+
- app/assets/stylesheets/databasium/colors.css
|
|
152
|
+
- app/assets/stylesheets/databasium/custom.css
|
|
153
|
+
- app/assets/stylesheets/databasium/databasium_engine.css
|
|
154
|
+
- app/assets/stylesheets/databasium/pagy-tailwind.css
|
|
155
|
+
- app/components/base.rb
|
|
156
|
+
- app/components/databasium/collapsable.rb
|
|
157
|
+
- app/components/databasium/forms/model.rb
|
|
158
|
+
- app/components/databasium/forms/search.rb
|
|
159
|
+
- app/components/databasium/global/error.rb
|
|
160
|
+
- app/components/databasium/global/flash.rb
|
|
161
|
+
- app/components/databasium/global/header_actions.rb
|
|
162
|
+
- app/components/databasium/global/sidebar.rb
|
|
163
|
+
- app/components/databasium/global/suggestion.rb
|
|
164
|
+
- app/components/databasium/migrations/action.rb
|
|
165
|
+
- app/components/databasium/migrations/file.rb
|
|
166
|
+
- app/components/databasium/migrations/form.rb
|
|
167
|
+
- app/components/databasium/migrations/header_actions.rb
|
|
168
|
+
- app/components/databasium/migrations/migration_status.rb
|
|
169
|
+
- app/components/databasium/migrations/preview.rb
|
|
170
|
+
- app/components/databasium/migrations/show_turbo_stream.rb
|
|
171
|
+
- app/components/databasium/migrations/sidebar.rb
|
|
172
|
+
- app/components/databasium/models/attributes.rb
|
|
173
|
+
- app/components/databasium/models/form.rb
|
|
174
|
+
- app/components/databasium/models/header_actions.rb
|
|
175
|
+
- app/components/databasium/models/model_preview.rb
|
|
176
|
+
- app/components/databasium/models/sidebar.rb
|
|
177
|
+
- app/components/databasium/models/templates/attribute.rb
|
|
178
|
+
- app/components/databasium/models/templates/base.rb
|
|
179
|
+
- app/components/databasium/models/templates/relation.rb
|
|
180
|
+
- app/components/databasium/models/templates/validation.rb
|
|
181
|
+
- app/components/databasium/navigation/base_icon.rb
|
|
182
|
+
- app/components/databasium/navigation/frontend_icon.rb
|
|
183
|
+
- app/components/databasium/navigation/get_icon.rb
|
|
184
|
+
- app/components/databasium/navigation/icon.rb
|
|
185
|
+
- app/components/databasium/navigation/icon_panel.rb
|
|
186
|
+
- app/components/databasium/navigation/post_icon.rb
|
|
187
|
+
- app/components/databasium/navigation/put_icon.rb
|
|
188
|
+
- app/components/databasium/records/filter.rb
|
|
189
|
+
- app/components/databasium/records/foreign_records.rb
|
|
190
|
+
- app/components/databasium/records/header_actions.rb
|
|
191
|
+
- app/components/databasium/records/show_turbo_stream.rb
|
|
192
|
+
- app/components/databasium/records/sidebar.rb
|
|
193
|
+
- app/components/databasium/records/table.rb
|
|
194
|
+
- app/components/databasium/records/table/record_panel.rb
|
|
195
|
+
- app/components/databasium/records/table/row.rb
|
|
196
|
+
- app/components/databasium/records/table_turbo_frame.rb
|
|
197
|
+
- app/components/databasium/records/utilities.rb
|
|
198
|
+
- app/components/databasium/schemas/header_actions.rb
|
|
199
|
+
- app/components/databasium/schemas/sidebar.rb
|
|
200
|
+
- app/components/databasium/search_results/migrations.rb
|
|
201
|
+
- app/components/databasium/search_results/models.rb
|
|
202
|
+
- app/components/databasium/search_results/schema_models.rb
|
|
203
|
+
- app/components/databasium/search_results/tables.rb
|
|
204
|
+
- app/components/databasium/type_select.rb
|
|
205
|
+
- app/controllers/databasium/application_controller.rb
|
|
206
|
+
- app/controllers/databasium/homepage_controller.rb
|
|
207
|
+
- app/controllers/databasium/migrations_controller.rb
|
|
208
|
+
- app/controllers/databasium/models_controller.rb
|
|
209
|
+
- app/controllers/databasium/records_controller.rb
|
|
210
|
+
- app/controllers/databasium/schemas_controller.rb
|
|
211
|
+
- app/helpers/databasium/application_helper.rb
|
|
212
|
+
- app/helpers/databasium/heroicon_helper.rb
|
|
213
|
+
- app/helpers/databasium/models_helper.rb
|
|
214
|
+
- app/jobs/databasium/application_job.rb
|
|
215
|
+
- app/mailers/databasium/application_mailer.rb
|
|
216
|
+
- app/models/databasium/application_record.rb
|
|
217
|
+
- app/models/model.json
|
|
218
|
+
- app/services/databasium/migration.rb
|
|
219
|
+
- app/services/databasium/model.rb
|
|
220
|
+
- app/services/databasium/record.rb
|
|
221
|
+
- app/services/databasium/schema.rb
|
|
222
|
+
- app/views/base.rb
|
|
223
|
+
- app/views/databasium/errors/non_development.rb
|
|
224
|
+
- app/views/databasium/homepage/index.rb
|
|
225
|
+
- app/views/databasium/migrations/index.rb
|
|
226
|
+
- app/views/databasium/migrations/new.rb
|
|
227
|
+
- app/views/databasium/models/index.rb
|
|
228
|
+
- app/views/databasium/models/new.rb
|
|
229
|
+
- app/views/databasium/records/index.rb
|
|
230
|
+
- app/views/databasium/schemas/index.rb
|
|
231
|
+
- app/views/layouts/databasium/application.rb
|
|
232
|
+
- config/importmap.rb
|
|
233
|
+
- config/initializers/heroicon.rb
|
|
234
|
+
- config/initializers/pagy.rb
|
|
235
|
+
- config/initializers/phlex.rb
|
|
236
|
+
- config/routes.rb
|
|
237
|
+
- config/tailwind.config.js
|
|
238
|
+
- lib/databasium.rb
|
|
239
|
+
- lib/databasium/engine.rb
|
|
240
|
+
- lib/databasium/engine_mount.rb
|
|
241
|
+
- lib/databasium/middleware/conditional_check_pending.rb
|
|
242
|
+
- lib/databasium/templates/create_table_migration.rb.tt
|
|
243
|
+
- lib/databasium/templates/migration.rb.tt
|
|
244
|
+
- lib/databasium/templates/model.rb.tt
|
|
245
|
+
- lib/databasium/version.rb
|
|
246
|
+
- lib/tasks/databasium_tasks.rake
|
|
247
|
+
homepage: https://github.com/Unitato1/databasium
|
|
248
|
+
licenses:
|
|
249
|
+
- MIT
|
|
250
|
+
metadata:
|
|
251
|
+
allowed_push_host: https://rubygems.org
|
|
252
|
+
homepage_uri: https://github.com/Unitato1/databasium
|
|
253
|
+
source_code_uri: https://github.com/Unitato1/databasium
|
|
254
|
+
changelog_uri: https://github.com/Unitato1/databasium/blob/main/CHANGELOG.md
|
|
255
|
+
rdoc_options: []
|
|
256
|
+
require_paths:
|
|
257
|
+
- lib
|
|
258
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
259
|
+
requirements:
|
|
260
|
+
- - ">="
|
|
261
|
+
- !ruby/object:Gem::Version
|
|
262
|
+
version: '3.2'
|
|
263
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
|
+
requirements:
|
|
265
|
+
- - ">="
|
|
266
|
+
- !ruby/object:Gem::Version
|
|
267
|
+
version: '0'
|
|
268
|
+
requirements: []
|
|
269
|
+
rubygems_version: 4.0.8
|
|
270
|
+
specification_version: 4
|
|
271
|
+
summary: Databasium is a tool for managing your database.
|
|
272
|
+
test_files: []
|