Compare commits
3 Commits
8aec22cc86
...
510899a0dd
Author | SHA1 | Date | |
---|---|---|---|
510899a0dd
|
|||
56fa9c3ab6
|
|||
8b27c8e829
|
@@ -14,7 +14,12 @@
|
|||||||
"Bash(python3:*)",
|
"Bash(python3:*)",
|
||||||
"Bash(git add:*)",
|
"Bash(git add:*)",
|
||||||
"Bash(open:*)",
|
"Bash(open:*)",
|
||||||
"WebFetch(domain:api.syui.ai)"
|
"WebFetch(domain:api.syui.ai)",
|
||||||
|
"Bash(git push:*)",
|
||||||
|
"Bash(find:*)",
|
||||||
|
"Bash(rm:*)",
|
||||||
|
"Bash(grep:*)",
|
||||||
|
"Bash(ls:*)"
|
||||||
],
|
],
|
||||||
"deny": []
|
"deny": []
|
||||||
}
|
}
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ yarn-error.log
|
|||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
**DS_Store
|
**DS_Store
|
||||||
|
.claude
|
||||||
|
43
readme.md
43
readme.md
@@ -1,10 +1,45 @@
|
|||||||
# card
|
# card
|
||||||
|
|
||||||
- host : [card.syui.ai](https://card.syuiai)
|
A React-based card collection viewer with holographic effects.
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
- Production URL: [card.syui.ai](https://card.syui.ai)
|
||||||
|
- API: https://api.syui.ai
|
||||||
|
|
||||||
|
## Tech Stack
|
||||||
|
|
||||||
|
- React 18
|
||||||
|
- TypeScript
|
||||||
|
- Vite
|
||||||
|
- Tailwind CSS
|
||||||
|
- React Query (TanStack Query)
|
||||||
|
- React Router v6
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- User card collections display
|
||||||
|
- Holographic effects for special status cards
|
||||||
|
- Favorite card highlighting
|
||||||
|
- Responsive grid layout
|
||||||
|
- Fast initial loading with JSON caching
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ nvm use 16
|
# Node.js 20+ recommended
|
||||||
$ yarn install
|
$ npm install
|
||||||
$ yarn dev
|
$ npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ npm run build
|
||||||
|
$ npm run preview
|
||||||
|
```
|
||||||
|
|
||||||
|
## Environment
|
||||||
|
|
||||||
|
The app runs on localhost:8080 by default and uses proxy for API calls during development.
|
||||||
|
|
||||||
|
1910
src/App.vue
1910
src/App.vue
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,7 @@ export default function UserPage() {
|
|||||||
{/* Favorite Card Section */}
|
{/* Favorite Card Section */}
|
||||||
{user.fav && user.fav !== '0' && cards?.data && (
|
{user.fav && user.fav !== '0' && cards?.data && (
|
||||||
(() => {
|
(() => {
|
||||||
const favCard = cards.data.find(card => card.id === parseInt(user.fav));
|
const favCard = cards.data.find(card => card.id === parseInt(user.fav || '0'));
|
||||||
if (favCard) {
|
if (favCard) {
|
||||||
return (
|
return (
|
||||||
<div className="mb-8">
|
<div className="mb-8">
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
import Vue from 'vue'
|
|
||||||
import App from './App.vue'
|
|
||||||
import VueMeta from 'vue-meta'
|
|
||||||
Vue.use(VueMeta)
|
|
||||||
Vue.config.productionTip = false
|
|
||||||
|
|
||||||
new Vue({
|
|
||||||
render: h => h(App)
|
|
||||||
}).$mount('#app')
|
|
@@ -9,7 +9,8 @@ export const SKILL_ICONS = {
|
|||||||
yui: 'icon-ai',
|
yui: 'icon-ai',
|
||||||
'3d': '■',
|
'3d': '■',
|
||||||
model: 'fa-solid fa-cube',
|
model: 'fa-solid fa-cube',
|
||||||
first: 'icon-moji_a'
|
first: 'icon-moji_a',
|
||||||
|
normal: ''
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const PLANET_THRESHOLDS = {
|
export const PLANET_THRESHOLDS = {
|
||||||
|
@@ -1,23 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
devServer: {
|
|
||||||
proxy: {
|
|
||||||
"^/api*": {
|
|
||||||
target: "https://api.syui.ai",
|
|
||||||
pathRewrite: { "^/api": "" },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
publicPath: "/",
|
|
||||||
configureWebpack: {
|
|
||||||
output: {
|
|
||||||
filename: '[name].js',
|
|
||||||
chunkFilename: '[name].js'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
css: {
|
|
||||||
extract: {
|
|
||||||
filename: '[name].css',
|
|
||||||
chunkFilename: '[name].css'
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
Reference in New Issue
Block a user