Skip to content

Commit

Permalink
Add support for PlatformInfo.brand (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
evowizz authored Apr 9, 2024
1 parent 6f27226 commit 449ff7d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ const info: PlatformInfo = {
version: '0.0.1',
displayName: 'Slack',
icon,
brand: {
background: '#611F69',
icon: `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48">
<path fill="black" d="M13.756 29.239a3.86 3.86 0 0 1-3.863 3.863 3.86 3.86 0 0 1-3.864-3.863 3.86 3.86 0 0 1 3.864-3.864h3.863v3.864Zm1.932 0a3.86 3.86 0 0 1 3.863-3.864 3.86 3.86 0 0 1 3.864 3.864v9.658a3.86 3.86 0 0 1-3.864 3.864 3.86 3.86 0 0 1-3.863-3.864V29.24Zm3.863-15.512a3.86 3.86 0 0 1-3.863-3.864A3.86 3.86 0 0 1 19.55 6a3.86 3.86 0 0 1 3.864 3.863v3.864H19.55Zm0 1.96a3.86 3.86 0 0 1 3.864 3.864 3.86 3.86 0 0 1-3.864 3.864H9.863A3.86 3.86 0 0 1 6 19.55a3.86 3.86 0 0 1 3.863-3.863h9.688Zm15.483 3.864a3.86 3.86 0 0 1 3.864-3.863 3.86 3.86 0 0 1 3.863 3.863 3.86 3.86 0 0 1-3.863 3.864h-3.864V19.55Zm-1.931 0a3.86 3.86 0 0 1-3.864 3.864 3.86 3.86 0 0 1-3.864-3.864V9.863A3.86 3.86 0 0 1 29.24 6a3.86 3.86 0 0 1 3.863 3.863v9.688Zm-3.864 15.483a3.86 3.86 0 0 1 3.863 3.863 3.86 3.86 0 0 1-3.863 3.864 3.86 3.86 0 0 1-3.864-3.864v-3.863h3.864Zm0-1.932a3.86 3.86 0 0 1-3.864-3.863 3.86 3.86 0 0 1 3.864-3.864h9.688a3.86 3.86 0 0 1 3.863 3.864 3.86 3.86 0 0 1-3.863 3.863h-9.688Z"/>
</svg>`,
coloredIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48">
<path fill="#E01E5A" d="M13.756 29.239a3.86 3.86 0 0 1-3.863 3.863 3.86 3.86 0 0 1-3.864-3.863 3.86 3.86 0 0 1 3.864-3.864h3.863v3.864Zm1.932 0a3.86 3.86 0 0 1 3.863-3.864 3.86 3.86 0 0 1 3.864 3.864v9.658a3.86 3.86 0 0 1-3.864 3.864 3.86 3.86 0 0 1-3.863-3.864V29.24Z"/>
<path fill="#36C5F0" d="M19.551 13.727a3.86 3.86 0 0 1-3.863-3.864A3.86 3.86 0 0 1 19.55 6a3.86 3.86 0 0 1 3.864 3.863v3.864H19.55Zm0 1.96a3.86 3.86 0 0 1 3.864 3.864 3.86 3.86 0 0 1-3.864 3.864H9.863A3.86 3.86 0 0 1 6 19.55a3.86 3.86 0 0 1 3.863-3.863h9.688Z"/>
<path fill="#2EB67D" d="M35.034 19.551a3.86 3.86 0 0 1 3.864-3.863 3.86 3.86 0 0 1 3.863 3.863 3.86 3.86 0 0 1-3.863 3.864h-3.864V19.55Zm-1.931 0a3.86 3.86 0 0 1-3.864 3.864 3.86 3.86 0 0 1-3.864-3.864V9.863A3.86 3.86 0 0 1 29.24 6a3.86 3.86 0 0 1 3.863 3.863v9.688Z"/>
<path fill="#ECB22E" d="M29.239 35.034a3.86 3.86 0 0 1 3.863 3.863 3.86 3.86 0 0 1-3.863 3.864 3.86 3.86 0 0 1-3.864-3.864v-3.863h3.864Zm0-1.932a3.86 3.86 0 0 1-3.864-3.863 3.86 3.86 0 0 1 3.864-3.864h9.688a3.86 3.86 0 0 1 3.863 3.864 3.86 3.86 0 0 1-3.863 3.863h-9.688Z"/>
</svg>`,
},
typingDurationMs: 3000,
deletionMode: MessageDeletionMode.DELETE_FOR_EVERYONE,
loginMode: ['browser', 'browser-extension'],
Expand Down
26 changes: 24 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2186,11 +2186,18 @@ __metadata:

"@textshq/platform-sdk@https://github.com/TextsHQ/platform-sdk#main":
version: 0.4.4
resolution: "@textshq/platform-sdk@https://github.com/TextsHQ/platform-sdk.git#commit=238cd082bec928c2a6130ea3d4d1d63b34bb7df6"
resolution: "@textshq/platform-sdk@https://github.com/TextsHQ/platform-sdk.git#commit=69d1d78006b09323c4e5f6b6e512c7ce20f9c456"
dependencies:
emoji-regex: ^10.1.0
lodash: ^4.17.21
qrcode.react: ^3.1.0
checksum: 1a018cbe95429eec97b52b68eccc539480785297d0ba19fc8fc308a5586f6f9777a442790b9912905d6f79b827b630bc5d335931c4e82d971f5a1186f5f6d663
ws: ^8.15.1
dependenciesMeta:
lodash:
optional: true
ws:
optional: true
checksum: a401adddff3dc5d9d161015243dc1b9800325d7020f0705c0535cb9d2f07b60a569d1b880ee952f0fc2e04466c9e21c3789b8500c815a5f1e53dfe8ebb8108d0
languageName: node
linkType: hard

Expand Down Expand Up @@ -7644,6 +7651,21 @@ __metadata:
languageName: node
linkType: hard

"ws@npm:^8.15.1":
version: 8.16.0
resolution: "ws@npm:8.16.0"
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: ">=5.0.2"
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
checksum: feb3eecd2bae82fa8a8beef800290ce437d8b8063bdc69712725f21aef77c49cb2ff45c6e5e7fce622248f9c7abaee506bae0a9064067ffd6935460c7357321b
languageName: node
linkType: hard

"y18n@npm:^5.0.5":
version: 5.0.8
resolution: "y18n@npm:5.0.8"
Expand Down

0 comments on commit 449ff7d

Please sign in to comment.