Commit graph

532 commits

Author SHA1 Message Date
Danny Moesch
44870af774 Trust in assigned default value
In particular, SwiftyUserDefaults returns the default value in case it does not find a value in the dictionary. As the default is '.all' it does not have to be set explicitly. Assigning 'nil' will result in '.all' anyway.
2019-05-04 22:15:23 +02:00
Danny Moesch
c2cd6481fd Utilize default settings values 2019-05-01 18:30:13 +02:00
Danny Moesch
f9c19b3ca4 Migrate to Swift 5.0 2019-05-01 18:30:13 +02:00
David Beitey
1e5022e404 Hide placeholder with Hide Password Images on
This hides the password image placeholder when `Hide Password Images` is
enabled. Auto-layout constraints are toggled on and off depending on the
setting's value to ensure correct alignment.

Extends #248
2019-03-08 00:30:36 +10:00
Danny Moesch
296a3cbcfa Introduce enum for scope of search bar
This simplifies the handling of the indices in the search bar scope list, replaces strings as keys and allows a proper localization not breaking any logic.
2019-03-05 13:51:39 -08:00
David Beitey
f98d56753b Add ability to hide password images
This disables loading of favicon images associated with password entries
and hides any images that are already loaded, using the generic icon
instead.

The key benefit to this option is to prevent passforios revealing that a
given device has a password in its store, which could be gleaned from
the fact that favicons are being loaded in this manner.
2019-03-03 10:54:30 -08:00
Danny Moesch
8351c16d75 Compute heights of TableViewCells automatically
This is necessary because different languages need different amounts of space. Especially text fields with some more text need to be variable in their heights.
2019-02-23 14:22:27 -08:00
Danny Moesch
116e258d05 Localize more strings in password view 2019-02-23 14:22:27 -08:00
Danny Moesch
936d91e415 Add missing dot 2019-02-23 14:22:27 -08:00
Danny Moesch
08c91599b6 Use | operator to concatenate multiline strings 2019-01-20 21:04:04 -08:00
Danny Moesch
804a0f06bf Add missing SSH private key localization string 2019-01-20 21:04:04 -08:00
Danny Moesch
07b4bf8e8c Fix wrong string 2019-01-20 21:04:04 -08:00
Danny Moesch
1b4040135e Localize strings in code 2019-01-20 21:04:04 -08:00
Danny Moesch
2d5ca58bd9 Use PasswordGeneratorFlavor class to set user defaults and UI elements 2019-01-20 21:04:04 -08:00
Danny Moesch
6b4dbd50a9 Support custom branches (#236) 2019-01-13 15:34:01 -08:00
Danny Moesch
744b46adc2 Do not show 0 if numbers in "About Repository" cannot be obtained properly 2019-01-12 16:36:37 -08:00
Danny Moesch
f47e7d384c Show correct number of commits in "About Repository" 2019-01-12 16:36:37 -08:00
Danny Moesch
9e027b878a Replace TableCell struct with AdditionField 2018-12-18 10:06:45 -08:00
Mingshen Sun
ed387069a4
lint: delete trailing whitespaces 2018-12-09 16:59:07 -08:00
Danny Moesch
5780a439db Show number of hidden fields in password view 2018-12-08 21:15:51 -08:00
Danny Moesch
7f330fbeed Use HTTPS for URLs by default 2018-12-08 21:11:58 -08:00
Danny Moesch
f8f858f15e Pass content of URL field to 'openLink' method
Previously, 'openLink' has chosen the first URL field contained in the
password file. Since the action "Copy & Open" is performed on a specific
field, only its content should be considered.
2018-12-08 21:11:58 -08:00
Danny Moesch
3cd8df310c Introduce enum for password generator flavour 2018-12-05 12:59:04 -08:00
Bob Sun
2bfb36c527
Cleanup code of error handling 2018-11-17 21:41:28 -08:00
Bob Sun
9a3131943f
Cleanup unneccessary error handling in the updatePasswordImage function 2018-11-17 21:27:06 -08:00
Bob Sun
f0eb9c47ed
Cleanup unneccessary function in AboutRepositoryTableViewController 2018-11-16 23:12:01 -08:00
Bob Sun
dfc13a37d3
Refactor logics of handling the PasswordStore model's properties 2018-11-16 22:28:19 -08:00
Bob Sun
c48fe3755e
Delete obsolete OTPScannerController 2018-11-15 20:17:00 -08:00
Danny Moesch
97368eb8a8 Fix #228: Trim URL strings before saving 2018-11-13 15:38:18 -08:00
Danny Moesch
b6f94f8814 Introduce string extension property 'trimmed' 2018-11-13 15:38:18 -08:00
Danny Moesch
7c12263458 Separate parser and helpers from Password class for better testability 2018-11-11 11:30:39 -08:00
Bob Sun
2abbceb2e9
Set name and url in Password non-optional
Name and url in Password class shouldn't be optional because we store
them in core data as non-optional. This change also help us to avoid
man unneccessary unwrap.
2018-11-10 22:38:12 -08:00
Yishi Lin
826357ca47 Open xkpasswd (generate memorable pwd) with the app 2018-10-01 01:15:26 +08:00
Yishi Lin
15e90198fe Add hints about how to download keys (fix #215) 2018-09-30 23:31:01 +08:00
Yishi Lin
3cc2182bc0 Fix #213: app now clears clipboard in 45s 2018-09-25 00:51:18 +08:00
Yishi Lin
1ab70cf6d7 Move codes from utils to password and passwordstore 2018-09-23 22:00:06 +08:00
Yishi Lin
421b5aed1d Show password generation settings automatically 2018-08-30 01:33:36 +08:00
Yishi Lin
aca01c8c72 Support generating memorable pwd: open xkpasswd 2018-08-30 01:26:45 +08:00
Yishi Lin
cacbeb57ee Output error messages when camera is disabled. 2018-08-30 00:42:38 +08:00
Yishi Lin
29b8313be5 Remember the last search choice between search current/all (issue #198) 2018-08-24 02:02:57 +01:00
Danny Moesch
ddddfda931 Use own parser for multiline values giving up Yams 2018-08-13 23:12:30 -07:00
Danny Moesch
904d04d71c Use computed properties instead of separate getter methods 2018-08-13 23:12:30 -07:00
Danny Moesch
f76721d7fe Simplify/Tweak Password.swift 2018-08-13 23:12:30 -07:00
Danny Moesch
b7a0cbaef6 Animate "AdditionField" struct to avoid usage of tuple "(String, String)" 2018-08-13 23:12:30 -07:00
Yishi Lin
1afef16fa1 Support swipe back when viewing folder #141 2018-04-12 01:07:19 +08:00
Yishi Lin
403fc5201e Fix warning about UI API called on background thread 2018-04-12 00:06:49 +08:00
Yishi Lin
433562584e Passcode lock 2018-04-10 05:18:16 +08:00
Yishi Lin
bbab5a62d5 Merge develop into new passcode lock 2018-03-24 09:42:55 +08:00
Danny Moesch
caa5ce77a3 Use YAML library to parse password files 2018-03-17 20:56:55 -07:00
Yishi Lin
da3c4f0bc0 Self-maintained passcode lock
- No cancel button anywhere in the passcode lock yet
- Poor UI
2018-01-29 03:23:34 +08:00