Merge pull request #497 from padloc/v4

v4
This commit is contained in:
Bruno Bernardino 2022-07-19 10:48:26 +01:00 committed by GitHub
commit 1699dd06c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
497 changed files with 204594 additions and 130225 deletions

81
.do/deploy.template.yaml Normal file
View File

@ -0,0 +1,81 @@
name: padloc
region: fra
envs:
- key: PL_EMAIL_SERVER
scope: RUN_TIME
- key: PL_EMAIL_PORT
scope: RUN_TIME
- key: PL_EMAIL_USER
scope: RUN_TIME
type: SECRET
- key: PL_EMAIL_PASSWORD
scope: RUN_TIME
type: SECRET
- key: PL_EMAIL_FROM
scope: RUN_TIME
- key: PL_REPORT_ERRORS
scope: RUN_TIME
- key: PL_DATA_STORAGE_HOST
scope: RUN_TIME
- key: PL_DATA_STORAGE_TLS
scope: RUN_TIME
value: "true"
- key: PL_DATA_STORAGE_TLS_CA_FILE
scope: RUN_TIME
value: do-ca.crt
- key: PL_DATA_STORAGE_PROTOCOL
scope: RUN_TIME
value: mongodb+srv
- key: PL_ATTACHMENT_STORAGE_ENDPOINT
scope: RUN_TIME
value: https://fra1.digitaloceanspaces.com
- key: PL_ATTACHMENT_STORAGE_REGION
scope: RUN_TIME
value: FRA1
- key: PL_ATTACHMENT_STORAGE_ACCESS_KEY_ID
scope: RUN_TIME
type: SECRET
- key: PL_ATTACHMENT_STORAGE_SECRET_ACCESS_KEY
scope: RUN_TIME
type: SECRET
- key: PL_ATTACHMENT_STORAGE_BUCKET
scope: RUN_TIME
- key: PL_DATA_STORAGE_USERNAME
scope: RUN_TIME
- key: PL_DATA_STORAGE_PASSWORD
scope: RUN_TIME
type: SECRET
- key: PL_SERVER_URL
scope: RUN_TIME
value: ${server.PUBLIC_URL}
- key: PL_PWA_URL
scope: RUN_TIME
value: ${pwa.PUBLIC_URL}
services:
- build_command: npm install
environment_slug: node-js
github:
branch: v4
deploy_on_push: true
repo: padloc/padloc
http_port: 3000
instance_count: 1
instance_size_slug: basic-xs
name: server
routes:
- path: /api
run_command: cd packages/server && npm start
source_dir: /
static_sites:
- build_command: npm install && cd packages/pwa && npm run build
catchall_document: index.html
environment_slug: node-js
github:
branch: v4
deploy_on_push: true
repo: padloc/padloc
name: pwa
output_dir: packages/pwa/dist
routes:
- path: /
source_dir: /

View File

@ -1,5 +0,0 @@
node_modules
app/bower_components
app/src/padlock.js
test
vendor

View File

@ -1,43 +0,0 @@
{
"parserOptions": {
"ecmaVersion": "2017",
"sourceType": "module"
},
"env": {
"node": true,
"es6": true,
"browser": true
},
"extends": "eslint:recommended",
"rules": {
"brace-style": "off",
"camelcase": "error",
"comma-spacing": "warn",
"comma-style": "error",
"curly": "error",
"eol-last": "warn",
"key-spacing": "warn",
"keyword-spacing": "warn",
"linebreak-style": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 1, "maxEOF": 0 }],
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "off",
"no-use-before-define": "warn",
"no-whitespace-before-property": "error",
"quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"space-in-parens": ["error", "never"],
"space-infix-ops": "warn",
"space-unary-ops": "error",
"spaced-comment": "warn",
"strict": "off",
"wrap-iife": ["error", "inside"]
}
}

97
.github/workflows/build-cordova.yml vendored Normal file
View File

@ -0,0 +1,97 @@
name: Build Cordova
on:
workflow_dispatch:
inputs:
environment:
type: environment
default: "Local"
targets:
type: choice
description: "Targets to build"
default: "All"
required: true
options:
- "All"
- "Android"
- "iOS"
push:
branches:
- "v4"
- "master"
- "feature/**"
- "fix/**"
paths:
- "packages/app/**"
- "packages/core/**"
- "packages/cordova/**"
- "packages/locale/**"
- "assets/**"
jobs:
android:
if: ${{ github.event.inputs.targets != 'iOS' }}
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment || 'Local' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: sdkman/sdkman-action@master
with:
candidate: gradle
version: 7.2
- uses: android-actions/setup-android@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Create android-upload-key.keystore
run: |
cd packages/cordova
echo '${{ secrets.PL_ANDROID_UPLOAD_KEY_BASE64}}' > android-upload-key.keystore.txt
base64 -d android-upload-key.keystore.txt > android-upload-key.keystore
rm -f android-upload-key.keystore.txt
- name: Build (Android)
env:
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
PL_ANDROID_STORE_PASSWORD: ${{ secrets.PL_ANDROID_STORE_PASSWORD }}
PL_ANDROID_KEYSTORE_ALIAS: ${{ secrets.PL_ANDROID_KEYSTORE_ALIAS }}
run: npm run cordova:build:android:signed
- name: Archive Signed APK (Android)
uses: actions/upload-artifact@v2
with:
name: padloc-android-${{ github.sha }}-signed.apk
path: packages/cordova/platforms/android/app/build/outputs/apk/release/app-release.apk
if-no-files-found: error
- name: Delete android-upload-key.keystore
run: rm -f ./packages/cordova/android-upload-key.keystore
if: always()
ios:
if: ${{ github.event.inputs.targets != 'Android' }}
runs-on: macos-11
environment: ${{ github.event.inputs.environment || 'Local' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build (iOS)
env:
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
run: npm run cordova:build:ios
- name: Archive Unsigned App (iOS)
uses: actions/upload-artifact@v2
with:
name: padloc-ios-${{ github.sha }}-unsigned.app
path: packages/cordova/platforms/ios/build/emulator/Padloc.app
if-no-files-found: error

193
.github/workflows/build-electron.yml vendored Normal file
View File

@ -0,0 +1,193 @@
name: Build Electron
on:
workflow_dispatch:
inputs:
environment:
type: environment
default: "Local"
targets:
type: choice
description: "Targets to build"
default: "All"
required: true
options:
- "All"
- "Linux"
- "macOS"
- "Windows"
push:
branches:
- "v4"
- "master"
- "feature/**"
- "fix/**"
paths:
- "packages/electron/**"
- "assets/**"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
linux:
if: ${{ !github.event.inputs.targets || github.event.inputs.targets == 'All' || github.event.inputs.targets == 'Linux' }}
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment || 'Local' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- uses: actions/cache@v2
with:
path: |
~/.npm
~/.nvm
node_modules
packages/electron/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install Flatpak build tools
run: |
sudo apt install flatpak flatpak-builder
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build
run: |
npm run electron:build
npm run electron:build:flatpak
env:
PL_PWA_URL: ${{ secrets.PL_PWA_URL }}
- name: Archive AppImage
uses: actions/upload-artifact@v2
with:
name: padloc-linux-${{ github.sha }}-unsigned.AppImage
path: packages/electron/dist/*.AppImage
if-no-files-found: error
- name: Archive deb
uses: actions/upload-artifact@v2
with:
name: padloc-linux-${{ github.sha }}-unsigned.deb
path: packages/electron/dist/*.deb
if-no-files-found: error
- name: Archive snap
uses: actions/upload-artifact@v2
with:
name: padloc-linux-${{ github.sha }}-unsigned.snap
path: packages/electron/dist/*.snap
if-no-files-found: error
- name: Archive flatpak
uses: actions/upload-artifact@v2
with:
name: padloc-linux-${{ github.sha }}-unsigned.flatpak
path: packages/electron/dist/*.flatpak
if-no-files-found: error
- name: Archive Unpacked
uses: actions/upload-artifact@v2
with:
name: padloc-linux-${{ github.sha }}-unpacked
path: packages/electron/dist/linux-unpacked
if-no-files-found: error
macos_unsigned:
if: ${{ !github.event.inputs.targets || github.event.inputs.targets == 'All' || github.event.inputs.targets == 'macOS' }}
runs-on: macos-11
environment: ${{ github.event.inputs.environment || 'Local' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- uses: actions/cache@v2
with:
path: |
~/.npm
~/.nvm
node_modules
packages/electron/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build
run: |
npm run electron:build
env:
PL_PWA_URL: ${{ secrets.PL_PWA_URL }}
CSC_IDENTITY_AUTO_DISCOVERY: false
- name: Archive dmg
uses: actions/upload-artifact@v2
with:
name: padloc-macos-${{ github.sha }}-unsigned.dmg
path: packages/electron/dist/*.dmg
if-no-files-found: error
macos_signed:
if: ${{ !github.event.inputs.targets || github.event.inputs.targets == 'All' || github.event.inputs.targets == 'macOS' }}
runs-on: macos-11
environment: ${{ github.event.inputs.environment || 'Local' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- uses: actions/cache@v2
with:
path: |
~/.npm
~/.nvm
node_modules
packages/electron/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build
run: |
npm run electron:build
env:
CSC_LINK: ${{ secrets.PL_MACOS_SIGNING_CERT_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.PL_MACOS_SIGNING_CERT_PASSWORD }}
PL_PWA_URL: ${{ secrets.PL_PWA_URL }}
- name: Archive dmg
uses: actions/upload-artifact@v2
with:
name: padloc-macos-${{ github.sha }}-signed.dmg
path: packages/electron/dist/*.dmg
if-no-files-found: error
windows:
if: ${{ !github.event.inputs.targets || github.event.inputs.targets == 'All' || github.event.inputs.targets == 'Windows' }}
runs-on: windows-2019
environment: ${{ github.event.inputs.environment || 'Local' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- uses: actions/cache@v2
with:
path: |
~/.npm
~/.nvm
node_modules
packages/electron/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build
run: |
npm run electron:build
env:
PL_PWA_URL: ${{ secrets.PL_PWA_URL }}
- name: Archive exe
uses: actions/upload-artifact@v2
with:
name: padloc-windows-${{ github.sha }}-unsigned.exe
path: packages/electron/dist/*.exe
if-no-files-found: error

View File

@ -1,44 +1,99 @@
name: "Build And Publish Desktop Tauri Apps"
on: [workflow_dispatch]
name: Build Tauri
on:
workflow_dispatch:
inputs:
environment:
type: environment
default: "Local"
push:
branches:
- "v4"
- "master"
- "feature/**"
- "fix/**"
paths:
- "packages/app/**"
- "packages/core/**"
- "packages/tauri/**"
- "packages/locale/**"
- "assets/**"
jobs:
build_and_publish:
name: Build And Publish
build:
environment: ${{ github.event.inputs.environment || 'Local' }}
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 12
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install tauri bundler
run: cargo install tauri-bundler --force
- name: install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: install app dependencies and bootstrap packages
run: npm install
- uses: tauri-apps/tauri-action@v0
env:
PL_SERVER_URL: https://api.padloc.app
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: tauri-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "Padloc (Tauri Edition) v__VERSION__"
body: "WARNING: The builds in this release are experimental. Use at your own risk!"
draft: true
prerelease: true
projectPath: packages/tauri
npmScript: build
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build (debug)
if: github.event.inputs.environment != 'Production'
run: npm run tauri:build:debug
env:
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
- name: Build (production)
if: github.event.inputs.environment == 'Production'
run: npm run tauri:build
env:
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
- name: Archive AppImage
uses: actions/upload-artifact@v2
if: matrix.platform == 'ubuntu-latest'
with:
name: padloc-linux-${{ github.sha }}-unsigned.AppImage
path: packages/tauri/src-tauri/target/debug/bundle/appimage/padloc*.AppImage
if-no-files-found: error
- name: Archive deb
uses: actions/upload-artifact@v2
if: matrix.platform == 'ubuntu-latest'
with:
name: padloc-linux-${{ github.sha }}-unsigned.deb
path: packages/tauri/src-tauri/target/debug/bundle/deb/*.deb
if-no-files-found: error
- name: Archive dmg
uses: actions/upload-artifact@v2
if: matrix.platform == 'macos-latest'
with:
name: padloc-macos-${{ github.sha }}-unsigned.dmg
path: packages/tauri/src-tauri/target/debug/bundle/dmg/*.dmg
if-no-files-found: error
- name: Archive app
uses: actions/upload-artifact@v2
if: matrix.platform == 'macos-latest'
with:
name: padloc-macos-${{ github.sha }}-unsigned.app
path: packages/tauri/src-tauri/target/debug/bundle/macos/*.app
if-no-files-found: error
- name: Archive msi
uses: actions/upload-artifact@v2
if: matrix.platform == 'windows-latest'
with:
name: padloc-windows-${{ github.sha }}-unsigned.msi
path: packages/tauri/src-tauri/target/debug/bundle/msi/*.msi
if-no-files-found: error

View File

@ -0,0 +1,83 @@
name: Build Web Extension
on:
workflow_dispatch:
inputs:
environment:
type: environment
default: "Local"
build:
type: string
description: "Build number (int, 3 max digits)"
default: "0"
required: true
push:
branches:
- "v4"
- "master"
- "feature/**"
- "fix/**"
paths:
- "packages/app/**"
- "packages/core/**"
- "packages/extension/**"
- "packages/locale/**"
- "assets/**"
jobs:
archive:
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment || 'Local' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
npm i -g npm@8.2.0 web-ext@6.6.0
npm ci
- name: Build
env:
RELEASE_BUILD: ${{ github.event.inputs.build || '0' }}
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
PL_BUILD_ENV: ${{ secrets.PL_BUILD_ENV }}
run: npm run web-extension:build
- name: Sign for Firefox
if: github.event.inputs.environment == 'Beta' || github.event.inputs.environment == 'Production'
run: cd packages/extension/dist && web-ext sign --id="${{ secrets.PL_WEB_EXTENSION_FIREFOX_ID }}" --channel=unlisted --api-key=${{ secrets.PL_WEB_EXTENSION_FIREFOX_API_KEY }} --api-secret=${{ secrets.PL_WEB_EXTENSION_FIREFOX_API_SECRET }}
- name: Archive Signed Web Extension (Firefox)
if: github.event.inputs.environment == 'Beta' || github.event.inputs.environment == 'Production'
uses: actions/upload-artifact@v2
with:
name: padloc-web-extension-${{ github.sha }}-signed.xpi
path: packages/extension/dist/web-ext-artifacts/*.xpi
if-no-files-found: error
- name: Archive Unsigned Web Extension (Chrome/Edge)
uses: actions/upload-artifact@v2
with:
name: padloc-web-extension-${{ github.sha }}-unsigned
path: |
packages/extension/dist
!packages/extension/dist/web-ext-artifacts
!packages/extension/dist/*.xpi
if-no-files-found: error
- name: Build ZIP for signing Chrome/Edge Extension
uses: cardinalby/webext-buildtools-pack-extension-dir-action@v1
with:
extensionDir: packages/extension/dist
zipFilePath: packages/extension/padloc.zip
zipIgnore: web-ext-artifacts/**|*.xpi
- name: Sign for Chrome/Edge
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
with:
zipFilePath: packages/extension/padloc.zip
crxFilePath: packages/extension/padloc-signed.crx
privateKey: ${{ secrets.PL_WEB_EXTENSION_CHROME_CRX_PRIVATE_KEY }}
- name: Archive Signed Web Extension (Chrome/Edge)
uses: actions/upload-artifact@v2
with:
name: padloc-web-extension-${{ github.sha }}-signed.crx
path: packages/extension/padloc-signed.crx
if-no-files-found: error

597
.github/workflows/publish-release.yml vendored Normal file
View File

@ -0,0 +1,597 @@
name: Publish Release
on:
workflow_dispatch:
inputs:
environment:
type: environment
default: "Beta"
vendor_version:
type: string
description: "Vendor Version (semver) for the release -- what will be visible."
default: "0.0.1"
required: true
build:
type: string
description: "Build number (int, 3 max digits) for the release."
default: "0"
required: true
jobs:
create_release_tag:
name: "Create release tag"
environment: ${{ github.event.inputs.environment || 'Beta' }}
env:
PL_VENDOR_VERSION: ${{ github.event.inputs.vendor_version || '0.0.1' }}
PL_VENDOR_BASE_URL: "https://github.com/${{ github.repository }}"
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.create_release.outputs.id }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build tauri-update.json
run: cd packages/tauri && node generate-tauri-update-file.js
- uses: softprops/action-gh-release@v1
id: create_release
name: Create release and add tauri-update.json
with:
tag_name: "v${{ env.PL_VENDOR_VERSION }}"
name: "v${{ env.PL_VENDOR_VERSION }}"
body: "v${{ env.PL_VENDOR_VERSION }}"
prerelease: true
draft: false
files: packages/tauri/tauri-update.json
fail_on_unmatched_files: true
release_web_extension:
name: "Release web extension"
environment: ${{ github.event.inputs.environment || 'Beta' }}
needs: create_release_tag
env:
RELEASE_BUILD: ${{ github.event.inputs.build || '0' }}
PL_VENDOR_VERSION: ${{ github.event.inputs.vendor_version || '0.0.1' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
npm i -g npm@8.2.0 web-ext@6.6.0
npm ci
- name: Build
env:
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
PL_BUILD_ENV: ${{ secrets.PL_BUILD_ENV }}
run: npm run web-extension:build
- name: Sign for Firefox
run: cd packages/extension/dist && web-ext sign --id="${{ secrets.PL_WEB_EXTENSION_FIREFOX_ID }}" --channel=unlisted --api-key=${{ secrets.PL_WEB_EXTENSION_FIREFOX_API_KEY }} --api-secret=${{ secrets.PL_WEB_EXTENSION_FIREFOX_API_SECRET }}
- name: Upload Signed Web Extension (Firefox)
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/extension/dist/web-ext-artifacts/padloc-${{ env.PL_VENDOR_VERSION }}.${{ env.RELEASE_BUILD }}.xpi
asset_name: padloc-web-extension-${{ env.PL_VENDOR_VERSION }}.${{ env.RELEASE_BUILD }}.xpi
prerelease: true
- name: Pack for Chrome/Edge Extension
uses: cardinalby/webext-buildtools-pack-extension-dir-action@v1
with:
extensionDir: packages/extension/dist
zipFilePath: packages/extension/padloc.zip
zipIgnore: web-ext-artifacts/**|*.xpi
- name: Upload Unsigned Web Extension (Chrome/Edge)
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/extension/padloc.zip
asset_name: padloc-web-extension-${{ env.PL_VENDOR_VERSION }}.${{ env.RELEASE_BUILD }}-unsigned.zip
prerelease: true
- name: Sign for Chrome/Edge
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
with:
zipFilePath: packages/extension/padloc.zip
crxFilePath: packages/extension/padloc-signed.crx
privateKey: ${{ secrets.PL_WEB_EXTENSION_CHROME_CRX_PRIVATE_KEY }}
- name: Upload Signed Web Extension (Chrome/Edge)
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/extension/padloc-signed.crx
asset_name: padloc-web-extension-${{ env.PL_VENDOR_VERSION }}.${{ env.RELEASE_BUILD }}.crx
prerelease: true
- name: Generate checksum (xpi)
run: |
cd packages/extension/dist/web-ext-artifacts
sha256sum padloc*.xpi > sha256sum-xpi.txt
- name: Upload checksum (xpi)
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/extension/dist/web-ext-artifacts/sha256sum-xpi.txt
asset_name: sha256sum-xpi.txt
prerelease: true
- name: Generate checksum (crx)
run: |
cd packages/extension
sha256sum padloc-signed.crx > sha256sum-crx.txt
- name: Upload checksum (crx)
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/extension/sha256sum-crx.txt
asset_name: sha256sum-crx.txt
prerelease: true
release_tauri:
name: "Release Tauri apps"
environment: ${{ github.event.inputs.environment || 'Beta' }}
needs: create_release_tag
env:
RELEASE_ID: ${{ needs.create_release_tag.outputs.release_id }}
PL_VENDOR_VERSION: ${{ github.event.inputs.vendor_version || '0.0.1' }}
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Install coreutils
if: matrix.platform == 'macos-latest'
run: |
brew install coreutils
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- uses: tauri-apps/tauri-action@v0.3.1
env:
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
ENABLE_CODE_SIGNING: true
APPLE_CERTIFICATE: ${{ secrets.PL_MACOS_SIGNING_CERT_BASE64 }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.PL_MACOS_SIGNING_CERT_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.PL_MACOS_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.PL_MACOS_NOTARIZE_APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.PL_MACOS_NOTARIZE_PASSWORD }}
with:
releaseId: ${{ env.RELEASE_ID }}
projectPath: packages/tauri
- name: Generate checksum (AppImage)
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/tauri/src-tauri/target/release/bundle/appimage
sha256sum padloc*.AppImage > sha256sum-appimage.txt
- name: Upload checksum (AppImage)
if: matrix.platform == 'ubuntu-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/tauri/src-tauri/target/release/bundle/appimage/sha256sum-appimage.txt
asset_name: sha256sum-tauri-appimage.txt
prerelease: true
- name: Generate checksum (deb)
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/tauri/src-tauri/target/release/bundle/deb
sha256sum *.deb > sha256sum-deb.txt
- name: Upload checksum (deb)
if: matrix.platform == 'ubuntu-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/tauri/src-tauri/target/release/bundle/deb/sha256sum-deb.txt
asset_name: sha256sum-tauri-deb.txt
prerelease: true
- name: Generate checksum (dmg)
if: matrix.platform == 'macos-latest'
run: |
cd packages/tauri/src-tauri/target/release/bundle/dmg
sha256sum *.dmg > sha256sum-dmg.txt
- name: Upload checksum (dmg)
if: matrix.platform == 'macos-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/tauri/src-tauri/target/release/bundle/dmg/sha256sum-dmg.txt
asset_name: sha256sum-tauri-dmg.txt
prerelease: true
- name: Generate checksum (msi)
if: matrix.platform == 'windows-latest'
run: |
cd packages/tauri/src-tauri/target/release/bundle/msi
sha256sum *.msi > sha256sum-msi.txt
- name: Upload checksum (msi)
if: matrix.platform == 'windows-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/tauri/src-tauri/target/release/bundle/msi/sha256sum-msi.txt
asset_name: sha256sum-tauri-msi.txt
prerelease: true
release_electron:
name: "Release Electron apps"
environment: ${{ github.event.inputs.environment || 'Beta' }}
needs: create_release_tag
env:
RELEASE_ID: ${{ needs.create_release_tag.outputs.release_id }}
PL_VENDOR_VERSION: ${{ github.event.inputs.vendor_version || '0.0.1' }}
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install coreutils
if: matrix.platform == 'macos-latest'
run: |
brew install coreutils
- name: Install Flatpak build tools
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt install -y flatpak flatpak-builder
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build
run: |
npm run electron:build
env:
PL_PWA_URL: ${{ secrets.PL_PWA_URL }}
CSC_LINK: ${{ secrets.PL_MACOS_SIGNING_CERT_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.PL_MACOS_SIGNING_CERT_PASSWORD }}
PL_MACOS_NOTARIZE_APPLE_ID: ${{ secrets.PL_MACOS_NOTARIZE_APPLE_ID }}
PL_MACOS_NOTARIZE_PASSWORD: ${{ secrets.PL_MACOS_NOTARIZE_PASSWORD }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EP_PRE_RELEASE: true
- name: Build Flatpak
if: matrix.platform == 'ubuntu-latest'
run: |
npm run electron:build:flatpak
env:
PL_PWA_URL: ${{ secrets.PL_PWA_URL }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EP_PRE_RELEASE: true
- name: Generate checksum (AppImage)
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/electron/dist
sha256sum *.AppImage > sha256sum-appimage.txt
- name: Upload checksum (AppImage)
if: matrix.platform == 'ubuntu-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/electron/dist/sha256sum-appimage.txt
asset_name: sha256sum-electron-appimage.txt
prerelease: true
- name: Generate checksum (deb)
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/electron/dist
sha256sum *.deb > sha256sum-deb.txt
- name: Upload checksum (deb)
if: matrix.platform == 'ubuntu-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/electron/dist/sha256sum-deb.txt
asset_name: sha256sum-electron-deb.txt
prerelease: true
- name: Generate checksum (snap)
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/electron/dist
sha256sum *.snap > sha256sum-snap.txt
- name: Upload checksum (snap)
if: matrix.platform == 'ubuntu-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/electron/dist/sha256sum-snap.txt
asset_name: sha256sum-electron-snap.txt
prerelease: true
- name: Generate checksum (flatpak)
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/electron/dist
sha256sum *.flatpak > sha256sum-flatpak.txt
- name: Upload checksum (flatpak)
if: matrix.platform == 'ubuntu-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/electron/dist/sha256sum-flatpak.txt
asset_name: sha256sum-electron-flatpak.txt
prerelease: true
- name: Generate checksum (dmg)
if: matrix.platform == 'macos-latest'
run: |
cd packages/electron/dist
sha256sum *.dmg > sha256sum-dmg.txt
- name: Upload checksum (dmg)
if: matrix.platform == 'macos-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/electron/dist/sha256sum-dmg.txt
asset_name: sha256sum-electron-dmg.txt
prerelease: true
- name: Generate checksum (exe)
if: matrix.platform == 'windows-latest'
run: |
cd packages/electron/dist
sha256sum *.exe > sha256sum-exe.txt
- name: Upload checksum (exe)
if: matrix.platform == 'windows-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/electron/dist/sha256sum-exe.txt
asset_name: sha256sum-electron-exe.txt
prerelease: true
release_cordova:
name: "Release Cordova apps"
environment: ${{ github.event.inputs.environment || 'Beta' }}
needs: create_release_tag
env:
RELEASE_BUILD: ${{ github.event.inputs.build || '0' }}
RELEASE_ID: ${{ needs.create_release_tag.outputs.release_id }}
PL_VENDOR_VERSION: ${{ github.event.inputs.vendor_version || '0.0.1' }}
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
if: matrix.platform == 'ubuntu-latest'
with:
java-version: 1.8
- uses: sdkman/sdkman-action@master
if: matrix.platform == 'ubuntu-latest'
with:
candidate: gradle
version: 7.2
- uses: android-actions/setup-android@v2
if: matrix.platform == 'ubuntu-latest'
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install coreutils
if: matrix.platform == 'macos-latest'
run: |
brew install coreutils
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Create android-upload-key.keystore
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/cordova
echo '${{ secrets.PL_ANDROID_UPLOAD_KEY_BASE64}}' > android-upload-key.keystore.txt
base64 -d android-upload-key.keystore.txt > android-upload-key.keystore
rm -f android-upload-key.keystore.txt
- name: Build Android
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/cordova
npm run prepare-build
./node_modules/.bin/cordova build android --release -- --packageType=apk --keystore=./android-upload-key.keystore --storePassword='${{ secrets.PL_ANDROID_STORE_PASSWORD }}' --alias=${{ secrets.PL_ANDROID_KEYSTORE_ALIAS }} --password='${{ secrets.PL_ANDROID_STORE_PASSWORD }}'
- name: Install the Apple certificate and provisioning profile
if: matrix.platform == 'macos-latest'
env:
PL_IOS_DISTRIBUTION_CERT_BASE64: ${{ secrets.PL_IOS_DISTRIBUTION_CERT_BASE64 }}
PL_IOS_DEVELOPMENT_CERT_BASE64: ${{ secrets.PL_IOS_DEVELOPMENT_CERT_BASE64 }}
PL_IOS_DISTRIBUTION_CERT_PASSWORD: ${{ secrets.PL_IOS_DISTRIBUTION_CERT_PASSWORD }}
PL_IOS_PROVISION_PROFILE_BASE64: ${{ secrets.PL_IOS_PROVISION_PROFILE_BASE64 }}
PL_IOS_DEV_PROVISION_PROFILE_BASE64: ${{ secrets.PL_IOS_DEV_PROVISION_PROFILE_BASE64 }}
PL_IOS_KEYCHAIN_PASSWORD: "new-password-does-not-matter"
run: |
# create variables
DIST_CERT_PATH=$RUNNER_TEMP/distribution_certificate.p12
DEV_CERT_PATH=$RUNNER_TEMP/development_certificate.p12
DIST_PP_PATH=$RUNNER_TEMP/dist_pp.mobileprovision
DEV_PP_PATH=$RUNNER_TEMP/dev_pp.mobileprovision
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
# import certificate and provisioning profile from secrets
echo -n "$PL_IOS_DISTRIBUTION_CERT_BASE64" | base64 --decode --output $DIST_CERT_PATH
echo -n "$PL_IOS_DEVELOPMENT_CERT_BASE64" | base64 --decode --output $DEV_CERT_PATH
echo -n "$PL_IOS_PROVISION_PROFILE_BASE64" | base64 --decode --output $DIST_PP_PATH
echo -n "$PL_IOS_DEV_PROVISION_PROFILE_BASE64" | base64 --decode --output $DEV_PP_PATH
# create temporary keychain
security create-keychain -p "$PL_IOS_KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
security unlock-keychain -p "$PL_IOS_KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
# import certificate to keychain
security import $DIST_CERT_PATH -P "$PL_IOS_DISTRIBUTION_CERT_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security import $DEV_CERT_PATH -P "$PL_IOS_DISTRIBUTION_CERT_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
security set-key-partition-list -S apple-tool:,apple: -s -k "$PL_IOS_KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
# apply provisioning profile
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp $DIST_PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
cp $DEV_PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
if: matrix.platform == 'macos-latest'
with:
xcode-version: "13.2.1"
- name: Build iOS
if: matrix.platform == 'macos-latest'
run: |
cd packages/cordova
npm run prepare-build
npm run patch-ios
./node_modules/.bin/cordova build ios --release --device --packageType=app-store --codeSignIdentity="${{ secrets.PL_IOS_CODE_SIGN_IDENTITY }}" --developmentTeam="${{ secrets.PL_IOS_DEVELOPMENT_TEAM }}"
- name: Upload Signed APK
if: matrix.platform == 'ubuntu-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/cordova/platforms/android/app/build/outputs/apk/release/app-release.apk
asset_name: padloc-${{ env.PL_VENDOR_VERSION }}.apk
prerelease: true
- name: Upload Signed IPA
if: matrix.platform == 'macos-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/cordova/platforms/ios/build/device/Padloc.ipa
asset_name: padloc-${{ env.PL_VENDOR_VERSION }}.ipa
prerelease: true
- name: Generate checksum (apk)
if: matrix.platform == 'ubuntu-latest'
run: |
cd packages/cordova/platforms/android/app/build/outputs/apk/release
sha256sum app-release.apk > sha256sum-apk.txt
- name: Upload checksum (apk)
if: matrix.platform == 'ubuntu-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/cordova/platforms/android/app/build/outputs/apk/release/sha256sum-apk.txt
asset_name: sha256sum-apk.txt
prerelease: true
- name: Generate checksum (ipa)
if: matrix.platform == 'macos-latest'
run: |
cd packages/cordova/platforms/ios/build/device
sha256sum Padloc.ipa > sha256sum-ipa.txt
- name: Upload checksum (ipa)
if: matrix.platform == 'macos-latest'
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/cordova/platforms/ios/build/device/sha256sum-ipa.txt
asset_name: sha256sum-ipa.txt
prerelease: true
- name: Delete android-upload-key.keystore
if: matrix.platform == 'ubuntu-latest' && always()
run: rm -f ./packages/cordova/android-upload-key.keystore
- name: Clean up keychain and provisioning profile
if: matrix.platform == 'macos-latest' && always()
run: |
security delete-keychain $RUNNER_TEMP/app-signing.keychain-db
rm -f ~/Library/MobileDevice/Provisioning\ Profiles/build_pp.mobileprovision
release_web_checksums:
name: "Release web checksums"
environment: ${{ github.event.inputs.environment || 'Beta' }}
needs: create_release_tag
env:
RELEASE_ID: ${{ needs.create_release_tag.outputs.release_id }}
PL_VENDOR_VERSION: ${{ github.event.inputs.vendor_version || '0.0.1' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Build
run: |
npm run pwa:build
env:
PL_PWA_URL: ${{ secrets.PL_PWA_URL }}
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
- name: Generate pwa.tar.gz
run: |
cd packages/pwa/dist
tar -czf ../pwa.tar.gz *
- name: Upload pwa.tar.gz
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/pwa/pwa.tar.gz
asset_name: padloc-pwa-${{ env.PL_VENDOR_VERSION }}.${{ env.RELEASE_BUILD }}.tar.gz
prerelease: true
- name: Generate checksums
run: |
cd packages/pwa/dist
find . -type f ! -name "sha256sums-web.txt" -exec sha256sum {} > sha256sums-web.txt \;
- name: Upload checksums
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: packages/pwa/dist/sha256sums-web.txt
asset_name: sha256sums-web.txt
prerelease: true
- name: Upload CSP parser
uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.PL_VENDOR_VERSION }}"
file: docs/checksums/web/parse-csp.ts
asset_name: parse-csp.ts
prerelease: true

45
.github/workflows/run-tests.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Run Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- uses: actions/cache@v2
with:
path: |
~/.npm
~/.nvm
node_modules
packages/app/node_modules
packages/cordova/node_modules
packages/core/node_modules
packages/electron/node_modules
packages/extension/node_modules
packages/locale/node_modules
packages/manage/node_modules
packages/pwa/node_modules
packages/server/node_modules
packages/tauri/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
- name: Run prettier check
run: npm run prettier:check
- name: Run pwa test build
run: npm run pwa:build
- name: Run web extention test build
run: npm run web-extension:build
- name: Test starting zero-config server
run: npm run server:start-dry
- name: Run tests
run: npm test
- name: Run e2e tests
run: npm run test:e2e

37
.github/workflows/update-deployment.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Update Deployments
on:
workflow_dispatch:
push:
branches:
- "v4"
- "master"
paths:
- "packages/app/**"
- "packages/core/**"
- "packages/locale/**"
- "assets/**"
jobs:
trigger-gh-action:
runs-on: ubuntu-latest
strategy:
matrix:
instance: ["test", "beta"]
env:
DEPLOY_INSTANCE: ${{ matrix.instance }}
steps:
- name: Trigger GH Action
run: |
curl --request POST \
--url https://api.github.com/repos/padloc/devops/actions/workflows/update-deployment.yml/dispatches \
--header 'Authorization: Basic ${{ secrets.DEVOPS_BASIC_AUTH_TOKEN }}' \
--header 'Content-Type: application/json' \
--data '{
"ref": "main",
"inputs": {
"instance": "${{ env.DEPLOY_INSTANCE }}",
"branch": "${{ github.sha }}"
}
}'

5
.gitignore vendored
View File

@ -16,7 +16,7 @@ packages/cordova/dist
packages/electron/build
packages/electron/app
packages/electron/dist
*.env
/.env
packages/pwa/dist
packages/server/logs
packages/server/data
@ -26,3 +26,6 @@ packages/server/attachments
/data
packages/extension/dist
packages/tauri/dist
packages/tauri/src-tauri/icons
packages/tauri/tauri-update.json
.flatpak-builder

1
.npmrc Normal file
View File

@ -0,0 +1 @@
save-exact=true

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v16.13.1

View File

@ -1 +1,15 @@
app/src/core/*.js
packages/app/src/core/*.js
packages/extension/dist/**/*
packages/cordova/plugins/**/*
packages/cordova/platforms/**/*
packages/cordova/www/**/*
packages/electron/app/**/*
packages/electron/build/**/*
packages/electron/dist/**/*
packages/tauri/dist/**/*
packages/tauri/src-tauri/target/**/*
packages/tauri/tauri-update.json
packages/pwa/dist/**/*
package-lock.json
cypress/fixtures/**/*
.flatpak-builder/**/*

View File

@ -3,5 +3,14 @@
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"bracketSpacing": true
"bracketSpacing": true,
"overrides": [
{
"files": "**/*.md",
"options": {
"printWidth": 80,
"proseWrap": "always"
}
}
]
}

12
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,12 @@
{
"lit-plugin.globalAttributes": ["disabled"],
"files.associations": {
"*.svg": "html"
},
"prettier.prettierPath": "./node_modules/prettier",
"files.insertFinalNewline": true,
"deno.enable": false,
"deno.lint": true,
"deno.unstable": true,
"deno.enablePaths": ["./docs/checksums/web"]
}

View File

@ -3,7 +3,8 @@
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
and this project adheres to
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## 3.1.2
@ -22,18 +23,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Improved flow for creating a vault item
- If a vault filter is active, preselect that vault during vault item creation
- Prefill field names with sensible default when adding new field
- Automated account migration if legacy account is detected during login/signup
- Automated account migration if legacy account is detected during
login/signup
- "Login" vault item template is now called "Website / App"
- Added new vault item template "Computer"
- [DESKTOP] Ctrl/cmd + Shift + F to search all items (resetting any active filters)
- [DESKTOP] Ctrl/cmd + Shift + F to search all items (resetting any active
filters)
- [ANDROID] Allow reordering fields via drag and drop on Android
- [SERVER] Option to enable secure connection when sending emails, enabled via `PL_EMAIL_SECURE` environment variable
- [SERVER] Option to enable secure connection when sending emails, enabled via
`PL_EMAIL_SECURE` environment variable
### Bug Fixes
- Sometimes the app would show a blank screen directly after unlocking.
- Changes made to a vault item directly after creating it would sometimes be discarded.
- Changes made to a vault item directly after creating it would sometimes be
discarded.
## 3.0.0
Initial release of Padloc 3 (changes before 3.0.0 are not included in this change log).
Initial release of Padloc 3 (changes before 3.0.0 are not included in this
change log).

View File

@ -1,12 +1,9 @@
FROM node
ENV PL_PWA_PORT=8080
ENV PL_PWA_DIR=/pwa
FROM node:16-bullseye
EXPOSE 8080
VOLUME ["/pwa"]
ENV PL_ASSETS_DIR=/assets
ENV PL_PWA_DIR=/pwa
WORKDIR /padloc
@ -24,10 +21,8 @@ RUN npm ci --unsafe-perm
# Now copy over source files and assets
COPY packages/pwa/src ./packages/pwa/src
COPY packages/pwa/assets ./packages/pwa/assets
COPY packages/pwa/tsconfig.json packages/pwa/webpack.config.js ./packages/pwa/
COPY packages/app/src ./packages/app/src
COPY packages/app/assets ./packages/app/assets
COPY packages/app/types ./packages/app/types
COPY packages/app/tsconfig.json ./packages/app/
COPY packages/core/src ./packages/core/src
@ -36,7 +31,10 @@ COPY packages/core/tsconfig.json ./packages/core/
COPY packages/locale/src ./packages/locale/src
COPY packages/locale/res ./packages/locale/res
COPY packages/locale/tsconfig.json ./packages/locale/
COPY assets /assets
ENTRYPOINT ["npx", "lerna", "run", "--scope", "@padloc/pwa"]
WORKDIR /padloc/packages/pwa
ENTRYPOINT ["npm", "run"]
CMD ["build_and_start"]

View File

@ -1,16 +1,9 @@
FROM node
ENV PL_SERVER_PORT=3000
ENV PL_BILLING_PORT=4000
ENV PL_DB_PATH=/data
ENV PL_ATTACHMENTS_PATH=/docs
ENV PL_LOG_DIR=/logs
ENV PL_REPL_HISTORY=.pl_repl_history
FROM node:16.13.1
EXPOSE 3000
EXPOSE 4000
VOLUME ["/data", "/docs", "/logs"]
ENV PL_ASSETS_DIR=/assets
ENV PL_ATTACHMENTS_DIR=/attachments
WORKDIR /padloc
@ -34,7 +27,10 @@ COPY packages/core/tsconfig.json ./packages/core/
COPY packages/locale/src ./packages/locale/src
COPY packages/locale/res ./packages/locale/res
COPY packages/locale/tsconfig.json ./packages/locale/
COPY assets /assets
ENTRYPOINT ["npx", "lerna", "run", "--scope", "@padloc/server"]
WORKDIR /padloc/packages/server
ENTRYPOINT ["npm", "run"]
CMD ["start"]

151
LICENSE
View File

@ -1,23 +1,21 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
@ -72,7 +60,7 @@ modification follow.
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
@ -631,44 +629,33 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU Affero General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

237
README.md
View File

@ -1,83 +1,198 @@
# Padloc
Simple, secure password and data management for individuals and teams (formerly known as Padlock).
[![](https://github.com/padloc/padloc/workflows/Run%20Tests/badge.svg?branch=v4)](https://github.com/padloc/padloc/actions?workflow=Run+Tests)
Simple, secure password and data management for individuals and teams.
## About
This repo is split into multiple packages:
| Package Name | Description |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [@padloc/core](packages/core) | Core Logic |
| [@padloc/app](packages/app) | Web-based UI components |
| [@padloc/server](packages/server) | The Backend Server |
| [@padloc/pwa](packages/pwa) | The Web Client, a [Progressive Web App](https://developers.google.com/web/progressive-web-apps) built on top of the `@padloc/app` package |
| [@padloc/locale](packages/locale) | Package containing translations and other localization-related things |
| [@padloc/electron](packages/electron) | The Desktop App, built with Electron |
| [@padloc/cordova](packages/cordova) | Cordova project for building iOS and Android app. |
| [@padloc/tauri (experimental)](packages/tauri) | Cross-platform native app builder for Padloc, powered by [Tauri](https://github.com/tauri-apps/tauri) |
| Package Name | Description |
| --------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [@padloc/core](packages/core) | Core Logic |
| [@padloc/app](packages/app) | Web-based UI components |
| [@padloc/server](packages/server) | The Backend Server |
| [@padloc/pwa](packages/pwa) | The Web Client, a [Progressive Web App](https://developers.google.com/web/progressive-web-apps). |
| [@padloc/locale](packages/locale) | Package containing translations and other localization-related things |
| [@padloc/electron](packages/electron) | The Desktop App, built with Electron |
| [@padloc/cordova](packages/cordova) | Cordova project for building iOS and Android app. |
| [@padloc/tauri](packages/tauri) | Cross-platform native app, powered by [Tauri](https://github.com/tauri-apps/tauri) |
| [@padloc/extension](packages/extension) | Padloc browser extension |
## Getting Started
## How to use
#### Step 0: Install Prerequisites
You'll need
- [node.js](https://nodejs.org/) v12 or greater
- [Git](https://git-scm.com/)
#### Step 1: Clone the Repo
As you can see in the [About](#about) section, there are lots of different
components to play with! But at a minimum, in order to set up and use your own
instance of Padloc you'll need to install and configure the
[Server](packages/server) and [Web Client](packages/pwa). In practice, there a
few different ways to do this, but if you just want to install and test Padloc
locally, doing so is really quite easy:
```sh
git clone https://github.com/padloc/padloc
git clone git@github.com:padloc/padloc.git
cd padloc
npm ci
npm start
```
#### Step 2: Install Dependencies
The web client is now available at `http://localhost:8080`!
```sh
npm install
```
In-depth guides on how to host your own "productive" version of Padloc and how
to build and distribute your own versions of the desktop and mobile apps are
coming soon!
#### Step 3: Start Server and Web Client
## Contributing
```sh
PL_DATA_DIR=~/padloc-data \
PL_SERVER_PORT=3000 \
PL_PWA_PORT=8080 \
npm run start
```
All kinds of contributions are welcome!
For more configuration options, see [Configuration](#configuration)
If you want to **report a bug or have a feature request**, please
[create an issue](https://github.com/padloc/padloc/issues).
## Scripts
If you **have question, feedback or would just like to chat**, head over to the
[discussions](https://github.com/padloc/padloc/discussions) section.
| Command | Description |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `npm start` | Starts both backend server and web client. |
| `npm run server:start` | Starts only backend server. |
| `npm run pwa:start` | Starts only web client (You'll need to run `npm run pwa:build` first). |
| `npm run pwa:build` | Builds the web client |
| `npm run dev` | Starts backend server and client app in dev mode, which watches for changes in the source files and automatically rebuilds/restarts the corresponding components. |
| `npm test` | Run tests. |
If you want to **contribute to Padloc directly** by implementing a new feature
or fixing an existing issue, feel free to
[create a pull request](https://github.com/padloc/padloc/pulls)! However if you
plan to work on anything non-trivial, please do talk to us first, either by
commenting on an existing issue, creating a new issue or by pinging us in the
dissusions section!
## Configuration
| Environment Variable | Default | Description |
| -------------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------- |
| `PL_SERVER_PORT` | `3000` | Which port to host the backend server on |
| `PL_SERVER_URL` | `http://0.0.0.0:$PL_SERVER_PORT` | Public URL that will resolve to the backend server. Used by clients to send requests. |
| `PL_PWA_PORT` | `8080` | Which port to host the web client on |
| `PL_PWA_URL` | `http://0.0.0.0:$PL_PWA_PORT` | Public URL that will resolve to the web client. Used by the server to generate links into the web client. |
| `PL_PWA_DIR` | `./packages/pwa/dist` | Build directory for web client. |
| `PL_DATA_DIR` | `./data` | Directory used by server for persistent data storage |
| `PL_ATTACHMENTS_DIR` | `./attachments` | Directory used by server to store attachments |
| `PL_LOGS_DIR` | `./logs` | Directory used by server to store logs |
| `PL_EMAIL_USER` | - | SMTP user for sending emails. |
| `PL_EMAIL_SERVER` | - | SMTP server for sending emails |
| `PL_EMAIL_PORT` | - | SMTP port for sending emails |
| `PL_EMAIL_SECURE` | `false` | SMTP use secured connection for sending emails |
| `PL_EMAIL_PASSWORD` | - | SMTP password for sending email |
| `PL_REPORT_ERRORS` | - | Email address used for reporting unexpected errors in the backend. |
To learn how to get started working on Padloc, refer to the
[Development](#development) section of the readme.
## Security
For a security design overview, check out the [security whitepaper](security.md).
For a security design overview, check out the
[security whitepaper](security.md).
## Development
### Setup
Setting up your dev environment for working with Padloc is as simple as:
```sh
git clone git@github.com:padloc/padloc.git
cd padloc
npm ci
```
This may take a minute, so maybe grab a cup of ☕️.
### Dev Mode
To start "dev mode", simply run
```sh
npm run dev
```
from the root of the project. This will start the backend server (by default
listening on port `3000`), as well as the PWA (available on
`http://localhost:8080`) by default.
The server and PWA port can be changed vie the `PL_TRANSPORT_HTTP_PORT` and
`PL_PWA_PORT` environvent variables, respectively. For more configuration
options, check out the **Conguration** section of the
[server](packages/server#configuration) and [pwa](packages/pwa#configuration).
### Formatting
This project is formatted with [Prettier](https://prettier.io/). To re-format
all files using our [.prettierrc.json](.prettierrc.json) specification, run the
following from the root of the project.
```sh
npm run format
```
To simply check whether everything is formatted correctly, you can use the
following command:
```sh
npm run format:check
```
### Testing
To run unit tests, use:
```sh
npm run test
```
Cypress end-to-end tests can be run via:
```sh
npm run test:e2e
```
And to start cypress tests in "dev mode":
```ssh
npm run test:e2e:dev
```
### Adding / removing dependencies
Since this is a monorepo consisting of multiple packages, adding/removing
to/from a single package can be less than straightforward. The following
commands are meant to make this easier.
To add a dependency to a package, run:
```sh
scope=[package_name] npm run add [dependency]
```
And to remove one:
```sh
scope=[package_name] npm run remove [dependency]
```
For example, here is how you would add `typescript` to the `@padloc/server`
package:
```sh
scope=server npm run add typescript
```
**Note**: We're trying to keep the number and size of third-party dependencies
to a minumum, so before you add a dependency, please think twice if it is really
needed! Pull requests with unnecessary dependencies will very likely be
rejected.
### Updating The Version
The Padloc project consists of many different subpackages. To simplify
versioning, we use a global version for all them. This means that when releasing
a new version, the version of all subpackages needs to be updated, regardless of
whether there have been changes in them or not. To update the global version
accross the project, you can use the following command:
```sh
npm run version [semver_version]
```
### Deployment / Publishing
Padloc has a lot of different components that all need to be
built/released/published in different ways. To manage this complexitiy, we have
compiled all deployment steps for all components in a single Github Workflow. To
release a new version, simply:
1. [Update project version](#updating-the-version)
2. Commit and push.
3. Run the
[Publish Release](https://github.com/padloc/padloc/actions?workflow=Publish+Release)
action.
## Licensing
This software is published under the
[GNU Affero General Public License](LICENSE). If you wish to acquire a
commercial license, please contact us as
[sales@padloc.app](mailto:sales@padloc.app?subject=Padloc%20Commercial%20License).

BIN
assets/app-icon.icns Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
assets/app-icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
assets/app-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

13
assets/app-icon.svg Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="192px" height="192px" viewBox="0 0 192 192" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>app-icon</title>
<g id="app-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Group" transform="translate(33.000000, 12.000000)" fill-rule="nonzero" stroke-width="4">
<path d="M25.9780367,167 C34.7378567,167 39.1177667,163.534803 39.1177667,156.60441 L39.1177667,108.714341 C41.6865932,110.70754 46.9901588,114.882629 53.9134226,117.245045 C60.7682751,119.584118 69.2358458,120.120501 73.2490926,120.120501 C83.2297338,120.120501 92.1849667,117.640682 100.114791,112.681045 C108.044616,107.721407 114.299607,100.995323 118.879764,92.502793 C123.459921,84.0102629 125.75,74.3967189 125.75,63.6621608 C125.75,52.9276028 123.25484,43.2800886 118.264519,34.7196182 C113.274198,26.1591479 106.540684,19.3990939 98.0639746,14.4394564 C89.5872656,9.47981879 79.9484271,7 69.1474592,7 C58.4832123,7 48.9127344,9.47981879 40.4360254,14.4394564 C31.9593164,19.3990939 25.2599819,26.1591479 20.3380218,34.7196182 C15.4160617,43.2800886 12.8867211,52.9276028 12.75,63.6621608 L12.75,156.60441 C12.75,159.593781 12.8383068,167 25.9780367,167 Z M70.8053194,93.6362351 C65.3081302,93.6362351 60.3331741,92.2977047 55.8804508,89.6206437 C51.4277276,86.9435828 47.9370125,83.2831118 45.4083055,78.6392306 C42.8795985,73.9953495 41.615245,68.7778124 41.615245,62.9866194 C41.615245,57.0861586 42.8795985,51.8139877 45.4083055,47.1701065 C47.9370125,42.5262253 51.4277276,38.8657543 55.8804508,36.1886934 C60.3331741,33.5116325 65.3081302,32.173102 70.8053194,32.173102 C76.4124523,32.173102 81.4148944,33.5116325 85.8126457,36.1886934 C90.2103971,38.8657543 93.7011122,42.5262253 96.2847911,47.1701065 C98.86847,51.8139877 100.160309,57.0861586 100.160309,62.9866194 C100.160309,68.7778124 98.86847,73.9953495 96.2847911,78.6392306 C93.7011122,83.2831118 90.2103971,86.9435828 85.8126457,89.6206437 C81.4148944,92.2977047 76.4124523,93.6362351 70.8053194,93.6362351 Z" id="Mask" stroke="#21BA45" fill="#21BA45"></path>
<path d="M22.7280367,165 C31.4878567,165 35.8677667,161.534803 35.8677667,154.60441 L35.8677667,106.714341 C38.4365932,108.70754 43.7401588,112.882629 50.6634226,115.245045 C57.5182751,117.584118 65.9858458,118.120501 69.9990926,118.120501 C79.9797338,118.120501 88.9349667,115.640682 96.8647913,110.681045 C104.794616,105.721407 111.049607,98.9953231 115.629764,90.502793 C120.209921,82.0102629 122.5,72.3967189 122.5,61.6621608 C122.5,50.9276028 120.00484,41.2800886 115.014519,32.7196182 C110.024198,24.1591479 103.290684,17.3990939 94.8139746,12.4394564 C86.3372656,7.47981879 76.6984271,5 65.8974592,5 C55.2332123,5 45.6627344,7.47981879 37.1860254,12.4394564 C28.7093164,17.3990939 22.0099819,24.1591479 17.0880218,32.7196182 C12.1660617,41.2800886 9.63672111,50.9276028 9.5,61.6621608 L9.5,154.60441 C9.5,157.593781 9.5883068,165 22.7280367,165 Z M67.5553194,91.6362351 C62.0581302,91.6362351 57.0831741,90.2977047 52.6304508,87.6206437 C48.1777276,84.9435828 44.6870125,81.2831118 42.1583055,76.6392306 C39.6295985,71.9953495 38.365245,66.7778124 38.365245,60.9866194 C38.365245,55.0861586 39.6295985,49.8139877 42.1583055,45.1701065 C44.6870125,40.5262253 48.1777276,36.8657543 52.6304508,34.1886934 C57.0831741,31.5116325 62.0581302,30.173102 67.5553194,30.173102 C73.1624523,30.173102 78.1648944,31.5116325 82.5626457,34.1886934 C86.9603971,36.8657543 90.4511122,40.5262253 93.0347911,45.1701065 C95.61847,49.8139877 96.9103094,55.0861586 96.9103094,60.9866194 C96.9103094,66.7778124 95.61847,71.9953495 93.0347911,76.6392306 C90.4511122,81.2831118 86.9603971,84.9435828 82.5626457,87.6206437 C78.1648944,90.2977047 73.1624523,91.6362351 67.5553194,91.6362351 Z" id="Mask" stroke="#2185D0" fill="#2185D0"></path>
<path d="M19.2280367,163 C27.9878567,163 32.3677667,159.534803 32.3677667,152.60441 L32.3677667,104.714341 C34.9365932,106.70754 40.2401588,110.882629 47.1634226,113.245045 C54.0182751,115.584118 62.4858458,116.120501 66.4990926,116.120501 C76.4797338,116.120501 85.4349667,113.640682 93.3647913,108.681045 C101.294616,103.721407 107.549607,96.9953231 112.129764,88.502793 C116.709921,80.0102629 119,70.3967189 119,59.6621608 C119,48.9276028 116.50484,39.2800886 111.514519,30.7196182 C106.524198,22.1591479 99.7906836,15.3990939 91.3139746,10.4394564 C82.8372656,5.47981879 73.1984271,3 62.3974592,3 C51.7332123,3 42.1627344,5.47981879 33.6860254,10.4394564 C25.2093164,15.3990939 18.5099819,22.1591479 13.5880218,30.7196182 C8.66606171,39.2800886 6.13672111,48.9276028 6,59.6621608 L6,152.60441 C6,155.593781 6.0883068,163 19.2280367,163 Z M64.0553194,89.6362351 C58.5581302,89.6362351 53.5831741,88.2977047 49.1304508,85.6206437 C44.6777276,82.9435828 41.1870125,79.2831118 38.6583055,74.6392306 C36.1295985,69.9953495 34.865245,64.7778124 34.865245,58.9866194 C34.865245,53.0861586 36.1295985,47.8139877 38.6583055,43.1701065 C41.1870125,38.5262253 44.6777276,34.8657543 49.1304508,32.1886934 C53.5831741,29.5116325 58.5581302,28.173102 64.0553194,28.173102 C69.6624523,28.173102 74.6648944,29.5116325 79.0626457,32.1886934 C83.4603971,34.8657543 86.9511122,38.5262253 89.5347911,43.1701065 C92.11847,47.8139877 93.4103094,53.0861586 93.4103094,58.9866194 C93.4103094,64.7778124 92.11847,69.9953495 89.5347911,74.6392306 C86.9511122,79.2831118 83.4603971,82.9435828 79.0626457,85.6206437 C74.6648944,88.2977047 69.6624523,89.6362351 64.0553194,89.6362351 Z" id="Mask" stroke="#A333C8" fill="#A333C8"></path>
<path d="M15.2280367,161 C23.9878567,161 28.3677667,157.534803 28.3677667,150.60441 L28.3677667,102.714341 C30.9365932,104.70754 36.2401588,108.882629 43.1634226,111.245045 C50.0182751,113.584118 58.4858458,114.120501 62.4990926,114.120501 C72.4797338,114.120501 81.4349667,111.640682 89.3647913,106.681045 C97.2946158,101.721407 103.549607,94.9953231 108.129764,86.502793 C112.709921,78.0102629 115,68.3967189 115,57.6621608 C115,46.9276028 112.50484,37.2800886 107.514519,28.7196182 C102.524198,20.1591479 95.7906836,13.3990939 87.3139746,8.43945637 C78.8372656,3.47981879 69.1984271,1 58.3974592,1 C47.7332123,1 38.1627344,3.47981879 29.6860254,8.43945637 C21.2093164,13.3990939 14.5099819,20.1591479 9.58802178,28.7196182 C4.66606171,37.2800886 2.13672111,46.9276028 2,57.6621608 L2,150.60441 C2,153.593781 2.0883068,161 15.2280367,161 Z M60.0553194,87.6362351 C54.5581302,87.6362351 49.5831741,86.2977047 45.1304508,83.6206437 C40.6777276,80.9435828 37.1870125,77.2831118 34.6583055,72.6392306 C32.1295985,67.9953495 30.865245,62.7778124 30.865245,56.9866194 C30.865245,51.0861586 32.1295985,45.8139877 34.6583055,41.1701065 C37.1870125,36.5262253 40.6777276,32.8657543 45.1304508,30.1886934 C49.5831741,27.5116325 54.5581302,26.173102 60.0553194,26.173102 C65.6624523,26.173102 70.6648944,27.5116325 75.0626457,30.1886934 C79.4603971,32.8657543 82.9511122,36.5262253 85.5347911,41.1701065 C88.11847,45.8139877 89.4103094,51.0861586 89.4103094,56.9866194 C89.4103094,62.7778124 88.11847,67.9953495 85.5347911,72.6392306 C82.9511122,77.2831118 79.4603971,80.9435828 75.0626457,83.6206437 C70.6648944,86.2977047 65.6624523,87.6362351 60.0553194,87.6362351 Z" id="Mask" stroke="#F2711C" fill="#F2711C"></path>
<path d="M13.2280367,160 C21.9878567,160 26.3677667,156.534803 26.3677667,149.60441 L26.3677667,101.714341 C28.9365932,103.70754 34.2401588,107.882629 41.1634226,110.245045 C48.0182751,112.584118 56.4858458,113.120501 60.4990926,113.120501 C70.4797338,113.120501 79.4349667,110.640682 87.3647913,105.681045 C95.2946158,100.721407 101.549607,93.9953231 106.129764,85.502793 C110.709921,77.0102629 113,67.3967189 113,56.6621608 C113,45.9276028 110.50484,36.2800886 105.514519,27.7196182 C100.524198,19.1591479 93.7906836,12.3990939 85.3139746,7.43945637 C76.8372656,2.47981879 67.1984271,0 56.3974592,0 C45.7332123,0 36.1627344,2.47981879 27.6860254,7.43945637 C19.2093164,12.3990939 12.5099819,19.1591479 7.58802178,27.7196182 C2.66606171,36.2800886 0.136721113,45.9276028 0,56.6621608 L0,149.60441 C0,152.593781 0.088306802,160 13.2280367,160 Z M58.0553194,86.6362351 C52.5581302,86.6362351 47.5831741,85.2977047 43.1304508,82.6206437 C38.6777276,79.9435828 35.1870125,76.2831118 32.6583055,71.6392306 C30.1295985,66.9953495 28.865245,61.7778124 28.865245,55.9866194 C28.865245,50.0861586 30.1295985,44.8139877 32.6583055,40.1701065 C35.1870125,35.5262253 38.6777276,31.8657543 43.1304508,29.1886934 C47.5831741,26.5116325 52.5581302,25.173102 58.0553194,25.173102 C63.6624523,25.173102 68.6648944,26.5116325 73.0626457,29.1886934 C77.4603971,31.8657543 80.9511122,35.5262253 83.5347911,40.1701065 C86.11847,44.8139877 87.4103094,50.0861586 87.4103094,55.9866194 C87.4103094,61.7778124 86.11847,66.9953495 83.5347911,71.6392306 C80.9511122,76.2831118 77.4603971,79.9435828 73.0626457,82.6206437 C68.6648944,85.2977047 63.6624523,86.6362351 58.0553194,86.6362351 Z" id="Mask" stroke="#F2711C" fill="#FFFFFF"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@ -0,0 +1,348 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
></span>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
You have been asked by {{ invitedBy }} to confirm your membership
with the Padloc organization <strong>{{ orgName }}</strong>.
</p>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="btn btn-primary"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
box-sizing: border-box;
"
>
<tbody>
<tr>
<td
align="left"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
padding-bottom: 15px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: auto;
"
>
<tbody>
<tr>
<td
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
background-color: #3498db;
border-radius: 5px;
text-align: center;
"
>
<a
href="{{ acceptInviteUrl }}"
target="_blank"
style="
display: inline-block;
color: #ffffff;
background-color: #3498db;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-transform: capitalize;
border-color: #3498db;
"
>Confirm Membership</a
>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,9 @@
Hi there!
You have been asked by {{ invitedBy }} to confirm your membership with the Padloc organization {{ orgName }}.
Confirm Membership: {{ acceptInviteUrl }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

View File

@ -0,0 +1,290 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
>Your email verification code is {{ code }}.</span
>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Your email verification code is:
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
background-color: #f6f6f6;
padding: 15px;
border-radius: 10px;
font-size: 30px;
font-family: monospace;
text-align: center;
letter-spacing: 0.2em;
"
>
{{ code }}
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,9 @@
Hi there!
Your email verification code is:
{{ code }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

7
assets/email/error.html Normal file
View File

@ -0,0 +1,7 @@
<p>The following error occurred at {{ time }}:</p>
<p>
Code: {{ code }} <br />
Message: {{ message }} <br />
Event ID: {{ eventId }}`
</p>

5
assets/email/error.txt Normal file
View File

@ -0,0 +1,5 @@
The following error occurred at {{ time }}:
Code: {{ code }}
Message: {{ message }}
Event ID: {{ eventId }}`

View File

@ -0,0 +1,349 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
></span>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Good news! {{ invitee }} has accepted your invite to join
<strong>{{ orgName }}</strong>. Please confirm their membership to
complete the process!
</p>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="btn btn-primary"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
box-sizing: border-box;
"
>
<tbody>
<tr>
<td
align="left"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
padding-bottom: 15px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: auto;
"
>
<tbody>
<tr>
<td
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
background-color: #3498db;
border-radius: 5px;
text-align: center;
"
>
<a
href="{{ confirmMemberUrl }}"
target="_blank"
style="
display: inline-block;
color: #ffffff;
background-color: #3498db;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-transform: capitalize;
border-color: #3498db;
"
>Confirm Membership</a
>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,9 @@
Hi there!
Good news! {{ invitee }} has accepted your invite to join {{ orgName }}. Please confirm their membership to complete the process!
Confirm Membership: {{ confirmMemberUrl }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

View File

@ -0,0 +1,348 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
></span>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Good news! You now have access to the Padloc organization
<strong>{{ orgName }}</strong>.
</p>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="btn btn-primary"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
box-sizing: border-box;
"
>
<tbody>
<tr>
<td
align="left"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
padding-bottom: 15px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: auto;
"
>
<tbody>
<tr>
<td
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
background-color: #3498db;
border-radius: 5px;
text-align: center;
"
>
<a
href="{{ openAppUrl }}"
target="_blank"
style="
display: inline-block;
color: #ffffff;
background-color: #3498db;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-transform: capitalize;
border-color: #3498db;
"
>Open Padloc</a
>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,8 @@
Hi there!
Good news! You now have access to the Padloc organization {{ orgName }}.
Open Padloc: {{ openAppUrl }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

View File

@ -0,0 +1,348 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
></span>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
You have been invited by <strong>{{ invitedBy }}</strong> to join
their Padloc organization <strong>{{ orgName }}</strong>!
</p>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="btn btn-primary"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
box-sizing: border-box;
"
>
<tbody>
<tr>
<td
align="left"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
padding-bottom: 15px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: auto;
"
>
<tbody>
<tr>
<td
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
background-color: #3498db;
border-radius: 5px;
text-align: center;
"
>
<a
href="{{ acceptInviteUrl }}"
target="_blank"
style="
display: inline-block;
color: #ffffff;
background-color: #3498db;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-transform: capitalize;
border-color: #3498db;
"
>Join {{ orgName }}</a
>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,9 @@
Hi there!
You have been invited by {{ invitedBy }} to join their Padloc organization {{ orgName }}!
Join {{ orgName }}: {{ acceptInviteUrl }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

View File

@ -0,0 +1,27 @@
@font-face {
font-family: "FontAwesome";
src: url("./fa-thin-100.woff2") format("woff2");
font-weight: 100;
font-style: normal;
}
@font-face {
font-family: "FontAwesome";
src: url("./fa-light-300.woff2") format("woff2");
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: "FontAwesome";
src: url("./fa-light-300.woff2") format("woff2");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "FontAwesome";
src: url("./fa-regular-400.woff2") format("woff2");
font-weight: 900;
font-style: normal;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,34 @@
@font-face {
font-family: "Nunito";
font-style: normal;
font-weight: 200;
src: url(./Nunito-200.woff2) format("woff2");
}
@font-face {
font-family: "Nunito";
font-style: normal;
font-weight: 300;
src: url(./Nunito-300.woff2) format("woff2");
}
@font-face {
font-family: "Nunito";
font-style: normal;
font-weight: 400;
src: url(./Nunito-400.woff2) format("woff2");
}
@font-face {
font-family: "Nunito";
font-style: normal;
font-weight: 600;
src: url(./Nunito-600.woff2) format("woff2");
}
@font-face {
font-family: "Nunito";
font-style: normal;
font-weight: 700;
src: url(./Nunito-700.woff2) format("woff2");
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,13 @@
@font-face {
font-family: "Space Mono";
font-style: normal;
font-weight: 400;
src: url(./SpaceMono-400.woff2) format("woff2");
}
@font-face {
font-family: "Space Mono";
font-style: normal;
font-weight: 700;
src: url(./SpaceMono-700.woff2) format("woff2");
}

3
assets/fonts/fonts.css Normal file
View File

@ -0,0 +1,3 @@
@import "./FontAwesome/FontAwesome.css";
@import "./Nunito/Nunito.css";
@import "./SpaceMono/SpaceMono.css";

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

BIN
assets/icons/android.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
assets/icons/app-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

BIN
assets/icons/ios.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

163
assets/logo-dark.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 52 KiB

163
assets/logo-light.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 52 KiB

10
assets/manifest.json Normal file
View File

@ -0,0 +1,10 @@
{
"name": "Padloc",
"background_color": "#ffffff",
"description": "A modern password manager for individuals and teams",
"appId": "app.padloc",
"scheme": "padloc",
"author": "Martin Kleinschrodt <martin@maklesoft.com>",
"icon_background": "#f1f1f1",
"terms_of_service": "https://padloc.app/tos"
}

39
assets/support.md Normal file
View File

@ -0,0 +1,39 @@
<a href="#">
<button class="fill-horizontally">
<div class="horizontal spacing layout">
<i class="fa-user block"></i>
<div class="stretch">FAQs</div>
<i class="subtle block fa-external-link"></i>
</div>
</button>
</a>
<a href="#">
<button class="fill-horizontally">
<div class="horizontal spacing layout">
<i class="fa-lock lock block"></i>
<div class="stretch">Support Ticket</div>
<i class="subtle block fa-external-link"></i>
</div>
</button>
</a>
<a href="#">
<button class="fill-horizontally">
<div class="horizontal spacing layout">
<i class="fa-comments-alt block"></i>
<div class="stretch">Live Chat</div>
<i class="subtle block fa-external-link"></i>
</div>
</button>
</a>
<a href="#">
<button class="fill-horizontally">
<div class="horizontal spacing layout">
<i class="fa-tools block"></i>
<div class="stretch">Support Center</div>
<i class="subtle block fa-external-link"></i>
</div>
</button>
</a>

261
assets/theme.css Normal file
View File

@ -0,0 +1,261 @@
@import "./fonts/fonts.css";
body {
/* HELPER VARIABLES */
--color-black: #444;
--color-black-dark: #333;
--color-black-darker: #222;
--color-black-light: #555;
--color-white: #ffffff;
--color-white-dark: #fafafa;
--color-white-darker: #f1f1f1;
/* FONTS */
--font-family: "Nunito";
--font-family-fallback: sans-serif;
--font-family-mono: "Space Mono";
--font-size-base: medium;
--font-size-micro: 0.6em;
--font-size-tiny: 0.7em;
--font-size-small: 0.85em;
--font-size-large: 1.2em;
--font-size-big: 1.35em;
--font-size-huge: 1.5em;
--font-size-giant: 2em;
--font-weight-thin: 100;
--font-weight-extralight: 200;
--font-weight-light: 300;
--font-weight-regular: 400;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--font-weight-default: var(--font-weight-regular);
--letter-spacing: 0.01em;
/* BASIC COLORS */
--color-highlight: rgb(59, 183, 249);
--color-highlight-light: rgb(89, 198, 255);
--color-highlight-dark: rgb(7, 124, 185);
--color-highlight-bg: rgb(59, 183, 249, 0.1);
--color-background: var(--color-white);
--color-background-light: var(--color-white);
--color-background-dark: var(--color-white-dark);
--color-background-darker: var(--color-white-darker);
--color-foreground: var(--color-black);
--color-foreground-light: var(--color-black-light);
--color-foreground-dark: var(--color-black-dark);
--color-negative: #ff6666;
--color-favorite: var(--color-negative);
--color-shade-1: rgba(0, 0, 0, 0.05);
--color-shade-2: rgba(0, 0, 0, 0.1);
--color-shade-3: rgba(0, 0, 0, 0.15);
--color-shade-4: rgba(0, 0, 0, 0.2);
--color-shade-5: rgba(0, 0, 0, 0.25);
--color-shade-6: rgba(0, 0, 0, 0.3);
/* BORDERS */
--border-width: 1px;
--border-color: var(--color-shade-1);
--border-radius: 0.5em;
/* INPUT ELEMENTS */
--input-padding: 0.8em;
--input-background: transparent;
--input-border-color: var(--border-color);
--input-border-style: solid;
--input-border-width: 1px;
--input-color: var(--color-foreground);
--input-label-color: var(--color-highlight);
--input-focused-border-color: var(--color-highlight);
--input-focused-border-style: solid;
--input-focused-border-width: 1px 1px 1px 1px;
/* BUTTONS */
--button-padding: 0.7em;
--button-padding-slim: 0.5em;
--button-padding-skinny: 0.3em;
--button-shadow: none;
--button-background: var(--color-shade-1);
--button-color: var(--color-foreground);
--button-border-color: transparent;
--button-border-style: solid;
--button-border-width: 1px;
--button-font-weight: 400;
--button-focus-outline-color: var(--color-highlight);
--button-toggled-background: var(--color-highlight);
--button-toggled-color: var(--color-white);
--button-toggled-border-color: transparent;
--button-toggled-border-style: solid;
--button-toggled-border-width: 1px;
--button-toggled-weight: 400;
--button-toggled-focus-outline-color: var(--color-white);
--button-primary-background: var(--color-highlight);
--button-primary-color: var(--color-white);
--button-primary-border-color: transparent;
--button-primary-border-style: solid;
--button-primary-border-width: 1px;
--button-primary-font-weight: 400;
--button-primary-focus-outline-color: currentColor;
--button-ghost-background: var(--color-background);
--button-ghost-color: var(--color-foreground);
--button-ghost-border-color: var(--border-color);
--button-ghost-border-style: solid;
--button-ghost-border-width: 1px;
--button-ghost-font-weight: 400;
--button-ghost-focus-outline-color: var(--color-highlight);
--button-ghost-toggled-background: var(--button-ghost-background);
--button-ghost-toggled-color: var(--color-highlight);
--button-ghost-toggled-border-color: var(--color-highlight-light);
--button-ghost-toggled-border-style: solid;
--button-ghost-toggled-border-width: 1px;
--button-ghost-toggled-font-weight: 600;
--button-ghost-toggled-focus-outline-color: var(--color-highlight);
--button-negative-background: var(--color-negative);
--button-negative-color: var(--color-white);
--button-negative-border-color: transparent;
--button-negative-border-style: solid;
--button-negative-border-width: 1px;
--button-negative-font-weight: 400;
--button-negative-focus-outline-color: var(--color-white);
--button-transparent-color: var(--color-foreground);
/* TOGGLE BUTTON */
--toggle-color-off: var(--border-color);
--toggle-color-on: var(--color-green);
/* SLIDER */
--slider-track-color: var(--border-color);
--slider-knob-color: var(--color-highlight);
--slider-track-size: 0.2em;
--slider-knob-size: 1.3em;
/* TAGS */
--tag-padding: 0.3em;
--tag-highlight-color: var(--color-highlight);
--tag-font-family: var(--font-family);
/* LIST ITEMS */
--list-item-border-color: var(--border-color);
--list-item-selected-background: var(--color-highlight-bg);
--list-item-selected-color: var(--color-highlight-dark);
--list-item-selected-color-highlight: var(--color-highlight);
--list-item-focus-background: var(--color-shade-2);
--list-item-focus-color: var(--color-foreground);
/* BOXES */
--box-border-style: solid;
--box-border-color: var(--border-color);
--box-border-width: 1px;
/* START SCREEN */
--start-background: var(--color-background-dark);
--start-logo-height: 4.5em;
--start-logo-width: auto;
/* --start-form-shadow: rgb(0 0 0 / 10%) 0px 0px 2em -1em; */
--start-form-shadow: var(--border-color) 0 0 0 1px;
/* --start-form-shadow: #f2711c 0px 0px 0px 1px inset, #f2711c 1px 1px 0px 0px, #a333c8 2px 2px 0px 0px, */
/* #2185d0 3px 3px 0px 0px, #21ba45 4px 4px 0px 0px; */
--start-form-background: var(--color-background);
/* MENU */
--menu-width: 250px;
--menu-logo-height: 2.5em;
--menu-logo-width: auto;
--menu-background: var(--color-background-dark);
--menu-item-background: transparent;
--menu-item-color: var(--color-foreground);
--menu-item-weight: 400;
--menu-item-selected-background: var(--color-highlight-bg);
--menu-item-selected-color: var(--color-highlight-dark);
--menu-item-selected-weight: 600;
--menu-footer-border: none;
--menu-footer-button-padding: --button-padding-slim;
--menu-footer-button-width: auto;
--menu-footer-button-color: var(--button-color);
--menu-footer-button-icon-size: initial;
--menu-footer-button-label-size: 0;
/* VAULT ITEMS LIST */
--items-list-item-border-color: var(--border-color);
--items-list-item-field-border-style: none;
--items-list-item-field-border-width: 1px;
--items-list-item-field-border-color: var(--border-color);
--items-list-item-field-spacing: var(--spacing);
--items-list-item-field-name-weight: 400;
--items-list-item-field-value-weight: 400;
/* ITEM VIEW */
--item-view-field-name-color: var(--color-highlight);
--item-view-field-name-weight: 400;
/* APP */
--app-backdrop-background: var(--color-background-darker);
--app-backdrop-color: var(--color-highlight);
/* --app-wrapper-shadow: rgb(0 0 0 / 10%) 0px 0px 2em -0.5em; */
--app-wrapper-shadow: var(--border-color) 0 0 0 1px;
/* LAYOUT */
--spacing: 0.5em;
/* ICONS */
--icon-vaults: "\f1b3";
--icon-vault: "\f1b2";
/* HEADERS */
--header-title-size: initial;
--header-title-weight: var(--font-weight-semibold);
}
body.theme-dark {
--color-white: #e1e1e1;
--color-background: #252525;
--color-background-light: #333;
--color-background-dark: #212121;
--color-background-darker: #111;
--color-foreground: var(--color-white);
--color-foreground-light: var(--color-white-light);
--color-foreground-dark: var(--color-white-dark);
--color-shade-1: rgba(255, 255, 255, 0.05);
--color-shade-2: rgba(255, 255, 255, 0.1);
--color-shade-3: rgba(255, 255, 255, 0.15);
--color-shade-4: rgba(255, 255, 255, 0.2);
--color-shade-5: rgba(255, 255, 255, 0.25);
--color-shade-6: rgba(255, 255, 255, 0.3);
}

9
cypress.env.json Normal file
View File

@ -0,0 +1,9 @@
{
"email": "user@example.com",
"password": "password",
"name": "The Dude",
"emailToken": "000000",
"serverUrl": "http://localhost:3000",
"v3_email": "user2@example.com",
"v3_url": "http://localhost:8081"
}

9
cypress.json Normal file
View File

@ -0,0 +1,9 @@
{
"baseUrl": "http://localhost:8080",
"includeShadowDom": true,
"video": false,
"chromeWebSecurity": false,
"screenshotOnRunFailure": false,
"videoUploadOnPasses": false,
"waitForAnimations": true
}

View File

@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 579 KiB

After

Width:  |  Height:  |  Size: 579 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -0,0 +1,71 @@
<!DOCTYPE html>
<html>
<head>
<title>Padloc</title>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="/assets/favicon.png">
<style>
html,
body {
background: linear-gradient(rgb(89, 198, 255), rgb(7, 124, 185));
width: 100%;
height: 100%;
margin: 0;
overscroll-behavior: none;
color: #fff;
position: fixed;
}
@keyframes spin {
from {
stroke-dashoffset: 240;
}
to {
stroke-dashoffset: 40;
}
}
@keyframes rotate {
to {
transform: rotate(360deg);
}
}
.spinner {
width: 50px;
height: 50px;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
margin: auto;
}
.spinner circle {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-width: 10;
stroke-dasharray: 252;
transform-origin: center center;
will-change: transform;
animation: spin 1.5s cubic-bezier(0.44, 0.22, 0.64, 0.86) alternate infinite,
rotate linear 1.2s infinite;
}
</style>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' http://0.0.0.0:3000 blob:; style-src 'self' 'unsafe-inline'; object-src 'self' blob:; frame-src 'self' blob: ; img-src 'self' blob:"><script defer src="/main.js"></script><link rel="manifest" href="/manifest.41bf06683f2015ae2f4f1a35e4d2873a.json" /></head>
<body>
<svg viewBox="0 0 100 100" class="spinner">
<circle cx="50" cy="50" r="40" />
</svg>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More