imdone-core 1.53.17 → 1.53.18
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.
- package/lib/project.js +19 -8
- package/package.json +1 -1
package/lib/project.js
CHANGED
|
@@ -149,25 +149,36 @@ module.exports = class WorkerProject extends Project {
|
|
|
149
149
|
this._updatedAt = new Date()
|
|
150
150
|
const { allLists , totals } = this.getListsForImdoneJSON()
|
|
151
151
|
|
|
152
|
-
console.time('plugin onBeforeBoardUpdate')
|
|
152
|
+
console.time('plugin onBeforeBoardUpdate time')
|
|
153
153
|
await this.pluginManager.onBeforeBoardUpdate()
|
|
154
|
-
console.timeEnd('plugin onBeforeBoardUpdate')
|
|
154
|
+
console.timeEnd('plugin onBeforeBoardUpdate time')
|
|
155
155
|
|
|
156
|
+
console.time('getBoardProperties time')
|
|
156
157
|
const data = this.data = this.pluginManager.getBoardProperties()
|
|
158
|
+
console.timeEnd('getBoardProperties time')
|
|
159
|
+
|
|
160
|
+
console.time('getDataKeys time')
|
|
157
161
|
const dataKeys = this.dataKays = this.getDataKeys(data)
|
|
162
|
+
console.timeEnd('getDataKeys time')
|
|
158
163
|
|
|
159
|
-
console.time('card init')
|
|
164
|
+
console.time('card init time')
|
|
160
165
|
const cards = this.getInitializedCards(allLists, totals)
|
|
161
|
-
console.timeEnd('card init')
|
|
166
|
+
console.timeEnd('card init time')
|
|
162
167
|
|
|
163
|
-
console.time('plugin onBoardUpdate')
|
|
168
|
+
console.time('plugin onBoardUpdate time')
|
|
164
169
|
await this.pluginManager.onBoardUpdate(allLists)
|
|
165
|
-
console.timeEnd('plugin onBoardUpdate')
|
|
170
|
+
console.timeEnd('plugin onBoardUpdate time')
|
|
171
|
+
|
|
172
|
+
console.time('getTags time')
|
|
173
|
+
const tags = this.getTags(cards)
|
|
174
|
+
console.timeEnd('getTags time')
|
|
166
175
|
|
|
176
|
+
console.time('getLists time')
|
|
167
177
|
const lists = this.filter ? this.getLists({
|
|
168
178
|
tasks: this.getCards(this.filter, cards),
|
|
169
179
|
populateFiltered: true,
|
|
170
180
|
}) : allLists
|
|
181
|
+
console.timeEnd('getLists time')
|
|
171
182
|
|
|
172
183
|
console.timeEnd('toJSON time')
|
|
173
184
|
return {
|
|
@@ -177,7 +188,7 @@ module.exports = class WorkerProject extends Project {
|
|
|
177
188
|
files: this.files,
|
|
178
189
|
totals,
|
|
179
190
|
totalCards: this.repo.getTasks().length,
|
|
180
|
-
tags
|
|
191
|
+
tags,
|
|
181
192
|
allMeta: this.allMeta,
|
|
182
193
|
allContexts: this.allContexts,
|
|
183
194
|
allTags: this.allTags,
|
|
@@ -191,7 +202,7 @@ module.exports = class WorkerProject extends Project {
|
|
|
191
202
|
}
|
|
192
203
|
}
|
|
193
204
|
|
|
194
|
-
emit() {}
|
|
205
|
+
emit() {} // This is implemented in imdone UI worker
|
|
195
206
|
|
|
196
207
|
emitUpdate() {
|
|
197
208
|
this.emit('file.update')
|