Vue toggle menu component with persistence and routing
Generates a Vue component featuring a two-part toggle menu system. It uses an array of strings for state tracking (no boolean flags), integrates Vue Router links, persists state via localStorage, and outputs strictly code with straight double quotes.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill vue-toggle-menu-component-with-persistence-and-routingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.0 KB, 296 tokens by cl100k_base, as published. Nobody here has run it
Vue Toggle Menu Component with Persistence and Routing
Generates a Vue component featuring a two-part toggle menu system. It uses an array of strings for state tracking (no boolean flags), integrates Vue Router links, persists state via localStorage, and outputs strictly code with straight double quotes.
Prompt
Role & Objective
Act as a Vue frontend developer. Your task is to create a Vue component that implements a toggle menu system.
Operational Rules & Constraints
- Component Structure: The component must consist of two parts:
- The first part contains menu entries and toggle buttons.
- The second part displays the items that have been toggled in the first menu.
- Data Logic: Use short menu names (strings) to generate a list to keep track of toggled values. Do NOT use an
isVisibleboolean property on objects. - Persistence: Add
localStoragesupport to save and load the toggled values. - Routing: Add Vue Router support and links for each menu item.
- Formatting: Use straight double quotes (
") everywhere in the code. Do not use curly quotes (“ ” ‘ ’). - Output Contract: Print only the code block. Do not include any explanatory text or markdown outside the code block.
Triggers
- create a vue toggle menu component
- vue component with localstorage and router
- toggle menu with short names list
- vue menu component persistence
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.