From cefe37b2c96da7149e5ca19b3dd6ae7fec0641ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 31 Dec 2020 14:21:40 +0100 Subject: [PATCH 01/21] add php-cs-fixer to actioons --- .github/workflows/phpunit.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 1ef81862d069..4b55fd317543 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -1,11 +1,11 @@ -on: +on: push: branches: - v5-develop pull_request: - branches: + branches: - v5-develop - + name: phpunit jobs: run: @@ -24,7 +24,7 @@ jobs: DB_DATABASE: ninja DB_USERNAME: root DB_PASSWORD: ninja - DB_HOST: '127.0.0.1' + DB_HOST: '127.0.0.1' BROADCAST_DRIVER: log CACHE_DRIVER: file QUEUE_CONNECTION: sync @@ -47,12 +47,12 @@ jobs: MYSQL_DATABASE: ninja MYSQL_ROOT_PASSWORD: ninja options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 - + steps: - name: Start mysql service run: | sudo /etc/init.d/mysql start - + - name: Verify MariaDB connection env: DB_PORT: ${{ job.services.mariadb.ports[3306] }} @@ -62,13 +62,13 @@ jobs: while ! mysqladmin ping -h"127.0.0.1" -P"$DB_PORT" --silent; do sleep 1 done - + - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} extensions: mysql, mysqlnd, sqlite3, bcmath, gmp, gd, curl, zip, openssl, mbstring, xml - + - uses: actions/checkout@v1 with: ref: v5-develop @@ -77,7 +77,7 @@ jobs: - name: Copy .env run: | cp .env.ci .env - + - name: Install composer dependencies run: | composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }} @@ -89,12 +89,12 @@ jobs: php artisan optimize php artisan cache:clear php artisan config:cache - + - name: Create DB and schemas run: | mkdir -p database touch database/database.sqlite - + - name: Migrate Database run: | php artisan migrate:fresh --seed --force && php artisan db:seed --force @@ -103,7 +103,7 @@ jobs: run: | npm i npm run production - + - name: Run Testsuite run: | cat .env @@ -111,3 +111,7 @@ jobs: env: DB_PORT: ${{ job.services.mysql.ports[3306] }} + - name: Run php-cs-fixer + run: | + vendor/bin/php-cs-fixer fix + From ad57469ee4907515175a3842c1afd15c3561a859 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 4 Jan 2021 20:53:58 +1100 Subject: [PATCH 02/21] Flutter Service Worker --- app/Models/Client.php | 1 - resources/views/index/index.blade.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/Client.php b/app/Models/Client.php index 54b9929d62c9..e09503cb7519 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -46,7 +46,6 @@ class Client extends BaseModel implements HasLocalePreference protected $fillable = [ 'assigned_user_id', - 'currency_id', 'name', 'website', 'private_notes', diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 165f82c7eaf2..3271eaa286d9 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -96,7 +96,7 @@ document.getElementById('loader').style.display = 'none'; }); - /* + function invokeServiceWorkerUpdateFlow() { // you have a better UI here, reloading is not a great user experince here. const confirmed = confirm('New version of the app is available. Refresh now'); @@ -143,7 +143,7 @@ } handleServiceWorker(); - */ + From 15b2ee664229d94a86a7c38e0f305753bbd090b0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 4 Jan 2021 21:49:28 +1100 Subject: [PATCH 03/21] Add additional mimes --- .../ClientPortal/StoreDocumentRequest.php | 2 +- resources/lang/en/texts.php | 28 +++++++++++++++++++ resources/views/index/index.blade.php | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/ClientPortal/StoreDocumentRequest.php b/app/Http/Requests/ClientPortal/StoreDocumentRequest.php index 3294abcd48fb..93b5ea17cb9f 100644 --- a/app/Http/Requests/ClientPortal/StoreDocumentRequest.php +++ b/app/Http/Requests/ClientPortal/StoreDocumentRequest.php @@ -29,7 +29,7 @@ class StoreDocumentRequest extends Request public function rules() { return [ - 'file' => 'required|max:10000|mimes:png,svg,jpeg,gif,jpg,bmp', + 'file' => 'required|max:10000|mimes:png,svg,jpeg,gif,jpg,bmp,txt,doc,docx,xls,xlsx,pdf', ]; } diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 350d4cc43f36..302200fff492 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2459,6 +2459,34 @@ return [ 'currency_bahraini_dinar' => 'Bahraini Dinar', 'currency_venezuelan_bolivars' => 'Venezuelan Bolivars', + + 'currency_south_korean_won' => 'South Korean Won', + 'currency_moroccan_dirham' => 'Moroccan Dirham', + 'currency_jamaican_dollar' => 'Jamaican Dollar', + 'currency_angolan_kwanza' => 'Angolan Kwanza', + 'currency_haitian_gourde' => 'Haitian Gourde', + 'currency_zambian_kwacha' => 'Zambian Kwacha', + 'currency_nepalese_rupee' => 'Nepalese Rupee', + 'currency_cfp_franc' => 'CFP Franc', + 'currency_mauritian_rupee' => 'Mauritian Rupee', + 'currency_cape_verdean_escudo' => 'Cape Verdean Escudo', + 'currency_kuwaiti_dinar' => 'Kuwaiti Dinar', + 'currency_algerian_dinar' => 'Algerian Dinar', + 'currency_macedonian_denar' => 'Macedonian Denar', + 'currency_fijian_dollar' => 'Fijian Dollar', + 'currency_bolivian_boliviano' => 'Bolivian Boliviano', + 'currency_albanian_lek' => 'Albanian Lek', + 'currency_serbian_dinar' => 'Serbian Dinar', + 'currency_lebanese_pound' => 'Lebanese Pound', + 'currency_armenian_dram' => 'Armenian Dram', + 'currency_azerbaijan_manat' => 'Azerbaijan Manat', + 'currency_bosnia_and_herzegovina_convertible_mark' => 'Bosnia and Herzegovina Convertible Mark', + 'currency_belarusian_ruble' => 'Belarusian Ruble', + 'currency_moldovan_leu' => 'Moldovan Leu', + 'currency_kazakhstani_tenge' => 'Kazakhstani Tenge', + 'currency_gibraltar_pound' => 'Gibraltar Pound', + 'currency_ethiopian_birr' => 'Ethiopian Birr', + 'review_app_help' => 'We hope you\'re enjoying using the app.
If you\'d consider :link we\'d greatly appreciate it!', 'writing_a_review' => 'writing a review', diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 3271eaa286d9..074c013daf9e 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -80,7 +80,7 @@