KyleMassacre Posted May 8, 2021 Posted May 8, 2021 (edited) Hello MWG, I just uploaded a new module to the market place and figured I would showcase it a little for once it gets approved. This is a file editor for your ACP and uses Ace Editor to modify your files. It acts similar to most of your IDEs in regards to some keyboard shortcuts like saving, find/replace, etc and also has a little helper by pressing Ctrl+h or cmd+h. I also tried to make it so you don't accidentally lose any unsaved changes by navigating away since your last save and I also added some screenshots fo you to take a look Code View Navigating away with a dirty editor File Saved Help Prompt Syntax Error Just showing that it supports other file types Edited May 8, 2021 by KyleMassacre 6 Quote
URBANZ Posted May 8, 2021 Posted May 8, 2021 looking good think it has to be one of the best module created for GL, makes it much more friendly. @Dave can we add a tip button to free modules as this deserves some money. Quote
KyleMassacre Posted May 8, 2021 Author Posted May 8, 2021 2 hours ago, URBANZ said: looking good think it has to be one of the best module created for GL, makes it much more friendly. @Dave can we add a tip button to free modules as this deserves some money. Thank you but this one isn’t free. If you really want to tip me you can do it here though https://paypal.me/kyleisboss 1 Quote
URBANZ Posted May 9, 2021 Posted May 9, 2021 1 hour ago, KyleMassacre said: Thank you but this one isn’t free. If you really want to tip me you can do it here though https://paypal.me/kyleisboss good to hear worth the cost, i purchased 2 times instead 🙂 no this isnt a mistake just to support. Enjoy. 1 Quote
KyleMassacre Posted May 9, 2021 Author Posted May 9, 2021 24 minutes ago, URBANZ said: good to hear worth the cost, i purchased 2 times instead 🙂 no this isnt a mistake just to support. Enjoy. Thanks for the support Quote
BeNiiiBoiii Posted May 9, 2021 Posted May 9, 2021 Bought the second I saw it 😛 Thank you Kyle, what a great addition to have 🙂 I love it!! 1 Quote
KyleMassacre Posted May 9, 2021 Author Posted May 9, 2021 30 minutes ago, BeNiiiBoiii said: Bought the second I saw it 😛 Thank you Kyle, what a great addition to have 🙂 I love it!! Thank you Quote
Canjucks Posted May 10, 2021 Posted May 10, 2021 I'm now of the of belief this module needs to be included in the Premium edition. That will highlight what I think of your mod @KyleMassacre well done on a great idea and module that is very useful! 1 Quote
Sim Posted May 10, 2021 Posted May 10, 2021 On 5/8/2021 at 3:52 PM, KyleMassacre said: Hello MWG, I just uploaded a new module to the market place and figured I would showcase it a little for once it gets approved. This is a file editor for your ACP and uses Ace Editor to modify your files. It acts similar to most of your IDEs in regards to some keyboard shortcuts like saving, find/replace, etc and also has a little helper by pressing Ctrl+h or cmd+h. I also tried to make it so you don't accidentally lose any unsaved changes by navigating away since your last save and I also added some screenshots fo you to take a look Code View Navigating away with a dirty editor File Saved Help Prompt Syntax Error Just showing that it supports other file types Was waiting for @KyleMassacre to add file editor. I knew he was. Far better looking then what I seen coming though. 1 Quote
KyleMassacre Posted May 10, 2021 Author Posted May 10, 2021 16 hours ago, Sim said: Was waiting for @KyleMassacre to add file editor. I knew he was. Far better looking then what I seen coming though. You were actually one of the main reasons I created this lol. I know you program a lot (if not 100%) on your phone 3 Quote
Sim Posted May 11, 2021 Posted May 11, 2021 2 hours ago, KyleMassacre said: You were actually one of the main reasons I created this lol. I know you program a lot (if not 100%) on your phone You don't release no slop, it's all in or nothing. Kinda like me. So I kind of foreseen an editor coming. 1 Quote
KyleMassacre Posted May 12, 2021 Author Posted May 12, 2021 15 minutes ago, Canjucks said: Does it come with any added security? What do you mean by security? Since this is editing real php files it’s only as safe as the person editing the file can be. This does not interact with a database whatsoever so you wouldn’t have any db vulnerabilities if that is what you are asking. Quote
Canjucks Posted May 12, 2021 Posted May 12, 2021 it was just a general question for any safe guards which you answered. 1 Quote
KyleMassacre Posted May 12, 2021 Author Posted May 12, 2021 22 minutes ago, Canjucks said: it was just a general question for any safe guards which you answered. I get it. There are not too many safe guards that can be put in place for something like this unfortunately 1 Quote
Sim Posted September 17, 2021 Posted September 17, 2021 Clicking any of the directories does not have any effect. Does not open up listted filled which I am assuming it should be doing next. @KyleMassacre can't find thread so started own. Quote
Uridium Posted September 17, 2021 Posted September 17, 2021 damn i need to install this engine and get back to working Quote
KyleMassacre Posted September 18, 2021 Author Posted September 18, 2021 10 hours ago, Sim said: Clicking any of the directories does not have any effect. Does not open up listted filled which I am assuming it should be doing next. @KyleMassacre can't find thread so started own. Hmm interesting. I can't tell what could be wrong other than the javascript not loading properly since the editor isnt even styling up. Without any logs its tough to figure out Quote
Uridium Posted September 21, 2021 Posted September 21, 2021 Iv'e found a fix for this there is nothing wrong with the JS files its the public function loadScripts() { $jsFiles = [ '/modules/installed/moduleEditor/ace/ace.js', '/modules/installed/moduleEditor/ace/ext-modelist.js', '/modules/installed/moduleEditor/ace/ext-language_tools.js', ]; $scripts = ''; foreach ($jsFiles as $jsFile) { $scripts .= "<script src='{$jsFile}'></script>\n\r"; } $this->html .= $this->page->buildElement('jsFiles', ['scripts' => $scripts]); } lines 53 - 55 '/modules/installed/moduleEditor/ace/ace.js', '/modules/installed/moduleEditor/ace/ext-modelist.js', '/modules/installed/moduleEditor/ace/ext-language_tools.js', I had to put my folder name before the first '/ so mine looks like this now and that seems to fix the issue '/gangster/modules/installed/moduleEditor/ace/ace.js', '/gangster/modules/installed/moduleEditor/ace/ext-modelist.js', '/gangster/modules/installed/moduleEditor/ace/ext-language_tools.js', 1 Quote
KyleMassacre Posted September 22, 2021 Author Posted September 22, 2021 I can add this in a patch push. I want to fix the bug that stops you from clicking any other link if you wanted to navigate away Quote
Uridium Posted September 22, 2021 Posted September 22, 2021 When I get home from work i'll see what I can do.. Quote
ags_cs4 Posted September 22, 2021 Posted September 22, 2021 no need to add folder name just remove the first / 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.