Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Sep 8, 2023
1 parent 915d458 commit 3728def
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 39 deletions.
1 change: 0 additions & 1 deletion app/components/Attachment/hardDeleteAttachment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const hardDeleteAttachment = async (attachmentId, formChangeRowId) => {
headers: {
"Content-Type": "application/json",
"X-CSRF-Token": decodeURIComponent(csrfToken),
_csrf: decodeURIComponent(csrfToken),
},
body: JSON.stringify({
variables: {
Expand Down
7 changes: 0 additions & 7 deletions app/lib/relay/server.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { get as getCookie } from "react-cookie";
import { Network, Environment, Store, RecordSource } from "relay-runtime";
import getConfig from "next/config";

const {
serverRuntimeConfig: { PORT },
publicRuntimeConfig: { SESSION_SECRET },
} = getConfig();

export function createServerNetwork({ cookieHeader }) {
Expand All @@ -15,11 +13,6 @@ export function createServerNetwork({ cookieHeader }) {
headers: {
"Content-Type": "application/json",
cookie: cookieHeader,
qwerty: cookieHeader.split("; ")[1].replace("qwerty=", ""),
"CSRF-TOKEN": cookieHeader.split("; ")[1].replace("qwerty=", ""),
// "CSRF-TOKEN": "_csrf",
// "CSRF-TOKEN": cookieHeader.split("; ")[1].replace("CSRF-TOKEN=", ""),
// "x-csrf-token": SESSION_SECRET,
},
body: JSON.stringify({
query: params.text,
Expand Down
2 changes: 0 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
"ajv": "^8.9.0",
"body-parser": "^1.20.0",
"bowser": "^2.11.0",
"browser-cookies": "^1.2.0",
"connect-pg-simple": "^7.0.0",
"convict": "^6.2.4",
"convict-format-with-validator": "^6.2.0",
Expand Down Expand Up @@ -125,7 +124,6 @@
"postgraphile-log-consola": "^1.0.1",
"postgraphile-plugin-connection-filter": "^2.2.2",
"react": "^18.2.0",
"react-cookie": "^6.1.0",
"react-datepicker": "^4.10.0",
"react-dom": "^18.2.0",
"react-is": "^17.0.2",
Expand Down
1 change: 0 additions & 1 deletion app/server/middleware/attachmentDeleteRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { performQuery } from "./graphql";
import { Storage } from "@google-cloud/storage";
import config from "../../config";

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

const attachmentDetailsQuery = `query AttachmentDetailsQuery($attachmentId: ID!){
Expand Down
29 changes: 1 addition & 28 deletions app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2197,11 +2197,6 @@
dependencies:
"@types/node" "*"

"@types/cookie@^0.5.1":
version "0.5.1"
resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.5.1.tgz#b29aa1f91a59f35e29ff8f7cb24faf1a3a750554"
integrity sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==

"@types/eslint-scope@^3.7.3":
version "3.7.4"
resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.4.tgz#37fc1223f0786c39627068a12e94d6e6fc61de16"
Expand Down Expand Up @@ -2256,7 +2251,7 @@
dependencies:
"@types/unist" "*"

"@types/hoist-non-react-statics@*", "@types/hoist-non-react-statics@^3.3.1":
"@types/hoist-non-react-statics@*":
version "3.3.1"
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
Expand Down Expand Up @@ -3589,11 +3584,6 @@ braces@^3.0.1, braces@~3.0.2:
dependencies:
fill-range "^7.0.1"

browser-cookies@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/browser-cookies/-/browser-cookies-1.2.0.tgz#fca3ffb9b6a63aadc4d8c0999c6b57d0fa7d29b5"
integrity sha512-cg2WuoOJo+F+g2XjEaP8nmeRp1vDHjt7sqpKJMsTNXKrpyIBNVslYJeehvs6FEddj8usV2+qyRSBEX244yN5/g==

browser-process-hrtime@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626"
Expand Down Expand Up @@ -8912,15 +8902,6 @@ react-colorful@^5.1.2:
resolved "https://registry.yarnpkg.com/react-colorful/-/react-colorful-5.5.1.tgz#29d9c4e496f2ca784dd2bb5053a3a4340cfaf784"
integrity sha512-M1TJH2X3RXEt12sWkpa6hLc/bbYS0H6F4rIqjQZ+RxNBstpY67d9TrFXtqdZwhpmBXcCwEi7stKqFue3ZRkiOg==

react-cookie@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/react-cookie/-/react-cookie-6.1.0.tgz#1561b822d27e21ded17d1a24f9fd5257804a3ffb"
integrity sha512-j/q0kf4f8kK7zXyTdGEebtZ3IKhVCPZVL3pf6y9/KlfFThxRjb+xvgdKAvRB2VrdkXyu9Qbrb/VuiFUNK6/3+g==
dependencies:
"@types/hoist-non-react-statics" "^3.3.1"
hoist-non-react-statics "^3.3.2"
universal-cookie "^6.0.0"

react-datepicker@^4.10.0:
version "4.10.0"
resolved "https://registry.yarnpkg.com/react-datepicker/-/react-datepicker-4.10.0.tgz#3f386ac5873dac5ea56544e51cdc01109938796c"
Expand Down Expand Up @@ -10420,14 +10401,6 @@ unique-string@^2.0.0:
dependencies:
crypto-random-string "^2.0.0"

universal-cookie@^6.0.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/universal-cookie/-/universal-cookie-6.1.0.tgz#9b631092f77a2b91d1ec153be5e16465ce95b177"
integrity sha512-QBpQWkFJyH9D6nP1ZjPuLDdrgYr3y9ti8OTWf6uWcZwtY06de5f10GPYv3v68LIYWU0a9J2ZF5xFR5gOdD5ZaQ==
dependencies:
"@types/cookie" "^0.5.1"
cookie "^0.5.0"

universalify@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0"
Expand Down

0 comments on commit 3728def

Please sign in to comment.