divshot / bootstrap3_upgrader Goto Github PK
View Code? Open in Web Editor NEWA web-based utility to help you upgrade your HTML from Bootstrap 2.3 to Bootstrap 3
Home Page: http://code.divshot.com/bootstrap3_upgrader
A web-based utility to help you upgrade your HTML from Bootstrap 2.3 to Bootstrap 3
Home Page: http://code.divshot.com/bootstrap3_upgrader
Improvement:
Upload several files to batch convert.
Or make a local command tool version.
I have header.php, footer.php and sidebar.php, that means some tags have their endtags in another file.
By pasting, let's say header.php content in to the converter it will then add more div, html +more endtags at the bottom of the output. It also changes to ?-->.
So far I've have only tested with header.php and footer.php where footer.php don't output anything despite 'Helper Class Specificity' says '2 replaced'. By removing two of the div-tags on top of the footer-file the converer will then work.
This is just a little bagatelle, but would be a nice feature to have. :)
Hey
Iam using Bootstrap 2 and want to upgrade it. When I copy my Code into the upgrader it comments every php tag out
like
countModules('google')) : ?>gets to
countModules('google')) : ?>Is this a known Issue?
sorry to tell you but evry php tag you have in your code ore get commented out or it wil be replaced with the sintax for the < key
example:
<form class="userform" method="post" action="<?=$url ?>">
converted to:
<form class="userform" method="post" action="<?=$url ?>"></form>
Doesn't add .form-control class to textarea element
wrongly converts django translation marker
"Search" %}" --> " search"="" %}"=""
{% load url from future %}
{% load i18n %}
<form method="get" action="{% url 'search:search' %}" class="navbar-form pull-right">
{{ search_form.q }}
<input type="submit" value="{% trans "Search" %}" class="btn" />
</form>
to
{% load url from future %}
{% load i18n %}
<form method="get" action="{% url 'search:search' %}" class="navbar-form pull-right">
{{ search_form.q }}
<input type="submit" value="{% trans " search"="" %}"="" class="btn form-control btn-default">
</form>
thanks..
"Upgrade Button, Pagination, and Well sizes. 6 Replaced
Change sizes from [button|pagination|well]-[mini|small|large] to [button|pagination|well]-[xs|sm|lg]"
I believe there should be btn instead of button in the code.
The conversion script is changing < to (&)lt; and > to (&)gt;
This messes up all code in doc where you have php tags
eg:
becomes
(&)lt;?=$value?(&)gt;
[I put ampersand code in brackets or it just converts to < and > here!]
AND
it converts to ?-->
http://bootsnipp.com/snipps/e-mail-interface-like-gmail
<i class="icon-star"></i>
should have been converted to
<span class="glyphicon glyphicon-star"></span>
and
<i class="icon-star-empty"></i>
to
<span class="glyphicon glyphicon-star-empty"></span>
Should do the above (as well as other button sizes)
Hey!
My <%= ... %> tags have been replaced with
> < & ...
Maybe, if that'll work, that would be great :-)
The old de-emphasis helper class maps to text-muted
old <p class="de-emphasis"></p>
new <p class="text-muted"></p>
test: hale & hearty
becomes: hale & hearty
This is rather bad when the ampersand is seen inside javascript
test: $('#itemsDisplay > tbody > tr')
becomes: $('#itemsDisplay > tbody > tr')
I noticed these were missing:
input-prepend -> input-group
and
add-on -> input-group-addon
test: "<test>"
becomes: ""
makes some javascript barf...
When the original source code contains an element with both the "btn" and "btn-default" classes assigned to it, the converted output section correctly leaves it unchanged (since having "btn" and "btn-default" on an element is correct in Bootstrap 3). However, the Process panel on the left side of the screen, in the "Changes to Button Color Classes" section, it incorrectly says that there has been a replacement. I am including a screenshot that shows a simple example. You can see the input source code and output source code are the exact same, which is correct, but the Process panel shows that 1 replacement was made, which is incorrect (I added a large red arrow to the screenshot pointing to the element exhibiting the bug for emphasis).
This problem only occurs with "btn-default". When the input source code has another button color specified (e.g. btn-info, btn-primary, btn-danger, etc.), the program functions correctly and the Process panel correctly shows that no replacements have been made.
This
<div class="row">
<div class="span8">
<div class="row">
<div class="span4"></div>
<div class="span4"></div>
</div>
</div>
<div class="span4"></div>
</div>
is converted to
<div class="row">
<div class="col-sm-8 col-md-8">
<div class="row">
<div class="col-sm-4 col-md-4"></div>
<div class="col-sm-4 col-md-4"></div>
</div>
</div>
<div class="col-sm-4 col-md-4"></div>
</div>
but should be converted to
<div class="row">
<div class="col-sm-8 col-md-8">
<div class="row">
<div class="col-sm-6 col-md-6"></div>
<div class="col-sm-6 col-md-6"></div>
</div>
</div>
<div class="col-sm-4 col-md-4"></div>
</div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.