Skip to content

Commit

Permalink
Merge branch 'icons' of github.com:monicahq/monica into icons
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss committed Oct 27, 2024
2 parents 5c75b55 + 9d37d1a commit 1211be1
Show file tree
Hide file tree
Showing 52 changed files with 920 additions and 424 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ jobs:

strategy:
fail-fast: false
matrix:
flavor:
- name: apache
file: scripts/docker/Dockerfile
tag: main
suffix:
- name: fpm
file: scripts/docker/Dockerfile-fpm
tag: main-fpm
suffix: -fpm

permissions:
contents: read
Expand Down Expand Up @@ -54,6 +64,9 @@ jobs:
org.opencontainers.image.description="This is MonicaHQ, your personal memory! MonicaHQ is like a CRM but for the friends, family, and acquaintances around you."
org.opencontainers.image.title="MonicaHQ, the Personal Relationship Manager"
org.opencontainers.image.vendor="Monica"
flavor: |
latest=${{ matrix.flavor.tag == 'main' && 'auto' || 'false' }}
suffix=${{ matrix.flavor.suffix }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -76,9 +89,9 @@ jobs:
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=registry,ref=${{ env.registry }}/${{ github.repository_owner }}/${{ env.package-name }}:main
cache-from: type=registry,ref=${{ env.registry }}/${{ github.repository_owner }}/${{ env.package-name }}:${{ matrix.flavor.tag }}
labels: ${{ steps.docker_meta.outputs.labels }}
file: scripts/docker/Dockerfile
file: ${{ matrix.flavor.file }}
context: .
platforms: ${{ (github.event_name != 'pull_request') && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=This is MonicaHQ your personal memory! MonicaHQ is like a CRM but for the friends family and acquaintances around you.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ npm-debug.log
.phpunit.result.cache
yarn-error.log
monica.db
sail
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ public static function data(Contact $contact, User $user): array
$relationshipTypesCollection = collect();
foreach ($relationshipTypes as $relationshipType) {
$relations = DB::table('relationships')
->join('contacts', 'relationships.contact_id', '=', 'contacts.id')
->join('contacts as contact1', 'relationships.contact_id', '=', 'contact1.id')
->join('contacts as contact2', 'relationships.related_contact_id', '=', 'contact2.id')
->join('relationship_types', 'relationships.relationship_type_id', '=', 'relationship_types.id')
->select('relationships.id as main_id', 'relationship_types.id', 'relationships.contact_id', 'relationships.related_contact_id')
->select('relationships.id as main_id', 'relationship_types.id', 'relationships.contact_id', 'relationships.related_contact_id', 'contact1.deleted_at', 'contact2.deleted_at')
->where('relationships.relationship_type_id', $relationshipType->id)
->where('contact1.deleted_at', null)
->where('contact2.deleted_at', null)
->where(function ($query) use ($contact) {
$query->where('relationships.contact_id', $contact->id)
->orWhere('relationships.related_contact_id', $contact->id);
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"require": {
"php": "^8.2",
"ext-fileinfo": "*",
"ext-intl": "*",
"asbiin/laravel-sentry-tunnel": "^2.0",
"asbiin/laravel-webauthn": "^4.4",
"codezero/laravel-localizer": "^3.0",
Expand Down Expand Up @@ -50,7 +51,7 @@
"barryvdh/laravel-ide-helper": "^3.0",
"brianium/paratest": "^7.0",
"fakerphp/faker": "^1.9",
"larastan/larastan": "^2.7",
"larastan/larastan": "2.9.8",
"laravel-lang/common": "^6.0",
"laravel/pint": "^1.1",
"laravel/sail": "^1.14",
Expand Down
Loading

0 comments on commit 1211be1

Please sign in to comment.