fix conflicts
63
.github/workflows/ci.yaml
vendored
|
@ -5,17 +5,54 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
|
sdk-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install Rust
|
||||||
|
run: |
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
source $HOME/.cargo/env
|
||||||
|
rustup toolchain install nightly
|
||||||
|
rustup default nightly
|
||||||
|
- name: Frontend tests
|
||||||
|
working-directory: frontend/rust-lib
|
||||||
|
run: cargo test
|
||||||
|
- name: Shared-lib tests
|
||||||
|
working-directory: shared-lib
|
||||||
|
run: cargo test
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Env install
|
- name: Env install
|
||||||
run: cd frontend && make install_rust && make install_cargo_make && cargo make install_targets
|
working-directory: frontend
|
||||||
- name: Run frontend tests
|
run: make install_rust
|
||||||
run: cd frontend/rust-lib && cargo test
|
- name: Checkou Flutter
|
||||||
- name: Run shared-lib tests
|
uses: actions/checkout@v2
|
||||||
run: cd shared-lib && cargo test
|
with:
|
||||||
|
repository: flutter/flutter
|
||||||
|
path: flutter
|
||||||
|
- name: Flutter
|
||||||
|
working-directory: flutter
|
||||||
|
run: |
|
||||||
|
echo "$(pwd)/bin" >> $GITHUB_PATH
|
||||||
|
export PATH="$PATH:$(pwd)/bin"
|
||||||
|
flutter channel dev
|
||||||
|
flutter config --enable-macos-desktop
|
||||||
|
flutter doctor
|
||||||
|
- name: Deps
|
||||||
|
working-directory: frontend
|
||||||
|
run: |
|
||||||
|
cargo install --force cargo-make
|
||||||
|
cargo install --force duckscript_cli
|
||||||
|
cargo make flowy_dev
|
||||||
|
- name: Build
|
||||||
|
working-directory: frontend
|
||||||
|
run: cargo make --profile production-mac-x86 appflowy
|
||||||
build-ubuntu:
|
build-ubuntu:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -35,7 +72,7 @@ jobs:
|
||||||
rustup default nightly
|
rustup default nightly
|
||||||
- name: Flutter
|
- name: Flutter
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/flutter/flutter.git
|
git clone --depth 1 -b dev https://github.com/flutter/flutter.git
|
||||||
cd flutter
|
cd flutter
|
||||||
echo `pwd`"/bin" >> $GITHUB_PATH
|
echo `pwd`"/bin" >> $GITHUB_PATH
|
||||||
export PATH="$PATH:`pwd`/bin"
|
export PATH="$PATH:`pwd`/bin"
|
||||||
|
@ -43,16 +80,12 @@ jobs:
|
||||||
flutter config --enable-linux-desktop
|
flutter config --enable-linux-desktop
|
||||||
flutter doctor
|
flutter doctor
|
||||||
- name: Deps
|
- name: Deps
|
||||||
|
working-directory: frontend
|
||||||
run: |
|
run: |
|
||||||
cd frontend
|
|
||||||
cargo install --force cargo-make
|
cargo install --force cargo-make
|
||||||
cargo install --force duckscript_cli
|
cargo install --force duckscript_cli
|
||||||
cargo make flowy_dev
|
cargo make flowy_dev
|
||||||
cargo make -p development-linux-x86 appflowy-linux-dev
|
- name: Build
|
||||||
build-backend:
|
run: |
|
||||||
runs-on: macOS-latest
|
cd frontend
|
||||||
steps:
|
cargo make --profile production-linux-x86 appflowy
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Run backend tests
|
|
||||||
run: cd backend && cargo test
|
|
||||||
|
|
5
.gitignore
vendored
|
@ -1,7 +1,5 @@
|
||||||
# Generated by Cargo
|
# Generated by Cargo
|
||||||
# will have compiled files and executables
|
# will have compiled files and executables
|
||||||
/target/
|
|
||||||
|
|
||||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
||||||
# backend
|
# backend
|
||||||
|
@ -10,11 +8,10 @@
|
||||||
./backend/configuration/base.yaml
|
./backend/configuration/base.yaml
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
|
||||||
|
|
||||||
# These are backup files generated by rustfmt
|
# These are backup files generated by rustfmt
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
**/target/
|
**/target/
|
||||||
**/*.db
|
**/*.db
|
||||||
.idea/
|
.idea/
|
||||||
/flowy-test/
|
/flowy-test/
|
||||||
.ruby-version
|
.ruby-version
|
||||||
|
|
|
@ -101,8 +101,13 @@ flutter config --enable-linux-desktop
|
||||||
```
|
```
|
||||||
|
|
||||||
* Open the `app_flowy` folder located at xx/appflowy/frontend with Visual Studio Code or other IDEs at your disposal.
|
* Open the `app_flowy` folder located at xx/appflowy/frontend with Visual Studio Code or other IDEs at your disposal.
|
||||||
* Go to the Run and Debug tab and then click the run button.
|
* Go to the Run and Debug tab and then click the run button.
|
||||||

|

|
||||||
|
|
||||||
|
* If you want to build for the other platform, you should modify the build_sdk.sh before running.
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
|
|
3987
backend/Cargo.lock
generated
Normal file
|
@ -36,6 +36,9 @@ By default, Docker images do not expose their ports to the underlying host machi
|
||||||
|
|
||||||
### Sqlx
|
### Sqlx
|
||||||
|
|
||||||
|
**sqlx-cli**
|
||||||
|
* [install sqlx-cli](https://github.com/launchbadge/sqlx/tree/master/sqlx-cli)
|
||||||
|
|
||||||
**Sqlx and Diesel commands**
|
**Sqlx and Diesel commands**
|
||||||
* create migration
|
* create migration
|
||||||
* sqlx: sqlx migrate add $(table)
|
* sqlx: sqlx migrate add $(table)
|
||||||
|
@ -71,4 +74,4 @@ By default, Docker images do not expose their ports to the underlying host machi
|
||||||
> Don't forget to relaunch your terminal.
|
> Don't forget to relaunch your terminal.
|
||||||
|
|
||||||
## More
|
## More
|
||||||
* [11-database-drivers](https://blog.logrocket.com/11-database-drivers-and-orms-for-rust-that-are-ready-for-production/)
|
* [11-database-drivers](https://blog.logrocket.com/11-database-drivers-and-orms-for-rust-that-are-ready-for-production/)
|
||||||
|
|
200
backend/doc/database_struct.md
Normal file
|
@ -0,0 +1,200 @@
|
||||||
|
|
||||||
|
# Table Struct
|
||||||
|
|
||||||
|
## Table: user_table
|
||||||
|
|
||||||
|
- `Name`: UserTable
|
||||||
|
- `Comment`: UserTable
|
||||||
|
|
||||||
|
### `Primary Key`
|
||||||
|
|
||||||
|
- `Columns`: id
|
||||||
|
|
||||||
|
### `Indexes[]`
|
||||||
|
|
||||||
|
| `Columns` | `Unique` |
|
||||||
|
| --------- | -------- |
|
||||||
|
| email | `true` |
|
||||||
|
|
||||||
|
### `Foreign Keys[]`
|
||||||
|
|
||||||
|
| `Columns` | `Ref Table` | `Ref Columns` | `Options` |
|
||||||
|
| --------- | ----------- | ------------- | --------- |
|
||||||
|
|
||||||
|
|
||||||
|
### `Columns[]`
|
||||||
|
|
||||||
|
| `Label` | `Name` | `Type` | `Nullable` | `Default` | `Comment` |
|
||||||
|
| ----------- | ----------- | ----------- | ---------- | --------- | --------- |
|
||||||
|
| id | id | uuid | `false` | | |
|
||||||
|
| email | email | text | `false` | | |
|
||||||
|
| name | name | text | `false` | | |
|
||||||
|
| password | password | text | `false` | | |
|
||||||
|
| create_time | create_time | timestamptz | `false` | | |
|
||||||
|
|
||||||
|
|
||||||
|
## Table: workspace_table
|
||||||
|
|
||||||
|
- `Name`: WorkspaceTable
|
||||||
|
- `Comment`: WorkspaceTable
|
||||||
|
|
||||||
|
### `Primary Key`
|
||||||
|
|
||||||
|
- `Columns`: id
|
||||||
|
|
||||||
|
### `Indexes[]`
|
||||||
|
|
||||||
|
| `Columns` | `Unique` |
|
||||||
|
| --------- | -------- |
|
||||||
|
|
||||||
|
### `Foreign Keys[]`
|
||||||
|
|
||||||
|
| `Columns` | `Ref Table` | `Ref Columns` | `Options` |
|
||||||
|
| --------- | ----------- | ------------- | --------- |
|
||||||
|
| user_id | user_table | id | |
|
||||||
|
|
||||||
|
### `Columns[]`
|
||||||
|
|
||||||
|
| `Label` | `Name` | `Type` | `Nullable` | `Default` | `Comment` |
|
||||||
|
| ------------- | ------------- | ----------- | ---------- | --------- | --------- |
|
||||||
|
| id | id | uuid | `false` | | |
|
||||||
|
| user_id | user_id | text | `false` | | |
|
||||||
|
| name | name | text | `false` | | |
|
||||||
|
| description | description | text | `false` | | |
|
||||||
|
| create_time | create_time | timestamptz | `false` | | |
|
||||||
|
| modified_time | modified_time | timestamptz | `false` | | |
|
||||||
|
|
||||||
|
|
||||||
|
## Table: app_table
|
||||||
|
|
||||||
|
- `Name`: AppTable
|
||||||
|
- `Comment`: AppTable
|
||||||
|
|
||||||
|
### `Primary Key`
|
||||||
|
|
||||||
|
- `Columns`: id
|
||||||
|
|
||||||
|
### `Indexes[]`
|
||||||
|
|
||||||
|
| `Columns` | `Unique` |
|
||||||
|
| --------- | -------- |
|
||||||
|
|
||||||
|
### `Foreign Keys[]`
|
||||||
|
|
||||||
|
| `Columns` | `Ref Table` | `Ref Columns` | `Options` |
|
||||||
|
| ------------ | --------------- | ------------- | --------- |
|
||||||
|
| user_id | user_table | id | |
|
||||||
|
| workspace_id | workspace_table | id | |
|
||||||
|
| last_view_id | view_table | id | |
|
||||||
|
|
||||||
|
### `Columns[]`
|
||||||
|
|
||||||
|
| `Label` | `Name` | `Type` | `Nullable` | `Default` | `Comment` |
|
||||||
|
| ------------- | ------------- | ----------- | ---------- | --------- | --------- |
|
||||||
|
| id | id | uuid | `false` | | |
|
||||||
|
| user_id | user_id | text | `false` | | |
|
||||||
|
| workspace_id | workspace_id | text | `false` | | |
|
||||||
|
| last_view_id | workspace_id | text | `false` | | |
|
||||||
|
| name | name | text | `false` | | |
|
||||||
|
| description | description | text | `false` | | |
|
||||||
|
| color_style | color_style | text | `false` | | |
|
||||||
|
| is_trash | is_trash | bool | `false` | `false` | |
|
||||||
|
| create_time | create_time | timestamptz | `false` | | |
|
||||||
|
| modified_time | modified_time | timestamptz | `false` | | |
|
||||||
|
|
||||||
|
|
||||||
|
## Table: view_table
|
||||||
|
|
||||||
|
- `Name`: ViewTable
|
||||||
|
- `Comment`: ViewTable
|
||||||
|
|
||||||
|
### `Primary Key`
|
||||||
|
|
||||||
|
- `Columns`: id
|
||||||
|
|
||||||
|
### `Indexes[]`
|
||||||
|
|
||||||
|
| `Columns` | `Unique` |
|
||||||
|
| --------- | -------- |
|
||||||
|
|
||||||
|
### `Foreign Keys[]`
|
||||||
|
|
||||||
|
| `Columns` | `Ref Table` | `Ref Columns` | `Options` |
|
||||||
|
| ------------ | ----------- | ------------- | --------- |
|
||||||
|
| user_id | user_table | id | |
|
||||||
|
| belong_to_id | app_table | id | |
|
||||||
|
|
||||||
|
### `Columns[]`
|
||||||
|
|
||||||
|
| `Label` | `Name` | `Type` | `Nullable` | `Default` | `Comment` |
|
||||||
|
| ------------- | ------------- | ----------- | ---------- | --------- | --------- |
|
||||||
|
| id | id | uuid | `false` | | |
|
||||||
|
| belong_to_id | belong_to_id | text | `false` | | |
|
||||||
|
| name | name | text | `false` | | |
|
||||||
|
| description | description | text | `false` | | |
|
||||||
|
| thumbnail | thumbnail | text | `false` | | |
|
||||||
|
| view_type | view_type | int | `false` | | |
|
||||||
|
| create_time | create_time | timestamptz | `false` | | |
|
||||||
|
| modified_time | modified_time | timestamptz | `false` | | |
|
||||||
|
|
||||||
|
|
||||||
|
## Table: doc_table
|
||||||
|
|
||||||
|
- `Name`: DocTable
|
||||||
|
- `Comment`: DocTable
|
||||||
|
|
||||||
|
### `Primary Key`
|
||||||
|
|
||||||
|
- `Columns`: id
|
||||||
|
|
||||||
|
### `Indexes[]`
|
||||||
|
|
||||||
|
| `Columns` | `Unique` |
|
||||||
|
| --------- | -------- |
|
||||||
|
|
||||||
|
### `Foreign Keys[]`
|
||||||
|
|
||||||
|
| `Columns` | `Ref Table` | `Ref Columns` | `Options` |
|
||||||
|
| --------- | ----------- | ------------- | --------- |
|
||||||
|
| rev_id | doc_table | id | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### `Columns[]`
|
||||||
|
|
||||||
|
| `Label` | `Name` | `Type` | `Nullable` | `Default` | `Comment` |
|
||||||
|
| ------- | ------ | ------ | ---------- | --------- | --------- |
|
||||||
|
| id | id | uuid | `false` | | |
|
||||||
|
| rev_id | rev_id | text | `false` | | |
|
||||||
|
| data | data | text | `false` | | |
|
||||||
|
|
||||||
|
|
||||||
|
## Table: trash_table
|
||||||
|
|
||||||
|
- `Name`: TrashTable
|
||||||
|
- `Comment`: TrashTable
|
||||||
|
|
||||||
|
### `Primary Key`
|
||||||
|
|
||||||
|
- `Columns`: id
|
||||||
|
|
||||||
|
### `Indexes[]`
|
||||||
|
|
||||||
|
| `Columns` | `Unique` |
|
||||||
|
| --------- | -------- |
|
||||||
|
|
||||||
|
### `Foreign Keys[]`
|
||||||
|
|
||||||
|
| `Columns` | `Ref Table` | `Ref Columns` | `Options` |
|
||||||
|
| --------- | ----------- | ------------- | --------- |
|
||||||
|
| user_id | user_table | id | |
|
||||||
|
|
||||||
|
|
||||||
|
### `Columns[]`
|
||||||
|
|
||||||
|
| `Label` | `Name` | `Type` | `Nullable` | `Default` | `Comment` |
|
||||||
|
| ------- | ------- | ------ | ---------- | --------- | --------- |
|
||||||
|
| id | id | uuid | `false` | | |
|
||||||
|
| user_id | user_id | text | `false` | | |
|
||||||
|
| ty | ty | int4 | `false` | 0 | |
|
||||||
|
|
|
@ -18,12 +18,12 @@ Note:
|
||||||
- [ ] Arch Linux - X86_64
|
- [ ] Arch Linux - X86_64
|
||||||
- [ ] Deepin - X86_64
|
- [ ] Deepin - X86_64
|
||||||
- [ ] Raspberry Pi OS - aarch64
|
- [ ] Raspberry Pi OS - aarch64
|
||||||
* You may need to disable hardware 3D acceleration if you are running in a VM. Otherwise certain GL failures will prevent app from launching
|
* You may need to disable hardware 3D acceleration if you are running it on a VM. Otherwise, certain GL failures will prevent app from launching
|
||||||
|
|
||||||
### Detail steps
|
### Detail steps
|
||||||
1. Install pre-requests
|
1. Install prerequisites
|
||||||
```shell
|
```shell
|
||||||
sudo apt-get install curl build-essential libsqlite3-dev libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev
|
sudo apt-get install curl build-essential libsqlite3-dev libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev unzip
|
||||||
# optional, for generating protobuf in step 8 only
|
# optional, for generating protobuf in step 8 only
|
||||||
sudo apt-get install protobuf-compiler
|
sudo apt-get install protobuf-compiler
|
||||||
```
|
```
|
||||||
|
@ -54,8 +54,6 @@ flutter config --enable-linux-desktop
|
||||||
5. Fix problem reported by flutter doctor
|
5. Fix problem reported by flutter doctor
|
||||||
```shell
|
```shell
|
||||||
flutter doctor
|
flutter doctor
|
||||||
# install Android toolchain (optional)
|
|
||||||
# install Chrome (optional)
|
|
||||||
```
|
```
|
||||||
6. Install cargo make
|
6. Install cargo make
|
||||||
```shell
|
```shell
|
||||||
|
@ -70,11 +68,13 @@ cargo install --force duckscript_cli
|
||||||
```shell
|
```shell
|
||||||
cargo make flowy_dev
|
cargo make flowy_dev
|
||||||
```
|
```
|
||||||
9. Generate protobuf for dart (optional, if you modify the shared-lib's entities)
|
|
||||||
|
9. [Optional] Generate protobuf for dart (optional, if you modify the shared-lib's entities)
|
||||||
```shell
|
```shell
|
||||||
cargo make -p development-linux-x86 pb
|
cargo make -p development-linux-x86 pb
|
||||||
```
|
```
|
||||||
10. Build flowy-sdk-dev (dart-ffi) (optional), step 10 covers this step
|
10. [Optional] Build flowy-sdk-dev (dart-ffi), step 10 covers this step
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# for development
|
# for development
|
||||||
cargo make --profile development-linux-x86 flowy-sdk-dev
|
cargo make --profile development-linux-x86 flowy-sdk-dev
|
||||||
|
@ -82,6 +82,7 @@ cargo make --profile development-linux-x86 flowy-sdk-dev
|
||||||
# for production
|
# for production
|
||||||
cargo make --profile production-linux-x86 flowy-sdk-release
|
cargo make --profile production-linux-x86 flowy-sdk-release
|
||||||
```
|
```
|
||||||
|
|
||||||
11. Build app_flowy
|
11. Build app_flowy
|
||||||
```shell
|
```shell
|
||||||
# for development
|
# for development
|
||||||
|
@ -98,7 +99,7 @@ cargo make -p production-linux-x86 appflowy-linux
|
||||||
# ./app_flowy
|
# ./app_flowy
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 3: Build Server side application (optional if you don't need to host web service locally)
|
## [Optional] Step 3: Build Server side application (optional if you don't need to host web service locally)
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
Note: You can launch postgresql server by using docker container
|
Note: You can launch postgresql server by using docker container
|
||||||
|
|
|
@ -19,47 +19,51 @@ Note:
|
||||||
- [ ] Windows 11 arm64
|
- [ ] Windows 11 arm64
|
||||||
|
|
||||||
### Detail steps
|
### Detail steps
|
||||||
1. Install Visual Studio 2019 community. See: https://visualstudio.microsoft.com/downloads/
|
1. Install Visual Studio 2022 build tools. Download from https://visualstudio.microsoft.com/downloads/
|
||||||
- Note: Didn't test Visual Studio 2022. It should also work.
|
- In section of "All Downloads" => "Tools for Visual Studio 2022" => Build Tools for Visual Studio 2022, hit Download button to get it.
|
||||||
2. Install choco according to https://chocolatey.org/install
|
- Launch "vs_BuildTools.exe" to install
|
||||||
3. Install vcpkg according to https://github.com/microsoft/vcpkg#quick-start-windows. Make sure to add vcpkg installation folder to PATH env var.
|
2. Install vcpkg according to https://github.com/microsoft/vcpkg#quick-start-windows. Make sure to add vcpkg installation folder to PATH env var.
|
||||||
4. Install flutter according to https://docs.flutter.dev/get-started/install/windows
|
3. Install flutter according to https://docs.flutter.dev/get-started/install/windows
|
||||||
```shell
|
```shell
|
||||||
flutter channel dev
|
flutter channel dev
|
||||||
|
flutter doctor
|
||||||
```
|
```
|
||||||
5. Install rust
|
4. Install rust
|
||||||
```shell
|
```shell
|
||||||
choco install rustup.install
|
# Download rustup.exe from https://win.rustup.rs/x86_64
|
||||||
rustup toolchain install nightly
|
# Call rustup.exe from powershell or cmd
|
||||||
|
rustup.exe toolchain install nightly
|
||||||
```
|
```
|
||||||
6. Install cargo make
|
5. Install cargo make
|
||||||
```shell
|
```shell
|
||||||
cd appflowy/frontend
|
cd appflowy/frontend
|
||||||
cargo install --force cargo-make
|
cargo install --force cargo-make
|
||||||
```
|
```
|
||||||
7. Install duckscript
|
6. Install duckscript
|
||||||
```shell
|
```shell
|
||||||
cargo install --force duckscript_cli
|
cargo install --force duckscript_cli
|
||||||
```
|
```
|
||||||
8. Check pre-request
|
7. Check pre-request
|
||||||
```shell
|
```shell
|
||||||
cargo make flowy_dev
|
cargo make flowy_dev
|
||||||
```
|
```
|
||||||
9. Generate protobuf for dart (optional, if you modify the shared-lib's entities)
|
8. [Optional] Generate protobuf for dart (optional, if you modify the shared-lib's entities)
|
||||||
```shell
|
```shell
|
||||||
cargo make -p development-windows pb
|
cargo make -p development-windows pb
|
||||||
```
|
```
|
||||||
10. Build flowy-sdk (dart-ffi)
|
9. [Optional] Build flowy-sdk (dart-ffi)
|
||||||
```shell
|
```shell
|
||||||
# TODO: for development
|
# for development
|
||||||
|
cargo make --profile development-windows-x86 flowy-sdk-dev
|
||||||
# for production
|
# for production
|
||||||
cargo make --profile production-desktop-windows-x86 flowy-sdk-release
|
cargo make --profile production-windows-x86 flowy-sdk-release
|
||||||
```
|
```
|
||||||
11. Build app_flowy
|
10. Build app_flowy
|
||||||
```shell
|
```shell
|
||||||
# TODO: for development
|
# for development
|
||||||
|
cargo make -p development-windows-x86 appflowy-windows-dev
|
||||||
# for production
|
# for production
|
||||||
cargo make -p production-desktop-windows-x86 appflowy-windows
|
cargo make -p production-windows-x86 appflowy-windows
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 3: Build Server side application (optional if you don't need to host web service locally)
|
## Step 3: Build Server side application (optional if you don't need to host web service locally)
|
||||||
|
|
|
@ -9,4 +9,4 @@ install_cargo_make:
|
||||||
|
|
||||||
install_rust:
|
install_rust:
|
||||||
brew bundle
|
brew bundle
|
||||||
rustup-init -y
|
rustup-init -y --default-toolchain=nightly
|
||||||
|
|
|
@ -27,14 +27,14 @@ BUILD_FLAG = "debug"
|
||||||
FLUTTER_OUTPUT_DIR = "Debug"
|
FLUTTER_OUTPUT_DIR = "Debug"
|
||||||
PRODUCT_EXT = "app"
|
PRODUCT_EXT = "app"
|
||||||
|
|
||||||
[env.production-desktop-mac-aarch64]
|
[env.production-mac-aarch64]
|
||||||
BUILD_FLAG = "release"
|
BUILD_FLAG = "release"
|
||||||
TARGET_OS = "macos"
|
TARGET_OS = "macos"
|
||||||
RUST_COMPILE_TARGET = "aarch64-apple-darwin"
|
RUST_COMPILE_TARGET = "aarch64-apple-darwin"
|
||||||
FLUTTER_OUTPUT_DIR = "Release"
|
FLUTTER_OUTPUT_DIR = "Release"
|
||||||
PRODUCT_EXT = "app"
|
PRODUCT_EXT = "app"
|
||||||
|
|
||||||
[env.production-desktop-mac-x86]
|
[env.production-mac-x86]
|
||||||
BUILD_FLAG = "release"
|
BUILD_FLAG = "release"
|
||||||
TARGET_OS = "macos"
|
TARGET_OS = "macos"
|
||||||
RUST_COMPILE_TARGET = "x86_64-apple-darwin"
|
RUST_COMPILE_TARGET = "x86_64-apple-darwin"
|
||||||
|
@ -42,7 +42,7 @@ FLUTTER_OUTPUT_DIR = "Release"
|
||||||
PRODUCT_EXT = "app"
|
PRODUCT_EXT = "app"
|
||||||
|
|
||||||
|
|
||||||
[env.development-windows]
|
[env.development-windows-x86]
|
||||||
TARGET_OS = "windows"
|
TARGET_OS = "windows"
|
||||||
RUST_COMPILE_TARGET = "x86_64-pc-windows-msvc"
|
RUST_COMPILE_TARGET = "x86_64-pc-windows-msvc"
|
||||||
BUILD_FLAG = "debug"
|
BUILD_FLAG = "debug"
|
||||||
|
@ -51,7 +51,7 @@ PRODUCT_EXT = "exe"
|
||||||
CRATE_TYPE = "cdylib"
|
CRATE_TYPE = "cdylib"
|
||||||
SDK_EXT = "dll"
|
SDK_EXT = "dll"
|
||||||
|
|
||||||
[env.production-desktop-windows-x86]
|
[env.production-windows-x86]
|
||||||
BUILD_FLAG = "release"
|
BUILD_FLAG = "release"
|
||||||
TARGET_OS = "windows"
|
TARGET_OS = "windows"
|
||||||
RUST_COMPILE_TARGET = "x86_64-pc-windows-msvc"
|
RUST_COMPILE_TARGET = "x86_64-pc-windows-msvc"
|
||||||
|
@ -99,6 +99,7 @@ LINUX_ARCH = "arm64"
|
||||||
[tasks.echo_env]
|
[tasks.echo_env]
|
||||||
script = [
|
script = [
|
||||||
'''
|
'''
|
||||||
|
echo "-------- Env Parameters --------"
|
||||||
echo CRATE_TYPE: ${CRATE_TYPE}
|
echo CRATE_TYPE: ${CRATE_TYPE}
|
||||||
echo BUILD_FLAG: ${BUILD_FLAG}
|
echo BUILD_FLAG: ${BUILD_FLAG}
|
||||||
echo TARGET_OS: ${TARGET_OS}
|
echo TARGET_OS: ${TARGET_OS}
|
||||||
|
@ -106,9 +107,15 @@ script = [
|
||||||
echo FEATURES: ${FEATURES}
|
echo FEATURES: ${FEATURES}
|
||||||
echo PRODUCT_EXT: ${PRODUCT_EXT}
|
echo PRODUCT_EXT: ${PRODUCT_EXT}
|
||||||
echo ${platforms}
|
echo ${platforms}
|
||||||
|
|
||||||
|
echo "-------- Flutter --------"
|
||||||
|
flutter doctor
|
||||||
|
|
||||||
|
echo "-------- Rust --------"
|
||||||
|
rustup show
|
||||||
'''
|
'''
|
||||||
]
|
]
|
||||||
script_runner = "@duckscript"
|
script_runner = "@shell"
|
||||||
|
|
||||||
[env.production-ios]
|
[env.production-ios]
|
||||||
BUILD_FLAG = "release"
|
BUILD_FLAG = "release"
|
||||||
|
|
12
frontend/app_flowy/.vscode/tasks.json
vendored
|
@ -2,7 +2,7 @@
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
// https://code.visualstudio.com/docs/editor/tasks
|
// https://code.visualstudio.com/docs/editor/tasks
|
||||||
//https://gist.github.com/deadalusai/9e13e36d61ec7fb72148
|
//https://gist.github.com/deadalusai/9e13e36d61ec7fb72148
|
||||||
|
|
||||||
// ${workspaceRoot}: the root folder of the team
|
// ${workspaceRoot}: the root folder of the team
|
||||||
// ${file}: the current opened file
|
// ${file}: the current opened file
|
||||||
// ${fileBasename}: the current opened file's basename
|
// ${fileBasename}: the current opened file's basename
|
||||||
|
@ -13,6 +13,16 @@
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "sh ./scripts/build_sdk.sh",
|
"command": "sh ./scripts/build_sdk.sh",
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"shell": {
|
||||||
|
"executable": "cmd.exe",
|
||||||
|
"args": [
|
||||||
|
"/d", "/c", ".\\scripts\\build_sdk.cmd"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"group": "build",
|
"group": "build",
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/../"
|
"cwd": "${workspaceFolder}/../"
|
||||||
|
|
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 361 B |
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 361 B |
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 361 B |
Before Width: | Height: | Size: 195 B After Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 315 B After Width: | Height: | Size: 315 B |
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 797 B After Width: | Height: | Size: 797 B |
Before Width: | Height: | Size: 641 B After Width: | Height: | Size: 641 B |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 202 B |
Before Width: | Height: | Size: 561 B After Width: | Height: | Size: 561 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 825 B |
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 790 B |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 886 B After Width: | Height: | Size: 886 B |
Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 748 B After Width: | Height: | Size: 748 B |
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 313 B |
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 634 B After Width: | Height: | Size: 634 B |
Before Width: | Height: | Size: 814 B After Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 877 B After Width: | Height: | Size: 877 B |
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 620 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 638 B |
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 330 B |
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 538 B |
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 399 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 324 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 613 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 454 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 412 B |
Before Width: | Height: | Size: 381 B After Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 432 B After Width: | Height: | Size: 432 B |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 565 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 193 B |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 534 B |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 376 B |
Before Width: | Height: | Size: 574 B After Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 376 B |
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 210 B |
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 467 B |
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 420 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 319 B |
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 413 B |
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 606 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 737 B |
Before Width: | Height: | Size: 962 B After Width: | Height: | Size: 962 B |
|
@ -168,8 +168,8 @@ class PasswordTextField extends StatelessWidget {
|
||||||
return RoundedInputField(
|
return RoundedInputField(
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
|
style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
|
||||||
obscureIcon: svg("home/Hide"),
|
obscureIcon: svg("home/hide"),
|
||||||
obscureHideIcon: svg("home/Show"),
|
obscureHideIcon: svg("home/show"),
|
||||||
hintText: 'Password',
|
hintText: 'Password',
|
||||||
normalBorderColor: theme.shader4,
|
normalBorderColor: theme.shader4,
|
||||||
highlightBorderColor: theme.red,
|
highlightBorderColor: theme.red,
|
||||||
|
|