Skip to content

Commit 3728def

Browse files
committed
chore: cleanup
1 parent 915d458 commit 3728def

File tree

5 files changed

+1
-39
lines changed

5 files changed

+1
-39
lines changed

app/components/Attachment/hardDeleteAttachment.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const hardDeleteAttachment = async (attachmentId, formChangeRowId) => {
77
headers: {
88
"Content-Type": "application/json",
99
"X-CSRF-Token": decodeURIComponent(csrfToken),
10-
_csrf: decodeURIComponent(csrfToken),
1110
},
1211
body: JSON.stringify({
1312
variables: {

app/lib/relay/server.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { get as getCookie } from "react-cookie";
21
import { Network, Environment, Store, RecordSource } from "relay-runtime";
32
import getConfig from "next/config";
43

54
const {
65
serverRuntimeConfig: { PORT },
7-
publicRuntimeConfig: { SESSION_SECRET },
86
} = getConfig();
97

108
export function createServerNetwork({ cookieHeader }) {
@@ -15,11 +13,6 @@ export function createServerNetwork({ cookieHeader }) {
1513
headers: {
1614
"Content-Type": "application/json",
1715
cookie: cookieHeader,
18-
qwerty: cookieHeader.split("; ")[1].replace("qwerty=", ""),
19-
"CSRF-TOKEN": cookieHeader.split("; ")[1].replace("qwerty=", ""),
20-
// "CSRF-TOKEN": "_csrf",
21-
// "CSRF-TOKEN": cookieHeader.split("; ")[1].replace("CSRF-TOKEN=", ""),
22-
// "x-csrf-token": SESSION_SECRET,
2316
},
2417
body: JSON.stringify({
2518
query: params.text,

app/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
"ajv": "^8.9.0",
9898
"body-parser": "^1.20.0",
9999
"bowser": "^2.11.0",
100-
"browser-cookies": "^1.2.0",
101100
"connect-pg-simple": "^7.0.0",
102101
"convict": "^6.2.4",
103102
"convict-format-with-validator": "^6.2.0",
@@ -125,7 +124,6 @@
125124
"postgraphile-log-consola": "^1.0.1",
126125
"postgraphile-plugin-connection-filter": "^2.2.2",
127126
"react": "^18.2.0",
128-
"react-cookie": "^6.1.0",
129127
"react-datepicker": "^4.10.0",
130128
"react-dom": "^18.2.0",
131129
"react-is": "^17.0.2",

app/server/middleware/attachmentDeleteRouter.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { performQuery } from "./graphql";
33
import { Storage } from "@google-cloud/storage";
44
import config from "../../config";
55

6-
// export const brianna = (req, res, next) => {
76
export const attachmentDeleteRouter = Router();
87

98
const attachmentDetailsQuery = `query AttachmentDetailsQuery($attachmentId: ID!){

app/yarn.lock

+1-28
Original file line numberDiff line numberDiff line change
@@ -2197,11 +2197,6 @@
21972197
dependencies:
21982198
"@types/node" "*"
21992199

2200-
"@types/cookie@^0.5.1":
2201-
version "0.5.1"
2202-
resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.5.1.tgz#b29aa1f91a59f35e29ff8f7cb24faf1a3a750554"
2203-
integrity sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==
2204-
22052200
"@types/eslint-scope@^3.7.3":
22062201
version "3.7.4"
22072202
resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.4.tgz#37fc1223f0786c39627068a12e94d6e6fc61de16"
@@ -2256,7 +2251,7 @@
22562251
dependencies:
22572252
"@types/unist" "*"
22582253

2259-
"@types/hoist-non-react-statics@*", "@types/hoist-non-react-statics@^3.3.1":
2254+
"@types/hoist-non-react-statics@*":
22602255
version "3.3.1"
22612256
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
22622257
integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
@@ -3589,11 +3584,6 @@ braces@^3.0.1, braces@~3.0.2:
35893584
dependencies:
35903585
fill-range "^7.0.1"
35913586

3592-
browser-cookies@^1.2.0:
3593-
version "1.2.0"
3594-
resolved "https://registry.yarnpkg.com/browser-cookies/-/browser-cookies-1.2.0.tgz#fca3ffb9b6a63aadc4d8c0999c6b57d0fa7d29b5"
3595-
integrity sha512-cg2WuoOJo+F+g2XjEaP8nmeRp1vDHjt7sqpKJMsTNXKrpyIBNVslYJeehvs6FEddj8usV2+qyRSBEX244yN5/g==
3596-
35973587
browser-process-hrtime@^1.0.0:
35983588
version "1.0.0"
35993589
resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626"
@@ -8912,15 +8902,6 @@ react-colorful@^5.1.2:
89128902
resolved "https://registry.yarnpkg.com/react-colorful/-/react-colorful-5.5.1.tgz#29d9c4e496f2ca784dd2bb5053a3a4340cfaf784"
89138903
integrity sha512-M1TJH2X3RXEt12sWkpa6hLc/bbYS0H6F4rIqjQZ+RxNBstpY67d9TrFXtqdZwhpmBXcCwEi7stKqFue3ZRkiOg==
89148904

8915-
react-cookie@^6.1.0:
8916-
version "6.1.0"
8917-
resolved "https://registry.yarnpkg.com/react-cookie/-/react-cookie-6.1.0.tgz#1561b822d27e21ded17d1a24f9fd5257804a3ffb"
8918-
integrity sha512-j/q0kf4f8kK7zXyTdGEebtZ3IKhVCPZVL3pf6y9/KlfFThxRjb+xvgdKAvRB2VrdkXyu9Qbrb/VuiFUNK6/3+g==
8919-
dependencies:
8920-
"@types/hoist-non-react-statics" "^3.3.1"
8921-
hoist-non-react-statics "^3.3.2"
8922-
universal-cookie "^6.0.0"
8923-
89248905
react-datepicker@^4.10.0:
89258906
version "4.10.0"
89268907
resolved "https://registry.yarnpkg.com/react-datepicker/-/react-datepicker-4.10.0.tgz#3f386ac5873dac5ea56544e51cdc01109938796c"
@@ -10420,14 +10401,6 @@ unique-string@^2.0.0:
1042010401
dependencies:
1042110402
crypto-random-string "^2.0.0"
1042210403

10423-
universal-cookie@^6.0.0:
10424-
version "6.1.0"
10425-
resolved "https://registry.yarnpkg.com/universal-cookie/-/universal-cookie-6.1.0.tgz#9b631092f77a2b91d1ec153be5e16465ce95b177"
10426-
integrity sha512-QBpQWkFJyH9D6nP1ZjPuLDdrgYr3y9ti8OTWf6uWcZwtY06de5f10GPYv3v68LIYWU0a9J2ZF5xFR5gOdD5ZaQ==
10427-
dependencies:
10428-
"@types/cookie" "^0.5.1"
10429-
cookie "^0.5.0"
10430-
1043110404
universalify@^0.2.0:
1043210405
version "0.2.0"
1043310406
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0"

0 commit comments

Comments
 (0)