-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add separate endpoint for live debugger * correct paths * update README * correct redirecting via button * add default path for the file when adding button to README * fix button in dev * fix credo * add default values for config * Add conditionall adding devtools to README.md * use Plug.Static for serving assets * Change readme and used values by default * update readme * Revert "use Plug.Static for serving assets" This reverts commit 169b4a8. * add application * use config values * Revert "Revert "use Plug.Static for serving assets"" This reverts commit d026495. * update Readme * change readme * add default address to README * make debugger work on dev * fix credo * change moduledoc * add name to supervisor, configure endpoint also in test * use only LiveDebugger.PubSub
- Loading branch information
Showing
23 changed files
with
179 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
defmodule LiveDebugger.Endpoint do | ||
use Phoenix.Endpoint, otp_app: :live_debugger | ||
|
||
@session_options [ | ||
store: :cookie, | ||
key: "_live_debugger", | ||
signing_salt: "lvd_debug", | ||
same_site: "Lax", | ||
# 14 days | ||
max_age: 14 * 24 * 60 * 60 | ||
] | ||
|
||
socket("/live", Phoenix.LiveView.Socket, | ||
websocket: true, | ||
longpoll: true | ||
) | ||
|
||
plug(Plug.Static, at: "/assets", from: :live_debugger, gzip: false) | ||
|
||
plug(Plug.Session, @session_options) | ||
|
||
plug(Plug.RequestId) | ||
plug(LiveDebugger.Router) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
defmodule LiveDebugger.ErrorView do | ||
@moduledoc false | ||
|
||
def render(template, _), do: Phoenix.Controller.status_message_from_template(template) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.