@goweekdays/layer-common 1.6.4 → 1.6.7
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/CHANGELOG.md +18 -0
- package/components/Input/SnakeCase.vue +22 -0
- package/composables/useUtils.ts +5 -0
- package/package.json +1 -1
- package/pages/index.vue +11 -8
- package/pages/login.vue +3 -3
- package/pages/sign-up/index.vue +9 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @goweekdays/layer-common
|
|
2
2
|
|
|
3
|
+
## 1.6.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 808fa70: Fix landing page
|
|
8
|
+
|
|
9
|
+
## 1.6.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f1d28fa: Fix login and sign up page button and font size
|
|
14
|
+
|
|
15
|
+
## 1.6.5
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- a733401: Add new component
|
|
20
|
+
|
|
3
21
|
## 1.6.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-text-field
|
|
3
|
+
type="text"
|
|
4
|
+
:model-value="model"
|
|
5
|
+
@update:model-value="onInput"
|
|
6
|
+
v-bind="$attrs"
|
|
7
|
+
>
|
|
8
|
+
<template v-for="(_, name) in $slots" #[name]="slotProps">
|
|
9
|
+
<slot :name="name" v-bind="slotProps" />
|
|
10
|
+
</template>
|
|
11
|
+
</v-text-field>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
const model = defineModel<string>({ default: "" });
|
|
16
|
+
|
|
17
|
+
const { toSnakeUpperCase } = useUtils();
|
|
18
|
+
|
|
19
|
+
function onInput(val: string) {
|
|
20
|
+
model.value = toSnakeUpperCase(val);
|
|
21
|
+
}
|
|
22
|
+
</script>
|
package/composables/useUtils.ts
CHANGED
|
@@ -502,6 +502,10 @@ export default function useUtils() {
|
|
|
502
502
|
},
|
|
503
503
|
];
|
|
504
504
|
|
|
505
|
+
function toSnakeUpperCase(value: string) {
|
|
506
|
+
return value.replace(/\s+/g, "_").toUpperCase();
|
|
507
|
+
}
|
|
508
|
+
|
|
505
509
|
function generateYears(
|
|
506
510
|
generation = 0,
|
|
507
511
|
mode = "past",
|
|
@@ -559,5 +563,6 @@ export default function useUtils() {
|
|
|
559
563
|
copyToClipboard,
|
|
560
564
|
months,
|
|
561
565
|
generateYears,
|
|
566
|
+
toSnakeUpperCase,
|
|
562
567
|
};
|
|
563
568
|
}
|
package/package.json
CHANGED
package/pages/index.vue
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-row
|
|
2
|
+
<v-row
|
|
3
|
+
no-gutters
|
|
4
|
+
class="fill-height pa-4"
|
|
5
|
+
justify="center"
|
|
6
|
+
align-content="center"
|
|
7
|
+
>
|
|
3
8
|
<v-col cols="12" class="text-center">
|
|
4
|
-
<span class="text-h3 text-sm-
|
|
5
|
-
APP_NAME
|
|
6
|
-
}}</span>
|
|
9
|
+
<span class="text-h3 text-sm-h1 font-weight-bold">{{ APP_NAME }}</span>
|
|
7
10
|
</v-col>
|
|
8
11
|
|
|
9
12
|
<v-col cols="12" class="text-center mt-6" v-if="currentUser">
|
|
@@ -45,20 +48,20 @@
|
|
|
45
48
|
|
|
46
49
|
<v-col cols="12" class="text-center mt-6" v-else>
|
|
47
50
|
<v-row justify="center">
|
|
48
|
-
<v-col cols="
|
|
51
|
+
<v-col cols="6" lg="2" md="3" sm="4">
|
|
49
52
|
<v-btn
|
|
50
53
|
block
|
|
51
|
-
class="text-
|
|
54
|
+
class="text-capitalize font-weight-bold text-h6"
|
|
52
55
|
rounded="xl"
|
|
53
56
|
variant="tonal"
|
|
54
|
-
size="large"
|
|
57
|
+
size="x-large"
|
|
55
58
|
:to="{ name: 'login' }"
|
|
56
59
|
>
|
|
57
60
|
Login
|
|
58
61
|
</v-btn>
|
|
59
62
|
</v-col>
|
|
60
63
|
|
|
61
|
-
<v-col cols="12">
|
|
64
|
+
<v-col cols="12" class="text-h6 font-weight-medium">
|
|
62
65
|
Don't have an account?
|
|
63
66
|
<nuxt-link :href="`${APP_MAIN}/sign-up`">Sign up</nuxt-link>
|
|
64
67
|
</v-col>
|
package/pages/login.vue
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<v-col cols="12">
|
|
16
16
|
<v-row no-gutters justify="center">
|
|
17
17
|
<nuxt-link
|
|
18
|
-
class="text-
|
|
18
|
+
class="text-h3 text-sm-h2 text-md-h2 text-lg-h2 text-xl-h2 font-weight-bold text-decoration-none"
|
|
19
19
|
style="color: unset"
|
|
20
20
|
:to="{ name: 'index' }"
|
|
21
21
|
>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
variant="tonal"
|
|
60
60
|
:disabled="!isValid"
|
|
61
61
|
rounded="xl"
|
|
62
|
-
size="large"
|
|
62
|
+
size="x-large"
|
|
63
63
|
class="text-none"
|
|
64
64
|
:loading="loading"
|
|
65
65
|
>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
variant="flat"
|
|
89
89
|
color="black"
|
|
90
90
|
rounded="xl"
|
|
91
|
-
size="large"
|
|
91
|
+
size="x-large"
|
|
92
92
|
class="text-none"
|
|
93
93
|
:to="{ name: 'sign-up' }"
|
|
94
94
|
>
|
package/pages/sign-up/index.vue
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-row
|
|
2
|
+
<v-row
|
|
3
|
+
no-gutters
|
|
4
|
+
class="fill-height pa-8"
|
|
5
|
+
justify="center"
|
|
6
|
+
align-content="center"
|
|
7
|
+
>
|
|
3
8
|
<v-col cols="12" lg="3" md="4" sm="6">
|
|
4
9
|
<v-form
|
|
5
10
|
v-model="valid"
|
|
@@ -10,7 +15,7 @@
|
|
|
10
15
|
<v-col cols="12">
|
|
11
16
|
<v-row no-gutters justify="center">
|
|
12
17
|
<nuxt-link
|
|
13
|
-
class="text-h2 font-weight-bold text-decoration-none"
|
|
18
|
+
class="text-h3 text-sm-h2 font-weight-bold text-decoration-none"
|
|
14
19
|
style="color: unset"
|
|
15
20
|
:to="{ name: 'index' }"
|
|
16
21
|
>
|
|
@@ -57,7 +62,7 @@
|
|
|
57
62
|
variant="tonal"
|
|
58
63
|
:disabled="!valid"
|
|
59
64
|
rounded="xl"
|
|
60
|
-
size="large"
|
|
65
|
+
size="x-large"
|
|
61
66
|
class="text-none"
|
|
62
67
|
:loading="loading"
|
|
63
68
|
>
|
|
@@ -75,7 +80,7 @@
|
|
|
75
80
|
variant="flat"
|
|
76
81
|
color="black"
|
|
77
82
|
rounded="xl"
|
|
78
|
-
size="large"
|
|
83
|
+
size="x-large"
|
|
79
84
|
class="text-none"
|
|
80
85
|
:to="{ name: 'login' }"
|
|
81
86
|
>
|