Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikArndt committed Mar 4, 2022
1 parent ba2d268 commit b44e2b2
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ snapshots
.scannerwork
.bsp
out
AppleWWDRCAG4.cer
keystore.p12
members.csv
passulo.conf
private.pem
public.pem
6 changes: 3 additions & 3 deletions src/main/resources/passulo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ pass-settings {
}

colors {
foreground-color = "rgb(196,50,45)"
background-color = "rgb(255,255,255)"
label-color = "rgb(107,107,107)"
foreground-color = "rgb(237,26,47)"
background-color = "rgb(29, 53, 91)"
label-color = "rgb(240, 240, 240)"
}

ios {
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/com/passulo/Passkit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ object Passkit {

def content(passInfo: PassInfo, passId: String, association: String): PKGenericPassBuilder =
passInfo.template match {
case "thumb" => content_thumb(passInfo).backFields(backfields(passInfo, passId, association).asJava)
case "silver" | "gold" | "platin" => content_strip(passInfo).backFields(backfields(passInfo, passId, association).asJava)
case _ => content_plain(passInfo).backFields(backfields(passInfo, passId, association).asJava)
case "thumb" => content_thumb(passInfo).backFields(backfields(passInfo, passId, association).asJava)
case other if !other.isBlank => content_strip(passInfo).backFields(backfields(passInfo, passId, association).asJava)
case _ => content_plain(passInfo).backFields(backfields(passInfo, passId, association).asJava)
}

def backfields(passInfo: PassInfo, passId: String, association: String): Seq[PKField] =
Expand Down
10 changes: 10 additions & 0 deletions templates/thumb/de.lproj/pass.strings
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
"$DESCRIPTION" = "Mitgliedschaft bei Hamburg@Work";
"$COMPANY" = "Firma";
"$STATUS" = "Status";
"$NUMBER" = "Mitgliedsnummer";
"$DATEFIELD" = "Gültig ab";
"$ROLE" = "Funktion";
"$ISSUED_TO" = "Ausgestellt an";
"$ASSOCIATION" = "Verband";
"$PASSID" = "Pass ID";
"$CREATED_AT" = "Erstellt am";
"$MEMBER_SINCE" = "Mitglied seit";
12 changes: 11 additions & 1 deletion templates/thumb/en.lproj/pass.strings
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
"$DESCRIPTION" = "Hamburg@Work Membership";
"$DESCRIPTION" = "Hamburg@Work Membership";
"$COMPANY" = "Company";
"$STATUS" = "Status";
"$NUMBER" = "Number";
"$DATEFIELD" = "Valid from";
"$ROLE" = "Role";
"$ISSUED_TO" = "Issued to";
"$ASSOCIATION" = "Association";
"$PASSID" = "Pass ID";
"$CREATED_AT" = "Issued on";
"$MEMBER_SINCE" = "Member since";
Binary file modified templates/thumb/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/thumb/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/thumb/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b44e2b2

Please sign in to comment.