ar-design 0.3.53 → 0.3.55
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.
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
> .nodes {
|
|
39
39
|
.node {
|
|
40
40
|
position: absolute;
|
|
41
|
-
background-color: var(--white);
|
|
42
|
-
padding: 0.5rem 1rem;
|
|
43
|
-
border-radius: var(--border-radius-sm);
|
|
44
|
-
box-shadow: 0px 10px 5px -5px rgba(var(--black-rgb), 0.1);
|
|
41
|
+
/* background-color: var(--white); */
|
|
42
|
+
/* padding: 0.5rem 1rem; */
|
|
43
|
+
/* border-radius: var(--border-radius-sm); */
|
|
44
|
+
/* box-shadow: 0px 10px 5px -5px rgba(var(--black-rgb), 0.1); */
|
|
45
45
|
cursor: grab;
|
|
46
46
|
user-select: none;
|
|
47
47
|
|
|
@@ -99,23 +99,8 @@ class Api {
|
|
|
99
99
|
if (config.responseInterceptor)
|
|
100
100
|
return await config.responseInterceptor(response);
|
|
101
101
|
// Error handling
|
|
102
|
-
if (!response.ok)
|
|
103
|
-
|
|
104
|
-
switch (response.status) {
|
|
105
|
-
case 400:
|
|
106
|
-
console.error("400 Bad Request");
|
|
107
|
-
break;
|
|
108
|
-
case 401:
|
|
109
|
-
console.error("401 Unauthorized");
|
|
110
|
-
break;
|
|
111
|
-
case 404:
|
|
112
|
-
console.error("404 Not Found");
|
|
113
|
-
break;
|
|
114
|
-
default:
|
|
115
|
-
console.error(message);
|
|
116
|
-
}
|
|
117
|
-
throw new Error(message);
|
|
118
|
-
}
|
|
102
|
+
if (!response.ok)
|
|
103
|
+
console.error(`HTTP Error ${response.status}: ${response.statusText}`);
|
|
119
104
|
return response;
|
|
120
105
|
}
|
|
121
106
|
catch (error) {
|