katalyst-koi 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +23 -0
- data/Upgrade.md +6 -0
- data/app/assets/builds/koi/admin.css +1 -0
- data/app/assets/builds/koi/nav_items.css +1 -0
- data/app/assets/config/koi.js +10 -0
- data/app/assets/images/koi/application/chevron-right.svg +10 -0
- data/app/assets/images/koi/application/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/koi/application/glyphicons-halflings.png +0 -0
- data/app/assets/images/koi/application/icon-collapse-down.png +0 -0
- data/app/assets/images/koi/application/icon-collapse-up.png +0 -0
- data/app/assets/images/koi/application/icon-file-doc.png +0 -0
- data/app/assets/images/koi/application/icon-file-img.png +0 -0
- data/app/assets/images/koi/application/icon-file-pdf.png +0 -0
- data/app/assets/images/koi/application/icon-file-ppt.png +0 -0
- data/app/assets/images/koi/application/icon-file-unknown.png +0 -0
- data/app/assets/images/koi/application/icon-file-xls.png +0 -0
- data/app/assets/images/koi/application/icon-file-zip.png +0 -0
- data/app/assets/images/koi/application/icon-form-date-picker.png +0 -0
- data/app/assets/images/koi/application/icon-form-error.png +0 -0
- data/app/assets/images/koi/application/icon-index-sort-ascending.png +0 -0
- data/app/assets/images/koi/application/icon-index-sort-descending.png +0 -0
- data/app/assets/images/koi/application/icon-index-sort.png +0 -0
- data/app/assets/images/koi/application/icon-index-sortable.png +0 -0
- data/app/assets/images/koi/application/icon-menu-cursor.png +0 -0
- data/app/assets/images/koi/application/icon-overlay-add.png +0 -0
- data/app/assets/images/koi/application/icon-overlay-close.png +0 -0
- data/app/assets/images/koi/application/icon-sortable.png +0 -0
- data/app/assets/images/koi/application/jcrop.gif +0 -0
- data/app/assets/images/koi/application/loading.gif +0 -0
- data/app/assets/images/koi/application/select-arrow.svg +3 -0
- data/app/assets/images/koi/application/select_arrow.png +0 -0
- data/app/assets/images/koi/application/sort-ascending.png +0 -0
- data/app/assets/images/koi/application/sort-descending.png +0 -0
- data/app/assets/javascripts/koi/admin.js +4 -0
- data/app/assets/javascripts/koi/controllers/application.js +11 -0
- data/app/assets/javascripts/koi/controllers/document_field_controller.js +26 -0
- data/app/assets/javascripts/koi/controllers/file_field_controller.js +143 -0
- data/app/assets/javascripts/koi/controllers/flash_controller.js +12 -0
- data/app/assets/javascripts/koi/controllers/form_request_submit_controller.js +11 -0
- data/app/assets/javascripts/koi/controllers/image_field_controller.js +24 -0
- data/app/assets/javascripts/koi/controllers/index.js +6 -0
- data/app/assets/javascripts/koi/controllers/index_actions_controller.js +61 -0
- data/app/assets/javascripts/koi/controllers/keyboard_controller.js +149 -0
- data/app/assets/javascripts/koi/controllers/navigation_controller.js +84 -0
- data/app/assets/javascripts/koi/controllers/navigation_toggle_controller.js +7 -0
- data/app/assets/javascripts/koi/controllers/show_hide_controller.js +25 -0
- data/app/assets/javascripts/koi/controllers/sluggable_controller.js +30 -0
- data/app/assets/javascripts/koi/controllers/webauthn_authentication_controller.js +23 -0
- data/app/assets/javascripts/koi/controllers/webauthn_registration_controller.js +30 -0
- data/app/assets/javascripts/koi/utils/transition.js +220 -0
- data/app/assets/stylesheets/koi/admin.scss +27 -0
- data/app/assets/stylesheets/koi/base/_button.scss +122 -0
- data/app/assets/stylesheets/koi/base/_icon.scss +29 -0
- data/app/assets/stylesheets/koi/base/_index.scss +18 -0
- data/app/assets/stylesheets/koi/base/_input.scss +13 -0
- data/app/assets/stylesheets/koi/base/_link.scss +26 -0
- data/app/assets/stylesheets/koi/base/_list.scss +11 -0
- data/app/assets/stylesheets/koi/base/_typography.scss +160 -0
- data/app/assets/stylesheets/koi/components/_actions-group.scss +7 -0
- data/app/assets/stylesheets/koi/components/_image-field.scss +33 -0
- data/app/assets/stylesheets/koi/components/_index-actions.scss +69 -0
- data/app/assets/stylesheets/koi/components/_index-table.scss +91 -0
- data/app/assets/stylesheets/koi/components/_index.scss +6 -0
- data/app/assets/stylesheets/koi/components/_item-table.scss +33 -0
- data/app/assets/stylesheets/koi/components/_pagy.scss +41 -0
- data/app/assets/stylesheets/koi/layouts/_banner.scss +7 -0
- data/app/assets/stylesheets/koi/layouts/_content.scss +40 -0
- data/app/assets/stylesheets/koi/layouts/_flash.scss +41 -0
- data/app/assets/stylesheets/koi/layouts/_header.scss +62 -0
- data/app/assets/stylesheets/koi/layouts/_index.scss +48 -0
- data/app/assets/stylesheets/koi/layouts/_main.scss +23 -0
- data/app/assets/stylesheets/koi/layouts/_navigation.scss +156 -0
- data/app/assets/stylesheets/koi/layouts/_stack.scss +13 -0
- data/app/assets/stylesheets/koi/pages/_index.scss +1 -0
- data/app/assets/stylesheets/koi/pages/_login.scss +40 -0
- data/app/assets/stylesheets/koi/themes/_content.scss +5 -0
- data/app/assets/stylesheets/koi/themes/_govuk.scss +52 -0
- data/app/assets/stylesheets/koi/themes/_index.scss +5 -0
- data/app/assets/stylesheets/koi/themes/_kpop.scss +5 -0
- data/app/assets/stylesheets/koi/themes/_navigation.scss +5 -0
- data/app/assets/stylesheets/koi/themes/_trix.scss +32 -0
- data/app/assets/stylesheets/koi/utils/_breakpoints.scss +13 -0
- data/app/assets/stylesheets/koi/utils/_hide.scss +11 -0
- data/app/assets/stylesheets/koi/utils/_index.scss +2 -0
- data/app/assets/stylesheets/koi/utils/_typography.scss +24 -0
- data/app/components/koi/header/edit_component.rb +58 -0
- data/app/components/koi/header/index_component.rb +23 -0
- data/app/components/koi/header/new_component.rb +40 -0
- data/app/components/koi/header/show_component.rb +51 -0
- data/app/components/koi/header_component.html.erb +16 -0
- data/app/components/koi/header_component.rb +28 -0
- data/app/components/koi/index_table_component.rb +21 -0
- data/app/controllers/admin/admin_users_controller.rb +88 -0
- data/app/controllers/admin/application_controller.rb +9 -0
- data/app/controllers/admin/caches_controller.rb +11 -0
- data/app/controllers/admin/credentials_controller.rb +64 -0
- data/app/controllers/admin/dashboards_controller.rb +7 -0
- data/app/controllers/admin/sessions_controller.rb +78 -0
- data/app/controllers/admin/url_rewrites_controller.rb +87 -0
- data/app/controllers/concerns/koi/controller/has_admin_users.rb +49 -0
- data/app/controllers/concerns/koi/controller/has_webauthn.rb +45 -0
- data/app/controllers/concerns/koi/controller/is_admin_controller.rb +52 -0
- data/app/helpers/katalyst/content/editor/errors.rb +21 -0
- data/app/helpers/katalyst/navigation/editor/errors.rb +21 -0
- data/app/helpers/koi/application_helper.rb +7 -0
- data/app/helpers/koi/date_helper.rb +36 -0
- data/app/helpers/koi/definition_list_helper.rb +92 -0
- data/app/helpers/koi/index_actions_helper.rb +99 -0
- data/app/jobs/koi/application_job.rb +6 -0
- data/app/mailers/koi/application_mailer.rb +8 -0
- data/app/models/admin/credential.rb +14 -0
- data/app/models/admin/user.rb +51 -0
- data/app/models/application_record.rb +5 -0
- data/app/models/concerns/koi/model/archivable.rb +55 -0
- data/app/models/url_rewrite.rb +25 -0
- data/app/views/admin/admin_users/_admin.html+row.erb +4 -0
- data/app/views/admin/admin_users/_authentication.html.erb +15 -0
- data/app/views/admin/admin_users/_fields.html.erb +4 -0
- data/app/views/admin/admin_users/edit.html.erb +11 -0
- data/app/views/admin/admin_users/index.html.erb +9 -0
- data/app/views/admin/admin_users/new.html.erb +11 -0
- data/app/views/admin/admin_users/show.html.erb +22 -0
- data/app/views/admin/credentials/new.html.erb +14 -0
- data/app/views/admin/dashboards/show.html.erb +1 -0
- data/app/views/admin/sessions/new.html.erb +19 -0
- data/app/views/admin/shared/icons/_close.html.erb +8 -0
- data/app/views/admin/shared/icons/_cross.html.erb +3 -0
- data/app/views/admin/shared/icons/_menu.html.erb +3 -0
- data/app/views/admin/shared/icons/_refresh.html.erb +8 -0
- data/app/views/admin/url_rewrites/_form_fields.html.erb +3 -0
- data/app/views/admin/url_rewrites/_url_rewrite.html+row.erb +7 -0
- data/app/views/admin/url_rewrites/edit.html.erb +12 -0
- data/app/views/admin/url_rewrites/index.html.erb +10 -0
- data/app/views/admin/url_rewrites/new.html.erb +11 -0
- data/app/views/admin/url_rewrites/show.html.erb +16 -0
- data/app/views/katalyst/content/asides/_aside.html+form.erb +18 -0
- data/app/views/katalyst/content/columns/_column.html+form.erb +18 -0
- data/app/views/katalyst/content/contents/_content.html+form.erb +20 -0
- data/app/views/katalyst/content/figures/_figure.html+form.erb +17 -0
- data/app/views/katalyst/content/groups/_group.html+form.erb +18 -0
- data/app/views/katalyst/content/items/_item.html+form.erb +18 -0
- data/app/views/katalyst/content/sections/_section.html+form.erb +18 -0
- data/app/views/katalyst/navigation/items/_button.html.erb +15 -0
- data/app/views/katalyst/navigation/items/_heading.html.erb +11 -0
- data/app/views/katalyst/navigation/items/_link.html.erb +13 -0
- data/app/views/katalyst/navigation/menus/edit.html.erb +12 -0
- data/app/views/katalyst/navigation/menus/new.html.erb +9 -0
- data/app/views/katalyst/navigation/menus/show.html.erb +18 -0
- data/app/views/layouts/koi/_environment.html.erb +4 -0
- data/app/views/layouts/koi/_flash.html.erb +8 -0
- data/app/views/layouts/koi/_header.html.erb +11 -0
- data/app/views/layouts/koi/_navigation.html.erb +13 -0
- data/app/views/layouts/koi/_navigation_collapse.html.erb +3 -0
- data/app/views/layouts/koi/_navigation_header.html.erb +6 -0
- data/app/views/layouts/koi/_navigation_item.html.erb +12 -0
- data/app/views/layouts/koi/application.html.erb +59 -0
- data/app/views/layouts/koi/login.html.erb +29 -0
- data/config/importmap.rb +9 -0
- data/config/initializers/flipper.rb +13 -0
- data/config/initializers/pagy.rb +1 -0
- data/config/initializers/time_formats.rb +5 -0
- data/config/locales/koi.en.yml +18 -0
- data/config/locales/pagy.en.yml +6 -0
- data/config/routes.rb +25 -0
- data/db/migrate/20120220130849_devise_create_admins.rb +56 -0
- data/db/migrate/20130509235316_add_url_rewriter.rb +13 -0
- data/db/migrate/20230213053854_convert_devise_admins_to_rails.rb +7 -0
- data/db/migrate/20230412023411_create_admin_user_credentials.rb +20 -0
- data/db/migrate/20230531063707_update_admin_users.rb +37 -0
- data/db/migrate/20230602033610_add_archived_to_admin_users.rb +7 -0
- data/db/seeds.rb +9 -0
- data/lib/generators/koi/active_record/active_record_generator.rb +43 -0
- data/lib/generators/koi/admin/USAGE +8 -0
- data/lib/generators/koi/admin/admin_generator.rb +20 -0
- data/lib/generators/koi/admin_controller/USAGE +17 -0
- data/lib/generators/koi/admin_controller/admin_controller_generator.rb +51 -0
- data/lib/generators/koi/admin_controller/templates/controller.rb.tt +81 -0
- data/lib/generators/koi/admin_controller/templates/controller_spec.rb.tt +135 -0
- data/lib/generators/koi/admin_route/admin_route_generator.rb +62 -0
- data/lib/generators/koi/admin_views/USAGE +12 -0
- data/lib/generators/koi/admin_views/admin_views_generator.rb +54 -0
- data/lib/generators/koi/admin_views/templates/_fields.html.erb.tt +3 -0
- data/lib/generators/koi/admin_views/templates/_record.html+row.erb.tt +10 -0
- data/lib/generators/koi/admin_views/templates/edit.html.erb.tt +12 -0
- data/lib/generators/koi/admin_views/templates/index.html.erb.tt +7 -0
- data/lib/generators/koi/admin_views/templates/new.html.erb.tt +11 -0
- data/lib/generators/koi/admin_views/templates/show.html.erb.tt +18 -0
- data/lib/govuk_design_system_formbuilder/concerns/file_element.rb +115 -0
- data/lib/govuk_design_system_formbuilder/elements/document.rb +59 -0
- data/lib/govuk_design_system_formbuilder/elements/image.rb +86 -0
- data/lib/katalyst/koi.rb +3 -0
- data/lib/koi/caching.rb +15 -0
- data/lib/koi/config.rb +11 -0
- data/lib/koi/engine.rb +40 -0
- data/lib/koi/form_builder.rb +76 -0
- data/lib/koi/menu/builder.rb +68 -0
- data/lib/koi/menu.rb +46 -0
- data/lib/koi/middleware/url_redirect.rb +44 -0
- data/lib/koi/release.rb +52 -0
- data/lib/koi/version.rb +5 -0
- data/lib/koi.rb +37 -0
- data/spec/factories/admins.rb +9 -0
- data/spec/factories/url_rewrites.rb +9 -0
- metadata +430 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Koi
|
4
|
+
class UrlRedirect
|
5
|
+
def initialize(app)
|
6
|
+
@app = app
|
7
|
+
end
|
8
|
+
|
9
|
+
def call(env)
|
10
|
+
status, headers, body = @app.call(env)
|
11
|
+
|
12
|
+
current_path = env["REQUEST_PATH"]
|
13
|
+
|
14
|
+
if status.to_i == 404 && current_path.exclude?("mini-profiler-resources") &&
|
15
|
+
(new_path = find_redirect(current_path))
|
16
|
+
request = ActionDispatch::Request.new(env)
|
17
|
+
|
18
|
+
# Close the body as we will not use it for a 301 redirect
|
19
|
+
body.close
|
20
|
+
|
21
|
+
# Issue a "Moved permanently" response with the redirect location
|
22
|
+
[301, { "Location" => new_location(current_path, new_path, request) },
|
23
|
+
["#{current_path} moved. The document has moved to #{new_path}"]]
|
24
|
+
else
|
25
|
+
# Not a 404 or no redirect found, just send the response as is
|
26
|
+
[status, headers, body]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def new_location(current_path, new_path, request)
|
33
|
+
if %r{\Ahttps{0,1}://}.match?(new_path)
|
34
|
+
new_path
|
35
|
+
else
|
36
|
+
request.original_url.gsub(current_path, new_path)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def find_redirect(path)
|
41
|
+
UrlRewrite.redirect_path_for(path)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/koi/release.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Koi
|
4
|
+
module Release
|
5
|
+
def version
|
6
|
+
@version ||= read(::Rails.root.join("VERSION"))
|
7
|
+
end
|
8
|
+
|
9
|
+
module_function :version
|
10
|
+
|
11
|
+
def revision
|
12
|
+
@revision ||= read(::Rails.root.join("REVISION"))
|
13
|
+
end
|
14
|
+
|
15
|
+
module_function :revision
|
16
|
+
|
17
|
+
def meta_tags(context)
|
18
|
+
ReleaseMetaTagsBuilder.new(context).render
|
19
|
+
end
|
20
|
+
|
21
|
+
module_function :meta_tags
|
22
|
+
|
23
|
+
def read(file)
|
24
|
+
return "HEAD" if Rails.env.development?
|
25
|
+
return "unknown" unless File.exist?(file)
|
26
|
+
|
27
|
+
File.read(file).strip
|
28
|
+
end
|
29
|
+
|
30
|
+
module_function :read
|
31
|
+
end
|
32
|
+
|
33
|
+
class ReleaseMetaTagsBuilder
|
34
|
+
delegate_missing_to :@context
|
35
|
+
|
36
|
+
def initialize(context)
|
37
|
+
@context = context
|
38
|
+
end
|
39
|
+
|
40
|
+
def version
|
41
|
+
tag.meta(name: "application-version", content: Koi::Release.version)
|
42
|
+
end
|
43
|
+
|
44
|
+
def revision
|
45
|
+
tag.meta(name: "application-revision", content: Koi::Release.revision)
|
46
|
+
end
|
47
|
+
|
48
|
+
def render
|
49
|
+
version + revision
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/koi/version.rb
ADDED
data/lib/koi.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "importmap-rails"
|
4
|
+
require "katalyst/govuk/formbuilder"
|
5
|
+
require "govuk_design_system_formbuilder/concerns/file_element"
|
6
|
+
require "govuk_design_system_formbuilder/elements/document"
|
7
|
+
require "govuk_design_system_formbuilder/elements/image"
|
8
|
+
require "katalyst/tables"
|
9
|
+
require "pagy"
|
10
|
+
require "stimulus-rails"
|
11
|
+
require "turbo-rails"
|
12
|
+
require "webauthn"
|
13
|
+
|
14
|
+
require "koi/form_builder"
|
15
|
+
require "koi/menu"
|
16
|
+
require "koi/caching"
|
17
|
+
require "koi/config"
|
18
|
+
require "koi/engine"
|
19
|
+
require "koi/release"
|
20
|
+
|
21
|
+
require "katalyst/content"
|
22
|
+
require "katalyst/kpop"
|
23
|
+
require "katalyst/navigation"
|
24
|
+
|
25
|
+
require "view_component"
|
26
|
+
|
27
|
+
module Koi
|
28
|
+
extend self
|
29
|
+
|
30
|
+
def config
|
31
|
+
@config ||= Config.new
|
32
|
+
end
|
33
|
+
|
34
|
+
def configure
|
35
|
+
yield config
|
36
|
+
end
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,430 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: katalyst-koi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 4.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Katalyst Interactive
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '7.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: importmap-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: stimulus-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: turbo-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bcrypt
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webauthn
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: katalyst-govuk-formbuilder
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pagy
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: view_component
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: katalyst-content
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: katalyst-kpop
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: katalyst-navigation
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: katalyst-tables
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
description:
|
196
|
+
email:
|
197
|
+
- developers@katalyst.com.au
|
198
|
+
executables: []
|
199
|
+
extensions: []
|
200
|
+
extra_rdoc_files: []
|
201
|
+
files:
|
202
|
+
- MIT-LICENSE
|
203
|
+
- README.md
|
204
|
+
- Upgrade.md
|
205
|
+
- app/assets/builds/koi/admin.css
|
206
|
+
- app/assets/builds/koi/nav_items.css
|
207
|
+
- app/assets/config/koi.js
|
208
|
+
- app/assets/images/koi/application/chevron-right.svg
|
209
|
+
- app/assets/images/koi/application/glyphicons-halflings-white.png
|
210
|
+
- app/assets/images/koi/application/glyphicons-halflings.png
|
211
|
+
- app/assets/images/koi/application/icon-collapse-down.png
|
212
|
+
- app/assets/images/koi/application/icon-collapse-up.png
|
213
|
+
- app/assets/images/koi/application/icon-file-doc.png
|
214
|
+
- app/assets/images/koi/application/icon-file-img.png
|
215
|
+
- app/assets/images/koi/application/icon-file-pdf.png
|
216
|
+
- app/assets/images/koi/application/icon-file-ppt.png
|
217
|
+
- app/assets/images/koi/application/icon-file-unknown.png
|
218
|
+
- app/assets/images/koi/application/icon-file-xls.png
|
219
|
+
- app/assets/images/koi/application/icon-file-zip.png
|
220
|
+
- app/assets/images/koi/application/icon-form-date-picker.png
|
221
|
+
- app/assets/images/koi/application/icon-form-error.png
|
222
|
+
- app/assets/images/koi/application/icon-index-sort-ascending.png
|
223
|
+
- app/assets/images/koi/application/icon-index-sort-descending.png
|
224
|
+
- app/assets/images/koi/application/icon-index-sort.png
|
225
|
+
- app/assets/images/koi/application/icon-index-sortable.png
|
226
|
+
- app/assets/images/koi/application/icon-menu-cursor.png
|
227
|
+
- app/assets/images/koi/application/icon-overlay-add.png
|
228
|
+
- app/assets/images/koi/application/icon-overlay-close.png
|
229
|
+
- app/assets/images/koi/application/icon-sortable.png
|
230
|
+
- app/assets/images/koi/application/jcrop.gif
|
231
|
+
- app/assets/images/koi/application/loading.gif
|
232
|
+
- app/assets/images/koi/application/select-arrow.svg
|
233
|
+
- app/assets/images/koi/application/select_arrow.png
|
234
|
+
- app/assets/images/koi/application/sort-ascending.png
|
235
|
+
- app/assets/images/koi/application/sort-descending.png
|
236
|
+
- app/assets/javascripts/koi/admin.js
|
237
|
+
- app/assets/javascripts/koi/controllers/application.js
|
238
|
+
- app/assets/javascripts/koi/controllers/document_field_controller.js
|
239
|
+
- app/assets/javascripts/koi/controllers/file_field_controller.js
|
240
|
+
- app/assets/javascripts/koi/controllers/flash_controller.js
|
241
|
+
- app/assets/javascripts/koi/controllers/form_request_submit_controller.js
|
242
|
+
- app/assets/javascripts/koi/controllers/image_field_controller.js
|
243
|
+
- app/assets/javascripts/koi/controllers/index.js
|
244
|
+
- app/assets/javascripts/koi/controllers/index_actions_controller.js
|
245
|
+
- app/assets/javascripts/koi/controllers/keyboard_controller.js
|
246
|
+
- app/assets/javascripts/koi/controllers/navigation_controller.js
|
247
|
+
- app/assets/javascripts/koi/controllers/navigation_toggle_controller.js
|
248
|
+
- app/assets/javascripts/koi/controllers/show_hide_controller.js
|
249
|
+
- app/assets/javascripts/koi/controllers/sluggable_controller.js
|
250
|
+
- app/assets/javascripts/koi/controllers/webauthn_authentication_controller.js
|
251
|
+
- app/assets/javascripts/koi/controllers/webauthn_registration_controller.js
|
252
|
+
- app/assets/javascripts/koi/utils/transition.js
|
253
|
+
- app/assets/stylesheets/koi/admin.scss
|
254
|
+
- app/assets/stylesheets/koi/base/_button.scss
|
255
|
+
- app/assets/stylesheets/koi/base/_icon.scss
|
256
|
+
- app/assets/stylesheets/koi/base/_index.scss
|
257
|
+
- app/assets/stylesheets/koi/base/_input.scss
|
258
|
+
- app/assets/stylesheets/koi/base/_link.scss
|
259
|
+
- app/assets/stylesheets/koi/base/_list.scss
|
260
|
+
- app/assets/stylesheets/koi/base/_typography.scss
|
261
|
+
- app/assets/stylesheets/koi/components/_actions-group.scss
|
262
|
+
- app/assets/stylesheets/koi/components/_image-field.scss
|
263
|
+
- app/assets/stylesheets/koi/components/_index-actions.scss
|
264
|
+
- app/assets/stylesheets/koi/components/_index-table.scss
|
265
|
+
- app/assets/stylesheets/koi/components/_index.scss
|
266
|
+
- app/assets/stylesheets/koi/components/_item-table.scss
|
267
|
+
- app/assets/stylesheets/koi/components/_pagy.scss
|
268
|
+
- app/assets/stylesheets/koi/layouts/_banner.scss
|
269
|
+
- app/assets/stylesheets/koi/layouts/_content.scss
|
270
|
+
- app/assets/stylesheets/koi/layouts/_flash.scss
|
271
|
+
- app/assets/stylesheets/koi/layouts/_header.scss
|
272
|
+
- app/assets/stylesheets/koi/layouts/_index.scss
|
273
|
+
- app/assets/stylesheets/koi/layouts/_main.scss
|
274
|
+
- app/assets/stylesheets/koi/layouts/_navigation.scss
|
275
|
+
- app/assets/stylesheets/koi/layouts/_stack.scss
|
276
|
+
- app/assets/stylesheets/koi/pages/_index.scss
|
277
|
+
- app/assets/stylesheets/koi/pages/_login.scss
|
278
|
+
- app/assets/stylesheets/koi/themes/_content.scss
|
279
|
+
- app/assets/stylesheets/koi/themes/_govuk.scss
|
280
|
+
- app/assets/stylesheets/koi/themes/_index.scss
|
281
|
+
- app/assets/stylesheets/koi/themes/_kpop.scss
|
282
|
+
- app/assets/stylesheets/koi/themes/_navigation.scss
|
283
|
+
- app/assets/stylesheets/koi/themes/_trix.scss
|
284
|
+
- app/assets/stylesheets/koi/utils/_breakpoints.scss
|
285
|
+
- app/assets/stylesheets/koi/utils/_hide.scss
|
286
|
+
- app/assets/stylesheets/koi/utils/_index.scss
|
287
|
+
- app/assets/stylesheets/koi/utils/_typography.scss
|
288
|
+
- app/components/koi/header/edit_component.rb
|
289
|
+
- app/components/koi/header/index_component.rb
|
290
|
+
- app/components/koi/header/new_component.rb
|
291
|
+
- app/components/koi/header/show_component.rb
|
292
|
+
- app/components/koi/header_component.html.erb
|
293
|
+
- app/components/koi/header_component.rb
|
294
|
+
- app/components/koi/index_table_component.rb
|
295
|
+
- app/controllers/admin/admin_users_controller.rb
|
296
|
+
- app/controllers/admin/application_controller.rb
|
297
|
+
- app/controllers/admin/caches_controller.rb
|
298
|
+
- app/controllers/admin/credentials_controller.rb
|
299
|
+
- app/controllers/admin/dashboards_controller.rb
|
300
|
+
- app/controllers/admin/sessions_controller.rb
|
301
|
+
- app/controllers/admin/url_rewrites_controller.rb
|
302
|
+
- app/controllers/concerns/koi/controller/has_admin_users.rb
|
303
|
+
- app/controllers/concerns/koi/controller/has_webauthn.rb
|
304
|
+
- app/controllers/concerns/koi/controller/is_admin_controller.rb
|
305
|
+
- app/helpers/katalyst/content/editor/errors.rb
|
306
|
+
- app/helpers/katalyst/navigation/editor/errors.rb
|
307
|
+
- app/helpers/koi/application_helper.rb
|
308
|
+
- app/helpers/koi/date_helper.rb
|
309
|
+
- app/helpers/koi/definition_list_helper.rb
|
310
|
+
- app/helpers/koi/index_actions_helper.rb
|
311
|
+
- app/jobs/koi/application_job.rb
|
312
|
+
- app/mailers/koi/application_mailer.rb
|
313
|
+
- app/models/admin/credential.rb
|
314
|
+
- app/models/admin/user.rb
|
315
|
+
- app/models/application_record.rb
|
316
|
+
- app/models/concerns/koi/model/archivable.rb
|
317
|
+
- app/models/url_rewrite.rb
|
318
|
+
- app/views/admin/admin_users/_admin.html+row.erb
|
319
|
+
- app/views/admin/admin_users/_authentication.html.erb
|
320
|
+
- app/views/admin/admin_users/_fields.html.erb
|
321
|
+
- app/views/admin/admin_users/edit.html.erb
|
322
|
+
- app/views/admin/admin_users/index.html.erb
|
323
|
+
- app/views/admin/admin_users/new.html.erb
|
324
|
+
- app/views/admin/admin_users/show.html.erb
|
325
|
+
- app/views/admin/credentials/new.html.erb
|
326
|
+
- app/views/admin/dashboards/show.html.erb
|
327
|
+
- app/views/admin/sessions/new.html.erb
|
328
|
+
- app/views/admin/shared/icons/_close.html.erb
|
329
|
+
- app/views/admin/shared/icons/_cross.html.erb
|
330
|
+
- app/views/admin/shared/icons/_menu.html.erb
|
331
|
+
- app/views/admin/shared/icons/_refresh.html.erb
|
332
|
+
- app/views/admin/url_rewrites/_form_fields.html.erb
|
333
|
+
- app/views/admin/url_rewrites/_url_rewrite.html+row.erb
|
334
|
+
- app/views/admin/url_rewrites/edit.html.erb
|
335
|
+
- app/views/admin/url_rewrites/index.html.erb
|
336
|
+
- app/views/admin/url_rewrites/new.html.erb
|
337
|
+
- app/views/admin/url_rewrites/show.html.erb
|
338
|
+
- app/views/katalyst/content/asides/_aside.html+form.erb
|
339
|
+
- app/views/katalyst/content/columns/_column.html+form.erb
|
340
|
+
- app/views/katalyst/content/contents/_content.html+form.erb
|
341
|
+
- app/views/katalyst/content/figures/_figure.html+form.erb
|
342
|
+
- app/views/katalyst/content/groups/_group.html+form.erb
|
343
|
+
- app/views/katalyst/content/items/_item.html+form.erb
|
344
|
+
- app/views/katalyst/content/sections/_section.html+form.erb
|
345
|
+
- app/views/katalyst/navigation/items/_button.html.erb
|
346
|
+
- app/views/katalyst/navigation/items/_heading.html.erb
|
347
|
+
- app/views/katalyst/navigation/items/_link.html.erb
|
348
|
+
- app/views/katalyst/navigation/menus/edit.html.erb
|
349
|
+
- app/views/katalyst/navigation/menus/new.html.erb
|
350
|
+
- app/views/katalyst/navigation/menus/show.html.erb
|
351
|
+
- app/views/layouts/koi/_environment.html.erb
|
352
|
+
- app/views/layouts/koi/_flash.html.erb
|
353
|
+
- app/views/layouts/koi/_header.html.erb
|
354
|
+
- app/views/layouts/koi/_navigation.html.erb
|
355
|
+
- app/views/layouts/koi/_navigation_collapse.html.erb
|
356
|
+
- app/views/layouts/koi/_navigation_header.html.erb
|
357
|
+
- app/views/layouts/koi/_navigation_item.html.erb
|
358
|
+
- app/views/layouts/koi/application.html.erb
|
359
|
+
- app/views/layouts/koi/login.html.erb
|
360
|
+
- config/importmap.rb
|
361
|
+
- config/initializers/flipper.rb
|
362
|
+
- config/initializers/pagy.rb
|
363
|
+
- config/initializers/time_formats.rb
|
364
|
+
- config/locales/koi.en.yml
|
365
|
+
- config/locales/pagy.en.yml
|
366
|
+
- config/routes.rb
|
367
|
+
- db/migrate/20120220130849_devise_create_admins.rb
|
368
|
+
- db/migrate/20130509235316_add_url_rewriter.rb
|
369
|
+
- db/migrate/20230213053854_convert_devise_admins_to_rails.rb
|
370
|
+
- db/migrate/20230412023411_create_admin_user_credentials.rb
|
371
|
+
- db/migrate/20230531063707_update_admin_users.rb
|
372
|
+
- db/migrate/20230602033610_add_archived_to_admin_users.rb
|
373
|
+
- db/seeds.rb
|
374
|
+
- lib/generators/koi/active_record/active_record_generator.rb
|
375
|
+
- lib/generators/koi/admin/USAGE
|
376
|
+
- lib/generators/koi/admin/admin_generator.rb
|
377
|
+
- lib/generators/koi/admin_controller/USAGE
|
378
|
+
- lib/generators/koi/admin_controller/admin_controller_generator.rb
|
379
|
+
- lib/generators/koi/admin_controller/templates/controller.rb.tt
|
380
|
+
- lib/generators/koi/admin_controller/templates/controller_spec.rb.tt
|
381
|
+
- lib/generators/koi/admin_route/admin_route_generator.rb
|
382
|
+
- lib/generators/koi/admin_views/USAGE
|
383
|
+
- lib/generators/koi/admin_views/admin_views_generator.rb
|
384
|
+
- lib/generators/koi/admin_views/templates/_fields.html.erb.tt
|
385
|
+
- lib/generators/koi/admin_views/templates/_record.html+row.erb.tt
|
386
|
+
- lib/generators/koi/admin_views/templates/edit.html.erb.tt
|
387
|
+
- lib/generators/koi/admin_views/templates/index.html.erb.tt
|
388
|
+
- lib/generators/koi/admin_views/templates/new.html.erb.tt
|
389
|
+
- lib/generators/koi/admin_views/templates/show.html.erb.tt
|
390
|
+
- lib/govuk_design_system_formbuilder/concerns/file_element.rb
|
391
|
+
- lib/govuk_design_system_formbuilder/elements/document.rb
|
392
|
+
- lib/govuk_design_system_formbuilder/elements/image.rb
|
393
|
+
- lib/katalyst/koi.rb
|
394
|
+
- lib/koi.rb
|
395
|
+
- lib/koi/caching.rb
|
396
|
+
- lib/koi/config.rb
|
397
|
+
- lib/koi/engine.rb
|
398
|
+
- lib/koi/form_builder.rb
|
399
|
+
- lib/koi/menu.rb
|
400
|
+
- lib/koi/menu/builder.rb
|
401
|
+
- lib/koi/middleware/url_redirect.rb
|
402
|
+
- lib/koi/release.rb
|
403
|
+
- lib/koi/version.rb
|
404
|
+
- spec/factories/admins.rb
|
405
|
+
- spec/factories/url_rewrites.rb
|
406
|
+
homepage: https://github.com/katalyst/koi
|
407
|
+
licenses:
|
408
|
+
- MIT
|
409
|
+
metadata:
|
410
|
+
rubygems_mfa_required: 'true'
|
411
|
+
post_install_message:
|
412
|
+
rdoc_options: []
|
413
|
+
require_paths:
|
414
|
+
- lib
|
415
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
416
|
+
requirements:
|
417
|
+
- - ">="
|
418
|
+
- !ruby/object:Gem::Version
|
419
|
+
version: '3.1'
|
420
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
421
|
+
requirements:
|
422
|
+
- - ">="
|
423
|
+
- !ruby/object:Gem::Version
|
424
|
+
version: '0'
|
425
|
+
requirements: []
|
426
|
+
rubygems_version: 3.4.12
|
427
|
+
signing_key:
|
428
|
+
specification_version: 4
|
429
|
+
summary: Koi CMS admin framework
|
430
|
+
test_files: []
|