undergroundwires 20b7d283b0 Add support for more depth in function calls
It allow pipes to be used in nested functions. Before, pipes were added
to a variable before variable content was evaluated/compiled by
another function. This commit ensures that the commits are evaluted in
expected order.

The issue is solved by stopping precompiling functions. It makes code
less complex. It adds to compile time of the script file but nothing
noticable and something optimizable.

The problem was that the call trees we're not executed in expected
order. E.g. let's say we have functionA that outputs something like
"Hello {{ $name| pipe }}", and we have function B calling with "name:
dear {{ $firstName}}", and at last we have a script that's calling
function B with "firstName: undergroundwires". Before, expressions were
evaluated directly, meaning that function A would become:
"Hello Dear {{ $firstName}}", as you see the pipe in function A
is lost here after being applied to function B and not reaching
$firstTime input value. Parsing expressions in the end allows for pipes
etc. to not get lost.

The commit also does necessary name refactorings and folder refactorings
to reflect logical changes. `FunctionCompiler` is renamed to
`SharedFunctionsParser` as precompiling is removed and it just simply
parses now. `/FunctionCall/` is moved to `/Function/Call`.

Finally, it improves documentation and adds more tests.
2021-10-04 18:13:25 +01:00
2021-09-09 22:12:59 +01:00
2020-08-10 18:40:16 +01:00
2021-01-13 16:31:20 +01:00
2019-12-31 16:23:45 +01:00
2020-08-09 03:00:13 +01:00
2021-08-28 10:22:47 +00:00
2020-07-14 18:20:15 +01:00
2019-12-31 16:23:45 +01:00
2019-12-31 16:23:45 +01:00
2021-04-15 18:34:40 +02:00
2019-12-31 16:23:45 +01:00

privacy.sexy

Enforce privacy & security best-practices on Windows and macOS, because privacy is sexy 🍑🍆

contributions welcome Language grade: JavaScript Maintainability Tests status Quality checks status Security checks status Bump & release status Deploy status Auto-versioned by bump-everywhere

Get started

  • Online version at https://privacy.sexy
    • 💡 No need to run any compiled software on your computer.
  • Alternatively download offline version for Windows, macOS or Linux.
    • 💡 Single click to execute your script.
  • Come back regularly to apply latest version for stronger privacy and security.

privacy.sexy application

Why

  • Rich tweak pool to harden security & privacy of the OS and other software on it
  • Free (both free as in beer and free as in speech)
  • No need to run any compiled software that has access to your system, just run the generated scripts
  • Have full visibility into what the tweaks do as you enable them
  • Ability to revert (undo) applied scripts
  • Everything is transparent: both application and its infrastructure are open-source and automated
  • Easily extendable with own powerful templating language
  • Each script is independently executable without cross-dependencies

Extend scripts

  • You can either create an issue
  • Or send a PR:
    1. Fork the repository
    2. Add more scripts in respective script collection in collections folder.
      • 📖 If you're unsure about the syntax you can refer to the collection files | documentation.
      • 🙏 For any new script, please add revertCode and docs values if possible.
    3. Send a pull request 👌

Commands

  • Project setup: npm install
  • Testing
    • Run unit tests: npm run test:unit
    • Run integration tests: npm run test:integration
    • Lint: npm run lint
  • Desktop app
    • Development: npm run electron:serve
    • Production: npm run electron:build to build an executable
  • Webpage
    • Development: npm run serve to compile & hot-reload for development.
    • Production: npm run build to prepare files for distribution.
    • Or run using Docker:
      1. Build: docker build -t undergroundwires/privacy.sexy:0.10.3 .
      2. Run: docker run -it -p 8080:80 --rm --name privacy.sexy-0.10.3 undergroundwires/privacy.sexy:0.10.3

Architecture overview

Application

  • Powered by TypeScript, Vue.js and Electron 💪
    • and driven by Domain-driven design, Event-driven architecture, Data-driven programming concepts.
  • Application uses highly decoupled models & services in different DDD layers.
  • 📖 Read more on • PresentationApplication

DDD + vue.js

AWS Infrastructure

AWS solution

  • It uses infrastructure from the following repository: aws-static-site-with-cd
    • Runs on AWS 100% serverless and automatically provisioned using GitHub Actions.
    • Maximum security & automation and minimum AWS costs are the highest priorities of the design.

GitOps: CI/CD to AWS

  • CI/CD is fully automated for this repo using different GIT events & GitHub actions.
    • Versioning, tagging, creation of CHANGELOG.md and releasing is automated using bump-everywhere action
  • Everything that's merged in the master goes directly to production.

CI/CD to AWS with GitHub Actions

Languages
TypeScript 91.5%
Vue 6.3%
JavaScript 0.9%
SCSS 0.8%
Python 0.4%