From 2bbd0960ef87a5221366c6eb976e2bd024c7bd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Mon, 29 May 2023 18:37:09 +0200 Subject: [PATCH] Add mock script for displaying two random photos --- src/appwrite.ts | 4 ++- src/views/Vote.vue | 68 +++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/src/appwrite.ts b/src/appwrite.ts index 7605133..e7e16ba 100644 --- a/src/appwrite.ts +++ b/src/appwrite.ts @@ -1,4 +1,4 @@ -import { Account, Client, Databases } from 'appwrite'; +import { Account, Avatars, Client, Databases, Storage } from 'appwrite'; const appwriteClient = new Client(); @@ -7,4 +7,6 @@ appwriteClient .setProject(import.meta.env.VITE_APPWRITE_PROJECT_ID); export const account = new Account(appwriteClient); +export const avatars = new Avatars(appwriteClient); export const databases = new Databases(appwriteClient); +export const storage = new Storage(appwriteClient); diff --git a/src/views/Vote.vue b/src/views/Vote.vue index b972ecf..703ea54 100644 --- a/src/views/Vote.vue +++ b/src/views/Vote.vue @@ -1,3 +1,69 @@ + + + +