summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.appveyor.yml5
-rw-r--r--.codecov.yml1
-rw-r--r--.github/FUNDING.yml3
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md4
-rw-r--r--.github/super-linter.env5
-rw-r--r--.github/workflows/build.yml60
-rw-r--r--.github/workflows/ccpp.yml25
-rw-r--r--.github/workflows/codeql.yml79
-rw-r--r--.github/workflows/linter.yml54
-rw-r--r--.jscpd.json3
-rw-r--r--.linthub.yml9
-rw-r--r--.textlintrc6
-rw-r--r--.transifex.yml8
-rw-r--r--.travis.yml85
-rw-r--r--.yaml-lint.yml8
-rw-r--r--CHANGELOG.md275
-rw-r--r--CODE_OF_CONDUCT.md4
-rw-r--r--CONTRIBUTING.md8
-rw-r--r--Doxyfile2
-rw-r--r--FAQ.md31
-rw-r--r--README.md86
-rw-r--r--artwork/icon.icnsbin55823 -> 305709 bytes
-rw-r--r--artwork/icon.svg2
-rw-r--r--localization/localization_af_ZA.ts459
-rw-r--r--localization/localization_ar_MA.ts443
-rw-r--r--localization/localization_bg_BG.ts443
-rw-r--r--localization/localization_ca_ES.ts459
-rw-r--r--localization/localization_cs_CZ.ts459
-rw-r--r--localization/localization_cy_GB.ts460
-rw-r--r--localization/localization_da_DK.ts459
-rw-r--r--localization/localization_de_DE.ts480
-rw-r--r--localization/localization_de_LU.ts475
-rw-r--r--localization/localization_el_GR.ts459
-rw-r--r--localization/localization_en_GB.ts474
-rw-r--r--localization/localization_en_US.ts474
-rw-r--r--localization/localization_es_ES.ts484
-rw-r--r--localization/localization_et_ET.ts1353
-rw-r--r--localization/localization_fi_FI.ts459
-rw-r--r--localization/localization_fr_BE.ts459
-rw-r--r--localization/localization_fr_FR.ts459
-rw-r--r--localization/localization_fr_LU.ts459
-rw-r--r--localization/localization_gl_ES.ts838
-rw-r--r--localization/localization_he_IL.ts443
-rw-r--r--localization/localization_hr_HR.ts474
-rw-r--r--localization/localization_hu_HU.ts461
-rw-r--r--localization/localization_it_IT.ts474
-rw-r--r--localization/localization_ja_JA.ts459
-rw-r--r--localization/localization_ko_KO.ts1371
-rw-r--r--localization/localization_lb_LU.ts459
-rw-r--r--localization/localization_nb_NO.ts459
-rw-r--r--localization/localization_nl_BE.ts474
-rw-r--r--localization/localization_nl_NL.ts476
-rw-r--r--localization/localization_pl_PL.ts787
-rw-r--r--localization/localization_pt_PT.ts459
-rw-r--r--localization/localization_ro_RO.ts1372
-rw-r--r--localization/localization_ru_RU.ts610
-rw-r--r--localization/localization_sk_SK.ts474
-rw-r--r--localization/localization_sl_SI.ts448
-rw-r--r--localization/localization_sq_AL.ts459
-rw-r--r--localization/localization_sr_RS.ts1357
-rw-r--r--localization/localization_sv_SE.ts474
-rw-r--r--localization/localization_tr_TR.ts478
-rw-r--r--localization/localization_uk_UA.ts469
-rw-r--r--localization/localization_zh_CN.ts485
-rw-r--r--localization/localization_zh_Hant.ts448
-rw-r--r--main/main.cpp20
-rw-r--r--qtpass-gh.iss82
-rw-r--r--qtpass.iss2
-rw-r--r--qtpass.plist4
-rw-r--r--qtpass.pri2
-rw-r--r--qtpass.spec6
-rw-r--r--src/configdialog.cpp44
-rw-r--r--src/configdialog.h4
-rw-r--r--src/configdialog.ui53
-rw-r--r--src/executor.cpp3
-rw-r--r--src/filecontent.cpp2
-rw-r--r--src/imitatepass.cpp135
-rw-r--r--src/imitatepass.h1
-rw-r--r--src/keygendialog.cpp19
-rw-r--r--src/keygendialog.ui43
-rw-r--r--src/mainwindow.cpp68
-rw-r--r--src/mainwindow.h2
-rw-r--r--src/mainwindow.ui8
-rw-r--r--src/pass.cpp101
-rw-r--r--src/pass.h8
-rw-r--r--src/passworddialog.cpp4
-rw-r--r--src/passworddialog.ui8
-rw-r--r--src/qprogressindicator.cpp26
-rw-r--r--src/qprogressindicator.h41
-rw-r--r--src/qtpass.cpp38
-rw-r--r--src/qtpasssettings.cpp74
-rw-r--r--src/qtpasssettings.h18
-rw-r--r--src/realpass.cpp9
-rw-r--r--src/settingsconstants.cpp4
-rw-r--r--src/settingsconstants.h4
-rw-r--r--src/src.pro4
-rw-r--r--src/storemodel.cpp12
-rw-r--r--src/storemodel.h1
-rw-r--r--src/usersdialog.cpp16
-rw-r--r--src/usersdialog.ui8
-rw-r--r--src/util.cpp11
-rw-r--r--src/util.h3
102 files changed, 17204 insertions, 8372 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index d0087686..ee07f233 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,3 +1,4 @@
+---
install:
- set QTDIR=C:\Qt\5.13\mingw73_32
- choco install -y InnoSetup
@@ -5,8 +6,8 @@ install:
build_script:
- qmake qtpass.pro CONFIG+=static
- mingw32-make
-# - mingw32-make check
-#after_build:
+ # - mingw32-make check
+ # after_build:
- cmd: copy README.md src\release\README.txt
- cmd: copy LICENSE src\release\LICENSE.txt
- iscc qtpass.iss
diff --git a/.codecov.yml b/.codecov.yml
index 76c9e644..9fd55052 100644
--- a/.codecov.yml
+++ b/.codecov.yml
@@ -1,3 +1,4 @@
+---
coverage:
ignore:
- tests/*
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
index 459cfdab..31ebb28f 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yml
@@ -1,3 +1,2 @@
-# These are supported funding model platforms
-
+---
github: annejan
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 5233631c..eb977563 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -24,8 +24,8 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- - OS/Distribution: [e.g. Ubuntu 20.04]
- - Version [e.g. 1.2.3]
+- OS/Distribution: [e.g. Ubuntu 20.04]
+- Version [e.g. 1.2.3]
**Additional context**
Add any other context about the problem here.
diff --git a/.github/super-linter.env b/.github/super-linter.env
new file mode 100644
index 00000000..d5915a94
--- /dev/null
+++ b/.github/super-linter.env
@@ -0,0 +1,5 @@
+VALIDATE_ALL_CODEBASE=true
+VALIDATE_CPP=false
+VALIDATE_JSCPD=false
+VALIDATE_TYPESCRIPT_ES=false
+VALIDATE_TYPESCRIPT_STANDARD=false
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..56475a01
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,60 @@
+name: Build and Release
+
+on:
+ pull_request:
+ branches:
+ - main
+ push:
+ tags:
+ - 'v*'
+
+jobs:
+ build-windows:
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: ilammy/msvc-dev-cmd@v1
+ - name: Setup Qt environment
+ uses: jurplel/install-qt-action@v3
+ with:
+ version: '5.15.2'
+ - name: Build QtPass
+ run: |
+ qmake qtpass.pro CONFIG+=static
+ nmake
+ copy README.md src\release\README.txt
+ copy LICENSE src\release\LICENSE.txt
+ - name: Install Inno Setup
+ run: choco install innosetup
+ - name: Create Installer with Inno Setup
+ run: ISCC.exe qtpass-gh.iss
+ - name: Upload Artifact
+ uses: actions/upload-artifact@v3
+ with:
+ name: QtPass-Windows
+ path: release
+
+ build-mac:
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Setup Qt environment
+ uses: jurplel/install-qt-action@v3
+ with:
+ version: '5.15.2'
+ - name: Install create-dmg
+ run: |
+ brew install create-dmg
+ - name: Build QtPass
+ run: |
+ qmake
+ make
+ macdeployqt main/QtPass.app
+ - name: Create DMG
+ run: create-dmg main/QtPass.dmg main/QtPass.app
+ - name: Upload Artifact
+ uses: actions/upload-artifact@v3
+ with:
+ name: QtPass-macOS
+ path: main/QtPass.dmg
+
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
index 04b3007b..fdbc8e2f 100644
--- a/.github/workflows/ccpp.yml
+++ b/.github/workflows/ccpp.yml
@@ -1,3 +1,4 @@
+---
name: QMake
on: [push, pull_request]
jobs:
@@ -6,8 +7,8 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
- include:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ include:
- os: ubuntu-latest
make: make
- os: macos-latest
@@ -15,13 +16,13 @@ jobs:
- os: windows-latest
make: nmake
steps:
- - uses: actions/checkout@v1
- - uses: ilammy/msvc-dev-cmd@v1
- - name: Install Qt
- uses: jurplel/install-qt-action@v2
- - name: qmake
- run: qmake
- - name: make
- run: ${{matrix.make}}
- - name: make check
- run: ${{matrix.make}} check TESTARGS="--platform offscreen"
+ - uses: actions/checkout@v1
+ - uses: ilammy/msvc-dev-cmd@v1
+ - name: Install Qt
+ uses: jurplel/install-qt-action@v3
+ - name: qmake
+ run: qmake
+ - name: make
+ run: ${{matrix.make}}
+ - name: make check
+ run: ${{matrix.make}} check TESTARGS="--platform offscreen"
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 00000000..0f01a296
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,79 @@
+---
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: "CodeQL"
+
+on:
+ push:
+ branches: ["main"]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: ["main"]
+ schedule:
+ - cron: '24 8 * * 2'
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: ['cpp']
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
+ # Use only 'java' to analyze code written in Java, Kotlin or both
+ # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
+ # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v2
+ with:
+ languages: ${{ matrix.language }}
+ # If you wish to specify custom queries, you can do so here or in a config file.
+ # By default, queries listed here will override any specified in a config file.
+ # Prefix the list here with "+" to use these queries and those in the config file.
+
+ # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
+ # queries: security-extended,security-and-quality
+
+ - name: Install Qt
+ uses: jurplel/install-qt-action@v3
+
+ # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
+ # If this step fails, then you should remove it and run the build manually (see below)
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@v2
+
+ # Command-line programs to run using the OS shell.
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
+
+ # If the Autobuild fails above, remove it and uncomment the following three lines.
+ # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
+
+ # - run: |
+ # echo "Run, Build Application using script"
+ # ./location_of_script_within_repo/buildscript.sh
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v2
+ with:
+ category: "/language:${{matrix.language}}"
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
new file mode 100644
index 00000000..7e0bc2e2
--- /dev/null
+++ b/.github/workflows/linter.yml
@@ -0,0 +1,54 @@
+---
+#################################
+#################################
+## Super Linter GitHub Actions ##
+#################################
+#################################
+name: Lint Code Base
+
+#
+# Documentation:
+# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
+#
+
+#############################
+# Start the job on all push #
+#############################
+on:
+ pull_request:
+ branches: main
+
+###############
+# Set the Job #
+###############
+jobs:
+ build:
+ # Name the Job
+ name: Lint Code Base
+ # Set the agent to run on
+ runs-on: ubuntu-latest
+
+ ##################
+ # Load all steps #
+ ##################
+ steps:
+ ##########################
+ # Checkout the code base #
+ ##########################