diff --git a/common/scripts/docker_tag_push.sh b/common/scripts/docker_tag_push.sh new file mode 100755 index 0000000000..6e70085b1c --- /dev/null +++ b/common/scripts/docker_tag_push.sh @@ -0,0 +1,4 @@ +#!/bin/bash +echo "Tagging release $1 with version $2" +docker tag "$1" "$1:$2" +docker push "$1:$2" diff --git a/plugins/contact-resources/src/components/PersonContent.svelte b/plugins/contact-resources/src/components/PersonContent.svelte index ae0f6cd73c..c2bad1a3d5 100644 --- a/plugins/contact-resources/src/components/PersonContent.svelte +++ b/plugins/contact-resources/src/components/PersonContent.svelte @@ -32,6 +32,12 @@ export let showTooltip: LabelAndProps | undefined = undefined export let enlargedText = false export let element: HTMLElement | undefined = undefined + + const onEditClick = (evt: MouseEvent) => { + if (isInteractive) { + onEdit?.(evt) + } + } </script> {#if value} @@ -62,7 +68,8 @@ </span> {/if} {:else if shouldShowPlaceholder} - <span use:tooltip={showTooltip} class="contentPresenter" class:text-base={enlargedText}> + <!-- svelte-ignore a11y-click-events-have-key-events --> + <span use:tooltip={showTooltip} on:click={onEditClick} class="contentPresenter" class:text-base={enlargedText}> {#if shouldShowAvatar} <span class="eContentPresenterIcon" diff --git a/pods/front/package.json b/pods/front/package.json index 29a09d351e..b74e16ebbf 100644 --- a/pods/front/package.json +++ b/pods/front/package.json @@ -12,6 +12,7 @@ "docker:build": "docker build -t hardcoreeng/front .", "docker:staging": "../../common/scripts/docker_tag.sh hardcoreeng/front staging", "docker:push": "../../common/scripts/docker_tag.sh hardcoreeng/front", + "docker:tbuild": "docker build -t hardcoreeng/front . --platform=linux/amd64 && ../../common/scripts/docker_tag_push.sh hardcoreeng/front", "lint": "eslint src", "format": "prettier --write src && eslint --fix src", "run-local": "cross-env MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost TRANSACTOR_URL=ws:/localhost:3333 SERVER_SECRET='secret' ACCOUNTS_URL=http://localhost:3000 UPLOAD_URL=/files ELASTIC_URL=http://localhost:9200 MODEL_VERSION=$(node ../../models/all/lib/__showversion.js) PUBLIC_DIR='.' ts-node ./src/__start.ts"