@budibase/frontend-core 2.2.12-alpha.49 → 2.2.12-alpha.50
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/assets/bg.png +0 -0
- package/assets/bulgaria.png +0 -0
- package/assets/covanta.png +0 -0
- package/assets/schnellecke.png +0 -0
- package/package.json +3 -3
- package/src/api/user.js +15 -1
- package/src/components/SplitPage.svelte +14 -6
- package/src/components/TestimonialPage.svelte +38 -22
package/assets/bg.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.2.12-alpha.
|
|
3
|
+
"version": "2.2.12-alpha.50",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"svelte": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@budibase/bbui": "2.2.12-alpha.
|
|
9
|
+
"@budibase/bbui": "2.2.12-alpha.50",
|
|
10
10
|
"lodash": "^4.17.21",
|
|
11
11
|
"svelte": "^3.46.2"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "b6ca342ed964e28404648db0dc2ff63b82347a2a"
|
|
14
14
|
}
|
package/src/api/user.js
CHANGED
|
@@ -146,6 +146,16 @@ export const buildUserEndpoints = API => ({
|
|
|
146
146
|
})
|
|
147
147
|
},
|
|
148
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Retrieves the invitation associated with a provided code.
|
|
151
|
+
* @param code The unique code for the target invite
|
|
152
|
+
*/
|
|
153
|
+
getUserInvite: async code => {
|
|
154
|
+
return await API.get({
|
|
155
|
+
url: `/api/global/users/invite/${code}`,
|
|
156
|
+
})
|
|
157
|
+
},
|
|
158
|
+
|
|
149
159
|
/**
|
|
150
160
|
* Invites multiple users to the current tenant.
|
|
151
161
|
* @param users An array of users to invite
|
|
@@ -168,13 +178,17 @@ export const buildUserEndpoints = API => ({
|
|
|
168
178
|
* Accepts an invite to join the platform and creates a user.
|
|
169
179
|
* @param inviteCode the invite code sent in the email
|
|
170
180
|
* @param password the password for the newly created user
|
|
181
|
+
* @param firstName the first name of the new user
|
|
182
|
+
* @param lastName the last name of the new user
|
|
171
183
|
*/
|
|
172
|
-
acceptInvite: async ({ inviteCode, password }) => {
|
|
184
|
+
acceptInvite: async ({ inviteCode, password, firstName, lastName }) => {
|
|
173
185
|
return await API.post({
|
|
174
186
|
url: "/api/global/users/invite/accept",
|
|
175
187
|
body: {
|
|
176
188
|
inviteCode,
|
|
177
189
|
password,
|
|
190
|
+
firstName,
|
|
191
|
+
lastName,
|
|
178
192
|
},
|
|
179
193
|
})
|
|
180
194
|
},
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import BG from "../../assets/bg.png"
|
|
3
|
+
</script>
|
|
4
|
+
|
|
1
5
|
<div class="split-page">
|
|
2
6
|
<div class="left">
|
|
3
7
|
<div class="content">
|
|
4
8
|
<slot />
|
|
5
9
|
</div>
|
|
6
10
|
</div>
|
|
7
|
-
<div class="right">
|
|
11
|
+
<div class="right spectrum spectrum--darkest">
|
|
12
|
+
<img src={BG} alt="background" />
|
|
8
13
|
<slot name="right" />
|
|
9
14
|
</div>
|
|
10
15
|
</div>
|
|
@@ -25,11 +30,14 @@
|
|
|
25
30
|
overflow-y: auto;
|
|
26
31
|
}
|
|
27
32
|
.right {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
position: relative;
|
|
34
|
+
}
|
|
35
|
+
.right img {
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 0;
|
|
38
|
+
left: 0;
|
|
39
|
+
height: 100%;
|
|
40
|
+
width: 100%;
|
|
33
41
|
}
|
|
34
42
|
.content {
|
|
35
43
|
width: 100%;
|
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import SplitPage from "./SplitPage.svelte"
|
|
3
3
|
import { Layout } from "@budibase/bbui"
|
|
4
|
+
import Bulgaria from "../../assets/bulgaria.png"
|
|
5
|
+
import Covanta from "../../assets/covanta.png"
|
|
6
|
+
import Schnellecke from "../../assets/schnellecke.png"
|
|
7
|
+
|
|
8
|
+
const testimonials = [
|
|
9
|
+
{
|
|
10
|
+
text: "Budibase was the only solution that checked all the boxes for Covanta. Covanta expects to realize $3.2MM in savings due to the elimination of redundant data entry.",
|
|
11
|
+
name: "Charles Link",
|
|
12
|
+
role: "Senior Director, Data and Analytics",
|
|
13
|
+
image: Covanta,
|
|
14
|
+
imageSize: 105,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: "Budibase was mission-critical for us and went a long way in preventing what could have become a humanitarian crisis here in Bulgaria.",
|
|
18
|
+
name: "Bozhidar Bozhanov",
|
|
19
|
+
role: "Government of Bulgaria",
|
|
20
|
+
image: Bulgaria,
|
|
21
|
+
imageSize: 49,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
text: "Centralization of authentication, quick turnaround time for requests, integration with different database systems has given it the edge and it’s now used daily for internal development for those apps that you know you need but don’t feel value in losing days of development to reinvent the wheel.",
|
|
25
|
+
name: "Davide Lenzarini",
|
|
26
|
+
role: "IT manager",
|
|
27
|
+
image: Schnellecke,
|
|
28
|
+
imageSize: 141,
|
|
29
|
+
},
|
|
30
|
+
]
|
|
31
|
+
const testimonial = testimonials[Math.floor(Math.random() * 3)]
|
|
4
32
|
</script>
|
|
5
33
|
|
|
6
34
|
<SplitPage>
|
|
@@ -8,19 +36,17 @@
|
|
|
8
36
|
<div class="wrapper" slot="right">
|
|
9
37
|
<div class="testimonial">
|
|
10
38
|
<Layout noPadding gap="S">
|
|
39
|
+
<img
|
|
40
|
+
width={testimonial.imageSize}
|
|
41
|
+
alt="a-happy-budibase-user"
|
|
42
|
+
src={testimonial.image}
|
|
43
|
+
/>
|
|
11
44
|
<div class="text">
|
|
12
|
-
"
|
|
13
|
-
now all I do is eat, sleep, build apps, repeat."
|
|
45
|
+
"{testimonial.text}"
|
|
14
46
|
</div>
|
|
15
|
-
<div class="
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
src="https://icon-library.com/images/male-user-icon/male-user-icon-24.jpg"
|
|
19
|
-
/>
|
|
20
|
-
<div class="author">
|
|
21
|
-
<div class="name">No-code Enthusiast</div>
|
|
22
|
-
<div class="company">Bedroom TLD</div>
|
|
23
|
-
</div>
|
|
47
|
+
<div class="author">
|
|
48
|
+
<div class="name">{testimonial.name}</div>
|
|
49
|
+
<div class="company">{testimonial.role}</div>
|
|
24
50
|
</div>
|
|
25
51
|
</Layout>
|
|
26
52
|
</div>
|
|
@@ -35,23 +61,13 @@
|
|
|
35
61
|
place-items: center;
|
|
36
62
|
}
|
|
37
63
|
.testimonial {
|
|
38
|
-
width:
|
|
64
|
+
width: 380px;
|
|
39
65
|
padding: 40px;
|
|
40
66
|
}
|
|
41
67
|
.text {
|
|
42
68
|
font-size: var(--font-size-l);
|
|
43
69
|
font-style: italic;
|
|
44
70
|
}
|
|
45
|
-
img {
|
|
46
|
-
width: 40px;
|
|
47
|
-
}
|
|
48
|
-
.user {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: row;
|
|
51
|
-
justify-content: flex-start;
|
|
52
|
-
align-items: center;
|
|
53
|
-
gap: var(--spacing-s);
|
|
54
|
-
}
|
|
55
71
|
.name {
|
|
56
72
|
font-weight: bold;
|
|
57
73
|
color: var(--spectrum-global-color-gray-900);
|