@epages/beyond_canvas
Advanced tools
Comparing version 0.1.1-pre to 0.1.2-pre
@@ -83,3 +83,3 @@ /* | ||
if (this.files && this.files.length > 1) fileName = (this.getAttribute("data-multiple-caption") || "").replace("{count}", this.files.length); else if (e.target.value) fileName = e.target.value.split("\\").pop(); | ||
if (fileName) $label.html('<i class="far fa-file input__file__icon"></i>' + fileName); else $label.html(labelVal); | ||
if (fileName) $label.html('<svg class="input__file__icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 2v5h5v15h-16v-20h11zm1-2h-14v24h20v-18l-6-6z"/></svg>' + fileName); else $label.html(labelVal); | ||
}); | ||
@@ -86,0 +86,0 @@ $input.on("focus", function() { |
### v0.14.0.pre | ||
* deprecations | ||
* `application.css` is no longer loaded by Beyond Canvas | ||
* Move stylesheets from `.sass` to `.scss` | ||
* Move partials from `.html.slim` to `.html.erb` | ||
* Deprecations on `BeyondCanvas` configuration file: | ||
* `:public_logo` is substituted by `:site_logo` | ||
* features | ||
* Add support for both Webpacker and Sprockets | ||
* `BeyondCanvas` configuration: | ||
* Added support for `:favicon` | ||
* Added support for `:site_title` | ||
* Added the possibility to register stylesheets and javascripts | ||
* enhancements | ||
* Add | ||
* Remove Font Awesome dependency (now `.svg` icons are used) | ||
* Title is now taken from `BeyondCanvas` initializer | ||
### v0.13.1.pre | ||
* bug-fixes | ||
* Check the `HTTP_ACCEPT_LANGUAGE` header on `switch_locale` function to identify if the request comes from a browser or a server. If the request comes from a browser, use `I18n.default_locale` | ||
### v0.13.0.pre | ||
* buf-fixes | ||
* bug-fixes | ||
* Remove `:file` from metaprogrammed fields | ||
@@ -10,0 +30,0 @@ * Add `text-overflow: ellipsis;` to `file_field` text to avoid line breaks |
{ | ||
"name": "@epages/beyond_canvas", | ||
"version": "0.1.1-pre", | ||
"version": "0.1.2-pre", | ||
"description": "Open-source framework that provides CSS and JS for apps designed and developed for the online shop software Beyond", | ||
@@ -37,3 +37,2 @@ "keywords": [ | ||
"dependencies": { | ||
"@fortawesome/fontawesome-free": "^5.6.3", | ||
"bourbon": "^7.0.0", | ||
@@ -40,0 +39,0 @@ "jquery": "^3.5.1", |
@@ -20,3 +20,3 @@ (function($) { | ||
$label.html( | ||
`<i class="far fa-file input__file__icon"></i>${fileName}` | ||
`<svg class="input__file__icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 2v5h5v15h-16v-20h11zm1-2h-14v24h20v-18l-6-6z"/></svg>${fileName}` | ||
); | ||
@@ -23,0 +23,0 @@ else $label.html(labelVal); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37482
3
- Removed@fortawesome/fontawesome-free@^5.6.3
- Removed@fortawesome/fontawesome-free@5.15.4(transitive)