Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
40
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Reditop is a Vue.js 2 single-page application that visualizes popular Reddit posts from r/all. It's built with TypeScript, Vite, Pinia state management, and Tailwind CSS.
# Development npm run dev # Start development server with hot reload npm run build # Production build with type checking npm run preview # Preview production build # Testing npm run test:unit # Run Vitest unit tests npm run test:e2e # Run Cypress E2E tests # Code Quality npm run lint # ESLint code quality checks
UButton, UCard*, UDialog* families) built due to Vue 2 incompatibility with modern UI librariesUPostItem, UPostDetail, UPostError)src/App.vue with component compositionsrc/stores/reddit.store.ts@vueuse/core's useLocalStorage for persistence between sessionsposts[], postStates{} (user interactions), selectedPost, currentPage, pagination tokensloadPosts(), selectPost(), dismissPost(), resetAndReload()r/all/top.json via CORS proxy (cors-anywhere.com)src/services/reddit.api.ts handles all external requestssrc/types/reddit.tssrc/ ├── components/ # UI components (card/, dialog/, posts/, base components) ├── composables/ # Reusable composition functions ├── services/ # API services and external integrations ├── stores/ # Pinia state management ├── types/ # TypeScript type definitions ├── utils/ # Utility functions (className, date, image processing) └── router/ # Vue Router configuration
@vitejs/plugin-vue2 for Vue 2 support@/ points to /srcorange: #ff4500, blue: #0079d3)tailwind.config.tssrc/utils/ for image processing, formatting, CSS class merging