yubioath-flutter/lib/oath/keys.dart

55 lines
2.0 KiB
Dart
Raw Normal View History

2022-10-04 13:12:54 +03:00
/*
2023-02-28 17:25:27 +03:00
* Copyright (C) 2022-2023 Yubico.
2022-10-04 13:12:54 +03:00
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
2022-09-12 14:01:46 +03:00
import 'package:flutter/material.dart';
const _prefix = 'oath.keys';
2023-06-15 18:39:17 +03:00
const _keyAction = '$_prefix.actions';
const _accountAction = '$_prefix.account.actions';
2022-09-12 14:01:46 +03:00
2023-06-15 18:39:17 +03:00
// This is global so we can access it from the global Ctrl+F shortcut.
final searchAccountsField = GlobalKey();
2022-09-12 14:01:46 +03:00
2023-06-15 18:39:17 +03:00
// Key actions
const setOrManagePasswordAction =
Key('$_keyAction.action.set_or_manage_password');
const addAccountAction = Key('$_keyAction.add_account');
const resetAction = Key('$_keyAction.reset');
const customIconsAction = Key('$_keyAction.custom_icons');
2023-02-22 13:42:44 +03:00
2023-06-15 18:39:17 +03:00
// Credential actions
const copyAction = Key('$_accountAction.copy');
const calculateAction = Key('$_accountAction.calculate');
const togglePinAction = Key('$_accountAction.toggle_pin');
const editAction = Key('$_accountAction.edit');
const deleteAction = Key('$_accountAction.delete');
2022-09-12 14:01:46 +03:00
2023-06-15 18:39:17 +03:00
const noAccountsView = Key('$_prefix.no_accounts');
2022-09-12 14:01:46 +03:00
const passwordField = Key('$_prefix.password');
const currentPasswordField = Key('$_prefix.current_password');
const newPasswordField = Key('$_prefix.new_password');
const confirmPasswordField = Key('$_prefix.confirm_password');
const issuerField = Key('$_prefix.issuer');
const nameField = Key('$_prefix.name');
const secretField = Key('$_prefix.secret');
const unlockButton = Key('$_prefix.unlock');
const saveButton = Key('$_prefix.save');
const deleteButton = Key('$_prefix.delete');
const savePasswordButton = Key('$_prefix.save_password');
const removePasswordButton = Key('$_prefix.remove_password');