├── .eslintrc ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── app.vue ├── components ├── DarkToggle.vue ├── Footer.vue ├── Header.vue ├── Login.vue └── UserInfo.vue ├── composables ├── auth.ts └── info.ts ├── config └── pwa.ts ├── eslint.config.js ├── layouts └── default.vue ├── netlify.toml ├── nuxt.config.ts ├── package.json ├── pages ├── [...all].vue └── index.vue ├── plugins └── sonner.client.ts ├── pnpm-lock.yaml ├── public ├── avatar │ └── 01.jpg ├── favicon.svg ├── guide.png ├── nintendoswitch.png ├── pwa │ ├── maskable-icon.png │ ├── pwa-192x192.png │ └── pwa-512x512.png └── robots.txt ├── server ├── core │ ├── getConfig.ts │ └── renderCard.ts ├── routes │ ├── auth │ │ ├── assess_token.post.ts │ │ ├── link.ts │ │ └── session_token.post.ts │ ├── card │ │ └── [...].ts │ ├── db │ │ └── user.post.ts │ └── info │ │ ├── play_history.ts │ │ └── user.ts └── utils │ └── index.ts ├── tests ├── __snapshots__ │ └── index.test.ts.snap ├── config.test.ts └── index.test.ts ├── tsconfig.json ├── types ├── basic.ts ├── database.ts ├── index.ts ├── info.ts └── nintendo.ts ├── uno.config.ts ├── utils ├── auth.ts ├── constance.ts ├── mock.ts └── tools.ts └── vitest.config.mts /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/.npmrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/README.md -------------------------------------------------------------------------------- /app.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/app.vue -------------------------------------------------------------------------------- /components/DarkToggle.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/components/DarkToggle.vue -------------------------------------------------------------------------------- /components/Footer.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/components/Footer.vue -------------------------------------------------------------------------------- /components/Header.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/components/Header.vue -------------------------------------------------------------------------------- /components/Login.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/components/Login.vue -------------------------------------------------------------------------------- /components/UserInfo.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/components/UserInfo.vue -------------------------------------------------------------------------------- /composables/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/composables/auth.ts -------------------------------------------------------------------------------- /composables/info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/composables/info.ts -------------------------------------------------------------------------------- /config/pwa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/config/pwa.ts -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/eslint.config.js -------------------------------------------------------------------------------- /layouts/default.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/layouts/default.vue -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/netlify.toml -------------------------------------------------------------------------------- /nuxt.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/nuxt.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/package.json -------------------------------------------------------------------------------- /pages/[...all].vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/pages/[...all].vue -------------------------------------------------------------------------------- /pages/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/pages/index.vue -------------------------------------------------------------------------------- /plugins/sonner.client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/plugins/sonner.client.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /public/avatar/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/public/avatar/01.jpg -------------------------------------------------------------------------------- /public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/public/favicon.svg -------------------------------------------------------------------------------- /public/guide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/public/guide.png -------------------------------------------------------------------------------- /public/nintendoswitch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/public/nintendoswitch.png -------------------------------------------------------------------------------- /public/pwa/maskable-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/public/pwa/maskable-icon.png -------------------------------------------------------------------------------- /public/pwa/pwa-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/public/pwa/pwa-192x192.png -------------------------------------------------------------------------------- /public/pwa/pwa-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/public/pwa/pwa-512x512.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Allow: / 3 | -------------------------------------------------------------------------------- /server/core/getConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/core/getConfig.ts -------------------------------------------------------------------------------- /server/core/renderCard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/core/renderCard.ts -------------------------------------------------------------------------------- /server/routes/auth/assess_token.post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/routes/auth/assess_token.post.ts -------------------------------------------------------------------------------- /server/routes/auth/link.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/routes/auth/link.ts -------------------------------------------------------------------------------- /server/routes/auth/session_token.post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/routes/auth/session_token.post.ts -------------------------------------------------------------------------------- /server/routes/card/[...].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/routes/card/[...].ts -------------------------------------------------------------------------------- /server/routes/db/user.post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/routes/db/user.post.ts -------------------------------------------------------------------------------- /server/routes/info/play_history.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/routes/info/play_history.ts -------------------------------------------------------------------------------- /server/routes/info/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/routes/info/user.ts -------------------------------------------------------------------------------- /server/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/server/utils/index.ts -------------------------------------------------------------------------------- /tests/__snapshots__/index.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/tests/__snapshots__/index.test.ts.snap -------------------------------------------------------------------------------- /tests/config.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/tests/config.test.ts -------------------------------------------------------------------------------- /tests/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/tests/index.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/basic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/types/basic.ts -------------------------------------------------------------------------------- /types/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/types/database.ts -------------------------------------------------------------------------------- /types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/types/index.ts -------------------------------------------------------------------------------- /types/info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/types/info.ts -------------------------------------------------------------------------------- /types/nintendo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/types/nintendo.ts -------------------------------------------------------------------------------- /uno.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/uno.config.ts -------------------------------------------------------------------------------- /utils/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/utils/auth.ts -------------------------------------------------------------------------------- /utils/constance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/utils/constance.ts -------------------------------------------------------------------------------- /utils/mock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/utils/mock.ts -------------------------------------------------------------------------------- /utils/tools.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/utils/tools.ts -------------------------------------------------------------------------------- /vitest.config.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyinws/switch-card/HEAD/vitest.config.mts --------------------------------------------------------------------------------