Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update title on Canvas share on website flyout #8

Merged
merged 1 commit into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const strings = {
}),
getTitle: () =>
i18n.translate('xpack.canvas.shareWebsiteFlyout.flyoutTitle', {
defaultMessage: 'Share on a website',
defaultMessage: 'Embed code',
}),
getUnsupportedRendererWarning: () =>
i18n.translate('xpack.canvas.workpadHeaderShareMenu.unsupportedRendererWarning', {
Expand Down
6 changes: 3 additions & 3 deletions x-pack/plugins/canvas/shareable_runtime/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This directory contains the code necessary to build and test this runtime.
## Quick Start

- Load a workpad in Canvas.
- Click "Export" -> "Share on a website" -> "download a ZIP file"
- Click "Export" -> "Embed code" -> "download a ZIP file"
- Extract and change to the extracted directory.
- On your local machine:
- Start a web server, like: `python -m SimpleHTTPServer 9001`
Expand Down Expand Up @@ -137,15 +137,15 @@ You can test this functionality in a number of ways. The easiest would be:
### Download a ZIP from Canvas

- Load a workpad in Canvas.
- Click "Export" -> "Share on a website" -> "download a ZIP file"
- Click "Export" -> "Embed code" -> "download a ZIP file"
- Extract and change to the extracted directory.
- Start a web server, like: `python -m SimpleHTTPServer 9001`
- Open a web browser to `http://localhost:9001`

### Test the Runtime Directly from Webpack

- Load a workpad in Canvas.
- Click "Export" -> "Share on a website" -> "Download Workpad"
- Click "Export" -> "Embed code" -> "Download Workpad"
- Copy the workpad to `canvas/shareable_runtime/test`.
- Edit `canvas/shareable_runtime/index.html` to include your workpad.
- From `/canvas`, run `node scripts/shareable_runtime --run`
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -8848,7 +8848,6 @@
"xpack.canvas.savedElementsModal.modalTitle": "マイエレメント",
"xpack.canvas.shareWebsiteFlyout.description": "外部 Web サイトでこのワークパッドの不動バージョンを共有するには、これらの手順に従ってください。現在のワークパッドのビジュアルスナップショットになり、ライブデータにはアクセスできません。",
"xpack.canvas.shareWebsiteFlyout.flyoutCalloutDescription": "共有するには、このワークパッド、{CANVAS} シェアラブルワークパッドランタイム、サンプル {HTML} ファイルを含む {link} を使用します。",
"xpack.canvas.shareWebsiteFlyout.flyoutTitle": "Webサイトで共有",
"xpack.canvas.shareWebsiteFlyout.runtimeStep.description": "共有可能なワークパッドをレンダリングするには、{CANVAS} シェアラブルワークパッドランタイムも含める必要があります。Web サイトにすでにランタイムが含まれている場合、この手順をスキップすることができます。",
"xpack.canvas.shareWebsiteFlyout.runtimeStep.downloadLabel": "ダウンロードランタイム",
"xpack.canvas.shareWebsiteFlyout.snippetsStep.addSnippetsTitle": "スナップショットを Web サイトに追加",
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -8869,7 +8869,6 @@
"xpack.canvas.savedElementsModal.modalTitle": "我的元素",
"xpack.canvas.shareWebsiteFlyout.description": "按照以下步骤在外部网站上共享此 Workpad 的静态版本。其将是当前 Workpad 的可视化快照,对实时数据没有访问权限。",
"xpack.canvas.shareWebsiteFlyout.flyoutCalloutDescription": "要尝试共享,可以{link},其包含此 Workpad、{CANVAS} Shareable Workpad Runtime 及示例 {HTML} 文件。",
"xpack.canvas.shareWebsiteFlyout.flyoutTitle": "在网站上共享",
"xpack.canvas.shareWebsiteFlyout.runtimeStep.description": "要呈现可共享 Workpad,还需要加入 {CANVAS} Shareable Workpad Runtime。如果您的网站已包含该运行时,则可以跳过此步骤。",
"xpack.canvas.shareWebsiteFlyout.runtimeStep.downloadLabel": "下载运行时",
"xpack.canvas.shareWebsiteFlyout.snippetsStep.addSnippetsTitle": "将代码段添加到网站",
Expand Down