Merge branch 'settings-modal' of github.com:Hari-07/appflowy into settings-modal

This commit is contained in:
Harinandan 2022-01-21 10:40:45 +05:30
commit 1c8d5a782b
6 changed files with 94 additions and 182 deletions

143
README.md
View File

@ -2,9 +2,12 @@
<b> <b>
<a href="https://www.appflowy.io">AppFlowy.IO</a><br> <a href="https://www.appflowy.io">AppFlowy.IO</a><br>
</b> </b>
⭐️ The Open Source Notion Alternative ⭐️ <br> ⭐️ The Open Source Alternative To Notion ⭐️ <br>
</h1> </h1>
<p align="center">
You are in charge of your data and customizations.
</p>
<p align="center"> <p align="center">
<a href="https://discord.gg/9Q2xaN37tV"><img src="https://img.shields.io/badge/AppFlowy.IO-discord-orange"></a> <a href="https://discord.gg/9Q2xaN37tV"><img src="https://img.shields.io/badge/AppFlowy.IO-discord-orange"></a>
@ -14,73 +17,16 @@
</p> </p>
<p align="center">
You are in charge of your data and customizations.
</p>
<p align="center"> <p align="center">
<a href="http://www.appflowy.io"><b>Website</b></a> <a href="http://www.appflowy.io"><b>Website</b></a>
<a href="https://discord.gg/9Q2xaN37tV"><b>Discord</b></a> <a href="https://discord.gg/9Q2xaN37tV"><b>Discord</b></a>
<a href="https://twitter.com/appflowy"><b>Twitter</b></a> <a href="https://twitter.com/appflowy"><b>Twitter</b></a>
</p> </p>
<p align="center"><img src="https://github.com/AppFlowy-IO/appflowy/blob/main/doc/imgs/welcome.png" alt="The Open Source Notion Alternative." width="1000px" /></p> <p align="center"><img src="https://github.com/AppFlowy-IO/appflowy/blob/main/doc/imgs/welcome.png" alt="The Open Source Alternative To Notion." width="1000px" /></p>
## Install ## User Installation
Please view the [documentation](https://appflowy.gitbook.io/docs/essential-documentation/install-appflowy/installation-methods) for OS specific installation instructions.
### macOS
```sh
brew install appflowy
```
### Windows
There is currently no Windows installer. However, you can download and install the app from the GitHub Releases section.
1. Go to AppFlowy's [Releases](https://github.com/AppFlowy-IO/appflowy/releases/) page on GitHub.
2. Download the current AppFlowy-Windows.zip file
3. Create a directory in your %userprofile%\documents folder
```shell
md %userprofile%\documents\appflowy
```
4. Change to that directory
```shell
cd %userprofile%\documents\appflowy
```
5. Extract the downloaded zip file into the directory you just created.
6. Run the application :
```shell
./app_flowy.exe
```
### Linux
There is currently no Linux installer. However, you can download and install the app from the GitHub Releases section.
1. Go to AppFlowy's [Releases](https://github.com/AppFlowy-IO/appflowy/releases/) page on GitHub.
2. Download the current AppFlowy-Linux.tar.gz file.
3. Create a directory in your /opt/ folder.
```shell
mkdir /opt/appflowy
```
4. Change to that directory
```shell
cd /opt/appflowy
```
5. Extract the downloaded compressed file into the directory you just created.
```shell
tar -xvf AppFlowy-Linux.tar.gz
```
6. Run the application :
```shell
./app_flowy
```
## Built With ## Built With
@ -92,72 +38,8 @@ tar -xvf AppFlowy-Linux.tar.gz
<p align="center"><img src="https://github.com/AppFlowy-IO/appflowy/blob/main/doc/imgs/howtostar.gif" alt="AppFlowy Github" width="1000px" /></p> <p align="center"><img src="https://github.com/AppFlowy-IO/appflowy/blob/main/doc/imgs/howtostar.gif" alt="AppFlowy Github" width="1000px" /></p>
## Getting Started ## Getting Started with development
Please view the [documentation](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy) for OS specific development instructions
### Linux
Please follow these instructions to build on [Linux](doc/BUILD_ON_LINUX.md).
### Windows
Please follow these instructions to build on [Windows](doc/BUILD_ON_WINDOWS.md).
### macOS
How to build on MacOS, please follow these simple steps.
**Step 1:**
```shell
git clone https://github.com/AppFlowy-IO/appflowy.git
```
**Step 2:**
```shell
cd appflowy/frontend
```
```shell
make install_rust
```
```shell
source $HOME/.cargo/env
```
```shell
make install_cargo_make
```
```shell
cargo make install_targets
```
>
>
> 🚀 Skip install_rust or install_cargo_make if you already installed it.
> FYI, AppFlowy uses [https://github.com/sagiegurari/cargo-make](https://github.com/sagiegurari/cargo-make) to construct the build scripts
**Step 3:**
Follow the instructions [here](https://flutter.dev/docs/get-started/install) to install Flutter. As AppFlowy uses the `stable` channel, you need to switch the channel. Just type:
```shell
flutter channel stable
```
**Step 4:**
* Open the `app_flowy` folder located at xx/appflowy/frontend with Visual Studio Code or other IDEs at your disposal.
* Run the Generate Language Files command if you don't run it before or you have updated the localization files. Read more at [AppFlowy translation](https://github.com/AppFlowy-IO/docs/blob/main/welcome-to-the-appflowy-wiki/translation.md)
![Generate Language Files](https://user-images.githubusercontent.com/86001920/148005536-6b311b85-9335-43be-a908-5be0663be8d2.png)
* Click the run button.
![Run the project](https://user-images.githubusercontent.com/86001920/148005558-425b248a-a5dc-4db9-a260-7b8dc32a9dc2.png)
Please also check the device selection, AppFlowy only supports Desktop by now:
![device](https://user-images.githubusercontent.com/86001920/144546864-cebbf0c0-4eef-424e-93c7-e1e6b3a59669.png)
If you encounter any issues, have a look at [Troubleshooting](https://github.com/AppFlowy-IO/appflowy/wiki/Troubleshooting) first. If your issue is not included in the page, please create an [issue](https://github.com/AppFlowy-IO/appflowy/issues/new/choose) or ask on [Discord](https://discord.gg/9Q2xaN37tV).
## Roadmap ## Roadmap
@ -167,11 +49,11 @@ If you'd like to propose a feature, submit an issue [here](https://github.com/Ap
## **Releases** ## **Releases**
Please see the [changelog](https://www.appflowy.io/whatsnew) for more details about a given release. Please see the [changelog](https://www.appflowy.io/whatsnew) for more details about a given release.
## Contributing ## Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. Please look at [CONTRIBUTING.md](https://github.com/AppFlowy-IO/appflowy/blob/main/doc/CONTRIBUTING.md) for details. Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. Please look at [CONTRIBUTING.md](https://github.com/AppFlowy-IO/appflowy/blob/main/doc/CONTRIBUTING.md) for details.
## Why Are We Building This? ## Why Are We Building This?
@ -196,10 +78,11 @@ To be honest, we do not claim to outperform Notion in terms of functionality and
## License ## License
Distributed under the AGPLv3 License. See `LICENSE.md` for more information. Distributed under the AGPLv3 License. See `LICENSE.md` for more information.
## Acknowledgements ## Acknowledgements
Special thanks to these amazing projects which help power AppFlowy.IO: Special thanks to these amazing projects which help power AppFlowy.IO:
- [flutter-quill](https://github.com/singerdmx/flutter-quill) - [flutter-quill](https://github.com/singerdmx/flutter-quill)
- [cargo-make](https://github.com/sagiegurari/cargo-make)

View File

@ -58,4 +58,5 @@ windows/flutter/dart_ffi/
**/**/*.a **/**/*.a
**/**/*.lib **/**/*.lib
**/**/*.dll **/**/*.dll
**/**/*.so **/**/*.so
**/Brewfile.lock.json

View File

@ -41,6 +41,8 @@ class NetworkMonitor {
return NetworkType.Cell; return NetworkType.Cell;
case ConnectivityResult.none: case ConnectivityResult.none:
return NetworkType.UnknownNetworkType; return NetworkType.UnknownNetworkType;
case ConnectivityResult.bluetooth:
return NetworkType.UnknownNetworkType;
} }
}(); }();
Log.info("Network type: $networkType"); Log.info("Network type: $networkType");

View File

@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared name: _fe_analyzer_shared
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "30.0.0" version: "31.0.0"
analyzer: analyzer:
dependency: transitive dependency: transitive
description: description:
name: analyzer name: analyzer
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.7.0" version: "2.8.0"
animations: animations:
dependency: transitive dependency: transitive
description: description:
@ -56,7 +56,7 @@ packages:
name: build name: build
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.1" version: "2.2.1"
build_config: build_config:
dependency: transitive dependency: transitive
description: description:
@ -77,21 +77,21 @@ packages:
name: build_resolvers name: build_resolvers
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.5" version: "2.0.6"
build_runner: build_runner:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: build_runner name: build_runner
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.5" version: "2.1.7"
build_runner_core: build_runner_core:
dependency: transitive dependency: transitive
description: description:
name: build_runner_core name: build_runner_core
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "7.2.2" version: "7.2.3"
built_collection: built_collection:
dependency: transitive dependency: transitive
description: description:
@ -105,7 +105,7 @@ packages:
name: built_value name: built_value
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "8.1.3" version: "8.1.4"
characters: characters:
dependency: transitive dependency: transitive
description: description:
@ -168,14 +168,14 @@ packages:
name: connectivity_plus name: connectivity_plus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.2.0"
connectivity_plus_linux: connectivity_plus_linux:
dependency: transitive dependency: transitive
description: description:
name: connectivity_plus_linux name: connectivity_plus_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.2.0"
connectivity_plus_macos: connectivity_plus_macos:
dependency: transitive dependency: transitive
description: description:
@ -189,14 +189,14 @@ packages:
name: connectivity_plus_platform_interface name: connectivity_plus_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.2.0"
connectivity_plus_web: connectivity_plus_web:
dependency: transitive dependency: transitive
description: description:
name: connectivity_plus_web name: connectivity_plus_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.0+1" version: "1.2.0"
connectivity_plus_windows: connectivity_plus_windows:
dependency: transitive dependency: transitive
description: description:
@ -245,7 +245,7 @@ packages:
name: dart_style name: dart_style
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.0" version: "2.2.1"
dartz: dartz:
dependency: transitive dependency: transitive
description: description:
@ -259,7 +259,7 @@ packages:
name: dbus name: dbus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.6.6" version: "0.6.8"
device_info_plus: device_info_plus:
dependency: "direct main" dependency: "direct main"
description: description:
@ -287,7 +287,7 @@ packages:
name: device_info_plus_platform_interface name: device_info_plus_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.0" version: "2.3.0+1"
device_info_plus_web: device_info_plus_web:
dependency: transitive dependency: transitive
description: description:
@ -439,7 +439,7 @@ packages:
name: flutter_keyboard_visibility name: flutter_keyboard_visibility
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.1.0" version: "5.1.1"
flutter_keyboard_visibility_platform_interface: flutter_keyboard_visibility_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -472,7 +472,7 @@ packages:
name: flutter_plugin_android_lifecycle name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.4" version: "2.0.5"
flutter_quill: flutter_quill:
dependency: "direct main" dependency: "direct main"
description: description:
@ -589,7 +589,7 @@ packages:
name: i18n_extension name: i18n_extension
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.1.3" version: "4.2.0"
image_picker: image_picker:
dependency: transitive dependency: transitive
description: description:
@ -603,14 +603,14 @@ packages:
name: image_picker_for_web name: image_picker_for_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.4" version: "2.1.5"
image_picker_platform_interface: image_picker_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: image_picker_platform_interface name: image_picker_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.4.1" version: "2.4.3"
intl: intl:
dependency: "direct main" dependency: "direct main"
description: description:
@ -645,14 +645,14 @@ packages:
name: json_annotation name: json_annotation
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.3.0" version: "4.4.0"
lint: lint:
dependency: transitive dependency: transitive
description: description:
name: lint name: lint
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.7.2" version: "1.8.1"
lints: lints:
dependency: transitive dependency: transitive
description: description:
@ -715,7 +715,7 @@ packages:
name: nm name: nm
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.1" version: "0.4.2"
package_config: package_config:
dependency: transitive dependency: transitive
description: description:
@ -792,14 +792,14 @@ packages:
name: path_provider name: path_provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.7" version: "2.0.8"
path_provider_android: path_provider_android:
dependency: transitive dependency: transitive
description: description:
name: path_provider_android name: path_provider_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.8" version: "2.0.11"
path_provider_ios: path_provider_ios:
dependency: transitive dependency: transitive
description: description:
@ -813,28 +813,28 @@ packages:
name: path_provider_linux name: path_provider_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.2" version: "2.1.5"
path_provider_macos: path_provider_macos:
dependency: transitive dependency: transitive
description: description:
name: path_provider_macos name: path_provider_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.5"
path_provider_platform_interface: path_provider_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: path_provider_platform_interface name: path_provider_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.1" version: "2.0.3"
path_provider_windows: path_provider_windows:
dependency: transitive dependency: transitive
description: description:
name: path_provider_windows name: path_provider_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.4" version: "2.0.5"
pedantic: pedantic:
dependency: transitive dependency: transitive
description: description:
@ -862,14 +862,14 @@ packages:
name: platform name: platform
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.2" version: "3.1.0"
plugin_platform_interface: plugin_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: plugin_platform_interface name: plugin_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.1.2"
pool: pool:
dependency: transitive dependency: transitive
description: description:
@ -897,7 +897,7 @@ packages:
name: provider name: provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.1" version: "6.0.2"
pub_semver: pub_semver:
dependency: transitive dependency: transitive
description: description:
@ -911,7 +911,7 @@ packages:
name: pubspec_parse name: pubspec_parse
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.0" version: "1.2.0"
quiver: quiver:
dependency: transitive dependency: transitive
description: description:
@ -925,28 +925,28 @@ packages:
name: shared_preferences name: shared_preferences
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.9" version: "2.0.12"
shared_preferences_android: shared_preferences_android:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_android name: shared_preferences_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.9" version: "2.0.10"
shared_preferences_ios: shared_preferences_ios:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_ios name: shared_preferences_ios
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.8" version: "2.0.9"
shared_preferences_linux: shared_preferences_linux:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_linux name: shared_preferences_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.4"
shared_preferences_macos: shared_preferences_macos:
dependency: transitive dependency: transitive
description: description:
@ -967,14 +967,14 @@ packages:
name: shared_preferences_web name: shared_preferences_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.3"
shared_preferences_windows: shared_preferences_windows:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_windows name: shared_preferences_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.4"
shelf: shelf:
dependency: transitive dependency: transitive
description: description:
@ -1007,7 +1007,7 @@ packages:
name: source_gen name: source_gen
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.2.1"
source_span: source_span:
dependency: transitive dependency: transitive
description: description:
@ -1091,7 +1091,7 @@ packages:
name: time name: time
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.1" version: "2.1.0"
timing: timing:
dependency: transitive dependency: transitive
description: description:
@ -1126,6 +1126,20 @@ packages:
name: url_launcher name: url_launcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.18"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.14"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.14" version: "6.0.14"
url_launcher_linux: url_launcher_linux:
dependency: transitive dependency: transitive
@ -1147,14 +1161,14 @@ packages:
name: url_launcher_platform_interface name: url_launcher_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.4" version: "2.0.5"
url_launcher_web: url_launcher_web:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_web name: url_launcher_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.4" version: "2.0.6"
url_launcher_windows: url_launcher_windows:
dependency: transitive dependency: transitive
description: description:
@ -1182,21 +1196,21 @@ packages:
name: video_player name: video_player
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.7" version: "2.2.11"
video_player_platform_interface: video_player_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: video_player_platform_interface name: video_player_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.2.0" version: "5.0.1"
video_player_web: video_player_web:
dependency: transitive dependency: transitive
description: description:
name: video_player_web name: video_player_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.4" version: "2.0.6"
watcher: watcher:
dependency: transitive dependency: transitive
description: description:
@ -1217,7 +1231,7 @@ packages:
name: win32 name: win32
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.0" version: "2.3.6"
window_size: window_size:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@ -67,7 +67,7 @@ dependencies:
url_launcher: ^6.0.2 url_launcher: ^6.0.2
# file_picker: ^4.2.1 # file_picker: ^4.2.1
clipboard: ^0.1.3 clipboard: ^0.1.3
connectivity_plus: ^2.1.0 connectivity_plus: 2.2.0
easy_localization: ^3.0.0 easy_localization: ^3.0.0
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.

View File

@ -175,14 +175,26 @@ script = [
script_runner = "@shell" script_runner = "@shell"
[tasks.generate_language_files] [tasks.generate_language_files]
script_runner = "@shell"
script = [ script = [
""" """
cd app_flowy/ cd app_flowy
flutter clean flutter clean
flutter pub get flutter pub get
flutter pub run easy_localization:generate -S assets/translations/ flutter pub run easy_localization:generate -S assets/translations/
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json
""", """
] ]
script_runner = "@shell"
[tasks.generate_language_files.windows]
script_runner = "@duckscript"
script = [
"""
cd ./app_flowy/
exec cmd.exe /c flutter clean
exec cmd.exe /c flutter pub get
exec cmd.exe /c flutter pub run easy_localization:generate -S assets/translations/
exec cmd.exe /c flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
"""
]