Commit Graph

59 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
Bruno Bernardino bd8b6fe9af
Update Tauri 2022-07-19 10:27:52 +01:00
Martin Kleinschrodt b00eb4fda9 Fix vulnerable dependencies (where possible) 2022-06-22 14:32:27 +02:00
Bruno Bernardino 195558db44
Linting 2022-06-20 11:03:24 +01:00
Bruno Bernardino 0ccb1b45f3
Update rust dependencies and fix build script 2022-06-20 11:01:57 +01:00
Bruno Bernardino bff6491cac
Update dependencies to first stable. 2022-06-20 10:16:53 +01:00
Bruno Bernardino afa013e3b6
Try to fix macos build now 2022-05-16 17:20:48 +01:00
Bruno Bernardino 3e401913fa
Fix macos build 2022-05-16 16:48:48 +01:00
Bruno Bernardino 04e7867413
Fix macos build, tweak variable names, remove unnecessary variable. 2022-05-16 16:25:46 +01:00
Bruno Bernardino 3ae8aa2c38
Update Tauri
This updates Tauri, its dependencies, and confirms that uploading attachments works (drag and drop didn't, at least on Linux, but I didn't dig too deep into it to find out why).

Fixes #386
2022-05-16 16:03:18 +01: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 fb9273d61d Include csp tag via webpack instead of usings tauris csp injection since their use of nonces conflicts with the way lit builds style sheets 2022-03-22 08:03:30 +01:00
Martin Kleinschrodt e0bb56cd9a Update tauri and other dependencies 2022-03-22 08:01:48 +01:00
Martin Kleinschrodt f547e5bcba Lock down all tauri apis, since we're currently not using any of them (except shell, which we're only using to open the help site, and I decided to just remove that functionality since we already have that in the "inner" app itself) 2022-03-21 14:25:14 +01:00
Martin Kleinschrodt b662832ebc Update Tauri readme 2022-02-25 16:25:33 +01:00
Martin Kleinschrodt 2b5b957a58 Automatically wrap lines in markdown files at 80 characters 2022-02-25 16:25:33 +01:00
Martin Kleinschrodt b37fb74e33 Load terms of service url from manifest file 2022-01-31 12:02:35 +01: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
Bruno Bernardino dfbc964070
Fix rust run 2022-01-03 21:58:27 +00:00
Bruno Bernardino e3c634374c
Implement review recommendations 2022-01-03 21:46:16 +00:00
Bruno Bernardino 46f17f651f
Simplify logic 2022-01-02 21:17:43 +00:00
Bruno Bernardino 8e80b688fe
Tweak build and release making. 2021-12-31 20:42:52 +00:00
Bruno Bernardino eef07cc2d4
Tweak release 2021-12-31 18:50:51 +00:00
Bruno Bernardino f57be7b855
Fixes signature URLs and missing tag 2021-12-31 13:19:05 +00:00
Bruno Bernardino 680ed9b79d
Add Tauri auto-updates
Closes #365

Still unfinished, I need to learn where are the build signatures stored.
2021-12-31 12:45:52 +00:00
Bruno Bernardino 58ee1362a7
Fix cargo app name 2021-12-30 12:31:59 +00:00
Bruno Bernardino 5449d51a07
Sign, but don't notarize the electron macos app
Show the proper app name in the menu for macOS
2021-12-30 12:24:16 +00:00
Bruno Bernardino 8abe90484d
Hide menus in Linux (they don't work).
Added proper Help menu, and disabled electron macos signing for non-prod builds.
2021-12-30 11:55:09 +00:00
Martin Kleinschrodt d1420a7667 Add help menu 2021-12-30 09:13:17 +01:00
Martin Kleinschrodt 6dad693828 Add application menu to Tauri app 2021-12-29 18:10:52 +01:00
Bruno Bernardino 3911a86a8a
Remove unnecessary code 2021-12-29 10:36:24 +00:00
Bruno Bernardino c3e4b1c298
Fix CORS issues in Tauri
Also, build with --debug (console) for non-prod environments
2021-12-28 19:41:17 +00:00
Bruno Bernardino 1d0bf11ca5
Fix tauri build! We can't have chunks, or the tauri optimizations fail.
Also remove one unnecessary file for `AppImage`
2021-12-28 12:59:40 +00:00
Bruno Bernardino b64f211487
Fix icon path, add new command to update tauri dependencies manually 2021-12-28 11:48:29 +00:00
Martin Kleinschrodt 87906cf159 Bring back "icon" setting since it seems to be required after all... 2021-12-28 12:41:28 +01:00
Martin Kleinschrodt 1ce0afdf68 Automatically generate tauri icons from single source file 2021-12-28 11:24:19 +01:00
Martin Kleinschrodt 431f789f42 Delete tauri-src/icons directory (it will be generated as part of the build process) 2021-12-28 11:21:35 +01:00
Martin Kleinschrodt 2abcef3908 Upgrade some rust dependencies 2021-12-28 11:20:57 +01:00
Bruno Bernardino 73304830b1
Tauri now builds and works!
Also moved the icons back, because the build doesn't respect the paths sent
2021-12-27 12:26:54 +00:00
Bruno Bernardino f72e848e65
Fix Tauri build
This isn't working, but has some attempts. It's currently blocked, because the built app just has many `ReferenceError: Can't find variable: process`. Something with Webpack isn't building properly, as even trying to just run `webpack serve` from inside yields the same result (I updated webpack, but the problem is in the setup/config, really). I also tried setting `resolve.fallback.process: require.resolve('process/browser')` ([among other things](https://pretagteam.com/question/webpack-5-uncaught-referenceerror-process-is-not-defined)), but the executed code comes from `@padloc/app`, so I'd have to add that package there, and it feels wrong. I'm positive I'm just doing something wrong with the setup, but already spent quite some time on it.

To test, pull this down, run `npm install`, and `npm run tauri:dev` (runs with `webpack` instead of `tauri`, just because the console errors are more useful).

In the process of trying to get this to work, I migrated the icons to the assets directory and updated them. I also tweaked the initial HTML to match the new v4 theme.

Related to #281
2021-12-27 10:43:39 +00:00
Bruno Bernardino 9b5b8f0529
Tweak building 2021-12-26 09:38:28 +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 54a161e502 Some dependency upgrades 2021-09-15 10:20:21 +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 238b53ad97 Add tauri:dev command 2021-06-28 18:08:34 +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 ab79688284 WIP 17 2021-02-25 08:14:20 +01:00