mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-10 04:17:28 -08:00
77644860c0
* feat: Added cypress setup files. * feat: Added server bootup and initial test run. * feat: Added e2e tests for signin, signup, and personalization form. * feat: Added e2e tests for adding a function node. * feat: Added set node and workflow execution steps. * feat: Added test id to main sidebar. * feat: Added test for creating a new workflow. * feat: Finished test for creating a blank workflow * chore: Removed screenshots from e2e tests. * refactor: change e2e tests to per page structure * feat: add cypress type enchancements * feat: add typescript for cypress tests * fix: remove component after merge * feat: update cypress definitions * feat: add cypress cleanup task * refactor: update cypress script names * ci: add smoke tests to workflow * chore: remove cypress example files * feat: update signup flow to be reusable * fix: fix signup route for cypress page object * fix: remove cypress reset command * fix: remove unused imports * fix: Add unhandled error catcher
95 lines
1.5 KiB
Vue
95 lines
1.5 KiB
Vue
<template>
|
|
<div :class="$style.container">
|
|
<div :class="$style.logoContainer">
|
|
<Logo />
|
|
</div>
|
|
<div v-if="subtitle" :class="$style.textContainer">
|
|
<n8n-text size="large">{{subtitle}}</n8n-text>
|
|
</div>
|
|
<div :class="$style.formContainer">
|
|
<n8n-form-box
|
|
v-bind="form"
|
|
data-test-id="auth-form"
|
|
:buttonLoading="formLoading"
|
|
@secondaryClick="onSecondaryClick"
|
|
@submit="onSubmit"
|
|
@input="onInput"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
|
|
import Logo from '../components/Logo.vue';
|
|
|
|
export default Vue.extend({
|
|
name: 'AuthView',
|
|
components: {
|
|
Logo,
|
|
},
|
|
props: {
|
|
form: {
|
|
},
|
|
formLoading: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
subtitle: {
|
|
type: String,
|
|
},
|
|
},
|
|
methods: {
|
|
onInput(e: {name: string, value: string}) {
|
|
this.$emit('input', e);
|
|
},
|
|
onSubmit(values: {[key: string]: string}) {
|
|
this.$emit('submit', values);
|
|
},
|
|
onSecondaryClick() {
|
|
this.$emit('secondaryClick');
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
body {
|
|
background-color: var(--color-background-light);
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
padding-top: var(--spacing-2xl);
|
|
|
|
> * {
|
|
margin-bottom: var(--spacing-l);
|
|
width: 352px;
|
|
}
|
|
}
|
|
|
|
.logoContainer {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.textContainer {
|
|
text-align: center;
|
|
}
|
|
|
|
.formContainer {
|
|
padding-bottom: var(--spacing-xl);
|
|
}
|
|
</style>
|
|
|
|
<style lang="scss">
|
|
|
|
.el-checkbox__label span {
|
|
font-size: var(--font-size-2xs) !important;
|
|
}
|
|
|
|
</style>
|