Commit Graph

8 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 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 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 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 43855edff7 Fix problem with window load outracing tauri init script 2020-07-30 17:37:55 +02:00
Martin Kleinschrodt a5f52e07ad Upgrade tauri
use fixed port for embedded server
Go back to using LocalStorage backend for tauri platform
2020-07-28 18:23:10 +02:00
Martin Kleinschrodt d4b03558dc Add experimental tauri package 2020-07-19 17:50:05 +02:00