bhf 1.0.0.beta6 → 1.0.0.beta7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c26c3ad729a39cd85f94a612e4cb86ceb12c89610cd562be456d62b7a52f8d30
4
- data.tar.gz: 4c5b490079bc1becc59558889ae34fdec158b4b2481d65157a32f3eabcfdda7e
3
+ metadata.gz: df5bab3a565da8fcc0aabda1f9fa3864b490c5954b02e9819fc66a3f9cf9c2cd
4
+ data.tar.gz: e723266e7a852d91bc30f807b0510579714f154a736510f086ce26a2919e7899
5
5
  SHA512:
6
- metadata.gz: c2fcedb7a29c96e25a0a211e3b71b3f2a007ebb274183a8a50c7e0abbc5992caa6ab8952bec5201805b505cc004b4fdeddccdc450d70dcd964a74a22e757cd3b
7
- data.tar.gz: bc8619175852035abd0192234bbe30b1cd570fc8f2c2a11774605e6985af3bd3ff968cae1122c33710b4199ad5fe861803dc03f9214a88f53d885943314d473b
6
+ metadata.gz: 6e30e770e65e1a100b77e0026f1389ecf602a16121d3e2802a3949ce9a4392a8c4ae851dd23b9c449a549edba981cda2c9cace7876acd4a4d918b8175ed6e5d8
7
+ data.tar.gz: 1d2341c255980df2cc3283664118b1c33c48bcb9fbc60eebf7060d54fec0df4fd9ebb68b5bf4ea48a8b86bd52c68dfaa952fc7cfd4764a973b926587d44ae066
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.beta6
1
+ 1.0.0.beta7
@@ -388,42 +388,46 @@
388
388
 
389
389
 
390
390
  // direct_uploads.js
391
- mainScope.addEventListener("direct-upload:initialize", event => {
392
- const { target, detail } = event
393
- const { id, file } = detail
394
- target.insertAdjacentHTML("beforebegin", `
395
- <div id="direct-upload-${id}" class="direct-upload direct-upload--pending">
396
- <div id="direct-upload-progress-${id}" class="direct-upload__progress" style="width: 0%"></div>
397
- <span class="direct-upload__filename">${file.name}</span>
398
- </div>
399
- `)
400
- })
401
-
402
- mainScope.addEventListener("direct-upload:start", event => {
403
- const { id } = event.detail
404
- const element = document.getElementById(`direct-upload-${id}`)
405
- element.classList.remove("direct-upload--pending")
406
- })
407
-
408
- mainScope.addEventListener("direct-upload:progress", event => {
409
- const { id, progress } = event.detail
410
- const progressElement = document.getElementById(`direct-upload-progress-${id}`)
411
- progressElement.style.width = `${progress}%`
412
- })
413
-
414
- mainScope.addEventListener("direct-upload:error", event => {
415
- event.preventDefault()
416
- const { id, error } = event.detail
417
- const element = document.getElementById(`direct-upload-${id}`)
418
- element.classList.add("direct-upload--error")
419
- element.setAttribute("title", error)
420
- })
421
-
422
- mainScope.addEventListener("direct-upload:end", event => {
423
- const { id } = event.detail
424
- const element = document.getElementById(`direct-upload-${id}`)
425
- element.classList.add("direct-upload--complete")
426
- })
391
+ mainScope.addEventListener("direct-upload:initialize", function (event) {
392
+ var target = event.target;
393
+ var detail = event.detail;
394
+ var id = detail.id;
395
+ var file = detail.file;
396
+ target.insertAdjacentHTML("beforebegin",
397
+ '<div id="direct-upload-' + id + '" class="direct-upload direct-upload--pending">' +
398
+ '<div id="direct-upload-progress-' + id + '" class="direct-upload__progress" style="width: 0%"></div>' +
399
+ '<span class="direct-upload__filename">' + file.name + '</span>' +
400
+ '</div>'
401
+ );
402
+ });
403
+
404
+ mainScope.addEventListener("direct-upload:start", function (event) {
405
+ var id = event.detail.id;
406
+ var element = document.getElementById('direct-upload-' + id);
407
+ element.classList.remove("direct-upload--pending");
408
+ });
409
+
410
+ mainScope.addEventListener("direct-upload:progress", function (event) {
411
+ var id = event.detail.id;
412
+ var progress = event.detail.progress;
413
+ var progressElement = document.getElementById('direct-upload-progress-' + id);
414
+ progressElement.style.width = progress + "%";
415
+ });
416
+
417
+ mainScope.addEventListener("direct-upload:error", function (event) {
418
+ event.preventDefault();
419
+ var id = event.detail.id;
420
+ var error = event.detail.error;
421
+ var element = document.getElementById('direct-upload-' + id);
422
+ element.classList.add("direct-upload--error");
423
+ element.setAttribute("title", error);
424
+ });
425
+
426
+ mainScope.addEventListener("direct-upload:end", function (event) {
427
+ var id = event.detail.id;
428
+ var element = document.getElementById('direct-upload-' + id);
429
+ element.classList.add("direct-upload--complete");
430
+ });
427
431
  });
428
432
 
429
433
 
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bhf 1.0.0.beta6 ruby lib
5
+ # stub: bhf 1.0.0.beta7 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bhf".freeze
9
- s.version = "1.0.0.beta6"
9
+ s.version = "1.0.0.beta7"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Anton Pawlik".freeze]
14
- s.date = "2018-05-31"
14
+ s.date = "2018-08-09"
15
15
  s.description = "A simple to use Rails-Engine-Gem that offers an admin interface for trusted user. Easy integratable and highly configurable and agnostic. Works with ActiveRecord and Mongoid.".freeze
16
16
  s.email = "anton.pawlik@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta6
4
+ version: 1.0.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-31 00:00:00.000000000 Z
11
+ date: 2018-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails