Skip to content

Commit

Permalink
feat: website update 2024 (#198)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
PatrickHeneise and framp authored Oct 19, 2024
1 parent 9edc014 commit 649e5cc
Show file tree
Hide file tree
Showing 187 changed files with 21,365 additions and 101,900 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

32 changes: 32 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
GH_ORG=cyprus-developer-community
GH_GRAPHQL_URL=https://api.github.com/graphql

# Development Variables
#
# https://github.com/settings/tokens?type=beta
# Create a fine-grained token with the following permissions:
# Resource owner: cyprus-developer-community
# Repository Access: Public Repositories (read only)
# Organization permissions: Members (read only)
GH_PAT=


# Production Variables
#
# Go to Settings -> Developer Settings -> GitHub Apps and create a new GitHub App
# https://github.com/organizations/<your-org>/settings/apps/new
# Set up the permissions and install the application in your organization. The installation ID
# can be found in the URL of the installation page:
# ie: https://github.com/organizations/<your-org>/settings/installations/123456789
# Create a private key and store it on a secure location.
#
# Permissions:
# Repository permissions
## Issues: Read & Write
## Pull Requests: Read & Write
# Organization permissions
## Members: Read & Write

GH_APP_ID=
GH_APP_INSTALLATION_ID=
GH_PRIVATE_KEY=
14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:solid/recommended",
"plugin:markdown/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["solid"]
}
15 changes: 4 additions & 11 deletions .github/workflows/codequality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,25 @@ on:
type: string
required: false
default: lts/hydrogen
pnpm-version:
type: string
required: false
default: 7.x

jobs:
codequality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: '${{ inputs.pnpm-version }}'
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'
cache: 'npm'

- name: Install Node Modules
run: pnpm i
run: npm ci

- name: Prettier
run: pnpm prettier:check
run: npm run pretty

- name: Lint
run: pnpm lint:check
run: npm run lint

# - name: Type check
# run: pnpm typecheck
24 changes: 24 additions & 0 deletions .github/workflows/compress-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# https://github.com/marketplace/actions/image-actions

name: Compress Images
on:
pull_request:
paths:
- public/photos/**.jpg
- public/photos/**.jpeg
- public/photos/**.png
- public/photos/**.webp
jobs:
build:
# Only run on Pull Requests within the same repository, and not from forks.
if: github.event.pull_request.head.repo.full_name == github.repository
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Compress Images
uses: calibreapp/image-actions@main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .github/workflows/e2e-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ jobs:
uses: ./.github/workflows/e2e.yml
with:
node-version: lts/hydrogen
pnpm-version: 7.x
12 changes: 3 additions & 9 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
node-version:
type: string
required: true
pnpm-version:
type: string
required: true

jobs:
e2e:
Expand All @@ -18,22 +15,19 @@ jobs:
CI: true
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: ${{ inputs.pnpm-version }}
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'
cache: 'npm'

- name: Install Node Modules
run: pnpm i
run: npm ci

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

- name: End To End
run: pnpm test:e2e
run: npm run test:e2e

- uses: actions/upload-artifact@v3
if: always()
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ jobs:
uses: ./.github/workflows/e2e.yml
with:
node-version: lts/hydrogen
pnpm-version: 7.x
11 changes: 2 additions & 9 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
type: string
required: false
default: lts/hydrogen
pnpm-version:
type: string
required: false
default: 7.x
jobs:
unit:
runs-on: ubuntu-20.04
Expand All @@ -19,12 +15,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '${{ inputs.node-version }}'
- uses: pnpm/[email protected]
with:
version: '${{ inputs.pnpm-version }}'

- name: Install Node Modules
run: pnpm i
run: npm ci

- name: Unit Tests
run: npm run test:unit
run: npm run test
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ node_modules
/functions/\[\[path\]\].js
/public/build
.env
.env.*
keyfile.pem
build
.pnpm-debug.log
Expand All @@ -13,4 +12,8 @@ build
/test-results/
/playwright-report/
/playwright/.cache/
/e2e-report/
/e2e-report/
.solid
dist
.output
.vinxi
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
strict-peer-dependencies=false
auto-install-peers=false
legacy-peer-deps=true
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
build/
node_modules/
app/styles/uno.css
.pnpm-store
pnpm-lock.yaml
playwright-report
39 changes: 0 additions & 39 deletions Dockerfile

This file was deleted.

31 changes: 31 additions & 0 deletions app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { defineConfig } from '@solidjs/start/config'
import tailwindcss from 'tailwindcss'
import { config } from 'vinxi/plugins/config'

export default defineConfig({
appRoot: 'src',
islands: false,
server: {
preset: 'cloudflare_module',
rollupConfig: {
external: ['__STATIC_CONTENT_MANIFEST', 'node:async_hooks']
}
// prerender: {
// routes: ['/']
// }
},
vite: {
optimizeDeps: {
entries: []
},
plugins: [
config('tailwind', {
css: {
postcss: {
plugins: [tailwindcss]
}
}
})
]
}
})
10 changes: 0 additions & 10 deletions app/entry.client.tsx

This file was deleted.

48 changes: 0 additions & 48 deletions app/entry.server.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions app/features/components/Avatar/Avatar/index.tsx

This file was deleted.

Loading

0 comments on commit 649e5cc

Please sign in to comment.