Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge changes for Google drive, Blender and Unigram #159

Merged
merged 5 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ function getPublicKeys() {
});
}

async function getBiscuitFromJWT(accessToken: string) {
const res = await fetch(`${AUTH_API_URL}/session`, {
headers: {
Authorization: `Bearer ${accessToken}`
}
});
const resJson = await res.json();
if (!res.ok || !resJson) {
console.log(resJson);
throw new Error("failed to fetch biscuit from session");
}
return resJson.biscuit.token;
}

async function afterToken(accessToken: string) {
// fetch biscuit public keys
const res = await getPublicKeys();
Expand Down Expand Up @@ -107,11 +121,12 @@ export default defineConfig({
// this is only run after sign in
if (account) {
try {
let biscuit = await getBiscuitFromJWT(account.access_token!);
const { profile, public_keys } = await afterToken(
account.access_token!
biscuit
);
return {
access_token: account.access_token,
access_token: biscuit,
// refresh_token: account.refresh_token,
expires_at: account.expires_at,
public_keys,
Expand Down
8 changes: 8 additions & 0 deletions public/icons/GoogleDrive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions public/icons/telegram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/unigram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/content/applications/Blender.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: "Blender"
categories: ['creative']
compatibility: emulation
compatibility: native
display_result: "Compatible"
featured: true
version_from: "4.0.2.0"
link: https://apps.microsoft.com/detail/9pp3c07gtvrh
version_from: "4.3"
link: https://blender.org/download
icon: blender.svg
---

Daily builds of Alpha 4.3.0 available from https://builder.blender.org/download/daily/
Store doesnt have Arm build yet.
https://apps.microsoft.com/detail/9pp3c07gtvrh
7 changes: 3 additions & 4 deletions src/content/applications/GoogleDrive.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
name: "Google Drive"
categories: ['prod']
compatibility: native
display_result: "Vendor Announced - Launching Soon"
link: https://www.google.com/drive/download/
display_result: "Compatible"
link: https://dl.google.com/drive-file-stream/arm64beta/GoogleDriveBetaSetup.exe
icon: GoogleDrive.svg
---
Windows architecture is not supported error is observed during installation.
The web browser interface offers some of the functionality to access cloud file storage.
9 changes: 5 additions & 4 deletions src/content/applications/Telegram.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: "Telegram"
categories: ['web-social']
compatibility: emulation
compatibility: native
display_result: "Compatible"
version_from: "4.9.7.0"
link: https://apps.microsoft.com/detail/9nztwsqntd0s
version_from: "5.7.2"
link: https://github.com/telegramdesktop/tdesktop/releases
icon: telegram.svg
---

Store version does not support Arm native yet.
3 changes: 2 additions & 1 deletion src/content/applications/Unigram.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ categories: ['creative']
compatibility: emulation
display_result: "Compatible"
version_from: "10.1"
link: https://apps.microsoft.com/detail/9n97zckpd60q?hl=en-in&gl=IN
link: https://apps.microsoft.com/detail/9n97zckpd60q
icon: unigram.png
---