~cedric/newspipe

3a0b961f3c9cee0deb0757f63a6d1a8c45df8df5 — Cédric Bonhomme a month ago b61d13c
chg: [JavaScript] Updated bootstrap-select
M newspipe/templates/edit_category.html => newspipe/templates/edit_category.html +11 -1
@@ 15,7 15,7 @@
            <div class="form-group">
                <label for="{{ form.name.id }}" class="col-sm-3 control-label">{{ form.feeds.label }}</label>
                <div class="col-sm-9">
                    {{ form.feeds(class_="", **{'data-live-search':'true', 'data-width':'auto'}) }}
                    {{ form.feeds(class_="selectpicker", **{'data-live-search':'true', 'data-width':'auto'}) }}
                </div>
                {% for error in form.feeds.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
            </div>


@@ 27,4 27,14 @@
        </form>
    </div>
</div><!-- /.container -->
<script>
(function() {
    // document.getElementById("selectpicker").selectpicker();
    var selectpickers = document.getElementsByClassName('selectpicker');
    Array.prototype.map.call(selectpickers, function(picker) {
        picker.selectpicker('render');
    })
    // $('.selectpicker').selectpicker();
})();
</script>
{% endblock %}

M newspipe/templates/layout.html => newspipe/templates/layout.html +1 -0
@@ 15,6 15,7 @@
    <!-- JavaScript -->
    <script type="text/javascript" src="{{ url_for('static', filename='npm_components/@popperjs/core/dist/umd/popper.min.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='npm_components/bootstrap/dist/js/bootstrap.min.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='npm_components/bootstrap-select/dist/js/bootstrap-select.min.js') }}"></script>
    {% endblock %}
  </head>
  <body>

M package-lock.json => package-lock.json +11 -6
@@ 5,14 5,19 @@
  "requires": true,
  "dependencies": {
    "@popperjs/core": {
      "version": "2.5.4",
      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.5.4.tgz",
      "integrity": "sha512-ZpKr+WTb8zsajqgDkvCEWgp6d5eJT6Q63Ng2neTbzBO76Lbe91vX/iVIW9dikq+Fs3yEo+ls4cxeXABD2LtcbQ=="
      "version": "2.9.1",
      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.9.1.tgz",
      "integrity": "sha512-DvJbbn3dUgMxDnJLH+RZQPnXak1h4ZVYQ7CWiFWjQwBFkVajT4rfw2PdpHLTSTwxrYfnoEXkuBiwkDm6tPMQeA=="
    },
    "bootstrap": {
      "version": "5.0.0-beta1",
      "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.0.0-beta1.tgz",
      "integrity": "sha512-UrHApw/WRmT7l2rlDdn5iXr7Jps/LlMZtJlLn9G41aGDfss48hyDeYyHtX1C6NHKVcmdUarGG+ve0LZB5iHyTQ=="
      "version": "5.0.0-beta3",
      "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.0.0-beta3.tgz",
      "integrity": "sha512-0urccjfIOzhrb9qJysN8XW/DRw6rg3zH7qLeKIp4Zyl8+Ens4JWB0NC0cB5AhnSFPd2tftRggjwCMxablo6Tpg=="
    },
    "bootstrap-select": {
      "version": "1.14.0-beta2",
      "resolved": "https://registry.npmjs.org/bootstrap-select/-/bootstrap-select-1.14.0-beta2.tgz",
      "integrity": "sha512-Q63QUbConUwA+/Te7tCJcv0nE3SI/J+rNI5A1mdX1KxP6lW0pFQy+4KVP6VwgZEcwkoPfrwjvAo6WT7fdl+Sdg=="
    },
    "fork-awesome": {
      "version": "1.1.7",

M package.json => package.json +3 -2
@@ 4,8 4,9 @@
  "license": "AGPL-3.0",
  "private": true,
  "dependencies": {
    "@popperjs/core": "^2.5.4",
    "bootstrap": "^5.0.0-beta1",
    "@popperjs/core": "^2.9.1",
    "bootstrap": "^5.0.0-beta3",
    "bootstrap-select": "^1.14.0-beta2",
    "fork-awesome": "^1.1.7",
    "moment": "^2.29.1"
  },