mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-04-29 15:58:44 +00:00
add Bonfire.Encrypt
This commit is contained in:
parent
7b03a555d4
commit
df7e916682
|
@ -73,3 +73,5 @@ bonfire_pages = "https://github.com/bonfire-networks/bonfire_pages#main"
|
|||
# beacon = "https://github.com/bonfire-networks/beacon#bonfire"
|
||||
|
||||
bonfire_upcycle = "https://gitlab.com/bonfire-networks/bonfire_upcycle#main"
|
||||
|
||||
bonfire_encrypt = "https://gitlab.com/bonfire-networks/bonfire_encrypt#main"
|
||||
|
|
|
@ -18,6 +18,9 @@ import { EditorQuillHooks } from "./../../../deps/bonfire_editor_quill/assets/js
|
|||
import { GeolocateHooks } from "./../../../deps/bonfire_geolocate/assets/js/extension"
|
||||
import { KanbanHooks } from "./../../../deps/bonfire_ui_kanban/assets/js/extension"
|
||||
|
||||
Object.assign(ExtensionHooks, ResponsiveTabsHooks, EditorQuillHooks, CarouselHooks, FeedHooks, ChangeLocaleHooks, InputSelectHooks, NotificationsHooks, ThemeHooks, ImageHooks, GeolocateHooks, KanbanHooks) // EditorCkHooks
|
||||
import { EncryptHooks } from "./../../../deps/bonfire_encrypt/assets/js/extension"
|
||||
|
||||
Object.assign(ExtensionHooks, ResponsiveTabsHooks, EditorQuillHooks, CarouselHooks, FeedHooks, ChangeLocaleHooks, InputSelectHooks, NotificationsHooks, ThemeHooks, ImageHooks, GeolocateHooks, KanbanHooks, EncryptHooks) // EditorCkHooks
|
||||
|
||||
export { ExtensionHooks }
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
defmodule Bonfire.Encrypt.Repo.Migrations.InitSecret do
|
||||
use Ecto.Migration
|
||||
|
||||
if Code.ensure_loaded?(Bonfire.Encrypt.Migrations) do
|
||||
require Bonfire.Encrypt.Migrations
|
||||
|
||||
def up do
|
||||
Bonfire.Encrypt.Migrations.migrate_secret()
|
||||
end
|
||||
|
||||
def down do
|
||||
Bonfire.Encrypt.Migrations.migrate_secret()
|
||||
end
|
||||
else
|
||||
IO.puts("Skip Bonfire.Encrypt migrations because the extension is not available.")
|
||||
end
|
||||
end
|
|
@ -52,6 +52,8 @@ defmodule Bonfire.Web.Router do
|
|||
|
||||
use_if_enabled(Bonfire.Pages.Beacon.Web.Routes)
|
||||
|
||||
use_if_enabled(Bonfire.Encrypt.Web.Routes)
|
||||
|
||||
use_if_enabled(Bonfire.ExtensionTemplate.Web.Routes)
|
||||
|
||||
# include GraphQL API
|
||||
|
|
Loading…
Reference in a new issue