Skip to content

Commit

Permalink
feat: teams table on admin dashboard (#222)
Browse files Browse the repository at this point in the history
Co-authored-by: Jaisal Patel <70134418+GhostOf0days@users.noreply.github.com>
Co-authored-by: GhostOf0days <jaisal.patel45@gmail.com>
  • Loading branch information
3 people authored Mar 16, 2024
1 parent 905fe18 commit 3024dac
Show file tree
Hide file tree
Showing 156 changed files with 10,146 additions and 9,172 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ module.exports = {
},
rules: {
"@typescript-eslint/camelcase": ["off", { properties: "never" }],
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/quotes": "off",
camelcase: "off",
"comma-dangle": ["error", "never"],
"comma-dangle": "off",
"no-extra-semi": 2,
"no-irregular-whitespace": 2,
"no-lonely-if": 2,
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [main]
pull_request:
branches: [main]
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [main]
pull_request:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Build project
run: |
npm install
npm run build
- name: Build project
run: |
npm install
npm run build
52 changes: 26 additions & 26 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"bracketSpacing": true,
"printWidth": 80,
"proseWrap": "preserve",
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 4,
"useTabs": true,
"arrowParens": "always",
"endOfLine": "lf",
"overrides": [
{
"files": "*.json",
"options": {
"singleQuote": false
}
},
{
"files": ".*rc",
"options": {
"singleQuote": false,
"parser": "json"
}
}
]
}
"bracketSpacing": true,
"printWidth": 80,
"proseWrap": "preserve",
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 4,
"useTabs": true,
"arrowParens": "always",
"endOfLine": "lf",
"overrides": [
{
"files": "*.json",
"options": {
"singleQuote": false
}
},
{
"files": ".*rc",
"options": {
"singleQuote": false,
"parser": "json"
}
}
]
}
22 changes: 11 additions & 11 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const backends = {
local: "http://localhost:4000",
development: "https://dev.backend.tartanhacks.com",
staging: "https://stg.backend.tartanhacks.com",
production: "https://backend.tartanhacks.com"
}
local: 'http://localhost:4000',
development: 'https://dev.backend.tartanhacks.com',
staging: 'https://stg.backend.tartanhacks.com',
production: 'https://backend.tartanhacks.com',
};
module.exports = {
poweredByHeader: false,
reactStrictMode: false,
env: {
BACKEND_URL: backends[process.env.APP_ENV || "development"]
}
}
poweredByHeader: false,
reactStrictMode: false,
env: {
BACKEND_URL: backends[process.env.APP_ENV || 'development'],
},
};
82 changes: 41 additions & 41 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
import { StyledEngineProvider, ThemeProvider } from "@mui/material"
import type { AppProps } from "next/app"
import Head from "next/head"
import { ReactElement } from "react"
import { Provider } from "react-redux"
import Script from "next/script"
import store from "src/store"
import { theme } from "src/themes/theme"
import "styles/globals.scss"
import { StyledEngineProvider, ThemeProvider } from '@mui/material';
import type { AppProps } from 'next/app';
import Head from 'next/head';
import { ReactElement } from 'react';
import { Provider } from 'react-redux';
import Script from 'next/script';
import store from 'src/store';
import { theme } from 'src/themes/theme';
import 'styles/globals.scss';

const App = ({ Component, pageProps }: AppProps): ReactElement => {
return (
<>
<Head>
<title>TartanHacks</title>
{/* Disable cache control */}
<meta
httpEquiv="Cache-Control"
content="no-cache, no-store, must-revalidate"
/>
<meta httpEquiv="Pragma" content="no-cache" />
<meta httpEquiv="Expires" content="0" />
<meta name="description" content="Register for TartanHacks" />
<link rel="icon" href="/favicon.png" />
<Script
async
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.GOOGLE_ANALYTICS_ID}`}
></Script>
<Script id="google-analytics" strategy="afterInteractive">
{`
return (
<>
<Head>
<title>TartanHacks</title>
{/* Disable cache control */}
<meta
httpEquiv="Cache-Control"
content="no-cache, no-store, must-revalidate"
/>
<meta httpEquiv="Pragma" content="no-cache" />
<meta httpEquiv="Expires" content="0" />
<meta name="description" content="Register for TartanHacks" />
<link rel="icon" href="/favicon.png" />
<Script
async
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.GOOGLE_ANALYTICS_ID}`}
></Script>
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${process.env.GOOGLE_ANALYTICS_ID}', {
page_path: window.location.pathname,
});
`}
</Script>
</Head>
<ThemeProvider theme={theme}>
<Provider store={store}>
<StyledEngineProvider injectFirst>
<Component {...pageProps} />
</StyledEngineProvider>
</Provider>
</ThemeProvider>
</>
)
}
</Script>
</Head>
<ThemeProvider theme={theme}>
<Provider store={store}>
<StyledEngineProvider injectFirst>
<Component {...pageProps} />
</StyledEngineProvider>
</Provider>
</ThemeProvider>
</>
);
};

export default App
export default App;
Loading

0 comments on commit 3024dac

Please sign in to comment.