From 343071a28044e2b9f0d38dadf0d5f89f52174d5f Mon Sep 17 00:00:00 2001 From: helenailic Date: Mon, 8 Dec 2025 18:02:03 -0600 Subject: [PATCH 1/2] able to delete events now --- .eslintrc.json | 22 +- .github/workflows/node.js.yml | 47 ++- .prettierrc | 2 +- 404.html | 49 ++-- index.html | 12 +- src/App.tsx | 4 +- src/api.ts | 4 +- src/pages/Events/ConfirmationModal/index.tsx | 73 +++++ src/pages/Events/ConfirmationModal/types.d.ts | 9 + src/pages/Events/EventModal/index.tsx | 277 ++++++++++-------- src/pages/Events/QRCodeModal/index.tsx | 4 +- vercel.json | 2 +- 12 files changed, 309 insertions(+), 196 deletions(-) create mode 100644 src/pages/Events/ConfirmationModal/index.tsx create mode 100644 src/pages/Events/ConfirmationModal/types.d.ts diff --git a/.eslintrc.json b/.eslintrc.json index 6ddc340..4025368 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,19 +8,10 @@ "standard-with-typescript", "prettier" ], - "plugins": [ - "react", - "prettier" - ], + "plugins": ["react", "prettier"], "rules": { - "semi": [ - 1, - "always" - ], - "quotes": [ - 2, - "single" - ], + "semi": [1, "always"], + "quotes": [2, "single"], "max-len": ["error", { "code": 80 }], "no-unused-vars": 1, "multiline-ternary": 0, @@ -45,14 +36,11 @@ }, "overrides": [ { - "files": [ - "vite.config.ts", - ".eslintrc.cjs" - ], + "files": ["vite.config.ts", ".eslintrc.cjs"], "parserOptions": { "parser": "@typescript-eslint/parser", "project": "./tsconfig.json" } } ] -} \ No newline at end of file +} diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 16c6e96..1d8d5dc 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,13 +5,12 @@ name: Node.js CI on: push: - branches: [ "main" ] + branches: ['main'] permissions: write-all jobs: build: - runs-on: ubuntu-latest strategy: @@ -20,25 +19,25 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 - - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - - name: Install dependencies - run: npm install - - - name: Build - run: npm run build - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload dist folder - path: './dist' - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + - uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload dist folder + path: './dist' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.prettierrc b/.prettierrc index a1bd96f..aa458dd 100644 --- a/.prettierrc +++ b/.prettierrc @@ -3,4 +3,4 @@ "trailingComma": "none", "singleQuote": true, "printWidth": 80 -} \ No newline at end of file +} diff --git a/404.html b/404.html index d92ab20..cf8dd7f 100644 --- a/404.html +++ b/404.html @@ -1,25 +1,28 @@ - - - WCS Points - - - - Redirecting... - - \ No newline at end of file + + + WCS Points + + + + Redirecting... + + diff --git a/index.html b/index.html index 7f2bd28..1fc3a16 100644 --- a/index.html +++ b/index.html @@ -7,17 +7,17 @@ WCS Points