0
Fork 0
mirror of https://github.com/stonith404/pingvin-share.git synced 2025-02-19 01:55:48 -05:00

Migrate for Appwrite version 0.14

This commit is contained in:
Elias Schneider 2022-05-18 12:35:20 +02:00
parent 5d45377a7f
commit d5e1851af1
No known key found for this signature in database
GPG key ID: D5EC1C72D93244FD
5 changed files with 12 additions and 13 deletions

16
package-lock.json generated
View file

@ -15,7 +15,7 @@
"@mantine/modals": "^4.2.0", "@mantine/modals": "^4.2.0",
"@mantine/next": "^4.2.0", "@mantine/next": "^4.2.0",
"@mantine/notifications": "^4.2.0", "@mantine/notifications": "^4.2.0",
"appwrite": "^7.0.0", "appwrite": "^8.0.0",
"axios": "^0.26.1", "axios": "^0.26.1",
"cookies-next": "^2.0.4", "cookies-next": "^2.0.4",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
@ -25,7 +25,7 @@
"moment": "^2.29.3", "moment": "^2.29.3",
"next": "12.1.5", "next": "12.1.5",
"next-pwa": "^5.5.2", "next-pwa": "^5.5.2",
"node-appwrite": "^5.1.0", "node-appwrite": "^6.0.0",
"react": "18.0.0", "react": "18.0.0",
"react-dom": "18.0.0", "react-dom": "18.0.0",
"tabler-icons-react": "^1.44.0", "tabler-icons-react": "^1.44.0",
@ -2886,9 +2886,9 @@
} }
}, },
"node_modules/appwrite": { "node_modules/appwrite": {
"version": "7.0.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/appwrite/-/appwrite-7.0.0.tgz", "resolved": "https://registry.npmjs.org/appwrite/-/appwrite-8.0.0.tgz",
"integrity": "sha512-lazJYrUqLfh/5kRBV/ycfnUHVTMxHmqDi1tRnfgoQGoUWcpUeJooQE1njx3neGjcyfM5Ow9eAY+Fv6uv12o9cA==", "integrity": "sha512-/0GMOUtg5+P9t4XTz3z1/FTXoAyEJ23CQ3zkXZybQJzdqy2TRG1iaktHsOmu4zkxEKBTjIsgSkTrKEgdYC/HHw==",
"dependencies": { "dependencies": {
"cross-fetch": "3.1.5", "cross-fetch": "3.1.5",
"isomorphic-form-data": "2.0.0" "isomorphic-form-data": "2.0.0"
@ -9885,9 +9885,9 @@
} }
}, },
"appwrite": { "appwrite": {
"version": "7.0.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/appwrite/-/appwrite-7.0.0.tgz", "resolved": "https://registry.npmjs.org/appwrite/-/appwrite-8.0.0.tgz",
"integrity": "sha512-lazJYrUqLfh/5kRBV/ycfnUHVTMxHmqDi1tRnfgoQGoUWcpUeJooQE1njx3neGjcyfM5Ow9eAY+Fv6uv12o9cA==", "integrity": "sha512-/0GMOUtg5+P9t4XTz3z1/FTXoAyEJ23CQ3zkXZybQJzdqy2TRG1iaktHsOmu4zkxEKBTjIsgSkTrKEgdYC/HHw==",
"requires": { "requires": {
"cross-fetch": "3.1.5", "cross-fetch": "3.1.5",
"isomorphic-form-data": "2.0.0" "isomorphic-form-data": "2.0.0"

View file

@ -18,7 +18,7 @@
"@mantine/modals": "^4.2.0", "@mantine/modals": "^4.2.0",
"@mantine/next": "^4.2.0", "@mantine/next": "^4.2.0",
"@mantine/notifications": "^4.2.0", "@mantine/notifications": "^4.2.0",
"appwrite": "^7.0.0", "appwrite": "^8.0.0",
"axios": "^0.26.1", "axios": "^0.26.1",
"cookies-next": "^2.0.4", "cookies-next": "^2.0.4",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
@ -28,7 +28,7 @@
"moment": "^2.29.3", "moment": "^2.29.3",
"next": "12.1.5", "next": "12.1.5",
"next-pwa": "^5.5.2", "next-pwa": "^5.5.2",
"node-appwrite": "^5.1.0", "node-appwrite": "^6.0.0",
"react": "18.0.0", "react": "18.0.0",
"react-dom": "18.0.0", "react-dom": "18.0.0",
"tabler-icons-react": "^1.44.0", "tabler-icons-react": "^1.44.0",

View file

@ -1,4 +1,4 @@
import { ActionIcon, Avatar, Menu, Switch } from "@mantine/core"; import { ActionIcon, Avatar, Menu } from "@mantine/core";
import { NextLink } from "@mantine/next"; import { NextLink } from "@mantine/next";
import { DoorExit, Link, Moon } from "tabler-icons-react"; import { DoorExit, Link, Moon } from "tabler-icons-react";
import aw from "../../utils/appwrite.util"; import aw from "../../utils/appwrite.util";

View file

@ -4,7 +4,6 @@ import {
Group, Group,
Header as MantineHeader, Header as MantineHeader,
Paper, Paper,
Space,
Text, Text,
Transition, Transition,
} from "@mantine/core"; } from "@mantine/core";

View file

@ -41,7 +41,7 @@ const Upload = () => {
JSON.stringify({ id, security, expiration, emails }), JSON.stringify({ id, security, expiration, emails }),
false false
) )
).stdout ).response
).id; ).id;
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
setFiles([...files]); setFiles([...files]);