docs: add AI-friendly documentation and code comments
Add comprehensive documentation for AI assistants: - .cursorrules with project context and conventions - ARCHITECTURE.md with technical details - DEVELOPMENT.md with practical guides - JSDoc comments in all JavaScript modules - Update README.md with AI-Friendly Development section This enables AI tools (Cursor, Claude Code, GitHub Copilot) to understand the project and generate code following CoreUI Vue patterns.
This commit is contained in:
+14
@@ -1,9 +1,23 @@
|
||||
<script setup>
|
||||
/**
|
||||
* App.vue - Main Application Component
|
||||
*
|
||||
* This is the root component of the CoreUI Free Vue Admin Template.
|
||||
* It handles theme initialization and provides the router-view for all routes.
|
||||
*
|
||||
* Key responsibilities:
|
||||
* - Theme detection from URL parameters
|
||||
* - Theme persistence with localStorage
|
||||
* - Router view rendering for SPA navigation
|
||||
*
|
||||
* @component
|
||||
*/
|
||||
import { onBeforeMount } from 'vue'
|
||||
import { useColorModes } from '@coreui/vue'
|
||||
|
||||
import { useThemeStore } from '@/stores/theme.js'
|
||||
|
||||
// Initialize CoreUI color modes with local storage key
|
||||
const { isColorModeSet, setColorMode } = useColorModes(
|
||||
'coreui-free-vue-admin-template-theme',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user