feat(bskyweb): minimal storeCard layout - drop primary handle field
This commit is contained in:
@@ -80,11 +80,13 @@ func BuildPassJSON(did, handle, theme, teamID string) ([]byte, error) {
|
|||||||
LabelColor: "rgb(255, 255, 255)",
|
LabelColor: "rgb(255, 255, 255)",
|
||||||
BackgroundColor: ThemeBackgroundRGB(theme),
|
BackgroundColor: ThemeBackgroundRGB(theme),
|
||||||
StoreCard: storeCardFields{
|
StoreCard: storeCardFields{
|
||||||
PrimaryFields: []passField{{Key: "handle", Label: "Handle", Value: atHandle}},
|
PrimaryFields: []passField{},
|
||||||
SecondaryFields: []passField{{Key: "url", Label: "Profile", Value: "bsky.app/profile/" + handle}},
|
SecondaryFields: []passField{
|
||||||
|
{Key: "handle", Label: "", Value: atHandle},
|
||||||
|
},
|
||||||
BackFields: []passField{
|
BackFields: []passField{
|
||||||
{Key: "about", Label: "About", Value: "Scan the QR to open this profile in any browser, or share the URL below."},
|
{Key: "about", Label: "About", Value: "Scan the QR code to view this Bluesky profile."},
|
||||||
{Key: "url2", Label: "Profile URL", Value: profileURL},
|
{Key: "url", Label: "Profile URL", Value: profileURL},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Barcodes: []barcode{{
|
Barcodes: []barcode{{
|
||||||
|
|||||||
+6
-12
@@ -10,28 +10,22 @@
|
|||||||
"labelColor": "rgb(255, 255, 255)",
|
"labelColor": "rgb(255, 255, 255)",
|
||||||
"backgroundColor": "rgb(255, 109, 190)",
|
"backgroundColor": "rgb(255, 109, 190)",
|
||||||
"storeCard": {
|
"storeCard": {
|
||||||
"primaryFields": [
|
"primaryFields": [],
|
||||||
{
|
|
||||||
"key": "handle",
|
|
||||||
"label": "Handle",
|
|
||||||
"value": "@alice.bsky.social"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"secondaryFields": [
|
"secondaryFields": [
|
||||||
{
|
{
|
||||||
"key": "url",
|
"key": "handle",
|
||||||
"label": "Profile",
|
"label": "",
|
||||||
"value": "bsky.app/profile/alice.bsky.social"
|
"value": "@alice.bsky.social"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"backFields": [
|
"backFields": [
|
||||||
{
|
{
|
||||||
"key": "about",
|
"key": "about",
|
||||||
"label": "About",
|
"label": "About",
|
||||||
"value": "Scan the QR to open this profile in any browser, or share the URL below."
|
"value": "Scan the QR code to view this Bluesky profile."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "url2",
|
"key": "url",
|
||||||
"label": "Profile URL",
|
"label": "Profile URL",
|
||||||
"value": "https://bsky.app/profile/alice.bsky.social"
|
"value": "https://bsky.app/profile/alice.bsky.social"
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-12
@@ -10,28 +10,22 @@
|
|||||||
"labelColor": "rgb(255, 255, 255)",
|
"labelColor": "rgb(255, 255, 255)",
|
||||||
"backgroundColor": "rgb(117, 175, 255)",
|
"backgroundColor": "rgb(117, 175, 255)",
|
||||||
"storeCard": {
|
"storeCard": {
|
||||||
"primaryFields": [
|
"primaryFields": [],
|
||||||
{
|
|
||||||
"key": "handle",
|
|
||||||
"label": "Handle",
|
|
||||||
"value": "@alice.bsky.social"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"secondaryFields": [
|
"secondaryFields": [
|
||||||
{
|
{
|
||||||
"key": "url",
|
"key": "handle",
|
||||||
"label": "Profile",
|
"label": "",
|
||||||
"value": "bsky.app/profile/alice.bsky.social"
|
"value": "@alice.bsky.social"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"backFields": [
|
"backFields": [
|
||||||
{
|
{
|
||||||
"key": "about",
|
"key": "about",
|
||||||
"label": "About",
|
"label": "About",
|
||||||
"value": "Scan the QR to open this profile in any browser, or share the URL below."
|
"value": "Scan the QR code to view this Bluesky profile."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "url2",
|
"key": "url",
|
||||||
"label": "Profile URL",
|
"label": "Profile URL",
|
||||||
"value": "https://bsky.app/profile/alice.bsky.social"
|
"value": "https://bsky.app/profile/alice.bsky.social"
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-12
@@ -10,28 +10,22 @@
|
|||||||
"labelColor": "rgb(255, 255, 255)",
|
"labelColor": "rgb(255, 255, 255)",
|
||||||
"backgroundColor": "rgb(177, 90, 162)",
|
"backgroundColor": "rgb(177, 90, 162)",
|
||||||
"storeCard": {
|
"storeCard": {
|
||||||
"primaryFields": [
|
"primaryFields": [],
|
||||||
{
|
|
||||||
"key": "handle",
|
|
||||||
"label": "Handle",
|
|
||||||
"value": "@alice.bsky.social"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"secondaryFields": [
|
"secondaryFields": [
|
||||||
{
|
{
|
||||||
"key": "url",
|
"key": "handle",
|
||||||
"label": "Profile",
|
"label": "",
|
||||||
"value": "bsky.app/profile/alice.bsky.social"
|
"value": "@alice.bsky.social"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"backFields": [
|
"backFields": [
|
||||||
{
|
{
|
||||||
"key": "about",
|
"key": "about",
|
||||||
"label": "About",
|
"label": "About",
|
||||||
"value": "Scan the QR to open this profile in any browser, or share the URL below."
|
"value": "Scan the QR code to view this Bluesky profile."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "url2",
|
"key": "url",
|
||||||
"label": "Profile URL",
|
"label": "Profile URL",
|
||||||
"value": "https://bsky.app/profile/alice.bsky.social"
|
"value": "https://bsky.app/profile/alice.bsky.social"
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-12
@@ -10,28 +10,22 @@
|
|||||||
"labelColor": "rgb(255, 255, 255)",
|
"labelColor": "rgb(255, 255, 255)",
|
||||||
"backgroundColor": "rgb(0, 21, 51)",
|
"backgroundColor": "rgb(0, 21, 51)",
|
||||||
"storeCard": {
|
"storeCard": {
|
||||||
"primaryFields": [
|
"primaryFields": [],
|
||||||
{
|
|
||||||
"key": "handle",
|
|
||||||
"label": "Handle",
|
|
||||||
"value": "@alice.bsky.social"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"secondaryFields": [
|
"secondaryFields": [
|
||||||
{
|
{
|
||||||
"key": "url",
|
"key": "handle",
|
||||||
"label": "Profile",
|
"label": "",
|
||||||
"value": "bsky.app/profile/alice.bsky.social"
|
"value": "@alice.bsky.social"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"backFields": [
|
"backFields": [
|
||||||
{
|
{
|
||||||
"key": "about",
|
"key": "about",
|
||||||
"label": "About",
|
"label": "About",
|
||||||
"value": "Scan the QR to open this profile in any browser, or share the URL below."
|
"value": "Scan the QR code to view this Bluesky profile."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "url2",
|
"key": "url",
|
||||||
"label": "Profile URL",
|
"label": "Profile URL",
|
||||||
"value": "https://bsky.app/profile/alice.bsky.social"
|
"value": "https://bsky.app/profile/alice.bsky.social"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user