From 02ab8bc85f2422a5bda914932d92f0a1028b6815 Mon Sep 17 00:00:00 2001 From: Renato Lacerda Date: Sun, 17 Mar 2024 15:04:08 -0300 Subject: [PATCH] docs: using undocs package manager component --- docs/2.drivers/azure.md | 20 +++++--------------- docs/2.drivers/browser.md | 4 +--- docs/2.drivers/capacitor-preferences.md | 20 ++------------------ docs/2.drivers/mongodb.md | 4 +--- docs/2.drivers/redis.md | 4 +--- 5 files changed, 10 insertions(+), 42 deletions(-) diff --git a/docs/2.drivers/azure.md b/docs/2.drivers/azure.md index e750efe7..d5b2ee69 100644 --- a/docs/2.drivers/azure.md +++ b/docs/2.drivers/azure.md @@ -18,9 +18,7 @@ This driver uses the configuration store as a key value store. It uses the `key` To use it, you will need to install `@azure/app-configuration` and `@azure/identity` in your project: -```bash -npm i @azure/app-configuration @azure/identity -``` +:pm-install{name="@azure/app-configuration @azure/identity"} Usage: @@ -67,9 +65,7 @@ This driver stores KV information in a NoSQL API Cosmos DB collection as documen To use it, you will need to install `@azure/cosmos` and `@azure/identity` in your project: -```bash -npm i @azure/cosmos @azure/identity -``` +:pm-install{name="@azure/cosmos @azure/identity"} Usage: @@ -115,9 +111,7 @@ Please be aware that key vault secrets don't have the fastest access time and ar To use it, you will need to install `@azure/keyvault-secrets` and `@azure/identity` in your project: -```bash -npm i @azure/keyvault-secrets @azure/identity -``` +:pm-install{name="@azure/keyvault-secrets @azure/identity"} Usage: @@ -160,9 +154,7 @@ This driver stores KV information in a Azure blob storage blob. The same contain To use it, you will need to install `@azure/storage-blob` and `@azure/identity` in your project: -```bash -npm i @azure/storage-blob @azure/identity -``` +:pm-install{name="@azure/storage-blob @azure/identity"} Please make sure that the container you want to use exists in your storage account. @@ -215,9 +207,7 @@ This driver stores KV information in a Azure table storage. The same partition k To use it, you will need to install `@azure/data-table` and `@azure/identity` in your project: -```bash -npm i @azure/data-table @azure/identity -``` +:pm-install{name="@azure/data-table @azure/identity"} Please make sure that the table you want to use exists in your storage account. diff --git a/docs/2.drivers/browser.md b/docs/2.drivers/browser.md index 1838c823..55fee250 100644 --- a/docs/2.drivers/browser.md +++ b/docs/2.drivers/browser.md @@ -66,9 +66,7 @@ Learn more about IndexedDB. To use it, you will need to install [`idb-keyval`](https://github.com/jakearchibald/idb-keyval) in your project: -```bash [Terminal] -npm i idb-keyval -``` +:pm-install{name="idb-keyval"} Usage: diff --git a/docs/2.drivers/capacitor-preferences.md b/docs/2.drivers/capacitor-preferences.md index fa674d37..4da0674e 100644 --- a/docs/2.drivers/capacitor-preferences.md +++ b/docs/2.drivers/capacitor-preferences.md @@ -14,24 +14,8 @@ Learn more about Capacitor Preferences API. To use this driver, you need to install and sync `@capacitor/preferences` inside your capacitor project: -::code-group - -```sh [npm] -npm install @capacitor/preferences -npx cap sync -``` - -```sh [Yarn] -yarn add @capacitor/preferences -npx cap sync -``` - -```sh [pnpm] -pnpm add @capacitor/preferences -pnpm cap sync -``` - -:: +:pm-install{name="@capacitor/preferences"} +:pm-x{command="cap sync"} Usage: diff --git a/docs/2.drivers/mongodb.md b/docs/2.drivers/mongodb.md index ac768bb3..5d409d67 100644 --- a/docs/2.drivers/mongodb.md +++ b/docs/2.drivers/mongodb.md @@ -16,9 +16,7 @@ This driver stores KV information in a MongoDB collection with a separate docume To use it, you will need to install `mongodb` in your project: -```bash [Terminal] -npm i mongodb -``` +:pm-install{name="mongodb"} Usage: diff --git a/docs/2.drivers/redis.md b/docs/2.drivers/redis.md index 0ded181b..b360f78b 100644 --- a/docs/2.drivers/redis.md +++ b/docs/2.drivers/redis.md @@ -18,9 +18,7 @@ Unstorage uses [`ioredis`](https://github.com/luin/ioredis) internally to connec To use it, you will need to install `ioredis` in your project: -```bash [Terminal] -npm i ioredis -``` +:pm-install{name="ioredis"} Usage with single Redis instance: