mirror of
https://github.com/immich-app/isar.git
synced 2026-09-30 13:23:02 +08:00
@@ -13,8 +13,8 @@ Dieser Schnellstart wird wenig um den heißen Brei herumreden und direkt mit dem
|
||||
Bevor es losgeht, müssen wir ein paar Pakete zur `pubspec.yaml` hinzufügen. Damit es schneller geht lassen wir pub das für uns erledigen.
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. Klassen annotieren
|
||||
|
||||
@@ -13,8 +13,8 @@ Vamos a ser cortos en palabras para ir inmediatamente al código en esta guía d
|
||||
Antes de empezar la parte divertida, necesitamos agregar algunos paquetes al `pubspec.yaml`. Podemos usar pub para hacer el trabajo pesado por nosotros.
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. Anota las clases
|
||||
|
||||
@@ -13,8 +13,8 @@ Nous allons être brefs en mots et rapides en code dans ce démarrage rapide.
|
||||
Avant de débuter, nous devons ajouter quelques dépendances au fichier `pubspec.yaml`. Nous pouvons utiliser la commande `pub` pour faire le gros du travail à notre place.
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. Annotation de classes
|
||||
|
||||
@@ -13,8 +13,8 @@ In questa guida introduttiva saremo a corto di parole e veloci nel codice.
|
||||
Prima che inizii il divertimento, dobbiamo aggiungere alcuni pacchetti a `pubspec.yaml`. Possiamo usare il pub per facilitarci il lavoro pesante.
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. Annota le classi
|
||||
|
||||
@@ -14,8 +14,8 @@ title: クイックスタート
|
||||
Isarを使用する前に、いくつかのパッケージを `pubspec.yaml` に追加する必要があります。pubを使用する事で、面倒な作業を簡単に済ませることが出来ます。
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. クラスの注釈(アノテーション)
|
||||
|
||||
@@ -13,8 +13,8 @@ title: 빠른 시작
|
||||
재미있는 부분을 보기 전에 `pubspec.yaml` 에 몇 개의 패키지를 추가해야 합니다. 우리는 펍을 이용해서 힘든 일을 쉽게 할 수 있습니다.
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. 클래스에 주석 추가(어노테이션)
|
||||
|
||||
@@ -13,8 +13,8 @@ Seremos curtos em palavras e rápidos em código neste início rápido.
|
||||
Antes que a diversão comece, precisamos adicionar alguns pacotes ao `pubspec.yaml`. Podemos usar o pub para fazer o trabalho complexo para nós.
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. Anotar classes
|
||||
|
||||
@@ -13,8 +13,8 @@ We're going to be short on words and quick on code in this quickstart.
|
||||
Before the fun begins, we need to add a few packages to the `pubspec.yaml`. We can use pub to do the heavy lifting for us.
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. Annotate classes
|
||||
|
||||
@@ -11,8 +11,8 @@ title: فورا شروع کریں
|
||||
تفریح کا آغاز کرنےسے پہلےہمیں "پب سپیک۔یمل" میں چند پیکجز شامل کرنے کی ضرورت ہے۔ہم اپنے لیے بھاری سامان اٹھانے کے لیے پب کا استعمال کر سکتے ہیں۔
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. کلاسوں کی تشریح کریں۔
|
||||
|
||||
@@ -13,8 +13,8 @@ title: 快速开始
|
||||
在开始之前,我们需要在 `pubspec.yaml` 文件中添加若干依赖,可以运行以下命令帮助我们完成:
|
||||
|
||||
```bash
|
||||
dart pub add isar:^3.1.6 isar_flutter_libs:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^3.1.6 --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add isar:^0.0.0-placeholder isar_flutter_libs:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
dart pub add dev:isar_generator:^0.0.0-placeholder --hosted-url=https://pub.isar-community.dev
|
||||
```
|
||||
|
||||
## 2. 给类添加注解
|
||||
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# This script replaces the version placeholder with the latest tag version on this branch
|
||||
if [ "$ISAR_VERSION" == "" ]; then
|
||||
export ISAR_VERSION=`git describe --tags --abbrev=0`
|
||||
echo "ISAR_VERSION not defined in environment, using $ISAR_VERSION"
|
||||
fi
|
||||
find packages -type f -exec sed -i "s/0.0.0-placeholder/$ISAR_VERSION/g" {} +
|
||||
find docs -type f -exec sed -i "s/0.0.0-placeholder/$ISAR_VERSION/g" {} +
|
||||
Reference in New Issue
Block a user