Skip to content

Commit

Permalink
chore: clean project and prepare for production
Browse files Browse the repository at this point in the history
  • Loading branch information
diegofcornejo committed Nov 22, 2024
1 parent 619a22e commit d3d1ba1
Show file tree
Hide file tree
Showing 41 changed files with 120 additions and 443 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
PUBLIC_API_URL=http://localhost:3000/api/v1
PUBLIC_CACHET_API_URL="https://status.evolutionygo.com"
PUBLIC_CACHET_API_URL=https://status.evolutionygo.com
PUBLIC_ANALYTICS_URL=https://analytics.evolutionygo.com
PUBLIC_ANALYTICS_ID=1234567890
5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"recommendations": ["astro-build.astro-vscode"],
"recommendations": [
"astro-build.astro-vscode",
"oxc.oxc-vscode"
],
"unwantedRecommendations": []
}
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
}
}
},
site: 'https://beta.evolutionygo.com',
site: 'https://evolutionygo.com',
output: 'server',
adapter: vercel()
});
118 changes: 65 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,66 @@
{
"name": "evolutionygo-web-ranking",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"prepare": "husky"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/react": "^3.6.2",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.2",
"@astrojs/vercel": "^7.8.2",
"@fontsource-variable/plus-jakarta-sans": "^5.1.0",
"@iconify-json/ic": "^1.2.1",
"@iconify-json/mdi": "^1.2.1",
"@nanostores/persistent": "0.10.2",
"@nanostores/react": "0.8.0",
"@playform/compress": "^0.1.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"astro": "^4.16.8",
"astro-icon": "^1.1.2",
"nanostores": "0.11.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-svg": "16.1.34",
"sonner": "1.7.0",
"swiper": "11.1.14",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3"
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@tailwindcss/typography": "^0.5.15",
"daisyui": "^4.12.14",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"oxlint": "^0.11.1"
},
"lint-staged": {
"*.{astro,js,jsx,ts,tsx}": [
"oxlint"
]
}
}
"name": "evolutionygo-web-ranking",
"type": "module",
"version": "1.0.0",
"author": "Diego Cornejo <[email protected]> (https://diegocornejo.com)",
"license": "ISC",
"repository": "https://github.com/diegofcornejo/evolutionygo-web-ranking",
"bugs": "https://github.com/diegofcornejo/evolutionygo-web-ranking/issues",
"homepage": "https://evolutionygo.com",
"keywords": [
"ygo",
"yugioh",
"ygopro",
"astrojs",
"astro"
],
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"prepare": "husky"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/react": "^3.6.2",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.2",
"@astrojs/vercel": "^7.8.2",
"@fontsource-variable/plus-jakarta-sans": "^5.1.0",
"@iconify-json/ic": "^1.2.1",
"@iconify-json/mdi": "^1.2.1",
"@nanostores/persistent": "0.10.2",
"@nanostores/react": "0.8.0",
"@playform/compress": "^0.1.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"astro": "^4.16.8",
"astro-icon": "^1.1.2",
"nanostores": "0.11.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-svg": "16.1.34",
"sonner": "1.7.0",
"swiper": "11.1.14",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3"
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@tailwindcss/typography": "^0.5.15",
"daisyui": "^4.12.14",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"oxlint": "^0.11.1"
},
"lint-staged": {
"*.{astro,js,jsx,ts,tsx}": [
"oxlint"
]
}
}
9 changes: 0 additions & 9 deletions public/favicon.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/github_logo.svg

This file was deleted.

42 changes: 0 additions & 42 deletions src/components/Auth/SignInForm.astro

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Auth/SignInForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react';
import { ReactSVG } from 'react-svg'
import type { Session } from '@types';
import type { Session } from 'src/types/types';
import { updateSession } from '@stores/sessionStore';

export default function LoginForm({ dialog }: { dialog: string }) {
Expand Down
13 changes: 0 additions & 13 deletions src/components/Avatar/Avatar.astro

This file was deleted.

26 changes: 0 additions & 26 deletions src/components/Avatar/AvatarGroup.astro

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/Avatar/AvatarIndicator.astro

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/Avatar/AvatarRing.astro

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { News as BannerProps} from '@types';
import type { News as Props} from 'src/types/types';
import { ReactSVG } from 'react-svg'

export default ({ image, title, description, buttonText, buttonLink }: BannerProps) => {
export default ({ image, title, description, buttonText, buttonLink }: Props) => {
return (
<div
className="card bg-base-100 from-base-200 not-prose outline-base-content/5 relative overflow-hidden bg-gradient-to-b font-sans shadow-lg outline -outline-offset-1 md:flex-row-reverse">
Expand Down
52 changes: 0 additions & 52 deletions src/components/Breadcrumb.astro

This file was deleted.

14 changes: 2 additions & 12 deletions src/components/Cards/AchievementCard.astro
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
---
import { Icon } from 'astro-icon/components';
import type { Achievement } from 'src/types/types';
interface Props {
id: string;
icon: string;
name: string;
labels: string[];
unlockedAt: Date;
description: string;
earnedPoints: number;
color?: string;
}
const { icon, name, labels = [], unlockedAt, description, earnedPoints, color = '#F5BF50'} = Astro.props;
const { icon, name, labels = [], unlockedAt, description, earnedPoints, color = '#F5BF50' } = Astro.props as Achievement;
---

<div class='card bg-base-300 w-full shadow-xl max-w-xs'>
Expand Down
Loading

0 comments on commit d3d1ba1

Please sign in to comment.