ywana-core8 0.0.828 → 0.0.830
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/dist/index.cjs +14 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +14 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +14 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/calendar.css +41 -0
- package/src/incubator/calendar.js +66 -0
- package/src/incubator/task.js +1 -5
package/dist/index.cjs
CHANGED
@@ -5076,7 +5076,6 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5076
5076
|
var tasks = function tasks(filters, likes) {
|
5077
5077
|
try {
|
5078
5078
|
return Promise.resolve(_catch$5(function () {
|
5079
|
-
console.log("tasks", filters);
|
5080
5079
|
return Promise.resolve(API.all(filters, likes));
|
5081
5080
|
}, function (error) {
|
5082
5081
|
console.log("tasks error", error);
|
@@ -5109,8 +5108,9 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5109
5108
|
React.useEffect(function () {
|
5110
5109
|
var interval = setInterval(function () {
|
5111
5110
|
try {
|
5112
|
-
return Promise.resolve(API.all(
|
5113
|
-
|
5111
|
+
return Promise.resolve(API.all({
|
5112
|
+
state: TASK_STATES.RUNNING
|
5113
|
+
})).then(function (tasks) {
|
5114
5114
|
Object.keys(_listeners).forEach(function (taskID) {
|
5115
5115
|
var task = tasks.find(function (task) {
|
5116
5116
|
return task.id === taskID;
|
@@ -5143,6 +5143,17 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5143
5143
|
value: value
|
5144
5144
|
}, children);
|
5145
5145
|
};
|
5146
|
+
/**
|
5147
|
+
* Task States
|
5148
|
+
*/
|
5149
|
+
|
5150
|
+
var TASK_STATES = {
|
5151
|
+
"CREATED": "CREATED",
|
5152
|
+
"RUNNING": "RUNNING",
|
5153
|
+
"COMPLETED": "COMPPLETED",
|
5154
|
+
"FAULTED": "FAULTED",
|
5155
|
+
"CANCELED": "CANCELED"
|
5156
|
+
};
|
5146
5157
|
/**
|
5147
5158
|
* TaskProgress
|
5148
5159
|
*/
|