Commit Graph

99 Commits

Author SHA1 Message Date
Martin Kleinschrodt 2ea970b261
Allow selectively disabling all billing functionality on certain platforms (#505)
* Allow selectively disabling all billing functionality on certain platforms

* Remove check for org metadata param in customer

* Fix linter complaint
2022-07-26 10:41:30 +01:00
Martin Kleinschrodt b00eb4fda9 Fix vulnerable dependencies (where possible) 2022-06-22 14:32:27 +02:00
Bruno Bernardino 8ef09eb7be
Security Audit v1 (#414)
This adds a security audit page with automatic checks for:

- Reused passwords
- Weak passwords
- Compromised passwords

Storing the audit information in the items themselves.

Co-authored-by: Martin Kleinschrodt <martin@maklesoft.com>
2022-04-06 07:18:50 +01:00
Martin Kleinschrodt e0bb56cd9a Update tauri and other dependencies 2022-03-22 08:01:48 +01:00
Martin Kleinschrodt c4e67381ee Use maildev for catching and parsing verification emails in e2e tests 2022-02-18 12:28:36 +01:00
Martin Kleinschrodt b37fb74e33 Load terms of service url from manifest file 2022-01-31 12:02:35 +01:00
Bruno Bernardino 8ecb82c395
Finished setting up the signup and login tests.
There's still a problem of not being able to reproduce from a clean slate because the `packages/server/data` folder is always being used, and the browser appears to keep some state, somehow.
2022-01-24 18:13:10 +00:00
Bruno Bernardino 1589b05baa
CI: Full Release (#376)
* CI: Full Release

This implements a full release action that takes care of creating a tag, release, then building and uploading builds for all targets.
2022-01-17 17:32:21 +00:00
Martin Kleinschrodt bbb897910c Add PL_APP_NAME to environment plugin 2022-01-14 16:25:09 +01:00
Martin Kleinschrodt 40f1e77d51 Add ios device orientation settings to config.xml; use more appropriate statusbar-spacing on devices with notch 2022-01-11 10:04:47 +01:00
Martin Kleinschrodt a2307b8d3b Change it back so that patch-ios script is only run for ios, since apparently adding ios project fails / is skipped for the android build which results in a file not found error 2021-12-30 11:23:02 +01:00
Martin Kleinschrodt e81d486bea Add missing comma *facepalm* 2021-12-30 11:16:06 +01:00
Martin Kleinschrodt d4d50e4687 Add missing xml-js dependency 2021-12-30 11:13:01 +01:00
Martin Kleinschrodt 73f44b97c9 Change cordova package name to "@padloc/cordova" to make it play nice with lerna 2021-12-30 11:12:12 +01:00
Martin Kleinschrodt 312570e913 Update config.xml with app name and current version and build number; reorganise npm scripts 2021-12-30 11:06:17 +01:00
Martin Kleinschrodt b2b1437683 Add https to img-src csp directive to allow loading favicons 2021-12-30 10:37:21 +01:00
Bruno Bernardino ebb479a4b2
CI: Cordova - Build iOS
This implements building the iOS package + uploading the artifact.

It builds successfully though I was unable to get past the loading screen, even locally (not sure what's wrong, might need help).

The QRScanner problem was a journey. It started with trying to install the package via url, from https://github.com/padloc/cordova-plugin-qrscanner and I ran into https://github.com/lerna/lerna/issues/2674 then I tried to simply publish a new package name (`padloc-cordova-plugin-qrscanner`), but as I was replacing the plugin name in the code, it started blowing up in a few different places, and it just felt wrong. Finally, I just created a patch command in `npm`, which can later evolve into a bash script or whatever we need. It's not pretty, but that worked!

The signed command doesn't run yet for iOS because building for the app store will be a separate PR, for publishing, like the other targets.

This will close the development/CI/CD part of #330
2021-12-29 20:58:35 +00:00
Bruno Bernardino 36ac5f2bf8
Try windows again, without forcing prepare script automatically 2021-12-24 21:21:01 +00:00
Bruno Bernardino a7a8d476d9
Bring back cordova prepare. 2021-12-24 09:45:54 +00:00
Bruno Bernardino f5a88bacea
Remove cordova prepare 2021-12-24 09:40:05 +00:00
Bruno Bernardino 74099cda5d
Fix sdk build tools version requirement 2021-12-24 09:13:53 +00:00
Bruno Bernardino 080c3cb35c
Add requirements for cordova building 2021-12-24 09:07:48 +00:00
Bruno Bernardino 753f8d6aa7
Archive Android APK, add iOS build option (untested) 2021-12-24 08:39:23 +00:00
Martin Kleinschrodt ae3c18afbc Fix undefined in colors.xml resource file 2021-12-24 09:17:14 +01:00
Bruno Bernardino ad32254846
CI: Build Cordova
Initial work to build Android APK, via Cordova. Still largely untested because I haven't been able to get it to build locally, over Android SDK issues.
2021-12-23 12:24:16 +00:00
Bruno Bernardino 50ae105b45
A few improvements, requested from the review:
- File reading is now happening later in the process;
- File reading now reuses methods from `core/attachment`;
- Errors thrown in the import now include an error message;
- Adds prettier command to "prettify" all files;
- Adds prettier command to check for files not conforming to prettier's config;
- Makes CI run the prettier:check command;
- Changes `export const method = () => {};` to `export function method() {}` in the `1pux-parser` file;
- Other minor consistency changes/fixes/improvements;
- Actually ran prettier on every file, and it had a lot of things to tweak.
2021-12-20 15:01:25 +00:00
Martin Kleinschrodt 7d262e35be Fix build issues by updating dependencies and regenerating lock files 2021-12-16 10:33:05 +01:00
Bruno Bernardino 5d0d688968 Lock dependencies' versions
This implements `.nvmrc` and `.npmrc` files, as well as locking `package.json` versions, in order to get us closer to reproducible builds and more stable environment.

Closes #320
2021-12-16 09:01:59 +01:00
Martin Kleinschrodt ff0b4d3c40 Resolve assets dir relative to root dir, not current file 2021-11-19 15:58:09 +01:00
Martin Kleinschrodt d0e5924953 Some house keeping / cleanup 2021-10-21 13:32:08 +02:00
Martin Kleinschrodt a5ebd4177b Make sure links in markdown content are opened in external browser 2021-10-20 10:28:52 +02:00
Martin Kleinschrodt 649ed1284c Add separate vendor version property 2021-10-17 13:47:33 +02:00
Martin Kleinschrodt 80ef149559 Add support page 2021-10-14 15:58:24 +02:00
Martin Kleinschrodt bde6ef77d9 Automatically generate cordova icons from singe app icon image 2021-10-12 17:33:49 +02:00
Martin Kleinschrodt b5d3bb2a4a Try preventing oauth popups from being blocked where possible 2021-09-28 09:13:27 +02:00
Martin Kleinschrodt 23ac1969ec First pass at refactoring login/signup flow 2021-09-26 09:08:48 +02:00
Martin Kleinschrodt feed593472 Upgrade android platform; remove deprecated plugins 2021-09-01 15:33:43 +02:00
Martin Kleinschrodt c6d7759945 Rename iOSDeviceNames to appleDeviceNames 2021-09-01 11:26:12 +02:00
Martin Kleinschrodt 2d387c0f3b Set device description as a field instead of using a getter - use better device descriptions on cordova 2021-09-01 09:46:04 +02:00
Martin Kleinschrodt 8096cfb31c Update cordova config 2021-09-01 09:45:00 +02:00
Martin Kleinschrodt c92bb61bba Fix isSupported method of biometric keystore on cordova 2021-08-31 14:56:42 +02:00
Martin Kleinschrodt 4d0241aa2c Fix android build 2021-08-31 08:13:27 +02:00
Martin Kleinschrodt 5ba4ded044 Update styles to account for save areas on iPhone 2021-08-30 13:03:39 +02:00
Martin Kleinschrodt 30cf0995a7 Upgrade SimpleWebAuthn dependency 2021-08-29 13:41:58 +02:00
Martin Kleinschrodt 6b2ec54664 Add support for biometric unlock on cordova via new MFAuthenticator Type 2021-08-29 11:20:38 +02:00
Martin Kleinschrodt 63076556d8 Bump npm version to 4.0.0; clean up/fix some dependencies 2021-08-06 15:07:25 +02:00
Martin Kleinschrodt 4e748dec1f First pass at implementing biometric unlock using webauthn 2021-06-16 17:20:49 +02:00
Martin Kleinschrodt 3444dc9e7f WIP 35 2021-05-30 15:53:51 +02:00
Martin Kleinschrodt 00da3cc59d v3.1.3 2020-10-25 15:13:53 +01:00
Martin Kleinschrodt 71578d3f1d Bump version 2020-07-26 17:49:04 +02:00