From 4c7d6cf2af31696697545b87f6cc1fa9c488f549 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 24 Oct 2022 17:53:18 +0100 Subject: [PATCH] adding opengraph metatags for better shareable links --- packages/client/yarn.lock | 5 ++ .../src/api/controllers/static/index.ts | 2 + .../static/templates/BudibaseApp.svelte | 10 ++++ .../TestConfiguration/applications.ts | 2 - .../internal-api/TestConfiguration/rows.ts | 38 ++++++------- .../internal-api/TestConfiguration/screens.ts | 38 ++++++------- .../internal-api/TestConfiguration/tables.ts | 57 ++++++++++--------- .../src/config/internal-api/fixtures/rows.ts | 8 +-- .../config/internal-api/fixtures/screens.ts | 50 ++++++++-------- .../src/config/internal-api/fixtures/table.ts | 54 +++++++++--------- .../fixtures/types/responseMessage.ts | 4 +- .../internal-api/applications/create.spec.ts | 46 ++++++++++----- .../internal-api/screens/screens.spec.ts | 13 +++-- 13 files changed, 185 insertions(+), 142 deletions(-) diff --git a/packages/client/yarn.lock b/packages/client/yarn.lock index 4ed5b395fe..09071a7bee 100644 --- a/packages/client/yarn.lock +++ b/packages/client/yarn.lock @@ -670,6 +670,11 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" +html5-qrcode@^2.2.1: + version "2.2.4" + resolved "https://registry.yarnpkg.com/html5-qrcode/-/html5-qrcode-2.2.4.tgz#99e4b36fbd8fbc4956036cf3f21ea3e98c3463d1" + integrity sha512-X8wVVsHpNb35tl7KcoCGAboc6Nep2VyT3CIMjFvrfWrHbHTC0yYTjE+DhO/VcswY2MfHy1uB7b1G9+L13gM6dQ== + htmlparser2@^6.0.0: version "6.1.0" resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-6.1.0.tgz#c4d762b6c3371a05dbe65e94ae43a9f845fb8fb7" diff --git a/packages/server/src/api/controllers/static/index.ts b/packages/server/src/api/controllers/static/index.ts index 08213c2cf8..bdd9bfd4a6 100644 --- a/packages/server/src/api/controllers/static/index.ts +++ b/packages/server/src/api/controllers/static/index.ts @@ -111,6 +111,8 @@ export const serveApp = async function (ctx: any) { const App = require("./templates/BudibaseApp.svelte").default const plugins = enrichPluginURLs(appInfo.usedPlugins) const { head, html, css } = App.render({ + metaImage: + "https://res.cloudinary.com/daog6scxm/image/upload/v1666109324/meta-images/budibase-meta-image_uukc1m.png", title: appInfo.name, production: env.isProd(), appId, diff --git a/packages/server/src/api/controllers/static/templates/BudibaseApp.svelte b/packages/server/src/api/controllers/static/templates/BudibaseApp.svelte index 227f980896..ecc29161ac 100644 --- a/packages/server/src/api/controllers/static/templates/BudibaseApp.svelte +++ b/packages/server/src/api/controllers/static/templates/BudibaseApp.svelte @@ -1,6 +1,8 @@