Skip to content

Commit ec6843a

Browse files
committed
Merge branch 'main' of https://github.com/codersforcauses/elucidate into i139_password_reset_app
2 parents 940fd5d + 8197818 commit ec6843a

78 files changed

Lines changed: 2288 additions & 1077 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757

5858
- name: Cache .venv 📦
5959
id: cached-poetry-dependencies
60-
uses: actions/cache@v3.0.5
60+
uses: actions/cache@v3.0.6
6161
with:
6262
path: server/.venv
6363
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

.github/workflows/e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
working-directory: client
4747

4848
- name: Cache node_modules 📦
49-
uses: actions/cache@v3.0.5
49+
uses: actions/cache@v3.0.6
5050
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
5151
with:
5252
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Cache .venv 📦
7575
id: cached-poetry-dependencies
76-
uses: actions/cache@v3.0.5
76+
uses: actions/cache@v3.0.6
7777
with:
7878
path: server/.venv
7979
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

.github/workflows/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: echo "::set-output name=dir::$(yarn cache dir)"
4343

4444
- name: Cache node_modules 📦
45-
uses: actions/cache@v3.0.5
45+
uses: actions/cache@v3.0.6
4646
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
4747
with:
4848
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

client/.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ module.exports = {
1010
sourceType: 'module',
1111
},
1212
plugins: ['vue', 'cypress'],
13+
rules: {
14+
'vue/attribute-hyphenation': ['never'],
15+
},
1316
};

client/.yarnrc.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<template>
2+
<ul class="bg-red p-3 my-6 text-neutral-100 font-bold rounded-md list-disc">
3+
<h1>
4+
<font-awesome-icon :icon="['fas', 'circle-exclamation']" />
5+
<slot> Please fix the following errors: </slot>
6+
</h1>
7+
<li
8+
v-for="(messages, error) in errors"
9+
:key="error.toString()"
10+
class="ml-8 mt-2"
11+
>
12+
<h2 class="">
13+
{{ (error.charAt(0).toUpperCase() + error.slice(1)).replace(/_/, ' ') }}
14+
</h2>
15+
<p
16+
v-for="message in messages"
17+
:key="message.toString()"
18+
class="ml-8 font-normal"
19+
>
20+
{{ message }}
21+
</p>
22+
23+
<p></p>
24+
</li>
25+
</ul>
26+
</template>
27+
28+
<script>
29+
export default {
30+
props: {
31+
errors: {
32+
type: Array[Error],
33+
required: true,
34+
},
35+
},
36+
};
37+
</script>

client/components/Auth/AuthFooter.vue

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
11
<template>
2-
<div
3-
class="flex flex-col items-center w-11/12 max-w-lg bg-green drop-shadow-lg"
4-
>
5-
<slot></slot>
2+
<div class="w-1/2 max-w-lg">
3+
<AuthAlert v-if="errors.length !== 0" :errors="errors">
4+
{{ errorHeader }}
5+
</AuthAlert>
6+
7+
<ValidationObserver
8+
v-slot="v"
9+
tag="form"
10+
class="flex flex-col px-6 py-8 bg-green drop-shadow-lg"
11+
@submit.prevent="(e) => $emit('submit', e)"
12+
>
13+
<slot :invalid="v.invalid" />
14+
</ValidationObserver>
615
</div>
716
</template>
817

918
<script>
19+
import { ValidationObserver } from 'vee-validate';
1020
export default {
1121
name: 'AuthForm',
22+
components: {
23+
ValidationObserver,
24+
},
25+
props: {
26+
errors: {
27+
type: Array[Error],
28+
default: () => [],
29+
},
30+
errorHeader: {
31+
type: String,
32+
default: undefined,
33+
},
34+
},
1235
};
1336
</script>

client/components/Auth/AuthHeader.vue

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<template>
2+
<button
3+
type="submit"
4+
:class="
5+
disabled
6+
? 'text-darkgrey bg-lightgrey border-darkgrey'
7+
: 'text-red bg-white border-red'
8+
"
9+
class="place-self-center text-l font-bold w-24 h-8 rounded border border-solid my-5"
10+
:disabled="disabled"
11+
>
12+
<slot />
13+
</button>
14+
</template>
15+
16+
<script>
17+
export default {
18+
name: 'AuthSubmit',
19+
props: {
20+
disabled: {
21+
type: Boolean,
22+
default: false,
23+
},
24+
},
25+
};
26+
</script>

0 commit comments

Comments
 (0)