From af80aff12b365e1dad5c11043b5449eaaf0373b8 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Sat, 19 Mar 2022 01:10:26 +0100 Subject: [PATCH] make it somewhat work --- etc/csp_whitelist.xml | 20 +++++++ notes.md | 5 ++ view/adminhtml/layout/default.xml | 15 ++++++ view/adminhtml/templates/commandbar.phtml | 64 +++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 etc/csp_whitelist.xml create mode 100644 view/adminhtml/layout/default.xml create mode 100644 view/adminhtml/templates/commandbar.phtml diff --git a/etc/csp_whitelist.xml b/etc/csp_whitelist.xml new file mode 100644 index 0000000..b8159d8 --- /dev/null +++ b/etc/csp_whitelist.xml @@ -0,0 +1,20 @@ + + + + + + https://frames-*.commandbar.com + + + + + https://frames-*.commandbar.com + + + + + https://frames-*.commandbar.com + + + + diff --git a/notes.md b/notes.md index 7772c93..503dbc9 100644 --- a/notes.md +++ b/notes.md @@ -41,3 +41,8 @@ Test mode https://www.commandbar.com/docs/commands/overview#testing-commands ## Login Opengento c'est trop beau ! + +## TODO + +- [ ] customize user `window.CommandBar.boot(userid)` +- [ ] make it work with session key diff --git a/view/adminhtml/layout/default.xml b/view/adminhtml/layout/default.xml new file mode 100644 index 0000000..b08668b --- /dev/null +++ b/view/adminhtml/layout/default.xml @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/view/adminhtml/templates/commandbar.phtml b/view/adminhtml/templates/commandbar.phtml new file mode 100644 index 0000000..1388ee4 --- /dev/null +++ b/view/adminhtml/templates/commandbar.phtml @@ -0,0 +1,64 @@ +