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.modern.js
CHANGED
@@ -5067,7 +5067,6 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5067
5067
|
var tasks = function tasks(filters, likes) {
|
5068
5068
|
try {
|
5069
5069
|
return Promise.resolve(_catch$5(function () {
|
5070
|
-
console.log("tasks", filters);
|
5071
5070
|
return Promise.resolve(API.all(filters, likes));
|
5072
5071
|
}, function (error) {
|
5073
5072
|
console.log("tasks error", error);
|
@@ -5100,8 +5099,9 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5100
5099
|
useEffect(function () {
|
5101
5100
|
var interval = setInterval(function () {
|
5102
5101
|
try {
|
5103
|
-
return Promise.resolve(API.all(
|
5104
|
-
|
5102
|
+
return Promise.resolve(API.all({
|
5103
|
+
state: TASK_STATES.RUNNING
|
5104
|
+
})).then(function (tasks) {
|
5105
5105
|
Object.keys(_listeners).forEach(function (taskID) {
|
5106
5106
|
var task = tasks.find(function (task) {
|
5107
5107
|
return task.id === taskID;
|
@@ -5134,6 +5134,17 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5134
5134
|
value: value
|
5135
5135
|
}, children);
|
5136
5136
|
};
|
5137
|
+
/**
|
5138
|
+
* Task States
|
5139
|
+
*/
|
5140
|
+
|
5141
|
+
var TASK_STATES = {
|
5142
|
+
"CREATED": "CREATED",
|
5143
|
+
"RUNNING": "RUNNING",
|
5144
|
+
"COMPLETED": "COMPPLETED",
|
5145
|
+
"FAULTED": "FAULTED",
|
5146
|
+
"CANCELED": "CANCELED"
|
5147
|
+
};
|
5137
5148
|
/**
|
5138
5149
|
* TaskProgress
|
5139
5150
|
*/
|