Skip to content

Commit

Permalink
After Devcon (#116)
Browse files Browse the repository at this point in the history
* refactor: packages, rework eslint rules

* refactor: moving components to their right places

* correcting errors

* refactor: move context

* error correcting

* refactor: tesconfig + move constants to its right place

* error correcting

* refactor: typings

* error correcting

* refactor: redudant page names

* error correcting

* refactor

* error correcting

* general refactor

* styling refactor

* styling refactor

* error correcting

* correcting dependencies

* linting

* prettier

* deleting data folder

* error correcting

* error correcting

* correcting some page names

* lock file correcting

---------

Co-authored-by: Levente Kiss <[email protected]>
  • Loading branch information
rolandlor and Levente Kiss authored Dec 7, 2024
1 parent 6d0b0b5 commit 0011334
Show file tree
Hide file tree
Showing 3,498 changed files with 2,076 additions and 5,458,176 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
56 changes: 56 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
"prettier",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"react",
"react-refresh",
"react-hooks",
"simple-import-sort",
],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"simple-import-sort/imports": [
"error",
{
groups: [
// Packages `react` related packages come first.
["^react", "^@?\\w"],
// Internal packages.
["^(@|components)(/.*|$)"],
// Side effect imports.
["^\\u0000"],
// Parent imports. Put `..` last.
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
// Other relative imports. Put same-folder imports and `.` last.
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
// Style imports.
["^.+\\.?(css)$"],
],
},
],
},
};
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Build
run: npm run build
run: npm run build
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,7 +17,7 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: true

jobs:
Expand All @@ -34,7 +34,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Get current date
Expand All @@ -54,7 +54,7 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './dist'
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ If you are developing a production application, we recommend updating the config
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
ecmaVersion: "latest",
sourceType: "module",
project: ["./tsconfig.json", "./tsconfig.node.json", "./tsconfig.app.json"],
tsconfigRootDir: __dirname,
},
}
};
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
Expand Down
44 changes: 22 additions & 22 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@ steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- '--no-cache'
- '-t'
- "--no-cache"
- "-t"
- $_AR_HOSTNAME/$PROJECT_ID/cloud-run-source-deploy/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA
- .
- '-f'
- "-f"
- Dockerfile
- '--build-arg'
- 'BEE_API_URL=${_BEE_API_URL}'
- '--build-arg'
- 'DEVCON6_SESSSIONS_HASH=${_DEVCON6_SESSSIONS_HASH}'
- '--build-arg'
- 'BASE_URL=${_BASE_URL}'
- '--build-arg'
- 'HEALTH_CHECK_DATA_REF=${_HEALTH_CHECK_DATA_REF}'
- '--build-arg'
- 'FEED_OWNER_ADDRESS=${_FEED_OWNER_ADDRESS}'
- '--build-arg'
- 'BACKEND_API_URL=${_BACKEND_API_URL}'
- '--build-arg'
- 'GATEWAY=${_GATEWAY}'
- "--build-arg"
- "BEE_API_URL=${_BEE_API_URL}"
- "--build-arg"
- "DEVCON6_SESSSIONS_HASH=${_DEVCON6_SESSSIONS_HASH}"
- "--build-arg"
- "BASE_URL=${_BASE_URL}"
- "--build-arg"
- "HEALTH_CHECK_DATA_REF=${_HEALTH_CHECK_DATA_REF}"
- "--build-arg"
- "FEED_OWNER_ADDRESS=${_FEED_OWNER_ADDRESS}"
- "--build-arg"
- "BACKEND_API_URL=${_BACKEND_API_URL}"
- "--build-arg"
- "GATEWAY=${_GATEWAY}"
id: Build
- name: gcr.io/cloud-builders/docker
args:
- push
- >-
$_AR_HOSTNAME/$PROJECT_ID/cloud-run-source-deploy/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA
id: Push
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:slim'
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk:slim"
args:
- run
- services
- update
- $_SERVICE_NAME
- '--platform=managed'
- "--platform=managed"
- >-
--image=$_AR_HOSTNAME/$PROJECT_ID/cloud-run-source-deploy/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA
- >-
--labels=managed-by=gcp-cloud-build-deploy-cloud-run,commit-sha=$COMMIT_SHA,gcb-build-id=$BUILD_ID,gcb-trigger-id=$_TRIGGER_ID
- '--region=$_DEPLOY_REGION'
- '--quiet'
- "--region=$_DEPLOY_REGION"
- "--quiet"
id: Deploy
entrypoint: gcloud
images:
Expand All @@ -60,4 +60,4 @@ substitutions:
tags:
- gcp-cloud-build-deploy-cloud-run
- gcp-cloud-build-deploy-cloud-run-managed
- devcon-buzz
- devcon-buzz
Binary file removed data/audio/devcon-6/opening-ceremonies-aya.mp3
Binary file not shown.
Binary file removed data/audio/devcon-6/opening-ceremonies-carl.mp3
Binary file not shown.
Binary file removed data/audio/devcon-6/opening-ceremonies-danny.mp3
Binary file not shown.
Binary file removed data/audio/devcon-6/opening-ceremonies-intro.mp3
Binary file not shown.
Binary file removed data/audio/devcon-6/opening-ceremonies-jonathan.mp3
Binary file not shown.
Binary file removed data/audio/devcon-6/opening-ceremonies-tim.mp3
Binary file not shown.
Binary file not shown.
14 changes: 0 additions & 14 deletions data/events/devcon-0.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/events/devcon-1.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/events/devcon-2.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/events/devcon-3.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/events/devcon-4.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/events/devcon-5.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/events/devcon-6.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/events/devcon-test.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/talk-1.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/talk-2.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/talk-3.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/talk-4.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/talk-5-opening-ceremonies.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/talk-5.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/workshop-1.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/workshop-2.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/workshop-3.json

This file was deleted.

6 changes: 0 additions & 6 deletions data/rooms/devcon-6/workshop-4.json

This file was deleted.

Loading

0 comments on commit 0011334

Please sign in to comment.