@budibase/frontend-core 2.4.27-alpha.8 → 2.4.27-alpha.9

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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.4.27-alpha.8",
3
+ "version": "2.4.27-alpha.9",
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.4.27-alpha.8",
10
- "@budibase/shared-core": "2.4.27-alpha.8",
9
+ "@budibase/bbui": "2.4.27-alpha.9",
10
+ "@budibase/shared-core": "2.4.27-alpha.9",
11
11
  "lodash": "^4.17.21",
12
12
  "svelte": "^3.46.2"
13
13
  },
14
- "gitHead": "daeec6f5201291037b1ba89e7db3b587a09bd2e1"
14
+ "gitHead": "b48f6ecdc939ed804ef5645c7e0869ccfbf2ec74"
15
15
  }
@@ -73,6 +73,18 @@ export const buildConfigEndpoints = API => ({
73
73
  })
74
74
  },
75
75
 
76
+ /**
77
+ * Updates the company favicon for the environment.
78
+ * @param data the favicon form data
79
+ */
80
+ uploadFavicon: async data => {
81
+ return await API.post({
82
+ url: "/api/global/configs/upload/settings/faviconUrl",
83
+ body: data,
84
+ json: false,
85
+ })
86
+ },
87
+
76
88
  /**
77
89
  * Uploads a logo for an OIDC provider.
78
90
  * @param name the name of the OIDC provider
@@ -5,6 +5,8 @@
5
5
  import Covanta from "../../assets/covanta.png"
6
6
  import Schnellecke from "../../assets/schnellecke.png"
7
7
 
8
+ export let enabled = true
9
+
8
10
  const testimonials = [
9
11
  {
10
12
  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.",
@@ -33,23 +35,25 @@
33
35
 
34
36
  <SplitPage>
35
37
  <slot />
36
- <div class="wrapper" slot="right">
37
- <div class="testimonial">
38
- <Layout noPadding gap="S">
39
- <img
40
- width={testimonial.imageSize}
41
- alt="a-happy-budibase-user"
42
- src={testimonial.image}
43
- />
44
- <div class="text">
45
- "{testimonial.text}"
46
- </div>
47
- <div class="author">
48
- <div class="name">{testimonial.name}</div>
49
- <div class="company">{testimonial.role}</div>
50
- </div>
51
- </Layout>
52
- </div>
38
+ <div class:wrapper={enabled} slot="right">
39
+ {#if enabled}
40
+ <div class="testimonial">
41
+ <Layout noPadding gap="S">
42
+ <img
43
+ width={testimonial.imageSize}
44
+ alt="a-happy-budibase-user"
45
+ src={testimonial.image}
46
+ />
47
+ <div class="text">
48
+ "{testimonial.text}"
49
+ </div>
50
+ <div class="author">
51
+ <div class="name">{testimonial.name}</div>
52
+ <div class="company">{testimonial.role}</div>
53
+ </div>
54
+ </Layout>
55
+ </div>
56
+ {/if}
53
57
  </div>
54
58
  </SplitPage>
55
59
 
package/src/constants.js CHANGED
@@ -68,6 +68,7 @@ export const Features = {
68
68
  ENVIRONMENT_VARIABLES: "environmentVariables",
69
69
  AUDIT_LOGS: "auditLogs",
70
70
  ENFORCEABLE_SSO: "enforceableSSO",
71
+ BRANDING: "branding",
71
72
  }
72
73
 
73
74
  // Role IDs