-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dad077f
commit c4f542d
Showing
11 changed files
with
108 additions
and
92 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -34,9 +34,9 @@ Unsere Philosophie erinnert dich vielleicht an [Tailwind](https://tailwindcss.co | |
Das wars. Die Initialisierung passiert automatisch. | ||
|
||
Für die Produktionsumgebung wird empfohlen, den Link mit einer spezifischen Versionsnummer zu versehen. Somit kann präventiv sichergestellt werden, dass keine unerwarteten Fehler durch Versionsaktualisierungen zustande kommen. | ||
Als Beispiel wird hier die (letzte) Version `2.7.0` spezifiziert: | ||
Als Beispiel wird hier die (letzte) Version `2.7.1` spezifiziert: | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].0/dist/alpine.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].1/dist/alpine.min.js" defer></script> | ||
``` | ||
|
||
**Über npm:** Installiere das Paket über npm. | ||
|
This file contains 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 |
---|---|---|
|
@@ -21,9 +21,9 @@ Podríamos considerarlo como un [Tailwind](https://tailwindcss.com/) para JavaSc | |
|
||
Eso es todo. Se inicializará solo. | ||
|
||
Para entornos de producción, se recomienda especificar una número de versión en concreto en el enlace para evitar comportamientos inesperados que puedan romper las nuevas versiones. Por ejemplo, para usar la versión `2.7.0` (la última): | ||
Para entornos de producción, se recomienda especificar una número de versión en concreto en el enlace para evitar comportamientos inesperados que puedan romper las nuevas versiones. Por ejemplo, para usar la versión `2.7.1` (la última): | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].0/dist/alpine.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].1/dist/alpine.min.js" defer></script> | ||
``` | ||
|
||
**Desde npm:** Instalar el paquete desde npm. | ||
|
This file contains 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 |
---|---|---|
|
@@ -32,9 +32,9 @@ Anggap saja seperti [Tailwind](https://tailwindcss.com/) untuk JavaScript. | |
|
||
Itu saja. Itu akan menginisialisasi dirinya sendiri. | ||
|
||
Untuk lingkungan produksi, disarankan untuk memasang pin pada nomor versi tertentu di link untuk menghindari kerusakan yang tidak terduga dari versi yang lebih baru. Misalnya, untuk menggunakan versi `2.7.0` (terbaru): | ||
Untuk lingkungan produksi, disarankan untuk memasang pin pada nomor versi tertentu di link untuk menghindari kerusakan yang tidak terduga dari versi yang lebih baru. Misalnya, untuk menggunakan versi `2.7.1` (terbaru): | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].0/dist/alpine.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].1/dist/alpine.min.js" defer></script> | ||
``` | ||
|
||
**Dari NPM:** Instal paket dari NPM. | ||
|
This file contains 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 |
---|---|---|
|
@@ -14,7 +14,7 @@ DOM を保持し、適切な動作を施すことができます。 | |
|
||
**CDNより:** `<head>` セクションの最後に次のスクリプトを追加します。 | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].0/dist/alpine.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].1/dist/alpine.js" defer></script> | ||
``` | ||
|
||
それだけです。初期は自身で行われます。 | ||
|
This file contains 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 |
---|---|---|
|
@@ -34,9 +34,9 @@ Think of it like [Tailwind](https://tailwindcss.com/) for JavaScript. | |
That's it. It will initialize itself. | ||
|
||
For production environments, it's recommended to pin a specific version number in the link to avoid unexpected breakage from newer versions. | ||
For example, to use version `2.7.0` (latest): | ||
For example, to use version `2.7.1` (latest): | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].0/dist/alpine.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].1/dist/alpine.min.js" defer></script> | ||
``` | ||
|
||
**From npm:** Install the package from npm. | ||
|
This file contains 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 |
---|---|---|
|
@@ -23,10 +23,10 @@ Pensem nisso como o [Tailwind](https://tailwindcss.com/) para JavaScript. | |
E é isso. Ele vai se inicializar. | ||
|
||
Para ambiente de produção, é recomendado fixar o número da versão específico no link para evitar problemas inesperadas das versões mais recentes. | ||
Por exemplo, para usar a versão `2.7.0`: | ||
Por exemplo, para usar a versão `2.7.1`: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].0/dist/alpine.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].1/dist/alpine.min.js" defer></script> | ||
``` | ||
|
||
**Via npm:** Instale o pacote pelo npm. | ||
|
This file contains 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 |
---|---|---|
|
@@ -22,9 +22,9 @@ Alpine.js предлагает вам реактивность и деклара | |
Вот и всё. Он инициализируется самостоятельно. | ||
|
||
Для продакшн-окружения, рекомендуется использовать ссылку с конкретным номером версии, чтобы избежать неожиданных поломок после выпуска новых версий. | ||
Например, чтобы использовать версию `2.7.0`: | ||
Например, чтобы использовать версию `2.7.1`: | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].0/dist/alpine.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].1/dist/alpine.min.js" defer></script> | ||
``` | ||
|
||
**С помощью npm:** Установите пакет из npm. | ||
|
This file contains 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 |
---|---|---|
|
@@ -22,9 +22,9 @@ Alpine.js 提供了 Vue 與 React 等大框架的互動式與宣告式的功能 | |
就這樣。Alpine.js 會自行初始化。 | ||
|
||
在正式環境中,建議在連結中固定特定版本,以避免新版本使功能無法使用。 | ||
如,要使用 `2.7.0` 版則可以這樣寫: | ||
如,要使用 `2.7.1` 版則可以這樣寫: | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].0/dist/alpine.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected].1/dist/alpine.min.js" defer></script> | ||
``` | ||
|
||
**使用 npm:** 從 npm 安裝套件。 | ||
|
Oops, something went wrong.