Git Product home page Git Product logo

trongate-vscode's People

Contributors

dafa66 avatar jakecastelli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trongate-vscode's Issues

tg:submit

$this->input('blah', true)

Trongate 2
post('blah', true)

Make new demo gif

The demo was from our version 0.0.1 and has been a lot of the changes, specially the CSS Selector dropdown trigger is CTRL + ALT + CMD/ WIN/ SUPER + /

We also got sub module creation support and prevent bad module name

  • General module creation demo gif

  • Sub module creation demo gif

  • Nitro demo gif

  • Code Snippets

Avoid module trigger phrase

This potential issue has been bothered us for a while #10

When the user names its module with a module trigger phase and then will get a blank page, and it is super hard to debug.
If the user changes the module trigger phrase, then, our dynamically generated module would crash as we previously hard coded the module trigger phrase to _module.

Now, we fixed this issue in #23.

The extension will dynamically read the config file and extract the MODULE_ASSETS_TRIGGER and if the user names its module which contains the trigger phrase, the extension will terminate the process and let the user know what happened.

Besides, if the user changes the module trigger phrase in the config file, the view file will not fail as we dynamically links up the module trigger phrase.

Set default file as a php file

Excellent extension.

For those wondering how to set a new file to php by default.

Files > Preferences > Settings
Files: Default Language

Enter php in the box.

Make bottom status bar item clickable

Currently the selected CSS framework is shown in the bottom status bar, but it is not clickable, the way to trigger CSS framework selection is to use command, which is not user friendly (especially for beginners).

small tweak on: tgm and tg:submit

  1. the function body created by tgm has a little bit of issue with format:
function index () {

}

There is an unwanted space in between function name and parenthesis

  1. when use tg:submit, the cursor should be positioned at validation function

Thanks David for the suggestion.

[TODO] List Before v1.0.0 Release

Code Side:

  • Give user a notice once they change the front-end framework - a pop up message and a status bar message will show up

  • Fix the key binding on Mac ctrl + cmd + alt + n and ctrl + cmd + alt + p not working - replace with other keys (Mac only)

  • Add essential dependencies and remove the redundant dependencies from package.json - reduce the extension size

  • Add more commonly used snippets in terms of PHP @DaFa66 @jakecastelli

  • Write essential comments in case collaboration or future maintains

  • Code Refactor

  • Figure out how to make it compatible even with lower version of VSCode as mentioned here #2

  • A tinny new feature that can persist user's Nitro Framework selection

File Structure Side:

  • Structure the front-end framework snippets into a separate folder - such as snippets/front-end-framework/milligram.json - in order to separate trongate php snippets and front-end frameworks

  • Remove the junk folder as it is not needed

README Side:

  • Add explanation for Nitro usage

  • Demo for Nitro - suggestion: if you could figure out the way to show your key pressed on the screen that would be helpful @DaFa66

  • Add to snippet table if any new snippet gets added

Testing Side:

[Features] Feature tracks

I just came up with few new thoughts, and maybe worth to keep tracking them here in case I forget later.

  • Create a new Trongate Module only the parent folder is modules - this would prevent the user to create a new module under a wrong dir

  • Discuss about how to trigger the front-end framework snippets, at the moment is tg:{framework name initial}:{object you want to create} - this might not be ideal as all the snippet suggestions would pop up once you type tg:

  • Add more Trongate related snippets to tg.json

  • Refactor the code before publishing to the marketplace

Can't Install the extension

When trying to install this extension i get this error message.
I'm on a Mac btw if that makes a difference.

"Unable to install 'jc-sf.trongate' extension because it is not compatible with the current version of VS Code (version 1.48.2)."

[TODO] Prepare for the v1.0.2 release

Update Summary:

  • IMPORTANT the new release will be able to support super module creation #23

  • The v1.0.2 release will allow the user to name the view file rather than hardcoded module name + _view

  • Fixed a couple of typos which was found in v1.0.1 such as -> #20, thanks to @monxian

  • Improved cursor position after create a new module

Testing:

Add License

  • MIT License

README:

Super module supports

When create a new module, the extension should first determine if it is a general module or a super module.

The boilerplate code for super module is different from general module.

Warning for CSS

Resource interpreted as Stylesheet but transferred with MIME type application/x-empty: xxx.

This is because the generated css file is default empty. The easiest way to get around is to add a comment line inside css file.

Typos in the generated view_file.(my hacktober donation) hehe

`<?php
class Test extends Trongate {

function index () {
    $data['view_module'] = 'test';
    $this->view('test_view', $data);
    /* Uncomment the lines below, 
     * Change the template method name, 
     * Remove lines above, if you want to load to the template
     */
    //$data['view_module'] = 'test';
    //$ data['view_file] = 'test_view';
    //$this->template('template method here', $data);
}  

}`

In the commented out line the view file one. $data has a space $ data and the brackets need a closing apostrophe.

Trongate-vscode v1.1.0

As Trongate Framework itself has got some update overtime such as ๐Ÿ‘‰ #34
We need to address all the update / breaking changes in trongate-vscode extension, also consider bring in Trongate CSS

  • #32
  • #34
  • #36
  • Move changelog from README to CHANGELOG
  • In README we prior Trongate over BS4
  • #37
  • #40

Code refactor - new Trongate Module part

The new Trongate Module part still need to be refactored - simply three reasons:

  1. Make the code more readable to the future contributors

  2. Decouple the modules and functions as more features can be expanded upon the existing code base

  3. Fix type annotation errors and interfaces

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.