invoiceninja/admin-portal
关于
Invoice Ninja:使用 Flutter 构建的桌面端和移动端管理门户。
商业与金融实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- +1
- 1个月
- +2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Invoice Ninja Legacy
The previous client application for Invoice Ninja, now being retired.
Invoice Ninja has a new app: invoiceninja/app. Your data stays in your account, so install the new app and sign in with the same account. The Linux downloads (Snap, Flatpak) are the new app.
This app's remaining store listings, until it is retired:
Desktop Apps
Mobile Apps
Table of Contents
- Setting up the app
- Steps to remove non-FOSS code
- Application Architecture
- Code generation
- Tests
- Code signing
- Credits
- Contributions
Setting up the app
Initialize the config file
cp lib/.env.dart.example lib/.env.dartSupport running the code unsigned on Android
cp android/app/build.gradle.dev.kts android/app/build.gradle.ktsRun the app
flutter run
Note: if you don't have an Invoice Ninja backend setup you can test the app with these credentials:
- Email:
[email protected] - Password:
Password0 - URL:
demo.invoiceninja.com
Steps to remove non-FOSS code
cp lib/utils/oauth.dart.foss lib/utils/oauth.dart
cp lib/utils/app_review.dart.foss lib/utils/app_review.dart
cp lib/ui/app/upgrade_dialog.dart.foss lib/ui/app/upgrade_dialog.dart
cp lib/ui/app/pinput.dart.foss lib/ui/app/pinput.dart
cp android/app/src/main/AndroidManifest.foss.xml android/app/src/main/AndroidManifest.xml
cp android/settings.gradle.foss.kts android/settings.gradle.kts
cp pubspec.foss.yaml pubspec.yaml
cp pubspec.foss.lock pubspec.lock
pubspec.foss.yaml and pubspec.foss.lock are generated from pubspec.yaml and pubspec.lock by ./update_foss.sh, which bump_version.sh runs; don't edit them by hand.
Application Architecture
The application was created using the Flutter Redux Starter.
The architecture is based off these two projects:
File Structure
A High-level overview of the project structure:
lib/ # Root Package
|
├─ data/ # For data handling
│ ├─ mock/ # sample used for testing
│ ├─ models/ # Objects representing data
│ ├─ repositories/ # Source of data
|
├─ redux/ # manages app state
│ ├─ component/ # app building block
│ ├─ actions # methods to update app state
| ├─ middleware # run in response to actions, execute before reducer
| ├─ reducer # intercepts actions, responsible for updating the state
| ├─ selectors # read data from the state, queries against your 'state database'
| ├─ state # immutable object that lives at the top of the widget hierarchy
|
├─ ui/ # app views
│ ├─ component/ # views for different components
│ ├─ view/ # generel view for component
│ ├─ edit/ # change values on the views fields
|
├─ utils/ # Utility classes
The ui and redux folders contain components that are paired together. Put simply you will find an 'auth' folder in both the ui and redux folders.
For additional information on Redux architecture
Blog Posts
- Intro to Google Flutter
- Using Redux to manage state
- Handling complex forms
- Architectural review
- Additional thoughts
Code generation
- Run
flutter packages pub run build_runner build --delete-conflicting-outputsto regenerate the model files. It will also remove the old generated files so conflicts are avoided..
Tests
- Run
flutter drive --target=test_driver/all_it.dartto run the tests
Credits
https://github.com/invoiceninja/invoiceninja#credits
Contributions
We gladly accept contributions! If you'd like to get involved with development please join our Slack group or Discord Server.
探索相关项目
加载中…