@wishbone-media/spark 0.10.0 → 0.12.0

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.
@@ -0,0 +1,83 @@
1
+ <template>
2
+ <div class="h-full grid place-content-center relative">
3
+ <div class="absolute top-8 left-8">
4
+ <img v-if="props.logo" :src="props.logo" alt="Logo" class="h-[23px] w-auto" />
5
+ <svg
6
+ v-else
7
+ width="59"
8
+ height="23"
9
+ viewBox="0 0 59 23"
10
+ fill="none"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ >
13
+ <path
14
+ d="M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z"
15
+ fill="#1C64F2"
16
+ />
17
+ <path d="M34.5 5.22235H38.228V14.1664H46.5V17.1264H34.5V5.22235Z" fill="#1C64F2" />
18
+ <path
19
+ d="M28.3161 0C29.1499 0 29.7522 0.798785 29.5209 1.59757L27.1856 9.77748H30.9046C31.747 9.77748 32.4279 10.4584 32.4279 11.3008C32.4279 11.7504 32.2315 12.1738 31.891 12.4619L20.5989 22.0517C20.3719 22.2438 20.0839 22.3485 19.787 22.3485C18.9533 22.3485 18.351 21.5497 18.5823 20.751L20.9176 12.571H17.1463C16.33 12.571 15.6709 11.9119 15.6709 11.1001C15.6709 10.6679 15.8586 10.262 16.186 9.98263L27.5043 0.301181C27.7312 0.104759 28.0193 0 28.3161 0ZM26.7404 3.71021L18.8311 10.4759H22.3056C22.633 10.4759 22.9429 10.6286 23.1437 10.8905C23.3445 11.1524 23.4056 11.4929 23.3139 11.8072L21.3584 18.6601L29.355 11.8727H25.7976C25.4702 11.8727 25.1603 11.7199 24.9595 11.458C24.7587 11.1961 24.6976 10.8556 24.7893 10.5413L26.7404 3.71021Z"
20
+ fill="#1C64F2"
21
+ />
22
+ <path
23
+ d="M0 17.1264V5.22235H10.192C13.6 5.22235 14.544 6.53435 14.544 7.94235V8.16635C14.544 9.70235 13.232 10.3264 12.656 10.4864C13.472 10.6944 15.216 11.3984 15.216 13.4784V13.7024C15.216 15.5904 14.144 17.1264 10.288 17.1264H0ZM9.552 7.73435H3.728V9.67035H9.552C10.592 9.67035 10.848 9.19035 10.848 8.71035V8.67835C10.848 8.18235 10.592 7.73435 9.552 7.73435ZM9.872 12.1984H3.728V14.5344H9.872C11.12 14.5344 11.344 13.8464 11.344 13.3664V13.3024C11.344 12.7904 11.104 12.1984 9.872 12.1984Z"
24
+ fill="#1C64F2"
25
+ />
26
+ </svg>
27
+ </div>
28
+
29
+ <div class="max-w-lg grid gap-y-6 text-center -mt-8">
30
+ <div>
31
+ <div class="text-primary-600 text-7xl font-bold mb-4">
32
+ {{ props.errorCode || 'Error' }}
33
+ </div>
34
+ <h1 class="text-3xl text-gray-900 font-semibold tracking-tight mb-3">
35
+ {{ props.title || 'Something went wrong' }}
36
+ </h1>
37
+ <p class="text-gray-600">
38
+ {{ props.message || 'An unexpected error occurred. Please try again later.' }}
39
+ </p>
40
+ </div>
41
+
42
+ <div class="flex gap-4 justify-center">
43
+ <spark-button @click="goHome" size="lg">
44
+ Go to Home
45
+ </spark-button>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </template>
50
+
51
+ <script setup>
52
+ import { useRouter } from 'vue-router'
53
+ import { SparkButton } from '@/index.js'
54
+
55
+ const router = useRouter()
56
+
57
+ const props = defineProps({
58
+ logo: {
59
+ type: String,
60
+ default: '',
61
+ },
62
+ homeRoute: {
63
+ type: String,
64
+ default: '/dashboard',
65
+ },
66
+ errorCode: {
67
+ type: [String, Number],
68
+ default: null,
69
+ },
70
+ title: {
71
+ type: String,
72
+ default: '',
73
+ },
74
+ message: {
75
+ type: String,
76
+ default: '',
77
+ },
78
+ })
79
+
80
+ const goHome = () => {
81
+ router.push(props.homeRoute)
82
+ }
83
+ </script>
@@ -50,7 +50,7 @@
50
50
  name="password_confirmation"
51
51
  placeholder="••••••••"
52
52
  type="password"
53
- validation="required|confirm"
53
+ validation="required|confirm:password"
54
54
  outer-class="max-w-full"
55
55
  />
56
56
 
@@ -2,3 +2,6 @@ export { default as SparkLoginView } from './SparkLoginView.vue'
2
2
  export { default as SparkLogoutView } from './SparkLogoutView.vue'
3
3
  export { default as SparkForgotPasswordView } from './SparkForgotPasswordView.vue'
4
4
  export { default as SparkResetPasswordView } from './SparkResetPasswordView.vue'
5
+ export { default as SparkError403View } from './SparkError403View.vue'
6
+ export { default as SparkError404View } from './SparkError404View.vue'
7
+ export { default as SparkErrorGeneralView } from './SparkErrorGeneralView.vue'