-
-
Notifications
You must be signed in to change notification settings - Fork 1
Fix/inspector config refactor #181
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
8 commits
Select commit
Hold shift + click to select a range
b7c9027
refactor: centralize inspector configuration constants in Inspector c…
dermatz 3f331bf
feat: add toolbar position configuration and implement in UI
dermatz 90d35a3
Potential fix for pull request finding
dermatz b90c20d
#181 - Fix translate attribute to include comment for Toolbar Positio…
Copilot 7b34d63
Potential fix for pull request finding
dermatz 67a27d4
#181 - Fix Show Toolbar default description to say No in de_DE CSV an…
Copilot ed3f4bc
Potential fix for pull request finding
dermatz 972ae03
#181 - Add translate="label comment" to theme and show_button_labels …
Copilot 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace OpenForgeProject\MageForge\Model\Config; | ||
|
|
||
| class Inspector | ||
| { | ||
| public const XML_PATH_ENABLED = 'dev/mageforge_inspector/enabled'; | ||
| public const XML_PATH_SHOW_BUTTON_LABELS = 'mageforge/inspector/show_button_labels'; | ||
| public const XML_PATH_THEME = 'mageforge/inspector/theme'; | ||
| public const XML_PATH_POSITION = 'mageforge/inspector/position'; | ||
| public const DEFAULT_THEME = 'dark'; | ||
| public const DEFAULT_POSITION = 'bottom-left'; | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace OpenForgeProject\MageForge\Model\Config\Source; | ||
|
|
||
| use Magento\Framework\Data\OptionSourceInterface; | ||
|
|
||
| class ToolbarPosition implements OptionSourceInterface | ||
| { | ||
| /** | ||
| * Return available toolbar positions as options. | ||
| * | ||
| * @return array<int, array<string, string>> | ||
| */ | ||
| public function toOptionArray(): array | ||
| { | ||
| return [ | ||
| ['value' => 'bottom-left', 'label' => (string) __('Bottom Left')], | ||
| ['value' => 'bottom-right', 'label' => (string) __('Bottom Right')], | ||
| ['value' => 'top-left', 'label' => (string) __('Top Left')], | ||
| ['value' => 'top-right', 'label' => (string) __('Top Right')], | ||
| ]; | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| "MageForge","MageForge" | ||
| "Toolbar","Toolbar" | ||
| "General Toolbar Settings","Allgemeine Toolbar-Einstellungen" | ||
| "Show Toolbar","Toolbar anzeigen" | ||
| "Enable or disable the MageForge Toolbar. Default: No.","MageForge Toolbar aktivieren oder deaktivieren. Standard: Nein." | ||
| "Theme","Design" | ||
| "Choose between Dark, Light, or Auto (System Preference) theme.","Wähle zwischen Dunkel, Hell oder Auto (Systemeinstellung)." | ||
| "Show Button Labels","Schaltflächenbeschriftungen anzeigen" | ||
| "Show text labels on the Toolbar and Inspector buttons. Default: Yes.","Textbeschriftungen auf Toolbar- und Inspector-Schaltflächen anzeigen. Standard: Ja." | ||
| "Toolbar Position","Toolbar-Position" | ||
| "Position of the MageForge Toolbar on the page. Default: Bottom Left.","Position der MageForge Toolbar auf der Seite. Standard: Unten links." | ||
| "Dark","Dunkel" | ||
| "Light","Hell" | ||
| "Auto (System Preference)","Auto (Systemeinstellung)" | ||
| "Bottom Left","Unten links" | ||
| "Bottom Right","Unten rechts" | ||
| "Top Left","Oben links" | ||
| "Top Right","Oben rechts" |
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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| "MageForge","MageForge" | ||
| "Toolbar","Toolbar" | ||
| "General Toolbar Settings","General Toolbar Settings" | ||
| "Show Toolbar","Show Toolbar" | ||
| "Enable or disable the MageForge Toolbar. Default: No.","Enable or disable the MageForge Toolbar. Default: No." | ||
| "Theme","Theme" | ||
| "Choose between Dark, Light, or Auto (System Preference) theme.","Choose between Dark, Light, or Auto (System Preference) theme." | ||
| "Show Button Labels","Show Button Labels" | ||
| "Show text labels on the Toolbar and Inspector buttons. Default: Yes.","Show text labels on the Toolbar and Inspector buttons. Default: Yes." | ||
| "Toolbar Position","Toolbar Position" | ||
|
dermatz marked this conversation as resolved.
|
||
| "Position of the MageForge Toolbar on the page. Default: Bottom Left.","Position of the MageForge Toolbar on the page. Default: Bottom Left." | ||
| "Dark","Dark" | ||
| "Light","Light" | ||
| "Auto (System Preference)","Auto (System Preference)" | ||
| "Bottom Left","Bottom Left" | ||
| "Bottom Right","Bottom Right" | ||
| "Top Left","Top Left" | ||
| "Top Right","Top Right" | ||
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
Oops, something went wrong.
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.