* introduce analytics * add user survey backend * add user survey backend * set answers on survey submit Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> * change name to personalization * lint Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> * N8n 2495 add personalization modal (#2280) * update modals * add onboarding modal * implement questions * introduce analytics * simplify impl * implement survey handling * add personalized cateogry * update modal behavior * add thank you view * handle empty cases * rename modal * standarize modal names * update image, add tags to headings * remove unused file * remove unused interfaces * clean up footer spacing * introduce analytics * refactor to fix bug * update endpoint * set min height * update stories * update naming from questions to survey * remove spacing after core categories * fix bug in logic * sort nodes * rename types * merge with be * rename userSurvey * clean up rest api * use constants for keys * use survey keys * clean up types * move personalization to its own file Co-authored-by: ahsan-virani <ahsan.virani@gmail.com> * Survey new options (#2300) * split up options * fix quotes * remove unused import * add user created workflow event (#2301) * simplify env vars * fix versionCli on FE * update personalization env * fix event User opened Credentials panel * fix select modal spacing * fix nodes panel event * fix workflow id in workflow execute event * improve telemetry error logging * fix config and stop process events * add flush call on n8n stop * ready for release * improve telemetry process exit * fix merge * improve n8n stop events Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> Co-authored-by: Mutasem <mutdmour@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
127 lines
2.1 KiB
Vue
127 lines
2.1 KiB
Vue
<template>
|
||
<div class="no-results">
|
||
<div class="icon">
|
||
<NoResultsIcon />
|
||
</div>
|
||
<div class="title">
|
||
<div>We didn't make that... yet</div>
|
||
<div class="action">
|
||
Don’t worry, you can probably do it with the
|
||
<a @click="selectHttpRequest">HTTP Request</a> or
|
||
<a @click="selectWebhook">Webhook</a> node
|
||
</div>
|
||
</div>
|
||
|
||
<div class="request">
|
||
<div>Want us to make it faster?</div>
|
||
<div>
|
||
<a
|
||
:href="REQUEST_NODE_FORM_URL"
|
||
target="_blank"
|
||
>
|
||
<span>Request the node</span>
|
||
<span>
|
||
<font-awesome-icon
|
||
class="external"
|
||
icon="external-link-alt"
|
||
title="Request the node"
|
||
/>
|
||
</span>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
|
||
<script lang="ts">
|
||
import { HTTP_REQUEST_NODE_TYPE, REQUEST_NODE_FORM_URL, WEBHOOK_NODE_TYPE } from '@/constants';
|
||
import Vue from 'vue';
|
||
|
||
import NoResultsIcon from './NoResultsIcon.vue';
|
||
|
||
export default Vue.extend({
|
||
name: 'NoResults',
|
||
components: {
|
||
NoResultsIcon,
|
||
},
|
||
data() {
|
||
return {
|
||
REQUEST_NODE_FORM_URL,
|
||
};
|
||
},
|
||
computed: {
|
||
basePath(): string {
|
||
return this.$store.getters.getBaseUrl;
|
||
},
|
||
},
|
||
methods: {
|
||
selectWebhook() {
|
||
this.$emit('nodeTypeSelected', WEBHOOK_NODE_TYPE);
|
||
},
|
||
|
||
selectHttpRequest() {
|
||
this.$emit('nodeTypeSelected', HTTP_REQUEST_NODE_TYPE);
|
||
},
|
||
},
|
||
});
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.no-results {
|
||
background-color: $--node-creator-no-results-background-color;
|
||
text-align: center;
|
||
height: 100%;
|
||
border-left: 1px solid $--node-creator-border-color;
|
||
flex-direction: column;
|
||
font-weight: 400;
|
||
display: flex;
|
||
align-items: center;
|
||
align-content: center;
|
||
padding: 0 50px;
|
||
}
|
||
|
||
.title {
|
||
font-size: 22px;
|
||
line-height: 22px;
|
||
margin-top: 50px;
|
||
|
||
div {
|
||
margin-bottom: 15px;
|
||
}
|
||
}
|
||
|
||
.action, .request {
|
||
font-size: 14px;
|
||
line-height: 19px;
|
||
}
|
||
|
||
.request {
|
||
position: fixed;
|
||
bottom: 20px;
|
||
display: none;
|
||
|
||
@media (min-height: 550px) {
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
a {
|
||
color: $--color-primary;
|
||
text-decoration: none;
|
||
cursor: pointer;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.icon {
|
||
margin-top: 100px;
|
||
min-height: 67px;
|
||
opacity: .6;
|
||
}
|
||
|
||
.external {
|
||
font-size: 12px;
|
||
}
|
||
|
||
</style>
|