3 new extensions: JSLint, Beautifier and Snippet

Reply to Thread >
Results 1 to 7 of 7
  1. #1
    Team Member
    Join Date
    Nov 2011
    Location
    France, Paris
    Posts
    18
    Thread score
    -1

    0

    +1

    You must log in to vote for this post.

    3 new extensions: JSLint, Beautifier and Snippet

    3 Extensions: JSLint, Beautifier and Snippet for Wakanda Studio are available:
    1. JSLint extension is based on Douglas Crockford's JSLint, which may hurt your feeling (it does to me :) ) but makes your code smarter. This extension is now referenced in the official JSLint database: http://tech.groups.yahoo.com/group/j...portRows&tbl=1
    2. Beautifier extension formats your js or json code (or the code you download from Internet) to make it more readable. This extension is based on Einar Lielmanis' terrific work (http://jsbeautifier.org/).
    3. Snippet extension accelerates your coding speed, by using one click or keystrok shortcut to dump the code snippet in in Wankanda studio editor.
    The source code of 3 extensions are available on GitHub:
    https://github.com/Wakanda/wakanda-extensions

    Of course, the source code of JSLint extension is validated by JSLint, and the source code of Beautifier extension is beautified by Beautifier :D

    Enjoy
    Don

  2. #2
    Senior Member
    Join Date
    Jun 2011
    Location
    USA
    Posts
    1,456
    Post score
    -1

    0

    +1

    You must log in to vote for this post.

    Quote Originally Posted by Don View Post
    3 Extensions: JSLint, Beautifier and Snippet for Wakanda Studio are available:
    1. JSLint extension is based on Douglas Crockford's JSLint, which may hurt your feeling (it does to me :) ) but makes your code smarter. This extension is now referenced in the official JSLint database: http://tech.groups.yahoo.com/group/j...portRows&tbl=1
    2. Beautifier extension formats your js or json code (or the code you download from Internet) to make it more readable. This extension is based on Einar Lielmanis' terrific work (http://jsbeautifier.org/).
    3. Snippet extension accelerates your coding speed, by using one click or keystrok shortcut to dump the code snippet in in Wankanda studio editor.
    The source code of 3 extensions are available on GitHub:
    https://github.com/Wakanda/wakanda-extensions

    Of course, the source code of JSLint extension is validated by JSLint, and the source code of Beautifier extension is beautified by Beautifier :D

    Enjoy
    Don
    Don, when Wakanda (V1/V2/Vnext) goes to production, will you be including these extensions as part of the install so we don't have to go and hunt them and install them, every time we're installing upgrades?

    Thanks!
    Best Regards;
    ..Ben

  3. #3
    Team Member
    Join Date
    Nov 2011
    Location
    France, Paris
    Posts
    18
    Post score
    -1

    0

    +1

    You must log in to vote for this post.

    Don, when Wakanda (V1/V2/Vnext) goes to production, will you be including these extensions as part of the install so we don't have to go and hunt them and install them, every time we're installing upgrades?
    Hi Ben,

    The 3 extensions will be included in V2 by default.
    Note that Extension System is not implemented in the V1, it will be available in V2.
    You can still try out these 3 extensions - they are already included in Wakanda Development Branch:
    http://www.wakanda.org/downloads/

    Feel free to post your question/suggestion about these 3 extensions.

    Don

  4. #4
    Senior Member
    Join Date
    Apr 2011
    Location
    Norway
    Posts
    2,213
    Post score
    -1

    0

    +1

    You must log in to vote for this post.

    Will you add more snippits?


    Like queries etc, so it's easier for people in the beginning?
    Could have had a submenu or something...

    Code:
    sources.SetDataSourceHere.query('AttrubuteToQuery = :1',
        {onSuccess: function(event)
        	   {
        	   	// ... handling of query success                
       	   },
    	onError: function(err)
    		{
    			// ... handling of query error	
    		},
    	 params: ["YourQueryParm"]}// parameters of query
        
    );

  5. #5
    Team Member
    Join Date
    Nov 2011
    Location
    France, Paris
    Posts
    18
    Post score
    -1

    0

    +1

    You must log in to vote for this post.

    Hi vegarringdal,

    Thank you for your very useful suggestion.
    I'll see what can I do about it and be back to you as soon as I can.

    Don

  6. #6
    Senior Member
    Join Date
    Apr 2011
    Location
    Norway
    Posts
    2,213
    Post score
    -1

    0

    +1

    You must log in to vote for this post.

    Small option where we could easly create 1 file with our own snippits would also be great...

    Reason for 1 simple file you just copy is that then people would share snippits, just copy and paste them in our own file :-)

    But havent really looked mutch in to code yet of the snippit exst. so it might be easy as it is now allready..
    To busy last 2 days creating my model bulletproof, and something that will work with how I know some engineering tools will give me csv/tab delimited files :-)

  7. #7
    Team Member
    Join Date
    Nov 2011
    Location
    France, Paris
    Posts
    18
    Post score
    -1

    0

    +1

    You must log in to vote for this post.

    Small option where we could easly create 1 file with our own snippits would also be great...
    That's the 1st idea came into my mind...
    The problem is each snippet should have a command entry to be triggered. The current extension system does not allow to create menu entries dynamically via javascript.
    However, user customization is needed for Snippet extension definitively. I'll try to find a way.

Reply to Thread >

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Copyright 2013 4D - All Rights reserved