Commit Graph

364 Commits

Author SHA1 Message Date
Miroslav Šedivý 408556f08d allow usage without domain. 2021-07-29 21:55:47 +02:00
Miroslav Šedivý 0a44aceda0 extensions for settings show. 2021-07-27 21:31:54 +02:00
Miroslav Šedivý 6b8e77d20a fix memory error. 2021-07-27 21:17:03 +02:00
Miroslav Šedivý 767566d40d policies create from state. 2021-07-27 21:14:49 +02:00
Miroslav Šedivý fe29e2c221 fix typos. 2021-07-27 20:40:36 +02:00
Miroslav Šedivý 28a5c4e164 client settings show browser policy. 2021-07-27 20:26:30 +02:00
Miroslav Šedivý 5f02c51b3d update API. 2021-07-27 20:20:59 +02:00
Miroslav Šedivý 06e3c52e05 browser policy store type & path in labels. 2021-07-27 20:17:17 +02:00
Miroslav Šedivý 3bb7fc25cf Merge branch 'master' into policies 2021-07-27 19:44:26 +02:00
Miroslav Šedivý 2f2e28074b move labels to custom file. (#24) 2021-07-27 19:42:50 +02:00
Miroslav Šedivý 57a0ad67df Merge branch 'master' into policies 2021-07-25 15:53:16 +02:00
Miroslav Šedivý b05fe9ee39 fix favicon and title. 2021-07-25 15:52:56 +02:00
Miroslav Šedivý b50bc81ae1 add chromium extensions. 2021-07-25 15:41:28 +02:00
Miroslav Šedivý 63f1c40cab policies: remove homepage from API. 2021-07-25 14:52:21 +02:00
Miroslav Šedivý 4815e2aa62 profile dir name with browser. 2021-07-25 14:37:39 +02:00
Miroslav Šedivý e56594fb4c remove homepage from policies. 2021-07-25 13:29:45 +02:00
Miroslav Šedivý bc2a5bef6c do not mount duplicate mounts. 2021-07-25 12:39:13 +02:00
Miroslav Šedivý a215f184dd mount profile on persistent data. 2021-07-25 12:38:57 +02:00
Miroslav Šedivý 36d3f14611 client: split policies. 2021-07-25 12:38:09 +02:00
Miroslav Šedivý 77e204f1cd update policy read to internal path. 2021-07-25 02:01:32 +02:00
Miroslav Šedivý a37c0ec134 add policies to create and settings. 2021-07-25 01:55:04 +02:00
Miroslav Šedivý 97445b11e4 add policies API. 2021-07-25 01:53:14 +02:00
Miroslav Šedivý 9912786146 add policies config. 2021-07-25 00:48:38 +02:00
Miroslav Šedivý 3b363459e1 policies generator explicit. 2021-07-25 00:00:23 +02:00
Miroslav Šedivý f07f8b0f4d firefox policies parse. 2021-07-24 23:57:11 +02:00
Miroslav Šedivý b2a14c7916 chromium policies parse. 2021-07-24 23:47:59 +02:00
Miroslav Šedivý eb88bfd70e update policies + chromium. 2021-07-24 23:25:29 +02:00
Miroslav Šedivý 1881caa8cf firefox policies generator PoC. 2021-07-24 16:39:53 +02:00
Miroslav Šedivý cdf3bf115f embed swal2 as static html file. 2021-07-24 16:03:12 +02:00
Miroslav Šedivý fac5292470 text proofread. 2021-07-17 20:31:32 +02:00
Miroslav Šedivý f51cbb1470 add storage to docs, fixes #22. 2021-07-17 20:27:52 +02:00
Miroslav Šedivý 2406694c04 http not found handler function. 2021-07-17 20:07:59 +02:00
Miroslav Šedivý 7e11074932 client assets relative. 2021-07-17 19:52:47 +02:00
Miroslav Šedivý 97c47641bf private storage: chown only if not exists #19. 2021-06-19 14:28:00 +02:00
Miroslav Šedivý b183c1e052 github actions. 2021-06-13 14:36:15 +02:00
Miroslav Šedivý d52b057e8d Merge pull request #17 from whalehub/code-refactoring
install: Code refactoring
2021-06-13 12:00:54 +02:00
Aaron a3cc707399 install: Convert NEKO_IMAGES variable to array
Signed-off-by: Aaron <admin@datahoarder.dev>
2021-06-13 10:43:42 +02:00
Aaron e36570df14 install: Code refactoring
Formats the `install` script in accordance with Google's Shell Style Guide using `shfmt` and applies fixes for issues that were found by the static analysis tool `shellcheck`.

Style changes
- Consistent two space indentation.
- Consistent formatting of `for ... do` loops and `if ... then` code blocks.
- Consistent brace-delimiting of variable names.
- Consistent upper-case spelling of variable names.
- Consistent alphabetic ordering of packages installed/removed by `apt-get`.
- Explicit error codes for `exit` commands.
- All error messages sent to `STDERR`.
- Use of `[[ -z "${VAR}" ]]` instead of `[[ "${VAR}" == "" ]]`.

Shellcheck fixes
- Double quote variables to prevent globbing and word splitting. [SC2086]
- Use `{ cmd1; cmd2; } >> file` instead of individual redirects. [SC2129]
- Useless `echo`. Instead of `echo $(cmd)`, just use `cmd`. [SC2005]
- To redirect stdout+stderr, `2>&1` must be last. [SC2069]
- `read` without `-r` will mangle backslashes. [SC2162]

The variable `NEKO_IMAGES` is purposefully left unquoted in the `for ... do` loop on L245 since it is an array where we do want word splitting to happen.

Signed-off-by: Aaron <admin@datahoarder.dev>
2021-06-13 10:27:31 +02:00
Miroslav Šedivý f209c3765d Merge pull request #16 from whalehub/patch-1
install: Simplify echo sequence
2021-06-09 16:00:50 +02:00
Aaron b9485d8586 install: Simplify echo sequence
The shell built-in "echo" preserves newlines by default, so there is no need to issue a new echo command for every new line in a formatted text. This version is not only faster, but easier and less error prone to edit as well.

Signed-off-by: Aaron <admin@datahoarder.dev>
2021-06-09 14:25:46 +02:00
Miroslav Šedivý 3bad871612 clarify authentication #13. 2021-06-08 10:48:42 +02:00
Miroslav Šedivý 2d8e009376 add custom neko images in install script. 2021-06-08 10:34:00 +02:00
Miroslav Šedivý 79984eaf28 add google-chrome. 2021-06-08 10:31:36 +02:00
Miroslav Šedivý 9252df12a4 use reload icon. 2021-05-31 22:21:23 +02:00
Miroslav Šedivý 4baacdd704 add recreate to GUI. 2021-05-31 22:18:01 +02:00
Miroslav Šedivý 9a3e78fa8c add coom recreate #12. 2021-05-31 21:32:41 +02:00
Miroslav Šedivý 0b381ab264 move container start to api. 2021-05-31 21:15:04 +02:00
Miroslav Šedivý 654bfb3c01 remove unused utils. 2021-05-31 21:03:31 +02:00
Miroslav Šedivý 28ea3e678a remove unnecessary exit from install. 2021-05-31 21:00:42 +02:00
Miroslav Šedivý 8cf90ad8a5 traefik typo in example email. 2021-05-31 20:59:44 +02:00