-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #401 from weni-ai/vue3/final
[FLOWS_1495] - Pull from staging.
- Loading branch information
Showing
20 changed files
with
1,040 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:18.14.0-alpine3.1 as builder | ||
FROM node:18.14.0-alpine3.17 as builder | ||
|
||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="/favicon.ico"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Integrations</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
</html> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="/favicon.ico"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Integrations</title> | ||
<script> | ||
//CONFIGURATIONS_PLACEHOLDER | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
<template> | ||
<div v-if="version === '1.0'" :class="['unnnic-alert', `unnnic-alert-position--${position}`]"> | ||
<unnnic-icon-svg :icon="icon" :scheme="scheme" size="sm" /> | ||
<div class="unnnic-alert__content"> | ||
<div class="unnnic-alert__title"> | ||
{{ title.toUpperCase() }} | ||
</div> | ||
<div class="unnnic-alert__text"> | ||
{{ text }} | ||
</div> | ||
</div> | ||
<div v-if="closeText" class="unnnic-alert__close-text unnnic--clickable" @click="onClose()"> | ||
{{ closeText.toUpperCase() }} | ||
</div> | ||
<unnnic-icon icon="close-1" scheme="white" size="xs" @click="onClose" /> | ||
</div> | ||
|
||
<component | ||
v-else | ||
:is="'version' + version.replace(/\./g, 'dot')" | ||
v-bind="{ ...$props }" | ||
></component> | ||
</template> | ||
|
||
<script> | ||
import Version1dot1 from './Version1dot1.vue'; | ||
export default { | ||
name: 'unnnicAlert', | ||
components: { | ||
Version1dot1, | ||
}, | ||
props: { | ||
version: { | ||
type: String, | ||
default: '1.1', | ||
}, | ||
title: { | ||
type: String, | ||
default: null, | ||
}, | ||
text: { | ||
type: String, | ||
default: null, | ||
}, | ||
scheme: { | ||
type: String, | ||
default: null, | ||
}, | ||
icon: { | ||
type: String, | ||
default: null, | ||
}, | ||
onClose: { | ||
type: Function, | ||
default: () => {}, | ||
}, | ||
closeText: { | ||
type: String, | ||
}, | ||
position: { | ||
type: String, | ||
default: 'top-right', | ||
}, | ||
linkHref: { | ||
type: String, | ||
}, | ||
linkTarget: { | ||
type: String, | ||
}, | ||
linkText: { | ||
type: String, | ||
}, | ||
type: { | ||
type: String, | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.unnnic-alert { | ||
position: fixed; | ||
padding: $unnnic-inset-xs; | ||
min-width: 12.5 * $unnnic-font-size; | ||
display: inline-flex; | ||
align-items: center; | ||
font-family: $unnnic-font-family-secondary; | ||
border-radius: $unnnic-border-radius-sm; | ||
background-color: $unnnic-color-background-snow; | ||
box-shadow: $unnnic-shadow-level-near; | ||
position: fixed; | ||
z-index: 9999; | ||
&-position { | ||
&--top-right { | ||
top: 1 * $unnnic-font-size; | ||
right: 1 * $unnnic-font-size; | ||
} | ||
&--top-left { | ||
top: 1 * $unnnic-font-size; | ||
left: 1 * $unnnic-font-size; | ||
} | ||
&--bottom-right { | ||
bottom: 1 * $unnnic-font-size; | ||
right: 1 * $unnnic-font-size; | ||
} | ||
&--bottom-left { | ||
bottom: 1 * $unnnic-font-size; | ||
left: 1 * $unnnic-font-size; | ||
} | ||
} | ||
&__content { | ||
flex: 1; | ||
margin: 0 $unnnic-inline-xs; | ||
} | ||
&__title { | ||
font-size: $unnnic-font-size-body-sm; | ||
font-weight: $unnnic-font-weight-bold; | ||
color: $unnnic-color-neutral-darkest; | ||
} | ||
&__text { | ||
font-size: $unnnic-font-size-body-md; | ||
font-weight: $unnnic-font-weight-regular; | ||
color: $unnnic-color-neutral-dark; | ||
} | ||
&__close { | ||
&-text { | ||
color: $unnnic-color-brand-sec; | ||
font-size: $unnnic-font-size-body-md; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<button @click="callAlert">Launch alert</button> | ||
</template> | ||
|
||
<script> | ||
import alert from '../../utils/call'; | ||
export default { | ||
props: { | ||
title: { | ||
type: String, | ||
default: null, | ||
}, | ||
text: { | ||
type: String, | ||
default: null, | ||
}, | ||
icon: { | ||
type: String, | ||
default: null, | ||
}, | ||
enabled: { | ||
type: Boolean, | ||
default: true, | ||
}, | ||
scheme: { | ||
type: String, | ||
default: null, | ||
}, | ||
seconds: { | ||
type: Number, | ||
default: 3, | ||
}, | ||
closeText: { | ||
type: String, | ||
default: null, | ||
}, | ||
position: { | ||
type: String, | ||
default: 'top-right', | ||
}, | ||
}, | ||
methods: { | ||
callAlert() { | ||
alert.callAlert({ props: this.$props, seconds: this.seconds }); | ||
}, | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.