Webhooks
This commit is contained in:
parent
3ac62453c3
commit
a8c877bd4c
|
|
@ -1,10 +1,7 @@
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/buttons/edit_icon_button.dart';
|
import 'package:invoiceninja_flutter/ui/app/view_scaffold.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/actions_menu_button.dart';
|
|
||||||
import 'package:invoiceninja_flutter/ui/webhook/view/webhook_view_vm.dart';
|
import 'package:invoiceninja_flutter/ui/webhook/view/webhook_view_vm.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
|
||||||
import 'package:invoiceninja_flutter/ui/app/entities/entity_state_title.dart';
|
|
||||||
|
|
||||||
class WebhookView extends StatefulWidget {
|
class WebhookView extends StatefulWidget {
|
||||||
const WebhookView({
|
const WebhookView({
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:invoiceninja_flutter/ui/app/snackbar_row.dart';
|
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:invoiceninja_flutter/redux/ui/ui_actions.dart';
|
|
||||||
import 'package:invoiceninja_flutter/utils/completers.dart';
|
import 'package:invoiceninja_flutter/utils/completers.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/webhook/webhook_screen.dart';
|
|
||||||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||||
import 'package:redux/redux.dart';
|
import 'package:redux/redux.dart';
|
||||||
import 'package:flutter_redux/flutter_redux.dart';
|
import 'package:flutter_redux/flutter_redux.dart';
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:invoiceninja_flutter/data/models/webhook_model.dart';
|
import 'package:invoiceninja_flutter/data/models/webhook_model.dart';
|
||||||
|
import 'package:invoiceninja_flutter/ui/app/entities/entity_actions_dialog.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/tables/entity_list.dart';
|
import 'package:invoiceninja_flutter/ui/app/tables/entity_list.dart';
|
||||||
|
import 'package:invoiceninja_flutter/ui/webhook/webhook_list_item.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/webhook/webhook_presenter.dart';
|
import 'package:invoiceninja_flutter/ui/webhook/webhook_presenter.dart';
|
||||||
import 'package:redux/redux.dart';
|
import 'package:redux/redux.dart';
|
||||||
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class WebhookScreen extends StatelessWidget {
|
||||||
handleWebhookAction(context, webhooks, EntityAction.toggleMultiselect);
|
handleWebhookAction(context, webhooks, EntityAction.toggleMultiselect);
|
||||||
},
|
},
|
||||||
appBarTitle: ListFilter(
|
appBarTitle: ListFilter(
|
||||||
title: localization.webhooks,
|
placeholder: localization.searchWebhooks,
|
||||||
filter: state.webhookListState.filter,
|
filter: state.webhookListState.filter,
|
||||||
onFilterChanged: (value) {
|
onFilterChanged: (value) {
|
||||||
store.dispatch(FilterWebhooks(value));
|
store.dispatch(FilterWebhooks(value));
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
static final Map<String, Map<String, String>> _localizedValues = {
|
static final Map<String, Map<String, String>> _localizedValues = {
|
||||||
'en': {
|
'en': {
|
||||||
// STARTER: lang key - do not remove comment
|
// STARTER: lang key - do not remove comment
|
||||||
|
'search_webhooks': 'Search Webhooks',
|
||||||
'webhook': 'Webhook',
|
'webhook': 'Webhook',
|
||||||
'webhooks': 'Webhooks',
|
'webhooks': 'Webhooks',
|
||||||
'new_webhook': 'New Webhook',
|
'new_webhook': 'New Webhook',
|
||||||
|
|
@ -38215,57 +38216,74 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
String get appUpdated => _localizedValues[localeCode]['app_updated'] ?? '';
|
String get appUpdated => _localizedValues[localeCode]['app_updated'] ?? '';
|
||||||
|
|
||||||
// STARTER: lang field - do not remove comment
|
// STARTER: lang field - do not remove comment
|
||||||
String get webhook => _localizedValues[localeCode]['webhook'];
|
String get webhook => _localizedValues[localeCode]['webhook'] ?? '';
|
||||||
String get webhooks => _localizedValues[localeCode]['webhooks'];
|
|
||||||
String get newWebhook => _localizedValues[localeCode]['new_webhook'];
|
String get webhooks => _localizedValues[localeCode]['webhooks'] ?? '';
|
||||||
String get createdWebhook => _localizedValues[localeCode]['created_webhook'];
|
|
||||||
String get updatedWebhook => _localizedValues[localeCode]['updated_webhook'];
|
String get newWebhook => _localizedValues[localeCode]['new_webhook'] ?? '';
|
||||||
|
|
||||||
|
String get createdWebhook =>
|
||||||
|
_localizedValues[localeCode]['created_webhook'] ?? '';
|
||||||
|
|
||||||
|
String get updatedWebhook =>
|
||||||
|
_localizedValues[localeCode]['updated_webhook'] ?? '';
|
||||||
|
|
||||||
String get archivedWebhook =>
|
String get archivedWebhook =>
|
||||||
_localizedValues[localeCode]['archived_webhook'];
|
_localizedValues[localeCode]['archived_webhook'] ?? '';
|
||||||
String get deletedWebhook => _localizedValues[localeCode]['deleted_webhook'];
|
|
||||||
|
String get deletedWebhook =>
|
||||||
|
_localizedValues[localeCode]['deleted_webhook'] ?? '';
|
||||||
|
|
||||||
String get restoredWebhook =>
|
String get restoredWebhook =>
|
||||||
_localizedValues[localeCode]['restored_webhook'];
|
_localizedValues[localeCode]['restored_webhook'] ?? '';
|
||||||
String get editWebhook => _localizedValues[localeCode]['edit_webhook'];
|
|
||||||
|
|
||||||
String get token => _localizedValues[localeCode]['token'];
|
String get editWebhook => _localizedValues[localeCode]['edit_webhook'] ?? '';
|
||||||
|
|
||||||
String get tokens => _localizedValues[localeCode]['tokens'];
|
String get token => _localizedValues[localeCode]['token'] ?? '';
|
||||||
|
|
||||||
String get newToken => _localizedValues[localeCode]['new_token'];
|
String get tokens => _localizedValues[localeCode]['tokens'] ?? '';
|
||||||
|
|
||||||
String get createdToken => _localizedValues[localeCode]['created_token'];
|
String get newToken => _localizedValues[localeCode]['new_token'] ?? '';
|
||||||
|
|
||||||
String get updatedToken => _localizedValues[localeCode]['updated_token'];
|
String get createdToken =>
|
||||||
|
_localizedValues[localeCode]['created_token'] ?? '';
|
||||||
|
|
||||||
String get archivedToken => _localizedValues[localeCode]['archived_token'];
|
String get updatedToken =>
|
||||||
|
_localizedValues[localeCode]['updated_token'] ?? '';
|
||||||
|
|
||||||
String get deletedToken => _localizedValues[localeCode]['deleted_token'];
|
String get archivedToken =>
|
||||||
|
_localizedValues[localeCode]['archived_token'] ?? '';
|
||||||
|
|
||||||
String get restoredToken => _localizedValues[localeCode]['restored_token'];
|
String get deletedToken =>
|
||||||
|
_localizedValues[localeCode]['deleted_token'] ?? '';
|
||||||
|
|
||||||
String get editToken => _localizedValues[localeCode]['edit_token'];
|
String get restoredToken =>
|
||||||
|
_localizedValues[localeCode]['restored_token'] ?? '';
|
||||||
|
|
||||||
String get paymentTerm => _localizedValues[localeCode]['payment_term'];
|
String get editToken => _localizedValues[localeCode]['edit_token'] ?? '';
|
||||||
|
|
||||||
String get newPaymentTerm => _localizedValues[localeCode]['new_payment_term'];
|
String get paymentTerm => _localizedValues[localeCode]['payment_term'] ?? '';
|
||||||
|
|
||||||
|
String get newPaymentTerm =>
|
||||||
|
_localizedValues[localeCode]['new_payment_term'] ?? '';
|
||||||
|
|
||||||
String get createdPaymentTerm =>
|
String get createdPaymentTerm =>
|
||||||
_localizedValues[localeCode]['created_payment_term'];
|
_localizedValues[localeCode]['created_payment_term'] ?? '';
|
||||||
|
|
||||||
String get updatedPaymentTerm =>
|
String get updatedPaymentTerm =>
|
||||||
_localizedValues[localeCode]['updated_payment_term'];
|
_localizedValues[localeCode]['updated_payment_term'] ?? '';
|
||||||
|
|
||||||
String get archivedPaymentTerm =>
|
String get archivedPaymentTerm =>
|
||||||
_localizedValues[localeCode]['archived_payment_term'];
|
_localizedValues[localeCode]['archived_payment_term'] ?? '';
|
||||||
|
|
||||||
String get deletedPaymentTerm =>
|
String get deletedPaymentTerm =>
|
||||||
_localizedValues[localeCode]['deleted_payment_term'];
|
_localizedValues[localeCode]['deleted_payment_term'] ?? '';
|
||||||
|
|
||||||
String get restoredPaymentTerm =>
|
String get restoredPaymentTerm =>
|
||||||
_localizedValues[localeCode]['restored_payment_term'];
|
_localizedValues[localeCode]['restored_payment_term'] ?? '';
|
||||||
|
|
||||||
String get editPaymentTerm =>
|
String get editPaymentTerm =>
|
||||||
_localizedValues[localeCode]['edit_payment_term'];
|
_localizedValues[localeCode]['edit_payment_term'] ?? '';
|
||||||
|
|
||||||
String get designs => _localizedValues[localeCode]['designs'] ?? '';
|
String get designs => _localizedValues[localeCode]['designs'] ?? '';
|
||||||
|
|
||||||
|
|
@ -38726,6 +38744,9 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
String get searchTokens =>
|
String get searchTokens =>
|
||||||
_localizedValues[localeCode]['search_tokens'] ?? '';
|
_localizedValues[localeCode]['search_tokens'] ?? '';
|
||||||
|
|
||||||
|
String get searchWebhooks =>
|
||||||
|
_localizedValues[localeCode]['search_webhooks'] ?? '';
|
||||||
|
|
||||||
String get manageTokens =>
|
String get manageTokens =>
|
||||||
_localizedValues[localeCode]['manage_tokens'] ?? '';
|
_localizedValues[localeCode]['manage_tokens'] ?? '';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -440,11 +440,11 @@ else
|
||||||
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_actions.dart
|
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_actions.dart
|
||||||
|
|
||||||
comment="STARTER: lang key - do not remove comment"
|
comment="STARTER: lang key - do not remove comment"
|
||||||
code="'${module_snake}': '${Module}', '${module_snake}s': '${Module}s', 'new_${module_snake}': 'New ${Module}', 'edit_${module_snake}': 'Edit ${Module}', 'created_${module_snake}': 'Successfully created ${module_snake}', 'updated_${module_snake}': 'Successfully updated ${module_snake}', 'archived_${module_snake}': 'Successfully archived ${module_snake}', 'deleted_${module_snake}': 'Successfully deleted ${module_snake}', 'removed_${module_snake}': 'Successfully removed ${module_snake}', 'restored_${module_snake}': 'Successfully restored ${module_snake}',${lineBreak}"
|
code="'${module_snake}': '${Module}', '${module_snake}s': '${Module}s', 'new_${module_snake}': 'New ${Module}', 'edit_${module_snake}': 'Edit ${Module}', 'created_${module_snake}': 'Successfully created ${module_snake}', 'updated_${module_snake}': 'Successfully updated ${module_snake}', 'archived_${module_snake}': 'Successfully archived ${module_snake}', 'deleted_${module_snake}': 'Successfully deleted ${module_snake}', 'removed_${module_snake}': 'Successfully removed ${module_snake}', 'restored_${module_snake}': 'Successfully restored ${module_snake}',${lineBreak}, 'search_${module_snake}': 'Search ${Module}'"
|
||||||
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/utils/i18n.dart
|
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/utils/i18n.dart
|
||||||
|
|
||||||
comment="STARTER: lang field - do not remove comment"
|
comment="STARTER: lang field - do not remove comment"
|
||||||
code="String get ${module_camel} => _localizedValues[localeCode]['${module_snake}']; String get ${module_camel}s => _localizedValues[localeCode]['${module_snake}s']; String get new${Module} => _localizedValues[localeCode]['new_${module_snake}']; String get created${Module} => _localizedValues[localeCode]['created_${module_snake}']; String get updated${Module} => _localizedValues[localeCode]['updated_${module_snake}']; String get archived${Module} => _localizedValues[localeCode]['archived_${module_snake}']; String get deleted${Module} => _localizedValues[localeCode]['deleted_${module_snake}']; String get restored${Module} => _localizedValues[localeCode]['restored_${module_snake}']; String get edit${Module} => _localizedValues[localeCode]['edit_${module_snake}'];${lineBreak}"
|
code="String get ${module_camel} => _localizedValues[localeCode]['${module_snake}']; String get ${module_camel}s => _localizedValues[localeCode]['${module_snake}s']; String get new${Module} => _localizedValues[localeCode]['new_${module_snake}']; String get created${Module} => _localizedValues[localeCode]['created_${module_snake}']; String get updated${Module} => _localizedValues[localeCode]['updated_${module_snake}']; String get archived${Module} => _localizedValues[localeCode]['archived_${module_snake}']; String get deleted${Module} => _localizedValues[localeCode]['deleted_${module_snake}']; String get restored${Module} => _localizedValues[localeCode]['restored_${module_snake}']; String get edit${Module} => _localizedValues[localeCode]['edit_${module_snake}'];${lineBreak} String get search${Module} => _localizedValues[localeCode]['search_${module_snake}'];${lineBreak}"
|
||||||
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/utils/i18n.dart
|
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/utils/i18n.dart
|
||||||
|
|
||||||
comment="STARTER: entity type - do not remove comment"
|
comment="STARTER: entity type - do not remove comment"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:invoiceninja_flutter/data/models/stub_model.dart';
|
import 'package:invoiceninja_flutter/data/models/stub_model.dart';
|
||||||
|
import 'package:invoiceninja_flutter/ui/app/entities/entity_actions_dialog.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/tables/entity_list.dart';
|
import 'package:invoiceninja_flutter/ui/app/tables/entity_list.dart';
|
||||||
|
import 'package:invoiceninja_flutter/ui/webhook/stub_list_item.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/stub/stub_presenter.dart';
|
import 'package:invoiceninja_flutter/ui/stub/stub_presenter.dart';
|
||||||
import 'package:redux/redux.dart';
|
import 'package:redux/redux.dart';
|
||||||
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class StubScreen extends StatelessWidget {
|
||||||
handleStubAction(context, stubs, EntityAction.toggleMultiselect);
|
handleStubAction(context, stubs, EntityAction.toggleMultiselect);
|
||||||
},
|
},
|
||||||
appBarTitle: ListFilter(
|
appBarTitle: ListFilter(
|
||||||
title: localization.stubs,
|
placeholder: localization.searchStubs,
|
||||||
filter: state.stubListState.filter,
|
filter: state.stubListState.filter,
|
||||||
onFilterChanged: (value) {
|
onFilterChanged: (value) {
|
||||||
store.dispatch(FilterStubs(value));
|
store.dispatch(FilterStubs(value));
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/buttons/edit_icon_button.dart';
|
|
||||||
import 'package:invoiceninja_flutter/ui/app/actions_menu_button.dart';
|
|
||||||
import 'package:invoiceninja_flutter/ui/stub/view/stub_view_vm.dart';
|
import 'package:invoiceninja_flutter/ui/stub/view/stub_view_vm.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/entities/entity_state_title.dart';
|
|
||||||
|
|
||||||
class StubView extends StatefulWidget {
|
class StubView extends StatefulWidget {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:invoiceninja_flutter/ui/app/snackbar_row.dart';
|
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:invoiceninja_flutter/redux/ui/ui_actions.dart';
|
|
||||||
import 'package:invoiceninja_flutter/utils/completers.dart';
|
import 'package:invoiceninja_flutter/utils/completers.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/stub/stub_screen.dart';
|
|
||||||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||||
import 'package:redux/redux.dart';
|
import 'package:redux/redux.dart';
|
||||||
import 'package:flutter_redux/flutter_redux.dart';
|
import 'package:flutter_redux/flutter_redux.dart';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue