-
Notifications
You must be signed in to change notification settings - Fork 354
[CLI] Add --wordpress-install-mode flag #2803
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
Open
adamziel
wants to merge
8
commits into
trunk
Choose a base branch
from
wordpress-install-mode-flag
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
dc3d1fe
[CLI] Add --wordpress-install-mode flag
adamziel 81eee2d
Adjust the boot() function to directly use the new option
adamziel 3ddc4ea
[i18n] Add Japanese translations to JavaScript API (#2800)
shimotmk 06a6a1f
v3.0.14
bb859c8
chore: update changelog
4771ea4
Refresh WordPress Nightly
df1d8ec
[Blueprints] Use _SERVER['HTTPS'] in the import step (#2802)
adamziel ad824bd
Verbose test fix – to clean up if CI passes
adamziel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
| "version": "3.0.13", | ||
| "version": "3.0.14", | ||
| "useWorkspaces": true, | ||
| "useNx": true | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 120 additions & 0 deletions
120
...aurus-plugin-content-docs/current/developers/06-apis/javascript-api/01-index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| --- | ||
| slug: /developers/apis/javascript-api | ||
| --- | ||
|
|
||
| # JavaScript API | ||
|
|
||
| WordPress Playground には、WordPress を完全に制御できる JavaScript API クライアントが付属しています。 | ||
|
|
||
| <!-- | ||
| WordPress Playground comes with a JavaScript API client that grants you full control over your WordPress. | ||
| --> | ||
|
|
||
| :::info ここでの API は「REST API」を意味するものではありません | ||
|
|
||
| WordPress Playground はブラウザベースのアプリケーションです。 | ||
| ここでの API とは、JavaScript 内で呼び出せる関数のセットを指します。 | ||
| これはネットワークベースの REST API ではありません。 | ||
|
|
||
| ::: | ||
|
|
||
| <!-- | ||
| :::info API here doesn't mean "REST API" | ||
|
|
||
| WordPress Playground is a browser-based application. | ||
| The term API here refers to a set of functions you can | ||
| call inside JavaScript. This is **not** a network-based REST API. | ||
|
|
||
| ::: | ||
| --> | ||
|
|
||
| ## クイックスタート | ||
|
|
||
| <!-- | ||
| ## Quick start | ||
| --> | ||
|
|
||
| JavaScript API を使用するには、次のものが必要です。 | ||
|
|
||
| <!-- | ||
| To use the JavaScript API, you'll need: | ||
| --> | ||
|
|
||
| - `<iframe>` 要素 | ||
| - `@wp-playground/client` パッケージ(npm または CDN から) | ||
|
|
||
| <!-- | ||
| - An `<iframe>` element | ||
| - The `@wp-playground/client` package (from npm or a CDN) | ||
| --> | ||
|
|
||
| HTML ページで JavaScript API を使用する最も短い例を次に示します。 | ||
|
|
||
| <!-- | ||
| Here's the shortest example of how to use the JavaScript API in a HTML page: | ||
| --> | ||
|
|
||
| import JSApiShortExample from '@site/docs/\_fragments/\_js_api_short_example.mdx'; | ||
|
|
||
| <JSApiShortExample /> | ||
|
|
||
| :::info /remote.html は特別な URL です | ||
|
|
||
| `/remote.html` は、ブラウザ UI を備えたデモアプリではなく、Playground API エンドポイントを読み込む特別な URL です。`/` と `/remote.html` の違いについては、[このページ](/developers/apis/javascript-api/-html-vs-remote-html) をご覧ください。 | ||
|
|
||
| ::: | ||
|
|
||
| <!-- | ||
| :::info /remote.html is a special URL | ||
|
|
||
| `/remote.html` is a special URL that loads the Playground | ||
| API endpoint instead of the demo app with the browser UI. Read more about the difference between `/` and `/remote.html` and [on this page](/developers/apis/javascript-api/-html-vs-remote-html). | ||
|
|
||
| ::: | ||
| --> | ||
|
|
||
| ## ウェブサイトの制御 | ||
|
|
||
| <!-- | ||
| ## Controlling the website | ||
| --> | ||
|
|
||
| `client` オブジェクトが作成されたので、これを使って iframe 内のウェブサイトを制御できます。制御方法は 3 つあります。 | ||
|
|
||
| <!-- | ||
| Now that you have a `client` object, you can use it to control the website inside the iframe. There are three ways to do that: | ||
| --> | ||
|
|
||
| - [Playground API Client](/developers/apis/javascript-api/playground-api-client) | ||
| - [ブループリント JSON](/developers/apis/javascript-api/blueprint-json-in-api-client) | ||
| - [ブループリント 関数](/developers/apis/javascript-api/blueprint-functions-in-api-client) | ||
|
|
||
| <!-- | ||
| - [Playground API Client](/developers/apis/javascript-api/playground-api-client) | ||
| - [Blueprint JSON](/developers/apis/javascript-api/blueprint-json-in-api-client) | ||
| - [Blueprint functions](/developers/apis/javascript-api/blueprint-functions-in-api-client) | ||
| --> | ||
|
|
||
| ## デバッグとテスト | ||
|
|
||
| <!-- | ||
| ## Debugging and testing | ||
| --> | ||
|
|
||
| 迅速なテストとデバッグのために、JavaScript API クライアントは `index.html` と `remote.html` の両方で `window.playground` として公開されます。 | ||
|
|
||
| <!-- | ||
| For quick testing and debugging, the JavaScript API client is exposed as `window.playground` by both `index.html` and `remote.html`. | ||
| --> | ||
|
|
||
| ```javascript | ||
| > await playground.listFiles("/") | ||
| (6) ['tmp', 'home', 'dev', 'proc', 'internal', 'wordpress'] | ||
| ``` | ||
|
|
||
| `index.html` では、`playground` は Proxy オブジェクトなので、ブラウザによる自動補完は利用できません。ただし、`remote.html` では、`playground` はクラスインスタンスなので、ブラウザの自動補完を利用できます。 | ||
|
|
||
| <!-- | ||
| Note that in `index.html`, `playground` is a Proxy object and you won't get any autocompletion from the browser. In `remote.html`, | ||
| however, `playground` is a class instance and you will benefit from browser's autocompletion. | ||
| --> |
3 changes: 3 additions & 0 deletions
3
.../docusaurus-plugin-content-docs/current/developers/06-apis/javascript-api/_category_.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "label": "JavaScript API" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are lovely, clear option names!