aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2022-01-13 09:21:12 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-01-20 00:19:43 +0900
commitf138b20895e425cc631df8af1bad0cb6c810bf50 (patch)
tree05c3f036db014af03865d7360c969c323bc2f7b0 /files
parent7b0ed536fd0a53cfe074cfec0ea195d59453d93a (diff)
downloadtranslated-content-f138b20895e425cc631df8af1bad0cb6c810bf50.tar.gz
translated-content-f138b20895e425cc631df8af1bad0cb6c810bf50.tar.bz2
translated-content-f138b20895e425cc631df8af1bad0cb6c810bf50.zip
2021/10/11 時点の英語版に基づき新規作成
Diffstat (limited to 'files')
-rw-r--r--files/ja/web/manifest/shortcuts/index.md99
1 files changed, 99 insertions, 0 deletions
diff --git a/files/ja/web/manifest/shortcuts/index.md b/files/ja/web/manifest/shortcuts/index.md
new file mode 100644
index 0000000000..2a2a503625
--- /dev/null
+++ b/files/ja/web/manifest/shortcuts/index.md
@@ -0,0 +1,99 @@
+---
+title: shortcuts
+slug: Web/Manifest/shortcuts
+tags:
+ - マニフェスト
+ - ウェブ
+ - shortcuts
+browser-compat: html.manifest.shortcuts
+translation_of: Web/Manifest/shortcuts
+---
+{{QuickLinksWithSubpages("/en-US/docs/Web/Manifest")}}
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row">型</th>
+ <td><code>Object</code></td>
+ </tr>
+ <tr>
+ <th scope="row">必須</th>
+ <td>いいえ</td>
+ </tr>
+ </tbody>
+</table>
+
+`shortcuts` メンバーは、ウェブアプリ内の主要なタスクやページへのショートカットやリンクの配列を定義します。ユーザーエージェントはこれらの値を用いて、ユーザーがウェブアプリのアイコンを操作したときにオペレーティングシステムが表示するコンテキストメニューを作成することができます。ユーザーがショートカットを呼び出すと、ユーザーエージェントはショートカットの `url` メンバーで指定されたアドレスに誘導します。
+
+## ショートカット項目の値
+
+ショートカットオブジェクトには、以下の値を指定することができます(`name` と `url` のみ必須)。
+
+<table class="fullwidth-table standard-table">
+ <thead>
+ <tr>
+ <th scope="col">メンバー</th>
+ <th scope="col">説明</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>name</code></td>
+ <td>コンテキストメニューでユーザーに表示することができる文字列です。</td>
+ </tr>
+ <tr>
+ <td><code>short_name</code></td>
+ <td>
+ ショートカットのフルネームを表示するのに十分なスペースがない場合に表示することができる文字列です。
+ </td>
+ </tr>
+ <tr>
+ <td><code>description</code></td>
+ <td>
+ ショートカットの目的を記述した文字列です。支援技術に公開される可能性があります。
+ </td>
+ </tr>
+ <tr>
+ <td><code>url</code></td>
+ <td>
+ ショートカットを有効にしたときに開く、アプリケーション内の URL です。
+ </td>
+ </tr>
+ <tr>
+ <td><code>icons</code></td>
+ <td>
+ ショートカットを表すアイコンのセットです。コンテキストメニューなどで使用することができます。このアイコンを指定する場合、 96x96 ピクセルのアイコンを指定する必要があります。
+ </td>
+ </tr>
+ </tbody>
+</table>
+
+## 例
+
+カレンダーアプリが持つ可能性があるショートカットのリストです。
+
+```json
+"shortcuts" : [
+ {
+ "name": "Today's agenda",
+ "url": "/today",
+ "description": "List of events planned for today"
+ },
+ {
+ "name": "New event",
+ "url": "/create/event"
+ },
+ {
+ "name": "New reminder",
+ "url": "/create/reminder"
+ }
+]
+```
+
+## 仕様書
+
+{{Specifications}}
+
+## ブラウザーの互換性
+
+{{Compat}}