Skip to content

Commit

Permalink
v3.1 Update (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
HU-Lee authored Nov 3, 2024
1 parent f248e32 commit 92b9979
Show file tree
Hide file tree
Showing 1,108 changed files with 8,419 additions and 27,500 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

11 changes: 0 additions & 11 deletions .eslintrc.cjs

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/deploy.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/dryrun.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/pnpm-vite-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# https://ko.vitejs.dev/guide/static-deploy
name: Deploy Vite to GitHub Pages (pnpm)

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup pnpm action
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Setup Node.js environment (pnpm cache)
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install
- name: Lint check
run: pnpm lint
- name: Build the project
run: pnpm build
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
VITE_API_KEY: ${{ secrets.VITE_API_KEY }}
VITE_CDN_URL: ${{ secrets.VITE_CDN_URL }}

- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.0
with:
path: "./dist"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
43 changes: 24 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# production
/build
node_modules
dist
dist-ssr
*.local

# misc
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Custom
.env
*.tsbuildinfo
104 changes: 50 additions & 54 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,50 @@
<p align="center">
<a href="https://github.com/BeaverHouse/aecheck-v3">
<img src="logo.png" alt="Logo">
</a>

<p align="center">
AE Check : Another Eden Collection Tracker
<br>
<br>
<a href="https://aecheck.com/"><strong>View the website »</strong></a>
<br>
<br>
<a href="https://github.com/BeaverHouse/aecheck-v3/issues">Bug Report</a>
|
<a href="https://github.com/BeaverHouse/aecheck-v3/issues">Request to HU-Lee</a>
</p>

<p align="center">
<a href="https://react.dev/">
<img src="https://img.shields.io/badge/React-61DAFB.svg?style=flat&logo=React&logoColor=black" alt="React">
</a>
<a href="https://www.typescriptlang.org/">
<img src="https://img.shields.io/badge/TypeScript-3178C6.svg?style=flat&logo=TypeScript&logoColor=white" alt="TypeScript">
</a>
<a href="https://eslint.org/">
<img src="https://img.shields.io/badge/ESLint-4B32C3?logo=eslint&logoColor=fff&style=flat" alt="ESLint">
</a>
<a href="https://yarnpkg.com/">
<img src="https://img.shields.io/badge/Yarn-2C8EBB?logo=yarn&logoColor=fff&style=flat" alt="Yarn">
</a>
<a href="./LICENSE">
<img src="https://img.shields.io/github/license/BeaverHouse/aecheck-v3" alt="License">
</a>
</p>
</p>

<!-- Content -->

<br>

## Description

AE Check's latest code.
See more information on [Wiki][wiki]

[wiki]: https://github.com/BeaverHouse/aecheck-v3/wiki

<br>

## Contributing

See the [CONTRIBUTING.md][contributing].

[contributing]: ./CONTRIBUTING.md
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
```
17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";

export default [
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
rules: {
"react/react-in-jsx-scope": "off",
},
},
];
7 changes: 4 additions & 3 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
gtag("config", "G-J7KTFCS1GH");
</script>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=1"
Expand All @@ -26,8 +26,8 @@
name="description"
content="AE Check - Another Eden Collection Tracker"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<title>AE Check - Another Eden Collection Tracker</title>
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
Expand Down Expand Up @@ -63,5 +63,6 @@
<body>
<noscript>AE Check - Another Eden Collection Tracker</noscript>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 92b9979

Please sign in to comment.