Get support for garak/pma-electron
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
garak/pma-electron
phpMyAdmin on Electron
This simple project allows to run phpMyAdmin inside Electron. It's simply a default Electron build (see https://github.com/electron/electron-quick-start) with gulp-connect-php, needed to run PHP.
You need npm and composer installed on your machine to get this working.
Installation
- clone this repository
- run
npm install
- run
composer install --no-dev
- enter in
vendor/phpmyadmin/phpmyadmin
and runcomposer install --no-dev
- in the same dir, you need to apply the patch explained below
Apply a patch to get js working
There's an issue with get jQuery working with electron:
http://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined
You need to implement the proposed solution:
Create a file vendor/phpmyadmin/phpmyadmin/js/fix_module_before.js
with the content:
// see http://stackoverflow.com/a/37480521/369194
if (typeof module === 'object') {window.module = module; module = undefined;}
Create a file vendor/phpmyadmin/phpmyadmin/js/fix_module_after.js
with the content:
// see http://stackoverflow.com/a/37480521/369194
if (window.module) module = window.module;
Then, edit vendor/phpmyadmin/phpmyadmin/libraries/Header.php
and call above files:
$this->_scripts->addFile('fix_module_before.js'); // this is a line to add
$this->_scripts->addFile('jquery/jquery.min.js'); // this is an existing line
// ...
$this->_scripts->addFile('jquery/jquery.debounce-1.0.5.js'); // this is an existing line
$this->_scripts->addFile('fix_module_after.js'); // this is a line to add
$this->_scripts->addFile('menu-resizer.js'); // this is an existing line
I know, this workaround is a bit ugly. I'll try to open a PR to phpmyadmin repo and see if they accept it (since it's not affecting classic web behavior)
Execution
Run npm start
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2