mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 18:07:44 -06:00
feat: Update README, update login form field
This commit is contained in:
49
README.md
49
README.md
@@ -22,7 +22,7 @@
|
|||||||
<img src="assets/logos/paperless_logo_green.png" alt="Logo" width="80" height="80">
|
<img src="assets/logos/paperless_logo_green.png" alt="Logo" width="80" height="80">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<h3 align="center">Paperless Mobile</h3>
|
<h2 align="center">Paperless Mobile</h2>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
An (almost) fully fledged mobile paperless client.
|
An (almost) fully fledged mobile paperless client.
|
||||||
@@ -42,26 +42,25 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
## Important Notice
|
## Important Notice
|
||||||
This project is under **very active** development. Breaking changes are expected and therefore a clean install is recommended for each update! The newest version (2.2.0+28, available in Open Beta on Google Play) is **not** yet compatible with Paperless-ngx 1.14.0 and later!
|
This project is under **very active** development. Breaking changes are expected and therefore a clean install is recommended for each update!
|
||||||
|
|
||||||
<!-- ABOUT THE PROJECT -->
|
<!-- ABOUT THE PROJECT -->
|
||||||
## About The Project
|
## About The Project
|
||||||
With this app you can conveniently add, manage or simply find documents stored in your paperless server without any comproimises. This project started as a small fun side project to learn more about the Flutter framework and because existing solutions didn't fulfill my needs, but it has grown much faster with far more features than I originally anticipated.
|
Paperless Mobile brings <a href="https://github.com/paperless-ngx/paperless-ngx">paperless-ngx</a> to your smartphone without any compromises. While you can use paperless-ngx from a mobile browser, managing your documents this way is often a tedious and slow process. The app integrates a custom scanner, biometric authentication and many more conveniences to help you make the transition from a paper-based to a fully digital office experience.
|
||||||
|
|
||||||
|
### :rocket: Highlights
|
||||||
### :rocket: Features
|
:heavy_check_mark: **View** your documents at a glance<br>
|
||||||
:heavy_check_mark: **View** your documents at a glance, in a compact list or a more detailed grid view<br>
|
:heavy_check_mark: **Add**, **delete** or **edit** documents<br>
|
||||||
:heavy_check_mark: **Add**, **delete** or **edit** your documents<br>
|
:heavy_check_mark: **Share**, **download** and **preview** files<br>
|
||||||
:heavy_check_mark: **Share**, **download** and **preview** PDF files<br>
|
:heavy_check_mark: **Manage** and assign labels<br>
|
||||||
:heavy_check_mark: **Manage** and assign correspondents, document types, tags and storage paths<br>
|
:heavy_check_mark: **Scan** and upload documents to paperless<br>
|
||||||
:heavy_check_mark: **Scan** and upload documents to paperless with preset correspondent, document type, tags and creation date<br>
|
|
||||||
:heavy_check_mark: **Upload existing documents** from other apps via Paperless Mobile<br>
|
:heavy_check_mark: **Upload existing documents** from other apps via Paperless Mobile<br>
|
||||||
:heavy_check_mark: See all new documents in a dedicated **inbox**<br>
|
:heavy_check_mark: Easily process and manage new documents in the dedicated **inbox**<br>
|
||||||
:heavy_check_mark: **Search** for documents using a wide range of filter criteria<br>
|
:heavy_check_mark: **Search** for documents using a wide range of filter criteria<br>
|
||||||
:heavy_check_mark: **Secure** your data with **biometric authentication** across sessions<br>
|
:heavy_check_mark: **Secure** your data with a **biometric factor**<br>
|
||||||
:heavy_check_mark: Support for **TLS mutual authentication** (client certificates)<br>
|
:heavy_check_mark: Support for **TLS mutual authentication** (client certificates)<br>
|
||||||
:heavy_check_mark: **Modern, intuitive UI** built according to the Material Design 3 specification<br>
|
:heavy_check_mark: **Modern, intuitive UI** built according to the Material Design 3 specification<br>
|
||||||
:heavy_check_mark: Available in english and german language (more to come!)<br>
|
:heavy_check_mark: Available in English, German, Polish, French, Catalan, Czech and Turkish language with more to come<br>
|
||||||
|
|
||||||
|
|
||||||
### Built With
|
### Built With
|
||||||
@@ -70,13 +69,12 @@ With this app you can conveniently add, manage or simply find documents stored i
|
|||||||
|
|
||||||
<!-- GETTING STARTED -->
|
<!-- GETTING STARTED -->
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
To get a local copy up and running follow these simple steps.
|
To get a local copy up and running follow these simple steps.
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
* Install an IDE of your choice (e.g. VSCode with the Dart/Flutter extensions)
|
* Install an IDE of your choice (e.g. VSCode with the Dart/Flutter extensions)
|
||||||
* Install the flutter SDK (https://docs.flutter.dev/get-started/install) _or_ use the flutter git submodule pinned in this project by running `git submodule update --init` inside the project root directory.
|
* Install the flutter SDK (https://docs.flutter.dev/get-started/install) _or_ use the flutter git submodule pinned in this project by running `git submodule update --init` inside the project root directory.
|
||||||
*
|
|
||||||
### Install dependencies and generate files
|
### Install dependencies and generate files
|
||||||
1. First, clone the repository:
|
1. First, clone the repository:
|
||||||
```sh
|
```sh
|
||||||
@@ -150,16 +148,19 @@ flutter install --use-application-binary=build/pp/outputs/flutter-apk/<apk_file_
|
|||||||
If you want to contribute by translating a language, feel free to join the [Crowdin](https://crowdin.com/project/paperless-mobile) project!
|
If you want to contribute by translating a language, feel free to join the [Crowdin](https://crowdin.com/project/paperless-mobile) project!
|
||||||
|
|
||||||
Thanks to the following contributors for providing translations:
|
Thanks to the following contributors for providing translations:
|
||||||
- German and English by <a href="https://github.com/astubenbord">astubenbord</a>
|
- German and English language translated by <a href="https://github.com/astubenbord">astubenbord</a>
|
||||||
- Czech language by <a href="https://github.com/svetlemodry">svetlemodry</a>
|
- Czech language translated by <a href="https://github.com/svetlemodry">svetlemodry</a>
|
||||||
- Turkish language by <a href="https://github.com/imsakg">imsakg</a>
|
- Turkish language translated by <a href="https://github.com/imsakg">imsakg</a>
|
||||||
|
- Polish language translated by <a href="https://github.com/losiu97">losiu97</a>
|
||||||
|
- French language translated by <a href="https://github.com/JigSawFr">JigSawFr</a>, <a href="https://github.com/SpicyWasab">SpicyWasab</a> and <a href="https://github.com/nathanaelhoun">nathanaelhoun</a>
|
||||||
|
- Catalan language translated by <a href="https://github.com/rubenix">rubenix</a>
|
||||||
|
|
||||||
<!-- ROADMAP -->
|
<!-- ROADMAP -->
|
||||||
## Roadmap
|
## Roadmap
|
||||||
- [ ] Fully custom document scanner optimized for common white A4 documents and optimized for the use with Paperless
|
- [ ] Fully custom document scanner optimized for common white A4 documents and optimized for the use with Paperless
|
||||||
- [ ] Add more languages
|
- [ ] Add more languages
|
||||||
- [ ] Support for IOS and publish to AppStore
|
- [x] Support for IOS and publish to AppStore
|
||||||
- [ ] Automatic releases and CI/CD with fastlane
|
- [x] Automatic releases and CI/CD with fastlane
|
||||||
- [ ] Templates for recurring scans (e.g. monthly payrolls with same title, dates at end of month, fixed correspondent and document type)
|
- [ ] Templates for recurring scans (e.g. monthly payrolls with same title, dates at end of month, fixed correspondent and document type)
|
||||||
|
|
||||||
See the [open issues](https://github.com/astubenbord/paperless-mobile/issues) for a full list of issues and [open feature requests](https://github.com/astubenbord/paperless-mobile/discussions/categories/feature-requests) for requested features.
|
See the [open issues](https://github.com/astubenbord/paperless-mobile/issues) for a full list of issues and [open feature requests](https://github.com/astubenbord/paperless-mobile/discussions/categories/feature-requests) for requested features.
|
||||||
@@ -174,7 +175,7 @@ Don't forget to give the project a star! Thanks again!
|
|||||||
|
|
||||||
1. Fork the Project
|
1. Fork the Project
|
||||||
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
||||||
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
3. Commit your Changes (`git commit -m 'feat: Add some AmazingFeature'`)
|
||||||
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
||||||
5. Open a Pull Request
|
5. Open a Pull Request
|
||||||
|
|
||||||
@@ -183,7 +184,7 @@ Don't forget to give the project a star! Thanks again!
|
|||||||
Distributed under the GNU General Public License v3.0. See `LICENSE.txt` for more information.
|
Distributed under the GNU General Public License v3.0. See `LICENSE.txt` for more information.
|
||||||
|
|
||||||
## Donations
|
## Donations
|
||||||
I do this in my free time, so if you like the project, consider buying me a coffee! Any donation is much appreciated :)
|
I do this in my free time, so if you like the project, consider buying me a coffee! Any donation is much appreciated :^)
|
||||||
|
|
||||||
[](https://www.buymeacoffee.com/astubenbord)
|
[](https://www.buymeacoffee.com/astubenbord)
|
||||||
|
|
||||||
@@ -214,4 +215,6 @@ Made with [contrib.rocks](https://contrib.rocks).
|
|||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
#### Suggestions are not selectable in any of the label form fields
|
#### Suggestions are not selectable in any of the label form fields
|
||||||
This is a known issue and it has to do with accessibility features of Android. Password managers such as Bitwarden often caused this issue. Luckily, this can be resolved by turning off the accessibility features in these apps. This could also be observed with apps that are allowed to display over other apps, such as emulations of the dynamic island on android.
|
This is a known issue and it has to do with accessibility features of Android. Password managers such as Bitwarden often caused this issue. Luckily, this can be resolved by turning off the accessibility features in these apps. This could also be observed with apps that are allowed to display over other apps, such as emulations of the dynamic island on android.
|
||||||
|
## I cannot log in since the update to paperless-ngx 1.14.0 (and above).
|
||||||
|
The app has to somehow get information about it's user from the paperless API. Therefore, the `Users -> View` and the `UISettings -> View` permissions are required for each user trying to log into the app. Otherwise, the app has no way of obtaining your user id and other information required for the usage of most features.
|
||||||
@@ -126,6 +126,7 @@ class _LoginPageState extends State<LoginPage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _login() async {
|
Future<void> _login() async {
|
||||||
|
|
||||||
FocusScope.of(context).unfocus();
|
FocusScope.of(context).unfocus();
|
||||||
if (_formKey.currentState?.saveAndValidate() ?? false) {
|
if (_formKey.currentState?.saveAndValidate() ?? false) {
|
||||||
final form = _formKey.currentState!.value;
|
final form = _formKey.currentState!.value;
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ class ObscuredInputTextFormField extends StatefulWidget {
|
|||||||
final void Function(String?) onChanged;
|
final void Function(String?) onChanged;
|
||||||
final FormFieldValidator<String>? validator;
|
final FormFieldValidator<String>? validator;
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
|
final FocusNode? focusNode;
|
||||||
|
|
||||||
|
final ValueChanged<String?>? onFieldSubmitted;
|
||||||
|
|
||||||
const ObscuredInputTextFormField({
|
const ObscuredInputTextFormField({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -14,6 +17,8 @@ class ObscuredInputTextFormField extends StatefulWidget {
|
|||||||
this.validator,
|
this.validator,
|
||||||
this.initialValue,
|
this.initialValue,
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
|
this.focusNode,
|
||||||
|
this.onFieldSubmitted,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -24,7 +29,13 @@ class ObscuredInputTextFormField extends StatefulWidget {
|
|||||||
class _ObscuredInputTextFormFieldState
|
class _ObscuredInputTextFormFieldState
|
||||||
extends State<ObscuredInputTextFormField> {
|
extends State<ObscuredInputTextFormField> {
|
||||||
bool _showPassword = false;
|
bool _showPassword = false;
|
||||||
final FocusNode _passwordFocusNode = FocusNode();
|
late final FocusNode _passwordFocusNode;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_passwordFocusNode = widget.focusNode ?? FocusNode();
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
@@ -37,6 +48,7 @@ class _ObscuredInputTextFormFieldState
|
|||||||
return TextFormField(
|
return TextFormField(
|
||||||
enabled: widget.enabled,
|
enabled: widget.enabled,
|
||||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||||
|
onFieldSubmitted: widget.onFieldSubmitted,
|
||||||
validator: widget.validator,
|
validator: widget.validator,
|
||||||
initialValue: widget.initialValue,
|
initialValue: widget.initialValue,
|
||||||
focusNode: _passwordFocusNode,
|
focusNode: _passwordFocusNode,
|
||||||
|
|||||||
@@ -9,8 +9,11 @@ import 'package:paperless_mobile/generated/l10n/app_localizations.dart';
|
|||||||
class UserCredentialsFormField extends StatefulWidget {
|
class UserCredentialsFormField extends StatefulWidget {
|
||||||
static const fkCredentials = 'credentials';
|
static const fkCredentials = 'credentials';
|
||||||
|
|
||||||
|
final void Function() onFieldsSubmitted;
|
||||||
|
|
||||||
const UserCredentialsFormField({
|
const UserCredentialsFormField({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
required this.onFieldsSubmitted,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -19,6 +22,9 @@ class UserCredentialsFormField extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _UserCredentialsFormFieldState extends State<UserCredentialsFormField> {
|
class _UserCredentialsFormFieldState extends State<UserCredentialsFormField> {
|
||||||
|
final _usernameFocusNode = FocusNode();
|
||||||
|
final _passwordFocusNode = FocusNode();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return FormBuilderField<LoginFormCredentials?>(
|
return FormBuilderField<LoginFormCredentials?>(
|
||||||
@@ -28,9 +34,13 @@ class _UserCredentialsFormFieldState extends State<UserCredentialsFormField> {
|
|||||||
children: [
|
children: [
|
||||||
TextFormField(
|
TextFormField(
|
||||||
key: const ValueKey('login-username'),
|
key: const ValueKey('login-username'),
|
||||||
textCapitalization: TextCapitalization.words,
|
focusNode: _usernameFocusNode,
|
||||||
|
textCapitalization: TextCapitalization.none,
|
||||||
|
textInputAction: TextInputAction.next,
|
||||||
|
onFieldSubmitted: (value) {
|
||||||
|
_passwordFocusNode.requestFocus();
|
||||||
|
},
|
||||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||||
// USERNAME
|
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
onChanged: (username) => field.didChange(
|
onChanged: (username) => field.didChange(
|
||||||
field.value?.copyWith(username: username) ??
|
field.value?.copyWith(username: username) ??
|
||||||
@@ -49,11 +59,15 @@ class _UserCredentialsFormFieldState extends State<UserCredentialsFormField> {
|
|||||||
),
|
),
|
||||||
ObscuredInputTextFormField(
|
ObscuredInputTextFormField(
|
||||||
key: const ValueKey('login-password'),
|
key: const ValueKey('login-password'),
|
||||||
|
focusNode: _passwordFocusNode,
|
||||||
label: S.of(context)!.password,
|
label: S.of(context)!.password,
|
||||||
onChanged: (password) => field.didChange(
|
onChanged: (password) => field.didChange(
|
||||||
field.value?.copyWith(password: password) ??
|
field.value?.copyWith(password: password) ??
|
||||||
LoginFormCredentials(password: password),
|
LoginFormCredentials(password: password),
|
||||||
),
|
),
|
||||||
|
onFieldSubmitted: (_) {
|
||||||
|
widget.onFieldsSubmitted();
|
||||||
|
},
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
if (value?.trim().isEmpty ?? true) {
|
if (value?.trim().isEmpty ?? true) {
|
||||||
return S.of(context)!.passwordMustNotBeEmpty;
|
return S.of(context)!.passwordMustNotBeEmpty;
|
||||||
|
|||||||
@@ -41,8 +41,21 @@ class _ServerLoginPageState extends State<ServerLoginPage> {
|
|||||||
),
|
),
|
||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
Text(S.of(context)!.signInToServer(serverAddress)).padded(),
|
Text(
|
||||||
const UserCredentialsFormField(),
|
S.of(context)!.signInToServer(serverAddress) + ":",
|
||||||
|
style: Theme.of(context).textTheme.labelLarge,
|
||||||
|
).padded(16),
|
||||||
|
UserCredentialsFormField(
|
||||||
|
onFieldsSubmitted: widget.onSubmit,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
"Please make sure that the user has the permission to view users ('Users -> View') and view UI settings ('UISettings -> View).",
|
||||||
|
style: Theme.of(context).textTheme.bodySmall?.apply(
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.onBackground
|
||||||
|
.withOpacity(0.6)),
|
||||||
|
).padded(16),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
bottomNavigationBar: BottomAppBar(
|
bottomNavigationBar: BottomAppBar(
|
||||||
|
|||||||
Reference in New Issue
Block a user