redmine_extensions 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 558bdc7eaa1dd64573bf7b7f32dd326e8d864782e8296e43f0f1e0a9efb01e1d
|
4
|
+
data.tar.gz: aa1d31bcd1a8573d8e1aa5f16bb7fb82e526c818a4fba5073b0e6c3382b5944d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2214453d89368dbf5d27f078732606c235412b3dcab84ebf8b50faf290b8147bb0a7866dcbef97a163ab4418073642d421df5fd4564cb7737baf09cb528dc99a
|
7
|
+
data.tar.gz: 0e758d13169c96d7cb4814cf8082b2d21f9023e6669c364de2dddfb040a161b4a9e2d58011e5fec8d59aaf28d197b28014dd8fbccbabc803b9cf61bb063ce10d
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Easy Software Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -41,7 +41,6 @@ files:
|
|
41
41
|
- app/assets/javascripts/redmine_extensions/blocking_module.js
|
42
42
|
- app/assets/javascripts/redmine_extensions/blocking_namespace.js
|
43
43
|
- app/assets/javascripts/redmine_extensions/blocking_polyfill.js
|
44
|
-
- app/assets/javascripts/redmine_extensions/blocking_render.js
|
45
44
|
- app/assets/javascripts/redmine_extensions/blocking_utils.js
|
46
45
|
- app/assets/javascripts/redmine_extensions/easy_togglers.js
|
47
46
|
- app/assets/javascripts/redmine_extensions/jquery.entityarray.js
|
@@ -55,7 +54,6 @@ files:
|
|
55
54
|
- app/presenters/easy_query_adapter_presenter.rb
|
56
55
|
- app/presenters/redmine_extensions/base_presenter.rb
|
57
56
|
- app/presenters/redmine_extensions/easy_setting_presenter.rb
|
58
|
-
- app/presenters/redmine_extensions/issue_query_presenter.rb
|
59
57
|
- app/views/common/_closing_modal.html.erb
|
60
58
|
- app/views/common/_collapsible_module_layout.html.erb
|
61
59
|
- app/views/common/close_modal.js.erb
|
@@ -119,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
117
|
- !ruby/object:Gem::Version
|
120
118
|
version: '0'
|
121
119
|
requirements: []
|
122
|
-
rubygems_version: 3.3.
|
120
|
+
rubygems_version: 3.3.19
|
123
121
|
signing_key:
|
124
122
|
specification_version: 4
|
125
123
|
summary: Redmine Extensions is set of useful features for Redmine. Main focus is on
|
@@ -1,111 +0,0 @@
|
|
1
|
-
(function () {
|
2
|
-
/**
|
3
|
-
* @callback RenderFunction
|
4
|
-
*/
|
5
|
-
// noinspection JSMismatchedCollectionQueryUpdate
|
6
|
-
/**
|
7
|
-
* @type {Array.<{body:RenderFunction,ctx:Object}>}
|
8
|
-
*/
|
9
|
-
var readQueue = [];
|
10
|
-
// noinspection JSMismatchedCollectionQueryUpdate
|
11
|
-
/**
|
12
|
-
* @type {Array.<{body:RenderFunction,ctx:Object,value:*}>}
|
13
|
-
*/
|
14
|
-
var renderQueue = [];
|
15
|
-
var renderPhase = false;
|
16
|
-
var lastTime = 0.0;
|
17
|
-
/**
|
18
|
-
* Wrapper for safe execution of [body] function only in read phase to prevent force-redraws.
|
19
|
-
* @example
|
20
|
-
* // fill storage with values from DOM
|
21
|
-
* var storage = {};
|
22
|
-
* EasyGem.read(function(){
|
23
|
-
* this.offset = $element.offset();
|
24
|
-
* this.scrollTop = $(window).scrollTop();
|
25
|
-
* }, storage);
|
26
|
-
* @param {RenderFunction} body
|
27
|
-
* @param {Object} [context]
|
28
|
-
*/
|
29
|
-
EasyGem.read = function (body, context) {
|
30
|
-
if (renderPhase) {
|
31
|
-
readQueue.push({body: body, ctx: context});
|
32
|
-
} else {
|
33
|
-
body.call(context);
|
34
|
-
}
|
35
|
-
};
|
36
|
-
/**
|
37
|
-
* Wrapper for safe execution of [body] function only in render phase to prevent force-redraws.
|
38
|
-
* @example
|
39
|
-
* var left = $element.css("left");
|
40
|
-
* EasyGem.render(function(){
|
41
|
-
* $element.css({left: (left + 5) + "px"});
|
42
|
-
* });
|
43
|
-
* @param {RenderFunction} body - obtain execution time as first parameter
|
44
|
-
* @param {Object} [context]
|
45
|
-
*/
|
46
|
-
EasyGem.render = function (body, context) {
|
47
|
-
if (renderPhase) {
|
48
|
-
body.call(context, lastTime);
|
49
|
-
} else {
|
50
|
-
renderQueue.push({body: body, ctx: context});
|
51
|
-
}
|
52
|
-
};
|
53
|
-
/**
|
54
|
-
* Complex and most-safe wrapper for DOM-manipulation code
|
55
|
-
* Execute [read] and [render] function only in proper phases.
|
56
|
-
* @example
|
57
|
-
* // prevents layout thrashing
|
58
|
-
* $table.find("td.first_column").each(function() {
|
59
|
-
* EasyGem.readAndRender(function() {
|
60
|
-
* return this.width();
|
61
|
-
* }, function(width, time) {
|
62
|
-
* this.next().width(width);
|
63
|
-
* }, $(this));
|
64
|
-
* });
|
65
|
-
* @param {RenderFunction} read
|
66
|
-
* @param {RenderFunction} render - function(readResult, time) callback
|
67
|
-
* @param {Object} [context]
|
68
|
-
*/
|
69
|
-
EasyGem.readAndRender = function (read, render, context) {
|
70
|
-
if (renderPhase) {
|
71
|
-
readQueue.push({
|
72
|
-
body: function () {
|
73
|
-
var value = read.call(context);
|
74
|
-
renderQueue.push({body: render, ctx: context, value: value});
|
75
|
-
}, ctx: context
|
76
|
-
});
|
77
|
-
} else {
|
78
|
-
var value = read.call(context);
|
79
|
-
renderQueue.push({body: render, ctx: context, value: value});
|
80
|
-
}
|
81
|
-
};
|
82
|
-
EasyGem.schedule.main(function () {
|
83
|
-
var loop = function (time) {
|
84
|
-
renderPhase = true;
|
85
|
-
lastTime=time;
|
86
|
-
|
87
|
-
setTimeout(function () {
|
88
|
-
renderPhase = false;
|
89
|
-
if (readQueue.length) {
|
90
|
-
var queue = readQueue;
|
91
|
-
readQueue = [];
|
92
|
-
for (i = 0; i < queue.length; i++) {
|
93
|
-
var pack = queue[i];
|
94
|
-
pack.body.call(pack.ctx);
|
95
|
-
}
|
96
|
-
}
|
97
|
-
}, 0);
|
98
|
-
if (renderQueue.length) {
|
99
|
-
var queue = renderQueue;
|
100
|
-
renderQueue = [];
|
101
|
-
for (var i = 0; i < queue.length; i++) {
|
102
|
-
var pack = queue[i];
|
103
|
-
pack.body.call(pack.ctx, pack.value, time);
|
104
|
-
}
|
105
|
-
renderQueue = [];
|
106
|
-
}
|
107
|
-
requestAnimationFrame(loop);
|
108
|
-
};
|
109
|
-
requestAnimationFrame(loop);
|
110
|
-
});
|
111
|
-
})();
|
File without changes
|