Skip to content

Commit 39b8f6a

Browse files
darbyjackkashikepowercasgamerMiniDiggernotTamion
authored
Astro Migration (#166)
* feat: initial work on astro migration * chore: import alias * fix: don't always show dropdown * chore: sort * fix: lowercase * feat: migrate to unocss * feat: start working on team page (refer to todo.md) * feat: start working on sponsor page (refer to todo.md) * feat: add in guidelines and community pages * biome * feat: implement a hacky remote image wrapper allows us to set a fallback to ensure builds don't fail * feat: main download page + compile fixups - Added back in astro check command to build - Fixed invalid height string on footer - Use icon instead of image on software preview component - Fix invalid html property on contribute page - Added in main download landing page - Update icon use on main and team page * fix: avatar fallbacks, abstract out user images * feat: initial pass at adding in software pages with todos * feat: add in cloudflare adapter * feat: javadoc page + javadoc link on project pages * feat: started working on build explorer * fix: include og:url as required by spec * chore: format * chore(deps): upgrade deps * feat: readme and renovate * feat: add in hangar project counts on software pages * chore(deps): upgrade astro * feat: speed up javadoc page loading * work * chore(deps): upgrade deps * chore(todo): clean up todo formatting * feat: remove react, rewrite nav bar, start with software download * feat: add prettier, update deps, remove more react stuff * chore: add more empty alt tags * chore(deps): upgrade deps * fix: social icons, navbar default extended mobile, icon colors TODO: Check to see if migrating from raw image to icon broke anything * feat(downloads): initial work, left a few todos * chore(biome): please biome and a few more todos for click handlers * feat: added in non-reactive builds explorer, see todos. * chore: add some comments to todo * chore: couple more items for the todo * feat: add in commit hash to footer * fix: cc by sa icons * fix extra spaces * remove github ratelimit thing * footer git commit fix * sitemap * t o d o * disallow indexing for robots * change domain to dev * update pnpm to 9.12.2 * implement interactivity for SoftwareDownloadButton * feat: start working on astro v5 migration * chore(deps): upgrade astro beta and remove override fix * chore(deps): upgrade to astro v5 * Revive Astro feature branch (#132) * Update dependencies within package.json constraints (pnpm up) * Update astro (pnpm dlx @astrojs/upgrade) * Align RemoteImageWrapper.astro with upstream implementation applyResponsiveAttributes was removed in a recent Astro commit. Internally they simply extract attributes without this helper now. See: withastro/astro@509fa67 * Utilize named slots for SoftwareHeader so that components can be used inside * Add named slots to SoftwareDownload to accomodate more complex descriptions (e.g., for Waterfall). * Allow indexing in robots.txt * Update tasks in TODO.md * Use a web component in SoftwarePreview to change the anchor href as needed. For a Javadoc SoftwarePreview, this makes a request to the API first before changing the URL. No UI framework required here. * Convert Terminal.astro to use Web Components and run entirely clientside. Rather than a UI framework, this can run using a standard HTML custom element. * Remove debug log from SoftwarePreview * Convert SoftwareHeader to use web components and perform its own clientside fetch for data. Waiting to resolve Hangar CORs issue to complete page implementation. * feat: initial work on astro v2 * feat: add hangar project count to platforms * feat: javadocs started * feat: sitemap * feat: lots of styling fixes for footer and download pages * feat: upgrade to svelte 5 syntax * fix: terminal output order * fix: eol color codes, waterfall eol message * chore: rebase + fixups * chore: add back license and renovate * feat: add in cloudflare adapter * feat: add in older builds message and link to fill-ui * feat: update readme * chore(deps): upgrade deps * chore: setup cloudflare workers support * fix: terminal * fix: terminal success message color * fix: velocity jd version handling * fix: eol banner position for waterfall * Enable previews in Wrangler config * Use edge cached SSR for downloads pages (#167) * Use edge cached SSR for downloads page * Fix headers * Halve browser page cache time vs CDN cache time * Fix some imports I was getting errors about this in dev runs * fix: wrangler for workers * Symlink AGENTS.md to README.md * Setup prettier and eslint, format files * Fix scripts and add workflow * gitignore eslint cache file * Prefer double quotes * Don't add line breaks to @source inline lines * Also fetch build list serverside for download pages * Add type checking with tsgo * Properly update tsconfig * Run all checks in actions * feat: utilize edge-type fetching information for workers * Add bunfig.toml * feat: add in vscode settings * fix: mobile navbar spacing * chore: adjust home page image layout * fix: extra spaces in build explorer message * fix: extra spacing on navbar links * Use channel filter when possible for querying builds * fix: styling for build download information * Update getVersionBuilds error message * fix: fallback image handling for sponsors * fix: image layout for hangar on software pages * Add back loading state for build list, for experimental toggling * Fix potential race issue when spamming experimental toggle * Improve experimental toggle spam fix * fix: software page slot nesting * Add fade transition when swapping to experimental without cache * Disable SoftwareDownloadButton while buildsLoading again * chore: turn on observability in wrangler * fix: white outline around contributors * fix: bake in commit hash to support ssr * chore: update wrangler config name --------- Co-authored-by: Riley Park <rileysebastianpark@gmail.com> Co-authored-by: powercas_gamer <cas@mizule.dev> Co-authored-by: MiniDigger | Martin <admin@benndorf.dev> Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com> Co-authored-by: Jacob Andersen <19645494+jacobsandersen@users.noreply.github.com> Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
1 parent c4f7d49 commit 39b8f6a

File tree

177 files changed

+4280
-6358
lines changed

Some content is hidden

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

177 files changed

+4280
-6358
lines changed

.editorconfig

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

.eslintrc.json

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

.github/workflows/check.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
8+
jobs:
9+
lint:
10+
# Only run on PRs if the source branch is on someone else's repo
11+
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v5
17+
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v2
20+
with:
21+
bun-version: latest
22+
23+
- name: Install dependencies
24+
run: bun install
25+
26+
- name: Run linter
27+
run: bun run check:all

.gitignore

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,26 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1+
# build output
2+
dist/
23

3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# next.js
12-
/.next/
13-
/out/
14-
15-
# production
16-
/build
4+
# generated types
5+
.astro/
176

18-
# misc
19-
.DS_Store
20-
*.pem
7+
# dependencies
8+
node_modules/
219

22-
# debug
10+
# logs
2311
npm-debug.log*
2412
yarn-debug.log*
2513
yarn-error.log*
26-
.pnpm-debug.log*
14+
pnpm-debug.log*
2715

28-
# local env files
29-
.env*.local
16+
# environment variables
17+
.env
18+
.env.production
3019

31-
# typescript
32-
*.tsbuildinfo
20+
# macOS-specific files
21+
.DS_Store
3322

34-
# intellij
35-
/.idea
36-
*.iml
23+
# jetbrains setting folder
24+
.idea/
3725

38-
# open-next
39-
.open-next
26+
.eslintcache

.npmrc

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

.prettierignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Dependencies
2+
node_modules/
3+
bun.lock
4+
5+
# Build outputs
6+
dist/
7+
.astro/
8+
.wrangler/
9+
10+
# Cache
11+
.cache/
12+
13+
# Logs
14+
*.log
15+
16+
# Environment files
17+
.env
18+
.env.*
19+
20+
# OS files
21+
.DS_Store
22+
Thumbs.db
23+
24+
# IDE files
25+
.vscode/
26+
.idea/
27+
28+
# Lock files
29+
package-lock.json
30+
yarn.lock
31+
pnpm-lock.yaml

.prettierrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"semi": true,
3+
"singleQuote": false,
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"trailingComma": "es5",
7+
"printWidth": 140,
8+
"arrowParens": "always",
9+
"endOfLine": "lf",
10+
"plugins": ["prettier-plugin-astro", "prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
11+
"overrides": [
12+
{
13+
"files": "*.astro",
14+
"options": {
15+
"parser": "astro"
16+
}
17+
},
18+
{
19+
"files": "*.svelte",
20+
"options": {
21+
"parser": "svelte"
22+
}
23+
}
24+
]
25+
}

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

.vscode/settings.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
5+
"eslint.enable": true,
6+
"eslint.run": "onSave",
7+
"eslint.validate": [
8+
"javascript",
9+
"javascriptreact",
10+
"typescript",
11+
"typescriptreact",
12+
"astro",
13+
"svelte"
14+
],
15+
16+
"editor.codeActionsOnSave": {
17+
"source.fixAll": "always",
18+
"source.fixAll.eslint": "always"
19+
},
20+
21+
"prettier.requireConfig": true,
22+
"prettier.useEditorConfig": true,
23+
}

0 commit comments

Comments
 (0)