diff --git a/.setup/data/collections.ts b/.setup/data/collections.ts index fe5cc332..57cc220d 100644 --- a/.setup/data/collections.ts +++ b/.setup/data/collections.ts @@ -5,7 +5,7 @@ export default [ $write: [], name: "Shares", enabled: true, - permission: "document", + permission: "collection", attributes: [ { key: "securityID", @@ -70,7 +70,7 @@ export default [ $write: [], name: "ShareSecurity", enabled: true, - permission: "document", + permission: "collection", attributes: [ { key: "password", diff --git a/.setup/services/setup.service.ts b/.setup/services/setup.service.ts index de98949f..1e456bfd 100644 --- a/.setup/services/setup.service.ts +++ b/.setup/services/setup.service.ts @@ -99,6 +99,7 @@ const generateFunctionsApiKey = async () => { "buckets.read", "buckets.write", "files.read", + "users.read", ], }); return res.data.secret; @@ -142,6 +143,3 @@ export default { generateFunctionsApiKey, addPlatform, }; -function token(token: any) { - throw new Error("Function not implemented."); -} diff --git a/public/img/opengraph-default.png b/public/img/opengraph-default.png new file mode 100644 index 00000000..ba000d2c Binary files /dev/null and b/public/img/opengraph-default.png differ diff --git a/src/components/Meta.tsx b/src/components/Meta.tsx index 4de68b39..97ad8f6d 100644 --- a/src/components/Meta.tsx +++ b/src/components/Meta.tsx @@ -1,9 +1,25 @@ import Head from "next/head"; -const Meta = ({ title }: { title: string }) => { +const Meta = ({ + title, + description, +}: { + title: string; + description?: string; +}) => { return ( + {/* TODO: Doesn't work because script get only executed on client side */} {title} - Pingvin Share + + + + ); }; diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 34ff9587..9d24661e 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -11,8 +11,13 @@ export default class _Document extends Document { - + + + + + +