Skip to content

Commit 649e5cc

Browse files
feat: website update 2024 (#198)
* feat: new website skeleton * feat: add image compression workflow * feat: add graphql queries for github * fix: use cf worker adapter * fix: wrangler config * fix: wrangler config * fix: node version * fix: vite config for cf * fix: wrangler flags * fix: remove esm build * fix: query & cf config * feat: homepage improvements * feat: add events and event detail pages * fix: featured image * feat: stats * feat: add discord link * chore: add cta notes * fix: enable PAT auth * chore: production env description * feat: group page * feat: add team page, unify layouts * feat: upcoming and past events * fix: another vite deploy try * wip: speaker profiles * fix: speaker mini profile * fix: speaker profile * chore: try build * chore: try workers adapter * fix: wrangler * fix: wrangler * chore: deploy * chore: deploy * wip: upgrade solid start * wip: upgrade solid start * fix: delete output * fix: wrangler * fix: lockfile * fix: typo * fix: try latest versions * fix: switch back to npm * fix: try cf pages module * fix: remove body logic for now * refactor: graphql * chore: pkg updates * chore: pkg update for solid * fix: solid 0.6 trial * fix: pages * fix: pages * fix: cf module * feat: toggle menu with buttons on mobile * fix: run prettier / eslint on build * feat: migrate about page * feat: announcements * feat: add events and event detail * fix: remove component * feat: website 2024 (#279) * feat: announcements * feat: add events and event detail * fix: remove component * fix: revert vinxi --------- Co-authored-by: Federico Rampazzo <[email protected]>
1 parent 9edc014 commit 649e5cc

File tree

187 files changed

+21365
-101900
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+21365
-101900
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.env.example

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
GH_ORG=cyprus-developer-community
2+
GH_GRAPHQL_URL=https://api.github.com/graphql
3+
4+
# Development Variables
5+
#
6+
# https://github.com/settings/tokens?type=beta
7+
# Create a fine-grained token with the following permissions:
8+
# Resource owner: cyprus-developer-community
9+
# Repository Access: Public Repositories (read only)
10+
# Organization permissions: Members (read only)
11+
GH_PAT=
12+
13+
14+
# Production Variables
15+
#
16+
# Go to Settings -> Developer Settings -> GitHub Apps and create a new GitHub App
17+
# https://github.com/organizations/<your-org>/settings/apps/new
18+
# Set up the permissions and install the application in your organization. The installation ID
19+
# can be found in the URL of the installation page:
20+
# ie: https://github.com/organizations/<your-org>/settings/installations/123456789
21+
# Create a private key and store it on a secure location.
22+
#
23+
# Permissions:
24+
# Repository permissions
25+
## Issues: Read & Write
26+
## Pull Requests: Read & Write
27+
# Organization permissions
28+
## Members: Read & Write
29+
30+
GH_APP_ID=
31+
GH_APP_INSTALLATION_ID=
32+
GH_PRIVATE_KEY=

.eslintrc.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

.eslintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:solid/recommended",
10+
"plugin:markdown/recommended"
11+
],
12+
"parserOptions": {
13+
"ecmaFeatures": {
14+
"jsx": true
15+
},
16+
"ecmaVersion": "latest",
17+
"sourceType": "module"
18+
},
19+
"plugins": ["solid"]
20+
}

.github/workflows/codequality.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,25 @@ on:
77
type: string
88
required: false
99
default: lts/hydrogen
10-
pnpm-version:
11-
type: string
12-
required: false
13-
default: 7.x
1410

1511
jobs:
1612
codequality:
1713
runs-on: ubuntu-latest
1814
steps:
1915
- uses: actions/checkout@v4
20-
- uses: pnpm/[email protected]
21-
with:
22-
version: '${{ inputs.pnpm-version }}'
2316
- uses: actions/setup-node@v4
2417
with:
2518
node-version: ${{ inputs.node-version }}
26-
cache: 'pnpm'
19+
cache: 'npm'
2720

2821
- name: Install Node Modules
29-
run: pnpm i
22+
run: npm ci
3023

3124
- name: Prettier
32-
run: pnpm prettier:check
25+
run: npm run pretty
3326

3427
- name: Lint
35-
run: pnpm lint:check
28+
run: npm run lint
3629

3730
# - name: Type check
3831
# run: pnpm typecheck
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# https://github.com/marketplace/actions/image-actions
2+
3+
name: Compress Images
4+
on:
5+
pull_request:
6+
paths:
7+
- public/photos/**.jpg
8+
- public/photos/**.jpeg
9+
- public/photos/**.png
10+
- public/photos/**.webp
11+
jobs:
12+
build:
13+
# Only run on Pull Requests within the same repository, and not from forks.
14+
if: github.event.pull_request.head.repo.full_name == github.repository
15+
name: calibreapp/image-actions
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v3
20+
21+
- name: Compress Images
22+
uses: calibreapp/image-actions@main
23+
with:
24+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/e2e-daily.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ jobs:
1010
uses: ./.github/workflows/e2e.yml
1111
with:
1212
node-version: lts/hydrogen
13-
pnpm-version: 7.x

.github/workflows/e2e.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
node-version:
77
type: string
88
required: true
9-
pnpm-version:
10-
type: string
11-
required: true
129

1310
jobs:
1411
e2e:
@@ -18,22 +15,19 @@ jobs:
1815
CI: true
1916
steps:
2017
- uses: actions/checkout@v4
21-
- uses: pnpm/[email protected]
22-
with:
23-
version: ${{ inputs.pnpm-version }}
2418
- uses: actions/setup-node@v4
2519
with:
2620
node-version: ${{ inputs.node-version }}
27-
cache: 'pnpm'
21+
cache: 'npm'
2822

2923
- name: Install Node Modules
30-
run: pnpm i
24+
run: npm ci
3125

3226
- name: Install Playwright Browsers
3327
run: npx playwright install --with-deps
3428

3529
- name: End To End
36-
run: pnpm test:e2e
30+
run: npm run test:e2e
3731

3832
- uses: actions/upload-artifact@v3
3933
if: always()

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ jobs:
3636
uses: ./.github/workflows/e2e.yml
3737
with:
3838
node-version: lts/hydrogen
39-
pnpm-version: 7.x

.github/workflows/unit.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
type: string
88
required: false
99
default: lts/hydrogen
10-
pnpm-version:
11-
type: string
12-
required: false
13-
default: 7.x
1410
jobs:
1511
unit:
1612
runs-on: ubuntu-20.04
@@ -19,12 +15,9 @@ jobs:
1915
- uses: actions/setup-node@v4
2016
with:
2117
node-version: '${{ inputs.node-version }}'
22-
- uses: pnpm/[email protected]
23-
with:
24-
version: '${{ inputs.pnpm-version }}'
2518

2619
- name: Install Node Modules
27-
run: pnpm i
20+
run: npm ci
2821

2922
- name: Unit Tests
30-
run: npm run test:unit
23+
run: npm run test

0 commit comments

Comments
 (0)