mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-17 08:32:41 +00:00
This commit is contained in:
parent
5f8fa650ab
commit
9120ed332e
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -68,7 +68,7 @@ jobs:
|
|||
token: ${{ secrets.GH_TOKEN }}
|
||||
owner: "bonfire-networks"
|
||||
repos: "bonfire_api_graphql,bonfire_data_identity,bonfire_fail,bonfire_ui_me,bonfire_boundaries,bonfire_data_shared_user,bonfire_federate_activitypub,bonfire_quantify,bonfire_breadpub,bonfire_data_social,bonfire_files,bonfire_recyclapp,bonfire_ui_social,bonfire_classify,bonfire_geolocate,bonfire_search,bonfire_ui_valueflows,bonfire_common,bonfire_ecto,bonfire_invite_links,bonfire_social,bonfire_data_access_control,bonfire_editor_ck,bonfire_livebook,bonfire_tag,bonfire_valueflows,bonfire_data_activity_pub,bonfire_editor_quill,bonfire_mailer,bonfire_valueflows_api_schema,bonfire_data_assort,bonfire_me,bonfire_ui_common,bonfire_valueflows_observe,bonfire_epics,bonfire_notify,bonfire_ui_coordination,bonfire_data_edges,bonfire_extension_template,bonfire_open_id,bonfire_ui_kanban"
|
||||
# bonfire_upcycle,bonfire_publisher_thesis,bonfire_ui_reflow,bonfire_data_tasks,bonfire_taxonomy_seeder,bonfire_encryption_backend,bonfire_data_content,bonfire_web_phoenix,bonfire_website
|
||||
# bonfire_upcycle,bonfire_publisher_thesis,bonfire_ui_reflow,bonfire_data_tasks,bonfire_taxonomy_seeder,bonfire_encryption_backend,bonfire_pages,bonfire_web_phoenix,bonfire_website
|
||||
# -
|
||||
# name: Get branch names
|
||||
# id: branch-name
|
||||
|
|
|
@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
||||
|
||||
## [Unreleased (2022-09-26)]
|
||||
## [Unreleased (2022-09-27)]
|
||||
### Added
|
||||
- Enable/disable extensions [#448](https://github.com/bonfire-networks/bonfire-app/issues/448)
|
||||
- Coordination MVP [#445](https://github.com/bonfire-networks/bonfire-app/issues/445) by mayel & ivanminutillo
|
||||
|
|
|
@ -42,7 +42,8 @@ pointable_schema_extensions = [
|
|||
:bonfire_quantify,
|
||||
:bonfire_geolocate,
|
||||
:bonfire_valueflows,
|
||||
:bonfire_valueflows_observe
|
||||
:bonfire_valueflows_observe,
|
||||
:bonfire_pages
|
||||
]
|
||||
|
||||
config :pointers, :search_path, pointable_schema_extensions
|
||||
|
|
|
@ -42,7 +42,8 @@ pointable_schema_extensions = [
|
|||
:bonfire_quantify,
|
||||
:bonfire_geolocate,
|
||||
:bonfire_valueflows,
|
||||
:bonfire_valueflows_observe
|
||||
:bonfire_valueflows_observe,
|
||||
:bonfire_pages
|
||||
]
|
||||
|
||||
config :pointers, :search_path, pointable_schema_extensions
|
||||
|
@ -154,6 +155,9 @@ alias Bonfire.Data.Social.Profile
|
|||
alias Bonfire.Data.Social.Replied
|
||||
alias Bonfire.Data.Social.Request
|
||||
|
||||
alias Bonfire.Pages.Page
|
||||
alias Bonfire.Pages.Section
|
||||
|
||||
alias Bonfire.Classify.Category
|
||||
alias Bonfire.Geolocate.Geolocation
|
||||
alias Bonfire.Files
|
||||
|
@ -838,6 +842,86 @@ config :bonfire_data_social, Profile,
|
|||
|
||||
######### other extensions
|
||||
|
||||
config :bonfire_pages, Page,
|
||||
code:
|
||||
(quote do
|
||||
@like_ulid "11KES11KET0BE11KEDY0VKN0WS"
|
||||
@boost_ulid "300STANN0VNCERESHARESH0VTS"
|
||||
# mixins
|
||||
unquote_splicing(common.([:activities, :activity, :caretaker, :created, :post_content]))
|
||||
|
||||
# multimixins
|
||||
unquote_splicing(common.([:controlled, :tagged, :tags, :files, :media, :feed_publishes]))
|
||||
|
||||
# special
|
||||
has_one(:permitted, unquote(Permitted), foreign_key: :object_id)
|
||||
|
||||
has_one(:like_count, unquote(EdgeTotal),
|
||||
references: :id,
|
||||
foreign_key: :id,
|
||||
where: [table_id: @like_ulid]
|
||||
)
|
||||
|
||||
has_one(:boost_count, unquote(EdgeTotal),
|
||||
references: :id,
|
||||
foreign_key: :id,
|
||||
where: [table_id: @boost_ulid]
|
||||
)
|
||||
|
||||
has_many(:ranked, unquote(Bonfire.Data.Assort.Ranked),
|
||||
foreign_key: :scope_id,
|
||||
references: :id
|
||||
)
|
||||
|
||||
# add references of page sections
|
||||
many_to_many(:sections, unquote(Pointer),
|
||||
join_through: unquote(Bonfire.Data.Assort.Ranked),
|
||||
unique: true,
|
||||
join_keys: [scope_id: :id, item_id: :id],
|
||||
on_replace: :delete
|
||||
)
|
||||
end)
|
||||
|
||||
config :bonfire_pages, Section,
|
||||
code:
|
||||
(quote do
|
||||
@like_ulid "11KES11KET0BE11KEDY0VKN0WS"
|
||||
@boost_ulid "300STANN0VNCERESHARESH0VTS"
|
||||
# mixins
|
||||
unquote_splicing(common.([:activities, :activity, :caretaker, :created, :post_content]))
|
||||
|
||||
# multimixins
|
||||
unquote_splicing(common.([:controlled, :tagged, :tags, :files, :media, :feed_publishes]))
|
||||
|
||||
# special
|
||||
has_one(:permitted, unquote(Permitted), foreign_key: :object_id)
|
||||
|
||||
has_one(:like_count, unquote(EdgeTotal),
|
||||
references: :id,
|
||||
foreign_key: :id,
|
||||
where: [table_id: @like_ulid]
|
||||
)
|
||||
|
||||
has_one(:boost_count, unquote(EdgeTotal),
|
||||
references: :id,
|
||||
foreign_key: :id,
|
||||
where: [table_id: @boost_ulid]
|
||||
)
|
||||
|
||||
has_many(:ranked, unquote(Bonfire.Data.Assort.Ranked),
|
||||
foreign_key: :item_id,
|
||||
references: :id
|
||||
)
|
||||
|
||||
# add references of page sections
|
||||
many_to_many(:pages, unquote(Pointer),
|
||||
join_through: unquote(Bonfire.Data.Assort.Ranked),
|
||||
unique: true,
|
||||
join_keys: [item_id: :id, scope_id: :id],
|
||||
on_replace: :delete
|
||||
)
|
||||
end)
|
||||
|
||||
config :bonfire_files, Media,
|
||||
code:
|
||||
(quote do
|
||||
|
|
|
@ -124,7 +124,9 @@ More details at https://bonfirenetworks.org",
|
|||
process: Bonfire.UI.ValueFlows.CreateProcessLive,
|
||||
offer: Bonfire.UI.ValueFlows.CreateIntentLive,
|
||||
need: Bonfire.UI.ValueFlows.CreateIntentLive,
|
||||
task: Bonfire.UI.Coordination.CreateTaskLive
|
||||
task: Bonfire.UI.Coordination.CreateTaskLive,
|
||||
page: Bonfire.Pages.Web.CreatePageLive,
|
||||
section: Bonfire.Pages.Web.EditSectionLive
|
||||
],
|
||||
resource: [
|
||||
navigation: [
|
||||
|
|
|
@ -66,3 +66,5 @@ ex_aws = "https://github.com/bonfire-networks/ex_aws#main"
|
|||
# need for rauversion
|
||||
mogrify = "https://github.com/chaskiq/mogrify.git#identify-option"
|
||||
rauversion_extension = "https://github.com/mayel/rauversion-phx.git#modular-extension-step2"
|
||||
|
||||
bonfire_pages = "https://github.com/bonfire-networks/bonfire_pages#main"
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
defmodule Bonfire.Pages.Repo.Migrations.ImportPages do
|
||||
use Ecto.Migration
|
||||
|
||||
import Bonfire.Pages.Migrations
|
||||
import Pointers.Migration
|
||||
|
||||
def up do
|
||||
migrate_pages()
|
||||
end
|
||||
|
||||
def down, do: migrate_pages()
|
||||
end
|
26
lib/web/icons/iconoir/drag-hand-gesture.ex
Normal file
26
lib/web/icons/iconoir/drag-hand-gesture.ex
Normal file
|
@ -0,0 +1,26 @@
|
|||
defmodule Iconify.Iconoir.DragHandGesture do
|
||||
use Phoenix.Component
|
||||
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
aria-hidden="true"
|
||||
role="img"
|
||||
class={@class}
|
||||
viewBox="0 0 24 24"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<g
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="1.5"
|
||||
>
|
||||
<path d="m7 10.5l-2.004 2.672a2 2 0 0 0 .126 2.552l3.784 4.128c.378.413.912.648 1.473.648H15c2.4 0 4-1.5 4-4c0 0 0 0 0 0V7.929M16 8.5v-.571c0-2.286 3-2.286 3 0" /><path d="M13 8.5V7.027m0-.527v.527M16 8.5V7.027c0-2.286-3-2.286-3 0" /><path d="M13 8.5V7.027c0-2.286 3-2.286 3 0V8.5m-6 0v-2c0-2.286 3-2.286 3 0c0 0 0 0 0 0v2m-6 5v-7A1.5 1.5 0 0 1 8.5 5v0c.828 0 1.5.555 1.5 1.384V8.5" />
|
||||
</g>
|
||||
</svg>
|
||||
"""
|
||||
end
|
||||
end
|
|
@ -21,6 +21,8 @@ defmodule Bonfire.Web.Router do
|
|||
use_if_enabled(Bonfire.UI.Social.Routes)
|
||||
use_if_enabled(Bonfire.Boundaries.Web.Routes)
|
||||
|
||||
use_if_enabled(Bonfire.Pages.Web.Routes)
|
||||
|
||||
use_if_enabled(Bonfire.OpenID.Web.Routes)
|
||||
|
||||
use_if_enabled(Bonfire.Search.Web.Routes)
|
||||
|
|
2
mix.lock
2
mix.lock
|
@ -41,7 +41,7 @@
|
|||
"bonfire_search": {:git, "https://github.com/bonfire-networks/bonfire_search", "27fe723bbb1a47a15c7ef0b13a101a8e74307cef", [branch: "main"]},
|
||||
"bonfire_social": {:git, "https://github.com/bonfire-networks/bonfire_social", "fc7d7a87013a1c32ab17c773834b7c5b7b70e14e", [branch: "main"]},
|
||||
"bonfire_tag": {:git, "https://github.com/bonfire-networks/bonfire_tag", "f82e877fcc95f7852970d74f086b38480d7e0867", [branch: "main"]},
|
||||
"bonfire_ui_common": {:git, "https://github.com/bonfire-networks/bonfire_ui_common", "f82a349e53a6106ec8d746962bdc4dcc9bbcab12", [branch: "main"]},
|
||||
"bonfire_ui_common": {:git, "https://github.com/bonfire-networks/bonfire_ui_common", "c3d7fc883b719945e6f7e7ad90e615f651ebc662", [branch: "main"]},
|
||||
"bonfire_ui_coordination": {:git, "https://github.com/bonfire-networks/bonfire_ui_coordination", "7e1e0c72143fc472c29348a15a11bc15b05b67c6", [branch: "main"]},
|
||||
"bonfire_ui_kanban": {:git, "https://github.com/bonfire-networks/bonfire_ui_kanban", "6afbac5feb336f53172504c8d31c77ff6958ce7a", [branch: "main"]},
|
||||
"bonfire_ui_me": {:git, "https://github.com/bonfire-networks/bonfire_ui_me", "5a65a43651b6c87d40aaf39461c51af1d1555daa", [branch: "main"]},
|
||||
|
|
Loading…
Reference in a new issue