Skip to content

Commit

Permalink
Merge pull request #22 from TeaClientMC/droops-redirect
Browse files Browse the repository at this point in the history
Droops redirect
  • Loading branch information
Eveeifyeve committed Mar 28, 2024
2 parents aa369af + bec1de6 commit ede1ba0
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 40 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/PrQuality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
run: bun install

- name: Check stylelint
run: bun stylelint
run: bunx stylelint src/styles/**/*.css

CommitQuality:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down
26 changes: 8 additions & 18 deletions .github/workflows/Quality.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Quality

on:
push:
push:
branches-ignore:
- main

jobs:
Quality:
Quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -17,44 +17,34 @@ jobs:
version: latest
- name: Run Biome
run: biome ci .

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install Deps
run: bun install

- name: Check stylelint
run: bun stylelint
run: bunx stylelint src/styles/**/*.css

CommitQuality:
runs-on: ubuntu-22.04
CommitQuality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install packages
run: |
bun install
run: bun install

- name: Print versions
run: |
bun --version
bunx commitlint --version
- name: Install commitlint
run: |
bun install conventional-changelog-conventionalcommits
bun install commitlint@latest
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: bunx commitlint --from HEAD~1 --to HEAD --verbose

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: bunx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
run: bunx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: bun stylelint

commitquality:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down
8 changes: 7 additions & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ export default defineConfig({
tailwind({ nesting: true, applyBaseStyles: true }),
],
redirects: {
// Resources
"/discord": "https://discord.gg/ejFTe4Hfnc",
"/klaas": "https://klaas.tiiny.site/",
"/github": "https://github.com/TeaClientMC",
"/roadmap": "https://github.com/orgs/TeaClientMC/projects/3",

// Partner Networks
"/dropps": "https://discord.gg/qFarXHT32J",

// Easter-Eggs
"/klaas": "https://klaas.tiiny.site/",
},
vite: {
resolve: {
Expand Down
6 changes: 4 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"enabled": true,
"rules": {
"recommended": true
}
},
"ignore": ["./.astro/*"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentWidth": 2,
"lineWidth": 80
"lineWidth": 80,
"ignore": ["./.astro/*"]
},
"css": {
"formatter": {
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"preview": "astro preview",
"build": "astro build",
"astro": "astro",
"lint": "biome check --apply . && bun lint:css --fix",
"lint:css": "stylelint 'src/styles/**/*.css'",
"lint": "biome check --apply . && stylelint 'src/styles/**/*.css' --fix",
"fmt": "biome format . --write",
"biome": "bunx @biomejs/biome",
"check": "biome check . && bun lint:css && bun astro check",
"check": "biome check . && stylelint 'src/styles/**/*.css'&& bun astro check",
"postinstall": "husky install"
},
"trustedDependencies": ["sharp"],
Expand All @@ -31,7 +30,7 @@
},
"dependencies": {
"@astrojs/mdx": "^2.0.2",
"@astrojs/rss": "^3.0.0",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.1",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/ts-plugin": "^1.3.1",
Expand All @@ -45,16 +44,16 @@
"web-vitals": "^3.5.0"
},
"devDependencies": {
"@astrojs/check": "^0.2.0",
"@astrojs/check": "^0.5.10",
"@biomejs/biome": "^1.5.3",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@types/node": "^20.8.3",
"astro": "^4.2.3",
"husky": "^8.0.3",
"husky": "^9.0.11",
"postcss-scss": "^4.0.9",
"stylelint": "^15.11.0",
"stylelint-config-standard": "^34.0.0",
"stylelint": "^16.3.1",
"stylelint-config-standard": "^36.0.0",
"stylelint-scss": "^6.2.1",
"typescript": "^5.2.2"
},
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/header.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import { Image } from "astro:assets";
import { twMerge } from "tailwind-merge";
---

<section
Expand Down
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
2 changes: 1 addition & 1 deletion src/layouts/layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface Props {
const { title, className, desc, banner } = Astro.props;
---

<Head title={String(title) ?? "TeaClent Website"} customDescription={desc} />
<Head title={String(title) ?? "TeaClent Website"} customDescription={desc}, bannerPath={banner} />
<Header />
<div class={twMerge(`flex flex-col h-screen text-white my-[5%] mx-[5%] bg-[var(--nav-color)] rounded-lg ${className}`)}>
<slot />
Expand Down
5 changes: 2 additions & 3 deletions src/pages/apply/[apply].astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import AppError from "@layout/error.astro";
import Layout from "@layout/layout.astro";
const { apply } = Astro.params;
Expand All @@ -21,13 +20,13 @@ if (apply === "staff") {
<Layout title={title}>
{apply === 'staff' ? (
<div class="box" style="position: relative;">
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLScOuyHA9sX_fW3bijeuDOoUWVIPLptbuyavkZ4XC__8DTHLSg/viewform?embedded=true" width="640" height="1445" class="bg-transparent" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLScOuyHA9sX_fW3bijeuDOoUWVIPLptbuyavkZ4XC__8DTHLSg/viewform?embedded=true" width="640" height="1445" class="bg-transparent border-none">Loading…</iframe>
<br/>
<a href="/apply" style="position: absolute; bottom: 20px; right: 20px;">Go Back</a>
</div>
) : apply === 'team' ? (
<div class="box" style="position: relative;">
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSfy0okWtCh1xMZ5YOrQYD-PYKLog3SzAUEYIfvsIE418pdiDA/viewform?embedded=true" width="640" height="1445" class="bg-transparent" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSfy0okWtCh1xMZ5YOrQYD-PYKLog3SzAUEYIfvsIE418pdiDA/viewform?embedded=true" width="640" height="1445" class="bg-transparent border-none">Loading…</iframe>
<br/>
<a href="/apply" style="position: absolute; bottom: 20px; right: 20px;">Go Back</a>
</div>
Expand Down
12 changes: 9 additions & 3 deletions src/pages/news/index.xml.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import rss, { pagesGlobToRssItems } from "@astrojs/rss";
import rss, {
pagesGlobToRssItems,
type RSSFeedItem,
type RSSOptions,
} from "@astrojs/rss";

export async function GET(context) {
export async function GET(context: RSSOptions) {
return rss({
title: "TeaClient News/Updates",
description: "Update your self on the latest news.",
site: context.site,
items: await pagesGlobToRssItems(import.meta.glob("./*/*.{md,mdx}")),
items: (await pagesGlobToRssItems(
import.meta.glob("./*/*.{md,mdx}"),
)) as RSSFeedItem[],
customData: "<language>en-us</language>",
trailingSlash: false,
stylesheet: "./feed.xsl",
Expand Down

0 comments on commit ede1ba0

Please sign in to comment.