@fy-/fws-vue 0.3.59 → 0.3.61

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.
@@ -201,7 +201,7 @@ onUnmounted(() => {
201
201
  class="flex h-[100vh] relative flex-grow items-center justify-center gap-2"
202
202
  >
203
203
  <div
204
- class="hidden lg:relative lg:flex w-10 flex-shrink-0 items-center justify-center"
204
+ class="hidden lg:relative lg:flex w-10 flex-shrink-0 items-center justify-center flex-0"
205
205
  >
206
206
  <button
207
207
  class="btn p-1 rounded-full"
@@ -248,7 +248,9 @@ onUnmounted(() => {
248
248
  />
249
249
  </template>
250
250
  </div>
251
- <div class="flex-0 py-2 flex items-center justify-center">
251
+ <div
252
+ class="flex-0 py-2 flex items-center justify-center max-w-full w-full"
253
+ >
252
254
  <slot :value="images[modelValue]"></slot>
253
255
  </div>
254
256
  </div>
@@ -61,6 +61,10 @@ export function useRest(): <ResultType extends APIResult>(
61
61
  JSON.parse(JSON.stringify(restResult)),
62
62
  );
63
63
  }
64
+ if (restResult.result === "error") {
65
+ eventBus.emit("rest-error", restResult);
66
+ return Promise.reject(restResult);
67
+ }
64
68
  return Promise.resolve(restResult);
65
69
  } catch (error) {
66
70
  const restError: ResultType = error as ResultType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.3.59",
3
+ "version": "0.3.61",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {