From ff857f336937f6c20316d6e6990dc6553d607ebe Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 2 Oct 2022 00:25:13 +0300 Subject: [PATCH] Custom URL url redirects and replacements --- .eslintrc.js | 2 +- app/components/BuildCard.tsx | 4 +- app/components/layout/Footer.tsx | 4 +- app/components/layout/UserItem.tsx | 2 +- app/db/models/users/queries.server.ts | 2 +- app/db/models/users/updateProfile.sql | 2 +- app/root.tsx | 3 +- app/routes/builds.tsx | 2 +- app/routes/calendar/$id/index.tsx | 2 +- app/routes/index.tsx | 2 +- app/routes/plus/suggestions.tsx | 2 +- app/routes/plus/voting/results.tsx | 2 +- app/routes/u.$identifier.tsx | 52 ++++++++++++++++++++--- app/routes/u.$identifier/builds/index.tsx | 7 ++- app/routes/u.$identifier/builds/new.tsx | 2 +- app/routes/u.$identifier/edit.tsx | 11 ++--- app/routes/u.$identifier/results.tsx | 2 +- app/utils/urls.ts | 27 +++++++++--- cypress/e2e/builds.cy.ts | 10 ++--- 19 files changed, 100 insertions(+), 40 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6e251d069..cb9b9e50c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,7 +20,7 @@ module.exports = { rules: { "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], "no-constant-condition": ["error", { checkLoops: false }], - "no-console": ["error", { allow: ["warn", "error"] }], + "no-console": ["warn", { allow: ["warn", "error"] }], "no-warning-comments": ["warn", { terms: ["xxx"] }], "no-var": 0, "@typescript-eslint/no-unsafe-return": 0, diff --git a/app/components/BuildCard.tsx b/app/components/BuildCard.tsx index 67a7b6f74..a1258051f 100644 --- a/app/components/BuildCard.tsx +++ b/app/components/BuildCard.tsx @@ -88,9 +88,7 @@ export function BuildCard({ build, owner, canEdit = false }: BuildProps) {