UIKit v3 or Bootstrap Option #92

Closed
opened 2017-05-31 22:13:38 +00:00 by mwweb · 102 comments
mwweb commented 2017-05-31 22:13:38 +00:00 (Migrated from github.com)

I know that UIKit is still in beta, but there is a reported issue with UIKit tab changing the tab if you click in the tab, or do a mouse drag within the tab. https://github.com/uikit/uikit/issues/2110

From the conversation, it looks like they aren't going to do anything in regards to UIKit v2, since they are close to official release of v3. Is there a way that we can have an option of v2 or v3 within JCB?

I know that UIKit is still in beta, but there is a reported issue with UIKit tab changing the tab if you click in the tab, or do a mouse drag within the tab. https://github.com/uikit/uikit/issues/2110 From the conversation, it looks like they aren't going to do anything in regards to UIKit v2, since they are close to official release of v3. Is there a way that we can have an option of v2 or v3 within JCB?

Yes I have been looking at these movements, and I am little annoyed but the fact that these to versions are not compatible.

I don't know if you realize how huge the implementation of UIKIT has become in JCB. I mean there is literally hundreds of lines of code surrounding the UIKIT lib. So yes I want to adapt the code base to include the v3, but when...... I am not able to do it now. There is just to many things more important then this. Like getting JCB PHP 7 ready, and improving the router...

So you are welcome to start looking at this in the code of the compiler... and see if you can make sense of it all.

So it is on our todo list.

Yes I have been looking at these movements, and I am little annoyed but the fact that these to versions are not compatible. I don't know if you realize how huge the implementation of UIKIT has become in JCB. I mean there is literally hundreds of lines of code surrounding the UIKIT lib. So yes I want to adapt the code base to include the v3, but when...... I am not able to do it now. There is just to many things more important then this. Like getting JCB PHP 7 ready, and improving the router... So you are welcome to start looking at this in the code of the compiler... and see if you can make sense of it all. So it is on our todo list.

Just want to let you know that there has been development on this side. We are going to move JCB to use bootstrap that is native to Joomla instead.

We will not expand on UIKIT anymore... but instead add bootstrap.

Just want to let you know that there has been development on this side. We are going to move JCB to use bootstrap that is native to Joomla instead. We will not expand on UIKIT anymore... but instead add [bootstrap.](http://getbootstrap.com/)
kevincam3 commented 2017-10-17 13:19:58 +00:00 (Migrated from github.com)

Nice, I think this is a great idea and will shorten my learning curve. I was debating as to if I was going to dig into learning UIKIT.

Nice, I think this is a great idea and will shorten my learning curve. I was debating as to if I was going to dig into learning UIKIT.
mwweb commented 2017-10-17 14:57:35 +00:00 (Migrated from github.com)

I think there's good and bad on that. Bad, anyone who has used UIKIT components will need to recode their views. On the good, it will utilize joomla core.

Just a note, I saw in a video presentation about joomla (which looks and sounds really cool), joomla 4 will be moving to bootstrap . Joomla wool be the last to have bootstrap .

I think there's good and bad on that. Bad, anyone who has used UIKIT components will need to recode their views. On the good, it will utilize joomla core. Just a note, I saw in a video presentation about joomla (which looks and sounds really cool), joomla 4 will be moving to bootstrap . Joomla wool be the last to have bootstrap .

hmmm Joomla already has bootstrap... I am not sure I follow.

About UIKIT, well I will not remove the UIKIT 2 that is already in JCB... I would just want to first focus on adding bootstrap more effectively before giving any attention to UIKIT again. Secondly UIKIT is a great tool, but I have been so disappointed with their lack of vision. There is just no backward compatibility between the v2 and v3 surrounding most of the components. That means they don't care about breaking things... that is very negative. So even now if I have a component (and I have many) on UIKIT 2 and it runs on a yootheme template with UIKIT 3 it just breaks things and it is a nightmare. So working with developers that have their heads so in the clouds that they don't care about us small guys is not fun.

Best move away to bootstrap that has always proven to be a community focused project. UIKIT is more and more acting like proprietary-ship. There is no willingness to listen to the client or developers who actually use the product.

Hey help me if I am wrong... but that is what I have experienced with UIKIT.

Hey and I know what backward compatibility means, it means three weeks instead of three days 👍

hmmm Joomla already has [bootstrap](https://api.joomla.org/cms-3/classes/JHtmlBootstrap.html)... I am not sure I follow. About [UIKIT](https://github.com/uikit/uikit), well I will not remove the [UIKIT](https://github.com/uikit/uikit) 2 that is already in JCB... I would just want to first focus on adding bootstrap more effectively before giving any attention to [UIKIT](https://github.com/uikit/uikit) again. Secondly [UIKIT](https://github.com/uikit/uikit) is a great tool, but I have been so disappointed with their lack of vision. There is just no backward compatibility between the v2 and v3 surrounding most of the components. That means they don't care about breaking things... that is very negative. So even now if I have a component (and I have many) on [UIKIT](https://github.com/uikit/uikit) 2 and it runs on a yootheme template with [UIKIT](https://github.com/uikit/uikit) 3 it just breaks things and it is a nightmare. So working with developers that have their heads so in the clouds that they don't care about us small guys is not fun. Best move away to bootstrap that has always proven to be a community focused project. [UIKIT](https://github.com/uikit/uikit) is more and more acting like proprietary-ship. There is no willingness to listen to the client or developers who actually use the product. Hey help me if I am wrong... but that is what I have experienced with UIKIT. Hey and I know what backward compatibility means, it means three weeks instead of three days :+1:

I am open to listen and willing to putt in the time. If we want to go with UIKit v3 first, instead of Bootstrap, then please tell me I am wrong about the yootheme guys...

I am open to listen and willing to putt in the time. If we want to go with UIKit v3 first, instead of Bootstrap, then please tell me I am wrong about the yootheme guys...
mwweb commented 2017-10-17 16:36:34 +00:00 (Migrated from github.com)

I was just pointing out pros and cons. Honestly, I'm all for moving AWAY from UIKit. To me, the "support" from the guys over a YooTheme are some of the worst in the Joomla community.I posted a couple of issues, and a year later I'm still waiting for a response.

If we go with Bootstrap, it should be more or less more backward compatible.

I did a quick Google search of the "pros and cons" and Bootstrap was still rated the #1 CSS framework, where UIKit is #3.

I was just pointing out pros and cons. Honestly, I'm all for moving AWAY from UIKit. To me, the "support" from the guys over a YooTheme are some of the worst in the Joomla community.I posted a couple of issues, and a year later I'm still waiting for a response. If we go with Bootstrap, it should be more or less more backward compatible. I did a quick Google search of the "pros and cons" and Bootstrap was still rated the #1 CSS framework, where UIKit is #3.

Hey not worries, I understand!

I made the mistake... not you. I putt my money on the wrong horse.... hope we can make it a easy as possible to move over. I am think soon as we have this repeatable field nightmare out of the way... then this is the next step.

Since bootstrap is the number one framework, and it is already supported by the Joomla API, this should not be that hard to make work. As you can see, I build huge concepts around UIKit to make it work well... this kind of gymnastics will not be needed with bootstrap.

I mean we really just want the lib on the page and working if we add the class declarations... that is basically it. Then in code snippets we add the new code snippets for bootstrap... and bang we are done.

So I am wondering @kevincam3 or @mwweb would any of you like to help with that? I mean adding the code snippets for bootstrap to the code snippets area? like it was done for uikit?

All you need to do is add it to your own JCB install, then dump the #__componentbuilder_snippet table in a sql dump and share it with us via dropbox or something. I will then import it into the main JCB database table and start shipping the bootstrap snippets as well. I will also improve the snippets to insure that Bootstrap enjoys preference. I will also insure that with that upgrade that moves bootstrap in, that those new snippets gets added.

Hey not worries, I understand! I made the mistake... not you. I putt my money on the wrong horse.... hope we can make it a easy as possible to move over. I am think soon as we have this repeatable field nightmare out of the way... then this is the next step. Since bootstrap is the number one framework, and it is already supported by the Joomla API, this should not be that hard to make work. As you can see, I build huge concepts around UIKit to make it work well... this kind of gymnastics will not be needed with bootstrap. I mean we really just want the lib on the page and working if we add the class declarations... that is basically it. Then in code snippets we add the new code snippets for bootstrap... and bang we are done. So I am wondering @kevincam3 or @mwweb would any of you like to help with that? I mean adding the code snippets for bootstrap to the code snippets area? like it was done for uikit? All you need to do is add it to your own JCB install, then dump the `#__componentbuilder_snippet` table in a sql dump and share it with us via dropbox or something. I will then import it into the main JCB database table and start shipping the bootstrap snippets as well. I will also improve the snippets to insure that Bootstrap enjoys preference. I will also insure that with that upgrade that moves bootstrap in, that those new snippets gets added.
kevincam3 commented 2017-10-18 02:24:25 +00:00 (Migrated from github.com)

@Llewellynvdm,

I would love to help if I can. I'm still a newbie to boostrap as well, but would gladly help. So is the goal to recreate each Snippet that's there for UIKIT using boostrap? Assuming that's possible. Also are we targeting Bootstrap 2.3 or 4. I know Joomla 4 will be using Bootstrap 4 from what I've read:
https://www.joomlashack.com/blog/tutorials/first-look-joomla-4

@Llewellynvdm, I would love to help if I can. I'm still a newbie to boostrap as well, but would gladly help. So is the goal to recreate each Snippet that's there for UIKIT using boostrap? Assuming that's possible. Also are we targeting Bootstrap 2.3 or 4. I know Joomla 4 will be using Bootstrap 4 from what I've read: https://www.joomlashack.com/blog/tutorials/first-look-joomla-4
mwweb commented 2017-10-18 03:18:17 +00:00 (Migrated from github.com)

I'm busy with several projects right now or I'd step in too.

But, my guess, and I'll let Llewellyn speak up too,I think that the goal will be to recreate every snippet possible that is currently available for UIKit into bootstrap snippets.

As for the version, thst a tough one. Uikit still works so replacing it isn't critical. But ultimately we will want to have bootstrap in the future. What my guess is, this will be an enhancement for the next generation of JCB designed for joomla .

I'm busy with several projects right now or I'd step in too. But, my guess, and I'll let Llewellyn speak up too,I think that the goal will be to recreate every snippet possible that is currently available for UIKit into bootstrap snippets. As for the version, thst a tough one. Uikit still works so replacing it isn't critical. But ultimately we will want to have bootstrap in the future. What my guess is, this will be an enhancement for the next generation of JCB designed for joomla .

@kevincam3 what we will need is to add as much bootstrap snippets as possible, with the links to the place and some description mostly just copy past.

Not really replace the UIKit, but just add the bootstrap snippets for the same concepts and any other that you feel would be great to have in JCB by default. Important that you follow bootstrap naming conventions to insure that those who use the snippets will understand how to use them.

Yes we should go with the latest version Bootstrap 4, specially since Joomla4 will ship with it.

@kevincam3 what we will need is to add as much bootstrap snippets as possible, with the links to the place and some description mostly just copy past. Not really replace the UIKit, but just add the bootstrap snippets for the same concepts and any other that you feel would be great to have in JCB by default. Important that you follow bootstrap naming conventions to insure that those who use the snippets will understand how to use them. Yes we should go with the latest version Bootstrap 4, specially since Joomla4 will ship with it.
kevincam3 commented 2017-10-18 13:14:32 +00:00 (Migrated from github.com)

@Llewellynvdm,

Okay, I'll start looking at this over the weekend to see if I feel it's something start chipping away at. I want to start learning more about bootstrap so this could be my push. Did you have any kind of timeline in mind?

@Llewellynvdm, Okay, I'll start looking at this over the weekend to see if I feel it's something start chipping away at. I want to start learning more about bootstrap so this could be my push. Did you have any kind of timeline in mind?

@kevincam3 If we could have those snippets ready by the end of November it would be great, but any time sooner is also welcome.

Thanks!

@kevincam3 If we could have those snippets ready by the end of November it would be great, but any time sooner is also welcome. Thanks!
mwweb commented 2017-10-19 03:02:31 +00:00 (Migrated from github.com)

If we would like, I could set up a centralized basic joomla install, with JCB, on my hosting server. That way, others could contribute snippets, Rather than just a single person. Let me know.

If I do this I would set up for Llewellyn, ro_ot, Kevin, myself, and anyone else Llewellyn approves.

If we would like, I could set up a centralized basic joomla install, with JCB, on my hosting server. That way, others could contribute snippets, Rather than just a single person. Let me know. If I do this I would set up for Llewellyn, ro_ot, Kevin, myself, and anyone else Llewellyn approves.

👍 Hey great! Whatever will help... I will not have time... or lets say if you all help with that I will spend my time on the PHP side of things.

I am still battling the import of JCB packages with the new admin_view changes as we speak. I am really pushing so old packages can still be imported (backward compatibility 👍 ) and work in the new JCB v2.5.8... and you will not believe this, but at this point only the old packages work.. lol

Anyway, what ever works best to get those snippets done is good for me, so @kevincam3 you let us know.

:+1: Hey great! Whatever will help... I will not have time... or lets say if you all help with that I will spend my time on the PHP side of things. I am still battling the import of JCB packages with the new admin_view changes as we speak. I am really pushing so old packages can still be imported (backward compatibility :+1: ) and work in the new JCB v2.5.8... and you will not believe this, but at this point only the old packages work.. lol Anyway, what ever works best to get those snippets done is good for me, so @kevincam3 you let us know.
mwweb commented 2017-10-19 03:26:32 +00:00 (Migrated from github.com)

I will set this up within the next couple of hours.

I will set this up within the next couple of hours.
mwweb commented 2017-10-19 04:36:00 +00:00 (Migrated from github.com)

I have created the dev site for this (jcb.mwweb.host). I added Kevin as an admin, with the account details going to the email in his profile. ro_ot if you want to be added, please let me know.

I have created the dev site for this (jcb.mwweb.host). I added Kevin as an admin, with the account details going to the email in his profile. ro_ot if you want to be added, please let me know.
kevincam3 commented 2017-10-19 06:00:23 +00:00 (Migrated from github.com)

@mwweb got the credentials and I'm able to login okay. Thanks. I'll plan to start work on this after the weekend.

@mwweb got the credentials and I'm able to login okay. Thanks. I'll plan to start work on this after the weekend.
mwweb commented 2017-10-19 06:15:28 +00:00 (Migrated from github.com)

Great. I'll try to get in there myself when I get home from traveling this weekend. This way, at least of us can work on it and not duplicate the work

Great. I'll try to get in there myself when I get home from traveling this weekend. This way, at least of us can work on it and not duplicate the work
kevincam3 commented 2017-10-24 02:05:37 +00:00 (Migrated from github.com)

@mwweb, I just tried to add a snippet and it appears I don't have create abilities. I get an error "Create record not permitted"

@mwweb, I just tried to add a snippet and it appears I don't have create abilities. I get an error "Create record not permitted"
mwweb commented 2017-10-24 02:22:57 +00:00 (Migrated from github.com)

Try it now. I just changed from administrator to super admin

Try it now. I just changed from administrator to super admin
kevincam3 commented 2017-10-24 02:25:39 +00:00 (Migrated from github.com)

@mwweb,

Ok, works now I just added a Grid snippet for Bootstrap 4. Take a look at it and let me know if the way I did it is okay.

@mwweb, Ok, works now I just added a Grid snippet for Bootstrap 4. Take a look at it and let me know if the way I did it is okay.
mwweb commented 2017-10-26 01:58:43 +00:00 (Migrated from github.com)

Sorry about the delay Kevin. I have been really busy lately. Anyway, I took a look at it, comparing it to the UIKit grid snippet, and it looks good.

I'm almost wondering if we might want to offer snippets of variations. For example, there is grid, then there is Grid Equal Width, Grid One Column Width, Grid Variable Width Content, Grid Equal-width multi-row.

It would take a lot more data entry, but should just be changing the name and snippet, then save as copy, but would give quick snippets of not just the grid, but everything.

Llewellyn, what are your thoughts? Also, I'm trying to think how to filter the snippets better in the site views and templates. As I understand it, we will keep UIKit, but will also offer Bootstrap v4. Having both combined is going to get confusing and cluttered. I thinking out loud here, but what about a filter on the snippets of 0=UIKit, 1=Bootstrap 4, 2=A future version. Then, in the component configuration, if Add UIKit = Yes, then in the site view, templates, and layouts it would auto-filter the snippets dropdown to only UIKit options. But if Add UIKit=No, then it should show only 1=Bootstrap v4

Sorry about the delay Kevin. I have been really busy lately. Anyway, I took a look at it, comparing it to the UIKit grid snippet, and it looks good. I'm almost wondering if we might want to offer snippets of variations. For example, there is grid, then there is Grid Equal Width, Grid One Column Width, Grid Variable Width Content, Grid Equal-width multi-row. It would take a lot more data entry, but should just be changing the name and snippet, then save as copy, but would give quick snippets of not just the grid, but everything. Llewellyn, what are your thoughts? Also, I'm trying to think how to filter the snippets better in the site views and templates. As I understand it, we will keep UIKit, but will also offer Bootstrap v4. Having both combined is going to get confusing and cluttered. I thinking out loud here, but what about a filter on the snippets of 0=UIKit, 1=Bootstrap 4, 2=A future version. Then, in the component configuration, if Add UIKit = Yes, then in the site view, templates, and layouts it would auto-filter the snippets dropdown to only UIKit options. But if Add UIKit=No, then it should show only 1=Bootstrap v4

How is the progress on this?

How is the progress on this?
kevincam3 commented 2017-11-06 06:38:21 +00:00 (Migrated from github.com)

I got swamped with a new project and haven't gotten back to this. I'll try to get back on this next week when I think my work load will be lighter.

I got swamped with a new project and haven't gotten back to this. I'll try to get back on this next week when I think my work load will be lighter.
mwweb commented 2017-11-10 22:28:42 +00:00 (Migrated from github.com)

I, too, have been swamped, and sick lately. I hope to get back on this. Llewellyn, what are you thoughts on my comments above?

I, too, have been swamped, and sick lately. I hope to get back on this. Llewellyn, what are you thoughts on my comments above?

Hey I am all for improvements, just know that we will need to step up this project...

Another surprise I cooked up is that I am adding UIKIT 3 after all. So now there will be Uikit 2,3 and Bootstrap v4, I am also working to allow both Uikit 2 & 3 to be added to a component at once, and allow you to target both in your custom code with some global params.

So hope to with the next update have UIKIT3 in JCB, not with all the snippets, as I hoped to have that also come from this afford of yours once you have bootstrap in place... Unless you would like to just do both at once. Anyway I agree a better sorting/searching concept with the snippets is great. We can add some more buttons to the edit view of the snippets to set priority and what ever we may feel will help.

Wow if there was a way to link the snippets to a centralized repository that we can allow the public to help improve the snippets and even add, so that the snippets can always just grow and adapt as the community around JCB grow.

How much do you guys know about git and lets say markdown... we could move the whole snippets concept to a github repository. Build with markdown and some basic conventions. Hey I am just shooting out ideas... since I would like this area to become more useful and dynamic.

But hey I am doing 13-15 hour days to get the code side done and still do my own projects. Not sure how long I will be able to manage that, without also getting sick.... SO I am planning some time of resting from 1st of December until 31st of January. That will mean less of me on github 👍

Hope we can get most of this done before. I think the last date mentioned here was

ready by the end of November

Not sure if that is still realistic but lets see.

Hey I am all for improvements, just know that we will need to step up this project... Another surprise I cooked up is that I am adding UIKIT 3 after all. So now there will be Uikit 2,3 and Bootstrap v4, I am also working to allow both Uikit 2 & 3 to be added to a component at once, and allow you to target both in your custom code with some global params. So hope to with the next update have UIKIT3 in JCB, not with all the snippets, as I hoped to have that also come from this afford of yours once you have bootstrap in place... Unless you would like to just do both at once. Anyway I agree a better sorting/searching concept with the snippets is great. We can add some more buttons to the edit view of the snippets to set priority and what ever we may feel will help. Wow if there was a way to link the snippets to a centralized repository that we can allow the public to help improve the snippets and even add, so that the snippets can always just grow and adapt as the community around JCB grow. How much do you guys know about git and lets say markdown... we could move the whole snippets concept to a github repository. Build with markdown and some basic conventions. Hey I am just shooting out ideas... since I would like this area to become more useful and dynamic. But hey I am doing 13-15 hour days to get the code side done and still do my own projects. Not sure how long I will be able to manage that, without also getting sick.... SO I am planning some time of resting from 1st of December until 31st of January. That will mean less of me on github :+1: Hope we can get most of this done before. I think the last date mentioned here was > ready by the end of November Not sure if that is still realistic but lets see.

Here is some ideas...

Or just a gitHub repo... with a file for every snippet done in markdown, allowing pull and push requests. Also the option in JCB to load from the main JCB snippet repo, or to load your own fork of the repo.

I must say this last idea is what seems most ideal. I will bump the repository with all the snippets that we already have. This will set the stage as regarding the conventions on how a file should be structured.

Let me know what you guys think!

Here is some ideas... - https://www.cacher.io/ - https://tagmycode.com/ Or just a gitHub repo... with a file for every snippet done in markdown, allowing pull and push requests. Also the option in JCB to load from the main JCB snippet repo, or to load your own fork of the repo. I must say this last idea is what seems most ideal. I will bump the repository with all the snippets that we already have. This will set the stage as regarding the conventions on how a file should be structured. Let me know what you guys think!
mwweb commented 2017-11-10 23:48:34 +00:00 (Migrated from github.com)

I found a site where I am copying the snippets, then I will import them to the JCB site I created. From there, we will just need to edit what gets imported.

Llewellyn, the current "types" work, but I really like how this particular site broke things down. It makes it quicker to find something, in my thoughts. Here is a sample. I can provide their complete list if interested.

Alerts
Badges
Breadcrumbs
Buttons
Button Groups
Button Modifiers
Cards
Carousel
Collapse
Dropdowns
Forms
Form Input Group

And the list goes on...

As a note: when I get done with the import spreadsheet, there will be 337 Bootstrap 4 snippets.

I found a site where I am copying the snippets, then I will import them to the JCB site I created. From there, we will just need to edit what gets imported. Llewellyn, the current "types" work, but I really like how this particular site broke things down. It makes it quicker to find something, in my thoughts. Here is a sample. I can provide their complete list if interested. Alerts Badges Breadcrumbs Buttons Button Groups Button Modifiers Cards Carousel Collapse Dropdowns Forms Form Input Group And the list goes on... As a note: when I get done with the import spreadsheet, there will be 337 Bootstrap 4 snippets.
mwweb commented 2017-11-11 01:32:48 +00:00 (Migrated from github.com)

I idea of pulling from a snippets repo is an interesting idea, but i hesitate in having something that could just be "open", As i think that it could open the door to issues.

On the JCB site i have, I've imported all 337 bootstrap 4 fields. I need to look into why the snippet shows in the db, but not in the admin view. Once i get that dealt with, it will just be a matter of finishing them, publishing, then they are done.

I idea of pulling from a snippets repo is an interesting idea, but i hesitate in having something that could just be "open", As i think that it could open the door to issues. On the JCB site i have, I've imported all 337 bootstrap 4 fields. I need to look into why the snippet shows in the db, but not in the admin view. Once i get that dealt with, it will just be a matter of finishing them, publishing, then they are done.

Open as in any open-source project, where pull request are first evaluated by the community of that repos leading developers and only once approved gets merged into the master branch, just like JCB only easier since we will be working with Markdown...

Hey great stuff... I mean adding those snippets. Hey and we can still continue with the local snippets, and just add the new idea on top of that, even make it that and export will result in markdown that can be added to the shared git repo, and so have it work both ways... I am just playing with ideas.

You know it always seems like we have so much work being duplicated, I mean re-done. So much time wasted. To bring shared affords together is amazingly helping to increase productivity. Just like the language tool of JCB... man how I would like to also push that out to a global place of translated strings that we can use in our projects, where we can all push our translated string and pull strings from. I looked at so many projects that have been doing just that, but most of the successful once are for lower level languages like c++ libraries. Anyway getting sidetracked again.

I think having the snippets on github and pulling snippet in that way may work for some, and not for other. So we will need to make it like you can import snippets from github to your local JCB, and then be able to update the local snippets dynamically if you feel like it, or not update it. Also allow you to export snippets in the github-markdown format so you can contribute new once to the community. Which will then require approval before being merged in to the master branch.

But that this contribution will be able to dynamically remain identifiable so if you update your local JCB and it pulls the new community snippets on github with the one you contributed, then it does not duplicate it.

I see a great plan here that I think will help, specially if we can give those who contribute some recognition by adding a link somewhere in the snippet to their gitHub profile if they want it.

Open as in any open-source project, where pull request are first evaluated by the community of that repos leading developers and only once approved gets merged into the master branch, just like JCB only easier since we will be working with Markdown... Hey great stuff... I mean adding those snippets. Hey and we can still continue with the local snippets, and just add the new idea on top of that, even make it that and export will result in markdown that can be added to the shared git repo, and so have it work both ways... I am just playing with ideas. You know it always seems like we have so much work being duplicated, I mean re-done. So much time wasted. To bring shared affords together is amazingly helping to increase productivity. Just like the language tool of JCB... man how I would like to also push that out to a global place of translated strings that we can use in our projects, where we can all push our translated string and pull strings from. I looked at so many projects that have been doing just that, but most of the successful once are for lower level languages like c++ libraries. Anyway getting sidetracked again. I think having the snippets on github and pulling snippet in that way may work for some, and not for other. So we will need to make it like you can import snippets from github to your local JCB, and then be able to update the local snippets dynamically if you feel like it, or not update it. Also allow you to export snippets in the github-markdown format so you can contribute new once to the community. Which will then require approval before being merged in to the master branch. But that this contribution will be able to dynamically remain identifiable so if you update your local JCB and it pulls the new community snippets on github with the one you contributed, then it does not duplicate it. I see a great plan here that I think will help, specially if we can give those who contribute some recognition by adding a link somewhere in the snippet to their gitHub profile if they want it.
mwweb commented 2017-11-11 04:16:03 +00:00 (Migrated from github.com)

OK. All of the Bootstrap v4 snippets are in place. Kevin, I just need some assistance in editing them now.

The name to something a little more identifiable (I just placed the class names)
Type, description, and usage still need to be populated. But everything else is there.

When one is edited, and completed, be sure to publish it. That way we will know where someone has left off. If unpublished, then it needs to be edited.

OK. All of the Bootstrap v4 snippets are in place. Kevin, I just need some assistance in editing them now. The name to something a little more identifiable (I just placed the class names) Type, description, and usage still need to be populated. But everything else is there. When one is edited, and completed, be sure to publish it. That way we will know where someone has left off. If unpublished, then it needs to be edited.

@mwweb can you give me the new list of types?

Llewellyn, the current "types" work, but I really like how this particular site broke things down. It makes it quicker to find something, in my thoughts. Here is a sample. I can provide their complete list if interested.

I want to update the core to use this new types breakdown ( since I like it). So you can use it with these new snippets. I also want to add a priority kind of switches to help with ordering the snippets, or like a latests used and favorites, or most used...

But yes if you can give us the full list.

@mwweb can you give me the new list of types? >Llewellyn, the current "types" work, but I really like how this particular site broke things down. It makes it quicker to find something, in my thoughts. Here is a sample. I can provide their complete list if interested. I want to update the core to use this new types breakdown ( since I like it). So you can use it with these new snippets. I also want to add a priority kind of switches to help with ordering the snippets, or like a latests used and favorites, or most used... But yes if you can give us the full list.
mwweb commented 2017-11-11 17:39:57 +00:00 (Migrated from github.com)

Alerts
Badges
Breadcrumbs
Buttons
Button Groups
Button Modifiers
Cards
Carousel
Collapse
Dropdowns
Forms
Form Input Groups
Custom Forms
Grid
Images
Jumbotron
List Group
Media Objects
Modal
Navs
Navbar
Pagination
Popover
Progress
Scrollspy
Tables
Tooltips
Typography
Utility: Borders
Utility: Colors
Utility: Display
Utility: Flexbox
Utility: Misc
Utility: Positioning
Utility: Sizing
Utility: Spacing
Utility: Text

Alerts Badges Breadcrumbs Buttons Button Groups Button Modifiers Cards Carousel Collapse Dropdowns Forms Form Input Groups Custom Forms Grid Images Jumbotron List Group Media Objects Modal Navs Navbar Pagination Popover Progress Scrollspy Tables Tooltips Typography Utility: Borders Utility: Colors Utility: Display Utility: Flexbox Utility: Misc Utility: Positioning Utility: Sizing Utility: Spacing Utility: Text

Okay upgrade the JCB where you are doing these snippets to the following staging commit. Then you will have the new types and library options.

Okay upgrade the JCB where you are doing these snippets to the [following staging commit](https://github.com/vdm-io/Joomla-Component-Builder/archive/staging.zip). Then you will have the new types and library options.

Not yet ready for production use....

Not yet ready for production use....
mwweb commented 2017-11-12 00:17:06 +00:00 (Migrated from github.com)

I installed it, and it looks great. I went through all the snipped on the JCB Snippet site, and set the library and type for every snippet in the system. I have a few of the snippets for Bootstrap v4 edited as well. Still 273 snippets to finish editing.

I installed it, and it looks great. I went through all the snipped on the JCB Snippet site, and set the library and type for every snippet in the system. I have a few of the snippets for Bootstrap v4 edited as well. Still 273 snippets to finish editing.
kevincam3 commented 2017-11-13 10:15:35 +00:00 (Migrated from github.com)

@mwweb I took a look at what you done. Great job, I noticed that some of the snippets have a URL but it doesn't display in the list, that's strange. I see the published ones and unpublished ones. Are you grabbing the description and usage from the bootstrap site are just coming up with them on your own?

@mwweb I took a look at what you done. Great job, I noticed that some of the snippets have a URL but it doesn't display in the list, that's strange. I see the published ones and unpublished ones. Are you grabbing the description and usage from the bootstrap site are just coming up with them on your own?
ro-ot commented 2017-11-13 14:08:17 +00:00 (Migrated from github.com)

@Llewellynvdm I like this idea of sharing snippets you described! Let me know where I can help with that.

I would go with a GitHub solution combined with the already snippet relationships we have in JCB.

@Llewellynvdm I like this idea of sharing snippets you described! Let me know where I can help with that. I would go with a GitHub solution combined with the already snippet relationships we have in JCB.
ro-ot commented 2017-11-13 14:10:25 +00:00 (Migrated from github.com)

Just a heads-up the site view and other views using snippets are not working, looks like there is an error in the snippets field selection.

Just a heads-up the site view and other views using snippets are not working, looks like there is an error in the snippets field selection.

Yes I know about that, and have already fixed it. Thanks!

Yes I know about that, and have already fixed it. Thanks!
mwweb commented 2017-11-13 17:11:35 +00:00 (Migrated from github.com)

Kevin, i have been grabbing the description and usage from the url. And the url not showing, i think tht msg be due to the length of the url

Kevin, i have been grabbing the description and usage from the url. And the url not showing, i think tht msg be due to the length of the url
kevincam3 commented 2017-11-13 20:03:33 +00:00 (Migrated from github.com)

Ok, I can follow that same pattern then. I'll start work on some tomorrow and try to do as many as I can

Ok, I can follow that same pattern then. I'll start work on some tomorrow and try to do as many as I can

Hi guys... please look at this https://github.com/vdm-io/Joomla-Component-Builder-Snippets

I have satrted with the share option with snippets, and will create a video tutorial on how to contribute to this repo, then I am adding a import (create/update) of shared snippets into JCB this will then be the new sharable concept of snippets.

Then I would like to add @ro-ot, @mwweb and @kevincam3 to this new repo as Admin to be able to approve pull requests and basically help manage the repository so only good improvements get merged.

This is also how we will get all the new snippets out to the community. I am almost done with the import aspect of the concept then I will push it out so you guys can take it for a test drive 👍

Yes for now the repo only has the old snippets... but I am sure this will change soon.

Hi guys... please look at this https://github.com/vdm-io/Joomla-Component-Builder-Snippets I have satrted with the share option with snippets, and will create a video tutorial on how to contribute to this repo, then I am adding a import (create/update) of shared snippets into JCB this will then be the new **sharable concept of snippets**. Then I would like to add @ro-ot, @mwweb and @kevincam3 to this new repo as Admin to be able to approve pull requests and basically help manage the repository so only good improvements get merged. This is also how we will get all the new snippets out to the community. I am almost done with the import aspect of the concept then I will push it out so you guys can take it for a test drive :+1: Yes for now the repo only has the old snippets... but I am sure this will change soon.

As you will see I took the json option instead of markdown. It just works easier!

As you will see I took the json option instead of markdown. It just works easier!

@mwweb please install the following staging commit so you can share the new snippets.

You will see in the snippets list area there is now a share snippets button. Select all new snippets and then click share snippets. This will produce a zip package... this you can upload here. I will add it in for now.

Then doing so I will make a tutorial for others to also be able to do so 👍

I am almost done... just a few small features to still do. We are almost there!!!

@mwweb please install the [following staging commit](https://github.com/vdm-io/Joomla-Component-Builder/archive/staging.zip) so you can share the new snippets. You will see in the snippets list area there is now a share snippets button. Select all new snippets and then click share snippets. This will produce a zip package... this you can upload here. I will add it in for now. Then doing so I will make a tutorial for others to also be able to do so :+1: I am almost done... just a few small features to still do. We are almost there!!!

You can start seeing the get snippets area from the same page (snippets list area) there is a button get snippets. That area will become the place of easy install of new and updated snippets.

You can start seeing the get snippets area from the same page (snippets list area) there is a button get snippets. That area will become the place of easy install of new and updated snippets.
mwweb commented 2017-11-16 19:07:51 +00:00 (Migrated from github.com)

The Bootstrap v4 snippets aren't completed and ready for export yet.

The Get Snippets area is cool looking.

When I select some snippets, and click Share Snippets, I get a message "Snippets have been exported and zipped ready to share! Please watch the following video tutorial that shows you how to share these snippets with the rest of the JCB community." Where have those been exported to? There's nothing in the tmp folder.

The Bootstrap v4 snippets aren't completed and ready for export yet. The Get Snippets area is cool looking. When I select some snippets, and click Share Snippets, I get a message "Snippets have been exported and zipped ready to share! Please watch the following video tutorial that shows you how to share these snippets with the rest of the JCB community." Where have those been exported to? There's nothing in the tmp folder.
mwweb commented 2017-11-16 19:14:15 +00:00 (Migrated from github.com)

OK. Yeah, I see it. It's a problem of being used to working in JCB on my localhost, so looked in my local folder and nothing. But the JCB site is on my hosting server. I saw the snippets.zip file there.

OK. Yeah, I see it. It's a problem of being used to working in JCB on my localhost, so looked in my local folder and nothing. But the JCB site is on my hosting server. I saw the snippets.zip file there.
kevincam3 commented 2017-11-16 20:05:03 +00:00 (Migrated from github.com)

Nice, I like the idea you've come up with for sharing the snippets. Good stuff. I'll hold off until we have access to export the snippets so we're not going the json manually.

Nice, I like the idea you've come up with for sharing the snippets. Good stuff. I'll hold off until we have access to export the snippets so we're not going the json manually.

The export is already working... I need the snippets. Please don't hold off.

Sure in the future this sharing option will bolster the snippets area, but we need to release the next update and I would like those new snippets, or as many as we can ready with the next release.

The export is already working... I need the snippets. Please don't hold off. Sure in the future this sharing option will bolster the snippets area, but we need to release the next update and I would like those new snippets, or as many as we can ready with the next release.
kevincam3 commented 2017-11-16 21:44:56 +00:00 (Migrated from github.com)

Ok, got it.

Ok, got it.
mwweb commented 2017-11-16 22:20:34 +00:00 (Migrated from github.com)

Do we really want the Bootstrap 4 snippets in the next release? Bootstrap 4 isn't/won't be available until Joomla! 4, unless you are adding it into JCB along with UIKit 2 and UIKit 3?

Do we really want the Bootstrap 4 snippets in the next release? Bootstrap 4 isn't/won't be available until Joomla! 4, unless you are adding it into JCB along with UIKit 2 and UIKit 3?

I can add the lib files for Bootstrap 4... but if you guys want us to hold off on Bootstrap 4 until Joomla! 4 then we must at least do Uikit v3

Or what do you think?

I can add the lib files for Bootstrap 4... but if you guys want us to hold off on Bootstrap 4 until Joomla! 4 then we must at least do Uikit v3 Or what do you think?
mwweb commented 2017-11-16 22:25:22 +00:00 (Migrated from github.com)

If Kevin and I can get the snippets done in the next few days, then why not include it. It will be a major, huge advancement. And, I think this would be putting components build with JCB on the cutting edge, supporting Bootstrap 4 before it's officially included in Joomla!

If Kevin and I can get the snippets done in the next few days, then why not include it. It will be a major, huge advancement. And, I think this would be putting components build with JCB on the cutting edge, supporting Bootstrap 4 before it's officially included in Joomla!

okay... I will add the Bootstrap v4 Library.

okay... I will add the Bootstrap v4 Library.

Great stuff.. the new get snippets area is ready, please test and give feedback.

You should remove some local snippets, that are part of the old snippets, also change some of them.

Then open the get snippets area to see it in action 👍

Great stuff.. the new get snippets area is ready, please [test](https://github.com/vdm-io/Joomla-Component-Builder/archive/staging.zip) and give feedback. You should remove some local snippets, that are part of the old snippets, also change some of them. Then open the get snippets area to see it in action :+1:
ro-ot commented 2017-11-17 17:03:46 +00:00 (Migrated from github.com)

This is an amazing new feature I can see it will motivate others to share their snippets. Great work @Llewellynvdm like always!

I have just one request and that is a bulk way to sync with the git snippets. Maybe not now but I am sure that if there is like 1000+ snippets this will become hard to manage one at a time.

@mwweb said something about 273 snippets that is being build, that will be a huge amount to add one at a time. So a way to do it in bulk will help.

I've tested the new area and it works well, after the update of a snippet I see the contributor details are dumped and not added to the database. To keep that data can help.

I just had this idea that if a snippet gets updated by a contributor, but the change is minor, like a spelling correction. The original contributors name should remain. Only if more then %50 of the snippet was changed should we allow a new contributor details. I am not sure how that will be managed.

This is an amazing new feature I can see it will motivate others to share their snippets. Great work @Llewellynvdm like always! I have just one request and that is a bulk way to sync with the git snippets. Maybe not now but I am sure that if there is like 1000+ snippets this will become hard to manage one at a time. @mwweb said something about 273 snippets that is being build, that will be a huge amount to add one at a time. So a way to do it in bulk will help. I've tested the new area and it works well, after the update of a snippet I see the contributor details are dumped and not added to the database. To keep that data can help. I just had this idea that if a snippet gets updated by a contributor, but the change is minor, like a spelling correction. The original contributors name should remain. Only if more then %50 of the snippet was changed should we allow a new contributor details. I am not sure how that will be managed.
mwweb commented 2017-11-19 01:33:00 +00:00 (Migrated from github.com)

OK. I spent the whole day today finishing the Bootstrap 4 snippets.

Are there instructions for adding them, or should I submit the zip file to you, Llewellyn?

OK. I spent the whole day today finishing the Bootstrap 4 snippets. Are there instructions for adding them, or should I submit the zip file to you, Llewellyn?
mwweb commented 2017-11-19 01:40:06 +00:00 (Migrated from github.com)

Now, I'm just thinking out loud on this...but in the site view, layouts, and templates that use the snippets, are we going to want to have some type of filter? For example, if I'm using UIKit 3, and looking for the grid snippets, the drop down is bringing up grid snippets for Bootstrap 4, UIKit 2, UIKit 3, etc.

Now, I'm just thinking out loud on this...but in the site view, layouts, and templates that use the snippets, are we going to want to have some type of filter? For example, if I'm using UIKit 3, and looking for the grid snippets, the drop down is bringing up grid snippets for Bootstrap 4, UIKit 2, UIKit 3, etc.

I will make a tutorial in the next day or so... just working on the bulk updater, since I want to cover it all in one.

There is basically two concepts here, one share snippets, two get snippets. The share is more difficult, and rightly so. Since we want those with little more skill to share, as to get will be as easy as clicking a button.

I will make a tutorial for that notice with some more instructions, push the changes. Then you will be able to do it all yourself. @mwweb I added you to the snippets repo... in the tutorial I will demonstrate how this will work. You and @kevincam3 can so long just except the invitation. More info to follow.

Well at this time you can change the order of the snippets. Just by reordering the libraries. We can improve the filtering some more if needed.

I will make a tutorial in the next day or so... just working on the bulk updater, since I want to cover it all in one. There is basically two concepts here, **one share snippets**, **two get snippets**. The share is more difficult, and rightly so. Since we want those with little more skill to share, as to get will be as easy as clicking a button. I will make a tutorial for that notice with some more instructions, push the changes. Then you will be able to do it all yourself. @mwweb I added you to the snippets repo... in the tutorial I will demonstrate how this will work. You and @kevincam3 can so long just except the invitation. More info to follow. Well at this time you can change the order of the snippets. Just by reordering the libraries. We can improve the filtering some more if needed.

So it first orders by library then by type and then by name.

Here you can see the logic, you are welcome to make suggestions...

So it first orders by library then by type and then by name. [Here you can see the logic](https://github.com/vdm-io/Joomla-Component-Builder/blob/staging/admin/models/fields/snippets.php#L150), you are welcome to make suggestions...
mwweb commented 2017-11-19 01:55:41 +00:00 (Migrated from github.com)

I eventually see this a as HUGE repository of items that can be added to views. A long time ago I recall ro_ot discussing having a library handler. Maybe, eventually, this could be integrated with that. For example, someone wanted a really cool drag/drop uploader, such as https://github.com/kartik-v/bootstrap-fileinput, that could be part of the library manager, and snippets could be made for it.

Maybe I'm seeing more into the potential that envisioned.

I eventually see this a as HUGE repository of items that can be added to views. A long time ago I recall ro_ot discussing having a library handler. Maybe, eventually, this could be integrated with that. For example, someone wanted a really cool drag/drop uploader, such as https://github.com/kartik-v/bootstrap-fileinput, that could be part of the library manager, and snippets could be made for it. Maybe I'm seeing more into the potential that envisioned.

Hey great work on the snippets 👍 I have also been pushing a few days into this and hope this change will be a success.

I am even thinking of the option to allow new libraries to be added, dynamically.

I mean we now have a library table. At this time it is just a name and description. But we could extend it to link files and urls... well even let JCB update the libraries wit the stable release in the version. This was a feature request few months ago. It just seems like a huge thing.

Hey great work on the snippets :+1: I have also been pushing a few days into this and hope this change will be a success. I am even thinking of the option to allow new libraries to be added, dynamically. I mean we now have a library table. At this time it is just a name and description. But we could extend it to link files and urls... well even let JCB update the libraries wit the stable release in the version. This was a feature request few months ago. It just seems like a huge thing.

lol just my thoughts exactly!

lol just my thoughts exactly!

I think to take the first baby steps and get this stable release out... then we can start on the option to dynamically add libraries and who knows how it will grow... I really like this idea.

@mwweb what is your thoughts on how we will handle the contributor details?

I think to take the first baby steps and get this stable release out... then we can start on the option to dynamically add libraries and who knows how it will grow... I really like this idea. @mwweb what is your thoughts on how we will handle the contributor details?

I mean ro-ot wants to have us prevent change to snippet contributor info, unless more then %50 of the snippet is improved.

The problem is how to mange that without seeing the snippet... the json does not really help much.

I see the opportunity for developers to get their name out this way, and making small changes just to be in the loop. You see the new push actually displays the contributor details and contact info in the get snippets view. This is I thought could server as an insensitive for those who putt in the time to share snippets.

I mean ro-ot wants to have us prevent change to snippet contributor info, unless more then %50 of the snippet is improved. The problem is how to mange that without seeing the snippet... the json does not really help much. I see the opportunity for developers to get their name out this way, and making small changes just to be in the loop. You see the new push actually displays the contributor details and contact info in the get snippets view. This is I thought could server as an insensitive for those who putt in the time to share snippets.
mwweb commented 2017-11-19 02:12:00 +00:00 (Migrated from github.com)

Honestly, I think when a snippet is added, that the contributor be non-editable. The contributor went to the hard work of creating the snippet, and should get the credit for the work that they did. I do agree with ro-ot that the contributor should only change when/if there is > 50% change done to the snippet.

It might be more work to submit, but perhaps make a rule that for minor changes (spelling and typos) that an issue is created, requiring the complete snippet name. Then, those with edit capabilities can do the manual edit.

New snippet submissions would also be through the issue, and if we're doing things right, we are going to be checking the snippet before it is added.

I don't use github for my repo, but does GitHub check for a submission of the same name? For example, Uikit v2 - (Common) Alert.json already exists. If I attempted to upload that, would it notify me that the file already exists, or would it simply overwrite the existing file?

Honestly, I think when a snippet is added, that the contributor be non-editable. The contributor went to the hard work of creating the snippet, and should get the credit for the work that they did. I do agree with ro-ot that the contributor should only change when/if there is > 50% change done to the snippet. It might be more work to submit, but perhaps make a rule that for minor changes (spelling and typos) that an issue is created, requiring the complete snippet name. Then, those with edit capabilities can do the manual edit. New snippet submissions would also be through the issue, and if we're doing things right, we are going to be checking the snippet before it is added. I don't use github for my repo, but does GitHub check for a submission of the same name? For example, Uikit v2 - (Common) Alert.json already exists. If I attempted to upload that, would it notify me that the file already exists, or would it simply overwrite the existing file?

I will try to give a quick tutorial just for the admin of the new snippets repo, so they can understand how things should work...I mean git is just powerful, and with github things even gets better. Because all will work via pull request, and in the pull request we will only approve a request if it fits the guidelines...

It is just setting all those guidelines in place that may be a challenge.

I will do the initial setup.. and then make tutorials to show how it works. But then I will need you guys to speak with me. I mean I really like the feedback, and want to insure I cover all the angles.

I agree the developer that does the work should get the credit. This should be the first order, second is we should try to make things easier and automated to save all of our time. So let me spend some more time on this, I may have some solutions to this. Ro-ot may be right that we add those contributor details to the snippet table... this is where I will start 👍

I will try to give a quick tutorial just for the admin of the new snippets repo, so they can understand how things should work...I mean git is just powerful, and with github things even gets better. Because all will work via pull request, and in the pull request we will only approve a request if it fits the guidelines... It is just setting all those guidelines in place that may be a challenge. I will do the initial setup.. and then make tutorials to show how it works. But then I will need you guys to speak with me. I mean I really like the feedback, and want to insure I cover all the angles. I agree the developer that does the work should get the credit. This should be the first order, second is we should try to make things easier and automated to save all of our time. So let me spend some more time on this, I may have some solutions to this. Ro-ot may be right that we add those contributor details to the snippet table... this is where I will start :+1:
kevincam3 commented 2017-11-20 09:51:01 +00:00 (Migrated from github.com)

I was just thinking that when it comes to giving credit is there any way that the person who submitted it gets credit but then anybody else that makes changes get added as a contributor so there will be the primary person who originally submitted it and then add the names of those that contribute to it. I don't know if that's possible but that seems like it would be ideal.

I was just thinking that when it comes to giving credit is there any way that the person who submitted it gets credit but then anybody else that makes changes get added as a contributor so there will be the primary person who originally submitted it and then add the names of those that contribute to it. I don't know if that's possible but that seems like it would be ideal.

Every file on github has what we call a the blame, that is where the contributors names will show, and the first contributor of the snippet will remain as the main contributor until one of us admin (those who control the snippet repo) feels the new contributor has done more. But this will be manual at first. I am working on some tutorial to cover all these things.

Here is a link to a blame layout and as you will see the get snippets area will have a blame button. SO the contributors to the snippet will get acknowledged that way.

Yet if a contributor make a major change to the snippet, we will manually in the pull request manage the adding of new contributor details, at least for now... I mean it is just the beginning of what may become a powerful new addition to JCB.

I am almost ready to push the news few changes up.

Every file on github has what we call a the blame, that is where the contributors names will show, and the first contributor of the snippet will remain as the main contributor until one of us admin (those who control the snippet repo) feels the new contributor has done more. But this will be manual at first. I am working on some tutorial to cover all these things. Here is a link to a [blame layout](https://github.com/Llewellynvdm/php-src/blame/master/main/fopen_wrappers.c) and as you will see the get snippets area will have a blame button. SO the contributors to the snippet will get acknowledged that way. Yet if a contributor make a major change to the snippet, we will manually in the pull request manage the adding of new contributor details, at least for now... I mean it is just the beginning of what may become a powerful new addition to JCB. I am almost ready to push the news few changes up.
ro-ot commented 2017-11-20 14:04:09 +00:00 (Migrated from github.com)

This is great! I also like the idea of keeping the initial dev details and only allow it to change manually in a pull request chat. We may need to go table on the snippets display when it cross the 4000 line since the little panels will become to slow. But your logic behind this area is great. I really like it, even the bulk tool is working well.

When will you make the pull request to get this out? I am going on a trip. Leaving Friday.

This is great! I also like the idea of keeping the initial dev details and only allow it to change manually in a pull request chat. We may need to go table on the snippets display when it cross the 4000 line since the little panels will become to slow. But your logic behind this area is great. I really like it, even the bulk tool is working well. When will you make the pull request to get this out? I am going on a trip. Leaving Friday.

Okay I will get all the tutorials done tonight and then make the pull request. Also still adding Bootstrap... then a idea to merge the new libraries area with the managing of uikit, bootstrap and any other libraries we want to add. So it become dynamic like the field types... allow developers to add their own libraries more easy then they way it works now.

I mean they can add it now, but with custom scripting and file including... to make it possible to control libraries dynamically per/view instead of per/component.

Yet this will be little much to do in so short notice. So @mwweb I am wondering can we push this update out targeting only Uikit 3 (make new snippet available for Uikit 3) and then only in the next update end of the month have the Bootstrap v4 added. With this new improved libraries manager, or must we postpone the release until this new library manager is ready?

Okay I will get all the tutorials done tonight and then make the pull request. Also still adding Bootstrap... then a idea to merge the new libraries area with the managing of uikit, bootstrap and any other libraries we want to add. So it become dynamic like the field types... allow developers to add their own libraries more easy then they way it works now. I mean they can add it now, but with custom scripting and file including... to make it possible to control libraries dynamically per/view instead of per/component. Yet this will be little much to do in so short notice. So @mwweb I am wondering can we push this update out targeting only Uikit 3 (make new snippet available for Uikit 3) and then only in the next update end of the month have the Bootstrap v4 added. With this new improved libraries manager, or must we postpone the release until this new library manager is ready?
ro-ot commented 2017-11-20 14:28:32 +00:00 (Migrated from github.com)

I think push this out with or without Uikit 3 snippets. We do not need to wait for the snippets to be ready, this new get snippets area must grow Independent from JCB core. JCB must not wait for it, and the snippets must not wait for JCB. So the idea of making lib's dynamic hell ya that is what I have been waiting for. That is the right direct decoupling it into its own dynamic nature will blow the lid of >_

I think push this out with or without Uikit 3 snippets. We do not need to wait for the snippets to be ready, this new get snippets area must grow Independent from JCB core. JCB must not wait for it, and the snippets must not wait for JCB. So the idea of making lib's dynamic hell ya that is what I have been waiting for. That is the right direct decoupling it into its own dynamic nature will blow the lid of >_
mwweb commented 2017-11-20 20:36:20 +00:00 (Migrated from github.com)

We can push it out at any time. I have all the Bootstrap 4 snippets that I did exported to the zip file. I was just waiting on the instructions on how to add them. I can then add them, or we can hold off.

We can push it out at any time. I have all the Bootstrap 4 snippets that I did exported to the zip file. I was just waiting on the instructions on how to add them. I can then add them, or we can hold off.

I making the tutorial for that right now... so will share is shortly 👍

I making the tutorial for that right now... so will share is shortly :+1:

Here is the tutorial for forking the JCB snippets so you can contribute to the snippets. I am now doing the next tutorial that will deal with pull requests.... we are almost there. Hey if you watched the tutorial and still feel lost... let me know.

Here is the [tutorial for forking the JCB snippets](https://youtu.be/0hgHeQVTLOk) so you can contribute to the snippets. I am now doing the next tutorial that will deal with pull requests.... we are almost there. Hey if you watched the tutorial and still feel lost... let me know.

Here is the one to make a pull request.

I will email you another surrounding some details in merging the pull request.

Here is the one to make [a pull request.](https://youtu.be/vQ-yxVtc-Co) I will email you another surrounding some details in merging the pull request.

@mwweb once you have watched the tutorial, please go-head and try to add those snippets, let me know if you get stuck. I am so happy for the time you putt in. Thank you!

Those snippets can still be used by doing a custom file include of the bootstrap files and then adding custom code in the view.

I am working on the dynamic library idea as we speak, the next release should be very soon...

There is other developers who want us to start a forum, so we can move some of the questions into a forum or google group instead of here in the code... this may be a good idea. Would any of you want to also be involved there? anyway just asking... your willingness to help with the snippets concept is already great!

@mwweb once you have watched the tutorial, please go-head and try to add those snippets, let me know if you get stuck. I am so happy for the time you putt in. Thank you! Those snippets can still be used by doing a custom file include of the bootstrap files and then adding custom code in the view. I am working on the dynamic library idea as we speak, the next release should be very soon... There is other developers who want us to start a forum, so we can move some of the questions into a forum or google group instead of here in the code... this may be a good idea. Would any of you want to also be involved there? anyway just asking... your willingness to help with the snippets concept is already great!
mwweb commented 2017-11-21 11:34:30 +00:00 (Migrated from github.com)

I could try to help out. I'll be watching videos later. I have cloned the snippet site.

I could try to help out. I'll be watching videos later. I have cloned the snippet site.
mwweb commented 2017-11-21 20:30:07 +00:00 (Migrated from github.com)

I wanted to take a moment to share a program, for mac and windows, for managing GIT (or Mercurial) at either Github or Bitbucket. This program does all the command line commands, but all within a GUI.

The software, which is free (great price), is call Sourcetree. https://www.sourcetreeapp.com/

A brief intro to it. If I added new or changed snippets to my local folder, sourcetree scans that folder for changes. It then allows me to select a single file or some files or even all files, type my commit, and submit. I can then push my commit(s) to the repo. You can branch, pull, checkout, delete, all of that and more.

I wanted to take a moment to share a program, for mac and windows, for managing GIT (or Mercurial) at either Github or Bitbucket. This program does all the command line commands, but all within a GUI. The software, which is free (great price), is call Sourcetree. https://www.sourcetreeapp.com/ A brief intro to it. If I added new or changed snippets to my local folder, sourcetree scans that folder for changes. It then allows me to select a single file or some files or even all files, type my commit, and submit. I can then push my commit(s) to the repo. You can branch, pull, checkout, delete, all of that and more.
kevincam3 commented 2017-11-21 20:33:59 +00:00 (Migrated from github.com)

I actually use SmartGit (http://www.syntevo.com/smartgit/)

On Tue, Nov 21, 2017 at 6:30 PM, mwweb notifications@github.com wrote:

I wanted to take a moment to share a program, for mac and windows, for
managing GIT (or Mercurial) at either Github or Bitbucket. This program
does all the command line commands, but all within a GUI.

The software, which is free (great price), is call Sourcetree.
https://www.sourcetreeapp.com/

A brief intro to it. If I added new or changed snippets to my local
folder, sourcetree scans that folder for changes. It then allows me to
select a single file or some files or even all files, type my commit, and
submit. I can then push my commit(s) to the repo. You can branch, pull,
checkout, delete, all of that and more.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vdm-io/Joomla-Component-Builder/issues/92#issuecomment-346151411,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA1KFnFEn067TN1FtZEdYdRtNFliozWDks5s4zLQgaJpZM4NsQxb
.

--
Kevin Campbell
TCM Services - Senior Web Designer
Ofc: (877) 826-0505 x901
Fax: (877) 826-0508
kevin@tcmsvc.com
http://www.tcmsvc.net

I actually use SmartGit (http://www.syntevo.com/smartgit/) On Tue, Nov 21, 2017 at 6:30 PM, mwweb <notifications@github.com> wrote: > I wanted to take a moment to share a program, for mac and windows, for > managing GIT (or Mercurial) at either Github or Bitbucket. This program > does all the command line commands, but all within a GUI. > > The software, which is free (great price), is call Sourcetree. > https://www.sourcetreeapp.com/ > > A brief intro to it. If I added new or changed snippets to my local > folder, sourcetree scans that folder for changes. It then allows me to > select a single file or some files or even all files, type my commit, and > submit. I can then push my commit(s) to the repo. You can branch, pull, > checkout, delete, all of that and more. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/vdm-io/Joomla-Component-Builder/issues/92#issuecomment-346151411>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AA1KFnFEn067TN1FtZEdYdRtNFliozWDks5s4zLQgaJpZM4NsQxb> > . > -- Kevin Campbell TCM Services - Senior Web Designer Ofc: (877) 826-0505 x901 Fax: (877) 826-0508 kevin@tcmsvc.com http://www.tcmsvc.net
mwweb commented 2017-11-21 21:05:50 +00:00 (Migrated from github.com)

I looked at SmartGit before. But opted against it since I had some repos on Bitbucket (for years), I wanted something "universal", which SourceTree did. Whether SmartGit, SourceTree, or command line, it's up to the users preference. Just throwing out a suggestion.

I looked at SmartGit before. But opted against it since I had some repos on Bitbucket (for years), I wanted something "universal", which SourceTree did. Whether SmartGit, SourceTree, or command line, it's up to the users preference. Just throwing out a suggestion.
mwweb commented 2017-11-21 21:18:51 +00:00 (Migrated from github.com)

I just submitted all of the Bootstrap v4 Snippets to the snippet repository, and at least for this one I requested review from Llewellyn, ro-ot, and Kevin.

I just submitted all of the Bootstrap v4 Snippets to the snippet repository, and at least for this one I requested review from Llewellyn, ro-ot, and Kevin.

I am smiling, this is the beginning of great things....

Ya I am old school I suppose... lol I like the command line. But yes there are great tools out there. Do you think we should do the videos over.. maybe one of you showing how to use an easier tool?

I am smiling, this is the beginning of great things.... Ya I am old school I suppose... lol I like the command line. But yes there are great tools out there. Do you think we should do the videos over.. maybe one of you showing how to use an easier tool?
mwweb commented 2017-11-21 21:36:15 +00:00 (Migrated from github.com)

I don't think we need to redo the videos. Maybe comment on them that there are some great tools out there, and maybe just give links the the ones that @kevincam3 and I listed, as two examples.

I don't think we need to redo the videos. Maybe comment on them that there are some great tools out there, and maybe just give links the the ones that @kevincam3 and I listed, as two examples.

Please do!

Please do!

Okay I see whit only the few new snippets the get snippets area is becoming slow. I think I need to change to the footable, it can mange 10 000 records very easy. What has been your experience?

Okay I see whit only the few new snippets the get snippets area is becoming slow. I think I need to change to the footable, it can mange 10 000 records very easy. What has been your experience?
mwweb commented 2017-11-22 20:20:40 +00:00 (Migrated from github.com)

I didn't necessarily see any performance issues with it. I personally like the current layout. What about putting in a filter to filter by library?

I didn't necessarily see any performance issues with it. I personally like the current layout. What about putting in a filter to filter by library?

Okay I will see if I can fit that in. Let me know if the Uikit v3 snippets are being worked on. @kevincam3 maybe you can help with those... seeing that @mwweb did the Bootstrap v4 snippets. Anyway I am working on the decoupling of the libraries from the core, into their own table with tweaks and switches to control the behavior of them being added.

This is what I have in mind for libraries

  • You can add the files from the local custom folder, or use a url
  • You can add custom script to use in the document when the library is added to a view
  • With the custom script option you can add fields/switches that should be loaded into the component global options to adapt the loading like done with UIkit at this time.

See since I am moving the libraries out of the hard code into a dynamic added concept, we need to allow for these kind of controller and adjustment.

  • I have also added library selection to custom admin views, site views, templates and layouts
  • Selecting a library in any of these will add the library to the component and the related view. (so no longer controlled from component area)

Any more ideas?

Okay I will see if I can fit that in. Let me know if the Uikit v3 snippets are being worked on. @kevincam3 maybe you can help with those... seeing that @mwweb did the Bootstrap v4 snippets. Anyway I am working on the decoupling of the libraries from the core, into their own table with tweaks and switches to control the behavior of them being added. This is what I have in mind for libraries ==================== - You can add the files from the local custom folder, or use a url - You can add custom script to use in the document when the library is added to a view - With the custom script option you can add fields/switches that should be loaded into the component global options to adapt the loading like done with UIkit at this time. See since I am moving the libraries out of the hard code into a dynamic added concept, we need to allow for these kind of controller and adjustment. - I have also added library selection to *custom admin views*, *site views*, *templates* and *layouts* - Selecting a library in any of these will add the library to the component and the related view. (so no longer controlled from component area) Any more ideas?
mwweb commented 2017-11-24 02:58:06 +00:00 (Migrated from github.com)

I want to share that @kevincam3 is more than welcome to use the JCB site i set up

I want to share that @kevincam3 is more than welcome to use the JCB site i set up
mwweb commented 2017-11-24 03:03:36 +00:00 (Migrated from github.com)

In addition to the filter on the get snippets, i think eventually it would be good to have some snippet filters on site view, templates, and layouts. As soon as there's UIKit2, UIKut3, Bootstrap 4, footable, and others it's going to get crazy trying to find snippets for a certain library, and it's going to get crazy finding for certain types.

In addition to the filter on the get snippets, i think eventually it would be good to have some snippet filters on site view, templates, and layouts. As soon as there's UIKit2, UIKut3, Bootstrap 4, footable, and others it's going to get crazy trying to find snippets for a certain library, and it's going to get crazy finding for certain types.

Okay I am almost ready with the interface of the new decoupled libraries concept. I have created a branch for this feature.

I will push the changes up some time today. @ro-ot is not available as far as I know. So please if one of you can just look over the UI (not the compiler) since the UI is ready but I have not started implementing the functionality into the compiler as yet.

The areas to look at is the places where snippets are used, and then the libraries itself. Yes I have not added the needed data yet, just the fields that will be used to map a library.

Okay I am almost ready with the interface of the new decoupled libraries concept. I have created a [branch for this feature](https://github.com/vdm-io/Joomla-Component-Builder/tree/decouple_libraries). I will push the changes up some time today. @ro-ot is not available as far as I know. So please if one of you can just look over the UI (not the compiler) since the UI is ready but I have not started implementing the functionality into the compiler as yet. The areas to look at is the places where snippets are used, and then the libraries itself. Yes I have not added the needed data yet, just the fields that will be used to map a library.
mwweb commented 2017-11-25 20:49:40 +00:00 (Migrated from github.com)

I will install it on the jcb.mwweb.host site that I created. I am actually planning on keeping that up and running as a test/contribute site for anyone that is interested in contributing.

I will install it on the jcb.mwweb.host site that I created. I am actually planning on keeping that up and running as a test/contribute site for anyone that is interested in contributing.

okay here is the first step as explained.

okay [here is the first step](https://github.com/vdm-io/Joomla-Component-Builder/archive/82df61aa4a1995c1d1d94fb02569e80d9d34c09f.zip) as explained.

The new library area will have some very smart concepts and ideas. I will still make tutorials surrounding the new area once we have set the direction and done the full implementation.

Please remember that it does not yet work, it is just the UI that has been molded to accommodate the new change. I am still not finished, in fact it is time to get some feed back from you.

So I made a quick tutorial on what I anticipate the functionality should be, @mwweb & @kevincam3 please watch and give me feedback.

The new library area will have some very smart concepts and ideas. I will still make tutorials surrounding the new area once we have set the direction and done the full implementation. Please remember that it does not yet work, it is just the UI that has been molded to accommodate the new change. I am still not finished, in fact it is time to get some feed back from you. So I made a quick [tutorial on what I anticipate the functionality should be](https://youtu.be/joT8weuPcwU), @mwweb & @kevincam3 please watch and give me feedback.

You will see the site_view has a new list called libraries and when you select a library it filter the snippets to only show the libraries selected. So you can select more then one library, but view only one snippet at a time.

The adding of libraries to a view will be controlled by this new libraries switch in the layout, template, site_view and custom_admin_view. No longer from the component down, but per/view.

You will see the site_view has a new list called libraries and when you select a library it filter the snippets to only show the libraries selected. So you can select more then one library, but view only one snippet at a time. The adding of libraries to a view will be controlled by this new libraries switch in the layout, template, site_view and custom_admin_view. No longer from the component down, but per/view.
Flicka2510 commented 2017-11-26 21:47:47 +00:00 (Migrated from github.com)

I just watched that video, great work you are doing here Llewellyn.

I have been following this issue and think that this idea will make JCB even more amazing tool.

Just a question how will library conflicts be avoided? like if you add Uikit 2 and Uikit 3

I am thinking that the way of how the libraries get added to a view should be done per/view or in some other place. So that the libraries only used to define the files and some global way. But that the logic can in adding the libraries can be adapted per/view.

So lets say you have a view where you add three libraries that you define how they are added at that moment and not in the library it self. So if you want to make some custom relationships it does not effect the global library settings. Almost like you have a global way and on the view level you can choose to override that global option in the view.

I just watched that video, great work you are doing here Llewellyn. I have been following this issue and think that this idea will make JCB even more amazing tool. Just a question how will library conflicts be avoided? like if you add Uikit 2 and Uikit 3 I am thinking that the way of how the libraries get added to a view should be done per/view or in some other place. So that the libraries only used to define the files and some global way. But that the logic can in adding the libraries can be adapted per/view. So lets say you have a view where you add three libraries that you define how they are added at that moment and not in the library it self. So if you want to make some custom relationships it does not effect the global library settings. Almost like you have a global way and on the view level you can choose to override that global option in the view.
mwweb commented 2017-11-26 21:58:39 +00:00 (Migrated from github.com)

Llewellyn did explain that the libraries are being removed from global options in the component, to a view, template, or layout.

Llewellyn did explain that the libraries are being removed from global options in the component, to a view, template, or layout.

Hey guys... just a heads-up there will be a delay in the next release.

Hey guys... just a heads-up there will be a delay in the next release.

any feedback on https://youtu.be/joT8weuPcwU

I am thinking to add the option in a new library of being marked as (multi libraries/bundle) to address some of the customization concerns when using multiple libraries. There were other ideas, but this seems to be the most dynamic and stable.

So you would call it MyLibary and then select the bundle option as the library type then there will be a new field on the page, that allows you to select main libraries. You then need to set all needed (file behavior) for all the libraries selected. When you then in the site-view or custom-admin-view select this bundled MyLibary it will load all snippets related. This will then allow you to have full control over how the libraries behave, and at the same time you don't need to change the already core libraries if you want to do something fancy like a file-up-loader.

Now most of the time I can see just selecting the libraries and then falling back on the defaults should work, it is just to make sure we completely break free from the current library constraint and allow JCB to expand in a way that does not require change to the compiler. But that we can add libraries and it dynamically just gets used in a way expected.

The new layer will add extra complexity so I will make three new tutorials. But I would like to insure that things still work as before (somewhat) I mean I don't plane to remove the global switch from components view, but instead I will add a new value to each of those (add UIKIT and FOOTABLE) still not sure what to call it. Maybe Dynamic that way if set to dynamic it will add libraries based on the selections made in the views, IF not it will still add it as before to each view.

This will not be done for new libraries like Bootstrap v4 as it will from the start work with the dynamic option.

What do you think will this work? hope it makes sense.

any feedback on https://youtu.be/joT8weuPcwU I am thinking to add the option in a new library of being marked as (multi libraries/bundle) to address some of the customization concerns when using multiple libraries. There were other ideas, but this seems to be the most dynamic and stable. So you would call it **MyLibary** and then select the **bundle** option as the _library type_ then there will be a new field on the page, that allows you to select main libraries. You then need to set all needed (file behavior) for all the libraries selected. When you then in the site-view or custom-admin-view select this bundled **MyLibary** it will load all snippets related. This will then allow you to have full control over how the libraries behave, and at the same time you don't need to change the already core libraries if you want to do something fancy like a file-up-loader. Now most of the time I can see just selecting the libraries and then falling back on the defaults should work, it is just to make sure we completely break free from the current library constraint and allow JCB to expand in a way that does not require change to the compiler. But that we can add libraries and it dynamically just gets used in a way expected. The new layer will add extra complexity so I will make three new tutorials. But I would like to insure that things still work as before (somewhat) I mean I don't plane to remove the global switch from components view, but instead I will add a new value to each of those (add UIKIT and FOOTABLE) still not sure what to call it. Maybe **Dynamic** that way if set to dynamic it will add libraries based on the selections made in the views, IF not it will still add it as before to each view. This will not be done for new libraries like Bootstrap v4 as it will from the start work with the dynamic option. What do you think will this work? hope it makes sense.
mwweb commented 2017-11-30 05:39:35 +00:00 (Migrated from github.com)

I like that idea. Sorry that I've been absent lately. I'm finally in the home stretch for 2 components i started (one i started May 2016), so I've been devoting a lot of time to finish it.

The only possible thing that i could possibly foresee, and maybe this is addressed with mylibraries. Let's say someone likes snippets from both Bootstrap v4 and UIKit v3, and they inter-mix the two in their code. I can just see this happening. We need to ensure thet both libraries would be added during the compile.

I like that idea. Sorry that I've been absent lately. I'm finally in the home stretch for 2 components i started (one i started May 2016), so I've been devoting a lot of time to finish it. The only possible thing that i could possibly foresee, and maybe this is addressed with mylibraries. Let's say someone likes snippets from both Bootstrap v4 and UIKit v3, and they inter-mix the two in their code. I can just see this happening. We need to ensure thet both libraries would be added during the compile.
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#92
No description provided.