Skip to content

Commit

Permalink
Merge branch 'release/1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Aug 15, 2023
2 parents 3639d0a + fea354a commit dba04c9
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 12 deletions.
5 changes: 2 additions & 3 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.cryptomator</groupId>
<artifactId>hub-backend</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>

<properties>
<compiler-plugin.version>3.11.0 </compiler-plugin.version>
Expand All @@ -13,8 +13,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.container-image.group>cryptomator</quarkus.container-image.group>
<quarkus.container-image.name>hub</quarkus.container-image.name>
<quarkus.platform.version>3.1.0.Final</quarkus.platform.version>
<quarkus.native.builder-image>quay.io/quarkus/ubi-quarkus-mandrel:22.3-java17</quarkus.native.builder-image>
<quarkus.platform.version>3.2.4.Final</quarkus.platform.version>
<quarkus.jib.base-jvm-image>eclipse-temurin:17-jre</quarkus.jib.base-jvm-image> <!-- irrelevant for -Pnative -->
<jwt.version>4.4.0</jwt.version>
<surefire-plugin.version>3.1.2</surefire-plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.annotation.security.RolesAllowed;
import jakarta.inject.Inject;
import jakarta.ws.rs.BadRequestException;
Expand Down Expand Up @@ -33,6 +34,7 @@
import java.util.UUID;

@Path("/auditlog")
@RegisterForReflection(targets = {UUID[].class})
public class AuditLogResource {

@Inject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.cryptomator.hub.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.quarkus.runtime.annotations.RegisterForReflection;
import io.quarkus.security.identity.SecurityIdentity;
import jakarta.annotation.security.RolesAllowed;
import jakarta.inject.Inject;
Expand Down Expand Up @@ -56,6 +57,7 @@
import java.util.UUID;

@Path("/vaults")
@RegisterForReflection(targets = {UUID[].class})
public class VaultResource {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import io.quarkus.panache.common.Parameters;
import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.CascadeType;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
Expand Down Expand Up @@ -30,6 +31,7 @@
AND u.id = :userId
AND d.id = :deviceId
""")
@RegisterForReflection(targets = {UUID[].class})
public class AccessToken extends PanacheEntityBase {

@EmbeddedId
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.cryptomator.hub.entities;

import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;
Expand All @@ -12,6 +13,7 @@
@Entity
@Table(name = "audit_event_vault_access_grant")
@DiscriminatorValue(AuditEventVaultAccessGrant.TYPE)
@RegisterForReflection(targets = {UUID[].class})
public class AuditEventVaultAccessGrant extends AuditEvent {

public static final String TYPE = "VAULT_ACCESS_GRANT";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.cryptomator.hub.entities;

import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;
Expand All @@ -12,6 +13,7 @@
@Entity
@Table(name = "audit_event_vault_create")
@DiscriminatorValue(AuditEventVaultCreate.TYPE)
@RegisterForReflection(targets = {UUID[].class})
public class AuditEventVaultCreate extends AuditEvent {

public static final String TYPE = "VAULT_CREATE";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.cryptomator.hub.entities;

import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;
Expand All @@ -14,6 +15,7 @@
@Entity
@Table(name = "audit_event_vault_key_retrieve")
@DiscriminatorValue(AuditEventVaultKeyRetrieve.TYPE)
@RegisterForReflection(targets = {UUID[].class})
public class AuditEventVaultKeyRetrieve extends AuditEvent {

public static final String TYPE = "VAULT_KEY_RETRIEVE";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.cryptomator.hub.entities;

import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;
Expand All @@ -12,6 +13,7 @@
@Entity
@Table(name = "audit_event_vault_member_add")
@DiscriminatorValue(AuditEventVaultMemberAdd.TYPE)
@RegisterForReflection(targets = {UUID[].class})
public class AuditEventVaultMemberAdd extends AuditEvent {

public static final String TYPE = "VAULT_MEMBER_ADD";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.cryptomator.hub.entities;

import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;
Expand All @@ -12,6 +13,7 @@
@Entity
@Table(name = "audit_event_vault_member_remove")
@DiscriminatorValue(AuditEventVaultMemberRemove.TYPE)
@RegisterForReflection(targets = {UUID[].class})
public class AuditEventVaultMemberRemove extends AuditEvent {

public static final String TYPE = "VAULT_MEMBER_REMOVE";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.cryptomator.hub.entities;

import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;
Expand All @@ -12,6 +13,7 @@
@Entity
@Table(name = "audit_event_vault_update")
@DiscriminatorValue(AuditEventVaultUpdate.TYPE)
@RegisterForReflection(targets = {UUID[].class})
public class AuditEventVaultUpdate extends AuditEvent {

public static final String TYPE = "VAULT_UPDATE";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import io.quarkus.panache.common.Parameters;
import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.EmbeddedId;
Expand Down Expand Up @@ -34,6 +35,7 @@ SELECT count( DISTINCT u)
INNER JOIN EffectiveGroupMembership egm ON u.id = egm.id.memberId
WHERE egm.id.groupId = :groupId
""")
@RegisterForReflection(targets = {UUID[].class})
public class EffectiveVaultAccess extends PanacheEntityBase {

@EmbeddedId
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/org/cryptomator/hub/entities/Vault.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import io.quarkus.panache.common.Parameters;
import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
Expand Down Expand Up @@ -40,6 +41,7 @@
WHERE v.id IN :ids
"""
)
@RegisterForReflection(targets = {UUID[].class})
public class Vault extends PanacheEntityBase {

@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.auth0.jwt.interfaces.DecodedJWT;
import com.auth0.jwt.interfaces.JWTVerifier;
import com.auth0.jwt.interfaces.Verification;
import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.ws.rs.NotFoundException;
import jakarta.ws.rs.container.ContainerRequestContext;
import jakarta.ws.rs.container.ContainerRequestFilter;
Expand All @@ -28,6 +29,7 @@

@Provider
@VaultAdminOnlyFilter
@RegisterForReflection(targets = {UUID[].class})
public class VaultAdminOnlyFilterProvider implements ContainerRequestFilter {

public static final String VAULT_ADMIN_AUTHORIZATION = "Cryptomator-Vault-Admin-Authorization";
Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cryptomator-hub",
"version": "1.2.0",
"version": "1.2.1",
"description": "Web-Frontend for Cryptomator Hub",
"author": "Skymatic GmbH",
"license": "AGPL-3.0-or-later",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/NavigationBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<span class="text-sm font-semibold">{{ me.name }}</span>
</div>
<div v-for="(itemGroup, index) in profileDropdown" :key="`itemGroup-${index}`" class="py-1.5">
<router-link v-for="item in itemGroup" :key="item.name" v-slot="{ navigate }" :to="item.to" >
<MenuItem v-slot="{ active }" @click="navigate">
<router-link v-for="item in itemGroup" :key="item.name" :to="item.to">
<MenuItem v-slot="{ active }">
<div :class="[active ? 'bg-gray-100 text-gray-900' : 'text-gray-700', 'flex items-center px-3.5 py-1.5 text-sm text-gray-700']">
<component :is="item.icon" :class="[active ? 'text-gray-500' : 'text-gray-400', 'flex-none h-5 w-5 mr-3']" aria-hidden="true" />
{{ t(item.name) }}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/UserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="relative">
<ListboxButton class="relative w-full inline-flex items-center justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">
<LanguageIcon class="-ml-1 mr-2 h-5 w-5" aria-hidden="true" />
{{ t('userProfile.actions.editLanguage') }}
{{ t('userProfile.actions.changeLanguage') }}
<span class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">
<ChevronUpDownIcon class="h-5 w-5 text-gray-400" aria-hidden="true" />
</span>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/i18n/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@

"userProfile.title": "Profil",
"userProfile.actions.manageAccount": "Account verwalten",
"userProfile.actions.editLanguage": "Sprache ändern",
"userProfile.actions.changeLanguage": "Sprache ändern",

"vaultDetails.manageVault": "Tresor verwalten",
"vaultDetails.description.header": "Beschreibung",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@

"userProfile.title": "Profile",
"userProfile.actions.manageAccount": "Manage Account",
"userProfile.actions.editLanguage": "Edit Language",
"userProfile.actions.changeLanguage": "Change Language",

"vaultDetails.manageVault": "Manage Vault",
"vaultDetails.warning.archived": "This vault is archived and cannot be unlocked.",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const i18n = createI18n({
fallbackLocale: defaultLocale,
messages,
datetimeFormats,
globalInjection: true
globalInjection: true,
missingWarn: false,
fallbackWarn: false
});

createApp(App)
Expand Down

0 comments on commit dba04c9

Please sign in to comment.