Skip to content

Commit

Permalink
Merge branch 'main' into use-flip-animation
Browse files Browse the repository at this point in the history
  • Loading branch information
cibernox committed Sep 27, 2024
2 parents b615eba + 60309c8 commit d51e65e
Show file tree
Hide file tree
Showing 13 changed files with 487 additions and 73 deletions.
39 changes: 24 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,46 @@

## 0.1.0-dev

### Enhancements
* Reorder pages - [#261](https://github.com/BeaconCMS/beacon_live_admin/pull/261)
* Added Shared Info Handlers (`info_handle` callbacks) page - [#210](https://github.com/BeaconCMS/beacon_live_admin/pull/210) by [@ddink](https://github.com/ddink)

### Fixes
* Remove unnecessary `:plug_cowboy` dependency - [#262](https://github.com/BeaconCMS/beacon_live_admin/pull/262)

## 0.1.0-rc.2 (2024-09-21

### Breaking Changes
* Require minimum Elixir v1.14
* Require minimum Gettext v0.26 to use the new backend module

### Fixes
- Close #226 - Fix a race condition between update AST and save change events #240
- Close #204 - skip `PageBuilder.Table.handle_params/3` when the requested page has no pagination data
- [Visual Editor] Fix a race condition between update AST and save change events - [#240](https://github.com/BeaconCMS/beacon_live_admin/pull/240)
- Skip `PageBuilder.Table.handle_params/3` when the requested page has no pagination data - [#236](https://github.com/BeaconCMS/beacon_live_admin/pull/236)

### Enhancements
- [Visual Editor] Improve DnD highlight states and simplify logic significantly ([#219](https://github.com/BeaconCMS/beacon_live_admin/pull/219))
- [Visual Editor] Better detect overlapping when dragging elements to reorder ([#216](https://github.com/BeaconCMS/beacon_live_admin/pull/216))
- [Visual Editor] Display a delete icon on selected elements ([#209](https://github.com/BeaconCMS/beacon_live_admin/pull/209))
- [Visual Editor] Better detect horizontal/vertical drag and drop flow ([#215](https://github.com/BeaconCMS/beacon_live_admin/pull/215))
- [Visual Editor] Improve DnD highlight states and simplify logic significantly - [#219](https://github.com/BeaconCMS/beacon_live_admin/pull/219)
- [Visual Editor] Better detect overlapping when dragging elements to reorder - [#216](https://github.com/BeaconCMS/beacon_live_admin/pull/216)
- [Visual Editor] Display a delete icon on selected elements - [#209](https://github.com/BeaconCMS/beacon_live_admin/pull/209)
- [Visual Editor] Better detect horizontal/vertical drag and drop flow - [#215](https://github.com/BeaconCMS/beacon_live_admin/pull/215)

### Fixes
- [Dev] Fix tailwind watch config
- [Visual Editor] Fix drag button orientation ([#218](https://github.com/BeaconCMS/beacon_live_admin/pull/218))
- [Visual Editor] Do not show drag buttons on elements that are only children ([#217](https://github.com/BeaconCMS/beacon_live_admin/pull/217))
- [Visual Editor] Keep current element select after drag and drop event ([#214](https://github.com/BeaconCMS/beacon_live_admin/pull/214))
- [Visual Editor] Fix drag button orientation - [#218](https://github.com/BeaconCMS/beacon_live_admin/pull/218)
- [Visual Editor] Do not show drag buttons on elements that are only children - [#217](https://github.com/BeaconCMS/beacon_live_admin/pull/217)
- [Visual Editor] Keep current element select after drag and drop event - [#214](https://github.com/BeaconCMS/beacon_live_admin/pull/214)

## 0.1.0-rc.1 (2024-08-27)

### Enhancements
- [Event Handler] Added Event Handlers ([#195](https://github.com/BeaconCMS/beacon_live_admin/pull/195))
- [Visual Editor] Allow to reorder an element among its siblings with drag and drop ([#174](https://github.com/BeaconCMS/beacon_live_admin/pull/174))
- [Event Handler] Added Event Handlers - [#195](https://github.com/BeaconCMS/beacon_live_admin/pull/195)
- [Visual Editor] Allow to reorder an element among its siblings with drag and drop - [#174](https://github.com/BeaconCMS/beacon_live_admin/pull/174)

### Fixes
- [Visual Editor] Disable dragLeave trigger on drag placeholder ([#208](https://github.com/BeaconCMS/beacon_live_admin/pull/208))
- [Visual Editor] Reset drag states when dropping, even on invalid targets ([#206](https://github.com/BeaconCMS/beacon_live_admin/pull/206))
- [Visual Editor] Disable interacting with iframes ([#198](https://github.com/BeaconCMS/beacon_live_admin/pull/198))
- Remove defunct reference to agent assigns ([#200](https://github.com/BeaconCMS/beacon_live_admin/pull/200))
- [Visual Editor] Disable dragLeave trigger on drag placeholder - [#208](https://github.com/BeaconCMS/beacon_live_admin/pull/208)
- [Visual Editor] Reset drag states when dropping, even on invalid targets - [#206](https://github.com/BeaconCMS/beacon_live_admin/pull/206)
- [Visual Editor] Disable interacting with iframes - [#198](https://github.com/BeaconCMS/beacon_live_admin/pull/198)
- Remove defunct reference to agent assigns - [#200](https://github.com/BeaconCMS/beacon_live_admin/pull/200) by @kelcecil

## 0.1.0-rc.0 (2024-08-02)

Expand Down
3 changes: 2 additions & 1 deletion assets/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
css/app.css
/vendor/
/vendor/
package-lock.json
1 change: 1 addition & 0 deletions dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Logger.configure(level: :debug)

Application.put_env(:beacon_live_admin, DemoWeb.Endpoint,
adapter: Bandit.PhoenixAdapter,
url: [host: "localhost"],
secret_key_base: "TrXbWpjZWxk0GXclXOHFCoufQh1oRK0N5rev5GcpbPCsuf2C/kbYlMgeEEAXPayF",
live_view: [signing_salt: "nXvN+c8y"],
Expand Down
20 changes: 20 additions & 0 deletions lib/beacon/live_admin/content.ex
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,24 @@ defmodule Beacon.LiveAdmin.Content do
def delete_live_data_assign(site, live_data_assign) do
call(site, Beacon.Content, :delete_live_data_assign, [live_data_assign, site])
end

def create_info_handler(site, attrs) do
call(site, Beacon.Content, :create_info_handler, [attrs])
end

def change_info_handler(site, info_handler, attrs \\ %{}) do
call(site, Beacon.Content, :change_info_handler, [info_handler, attrs])
end

def list_info_handlers(site) do
call(site, Beacon.Content, :list_info_handlers, [site])
end

def update_info_handler(site, info_handler, attrs) do
call(site, Beacon.Content, :update_info_handler, [info_handler, attrs])
end

def delete_info_handler(site, info_handler) do
call(site, Beacon.Content, :delete_info_handler, [info_handler])
end
end
19 changes: 11 additions & 8 deletions lib/beacon/live_admin/live/home_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,30 @@ defmodule Beacon.LiveAdmin.HomeLive do
<div class="p-6 rounded-[20px] bg-white border border-gray-200 hover:border-white hover:ring-2 hover:ring-gray-200 hover:ring-offset-8 hover:ring-offset-white transition">
<h3 class="mb-2 text-sm font-semibold leading-8 tracking-wider text-gray-600 uppercase"><%= site %></h3>
<div class="flex flex-col flex-wrap gap-2 mt-10 md:flex-row">
<.link href={Router.beacon_live_admin_path(@socket, site, "/layouts")} class={nav_class()}>
Layouts
<.link href={Router.beacon_live_admin_path(@socket, site, "/media_library")} class={nav_class()}>
Media Library
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/components")} class={nav_class()}>
Components
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/layouts")} class={nav_class()}>
Layouts
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/pages")} class={nav_class()}>
Pages
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/live_data")} class={nav_class()}>
Live Data
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/error_pages")} class={nav_class()}>
Error Pages
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/media_library")} class={nav_class()}>
Media Library
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/events")} class={nav_class()}>
Event Handlers
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/info_handlers")} class={nav_class()}>
Info Handlers
</.link>
<.link href={Router.beacon_live_admin_path(@socket, site, "/error_pages")} class={nav_class()}>
Error Pages
</.link>
</div>
</div>
<% end %>
Expand Down
Loading

0 comments on commit d51e65e

Please sign in to comment.