-
Notifications
You must be signed in to change notification settings - Fork 24
Chore: v0.2.0 preparation #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bf73664
Added new `What's next?` section to readme
kraleppa bf4fcef
Removed experimental feature flags
kraleppa e524497
Updated config
kraleppa 502d4d9
Added highlighting to config
kraleppa babeafc
Changed format of config
kraleppa 83ec244
Updated version
kraleppa d8d2ef0
Updated feature list
kraleppa e64d39c
Updated docs with new features
kraleppa 24fb913
Refactored README
kraleppa c8f8f98
Fixed filters button
kraleppa eb9bf3d
Update version
kraleppa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,32 +1,15 @@ | ||
| defmodule LiveDebugger.Feature do | ||
| @moduledoc """ | ||
| Feature flags for LiveDebugger. | ||
| If you create a new feature, create a new function here with defined rules for enabling it. | ||
| If you create a new feature that can be enabled or disabled, create a new function here with defined rules for enabling it. | ||
| """ | ||
|
|
||
| def enabled?(:highlighting) do | ||
| experimental_feature_enabled?(:highlighting) and | ||
| Application.get_env(:live_debugger, :browser_features?, true) and | ||
| Application.get_env(:live_debugger, :browser_features?, true) and | ||
| Application.get_env(:live_debugger, :highlighting?, true) | ||
| end | ||
|
|
||
| def enabled?(:dark_mode) do | ||
| experimental_feature_enabled?(:dark_mode) | ||
| end | ||
|
|
||
| def enabled?(:callback_filters) do | ||
| experimental_feature_enabled?(:callback_filters) | ||
| end | ||
|
|
||
| def enabled?(feature_name) do | ||
| raise "Feature #{feature_name} is not allowed" | ||
| end | ||
|
|
||
| defp experimental_feature_enabled?(feature_name) do | ||
| case Application.get_env(:live_debugger, :experimental_features, false) do | ||
| :all -> true | ||
| features when is_list(features) -> Enum.member?(features, feature_name) | ||
| _ -> false | ||
| end | ||
| end | ||
| end |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| defmodule LiveDebugger.MixProject do | ||
| use Mix.Project | ||
|
|
||
| @version "0.1.7" | ||
| @version "0.2.0-dev" | ||
|
|
||
| def project do | ||
| [ | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.