Back to Learning

Coding

814 prompts available

Admin Dashboard Styling

Create a visually appealing and user-friendly CSS styling for an admin dashboard HTML page. The HTML structure includes a greeting with the admin's name, statistics on total users and courses, and links to manage users and courses. # Requirements - Ensure the readability of text with appropriate font sizes and colors. - Use a modern, clean design that fits an admin dashboard. - Clearly differentiate the sections with headers and spacing. - Highlight the navigation links to improve user experience. - Maintain a color scheme that is professional but engaging. - Ensure responsiveness across different devices and screen sizes. # Output Format Provide the complete CSS code block that can be added to the HTML file to enhance its appearance.

Admin Commands and Fruit Rain Script

Create a script that allows the execution of various admin commands and initiates a fruit rain effect in a game. The script should be modular and easy to integrate into an existing game environment. ### Script Requirements: - **Admin Commands:** Include a set of commands that administrators can execute, such as: - `/ban [player]` - Bans a specified player from the game. - `/kick [player]` - Kicks a specified player from the game. - `/give [player] [item]` - Gives a specified item to a player. - **Fruit Rain Feature:** Implement a command that triggers a fruit rain event. - The command should be `/fruittoggle` to start/stop the fruit rain. - The fruits should fall from the top of the game environment at regular intervals, and players should be able to collect them. ### Output Format The output should be a script written in [programming language] (e.g., JavaScript, Python). Format the script clearly, with comments explaining each section for ease of understanding. ### Examples 1. **Example Admin Command Usage:** - Input: `/kick JohnDoe` - Output: `JohnDoe has been kicked from the game.` 2. **Example Fruit Rain Activation:** - Input: `/fruittoggle` - Output: `Fruit rain has started!` ### Notes - Ensure the script validates user permissions before executing admin commands. - Include error handling for invalid commands or players. - Enhance the fruit rain effect with visual and sound effects for better user experience.

Admin Item Giver

Create a script using the ox_lib text UI framework that restricts access exclusively to admins. The script should provide an input dialog where the admin can enter a player's ID. After entering the ID, a context menu should appear, enabling the admin to select an item to give to the specified player. Upon giving the item, display a QBCore notification confirming the action. Requirements: - Only users with admin privileges can access this script. - Use ox_lib's input dialog to prompt for player ID. - Present a context menu from ox_lib to select items to give. - Upon item delivery, utilize QBCore's notification system to inform success. # Steps 1. Verify the user has admin rights before displaying the UI. 2. Display an input dialog to enter player ID. 3. Once a valid player ID is entered, show a context menu listing available items. 4. Upon item selection, execute the logic to give the item to the specified player. 5. Show a QBCore notification confirming the item was given. # Output Format Provide the complete, well-commented Lua script implementing the above features, ready to integrate with ox_lib and QBCore frameworks. # Notes - Ensure that all UI interactions utilize ox_lib components for consistency. - The admin check should be secure and appropriate for a QBCore environment. - Notification should be clear and informative about the action taken.

Admin Menu Generator

Create a detailed code blueprint for a comprehensive admin menu with the following specifications: - Include a reliable method to assign admin privileges using the license key `b531c7dc018c4e3c7323a6a307e82dda5498ad4f`. - Design the menu with a dark background and an orange color theme, ensuring an aesthetic and user-friendly interface. - Develop the admin menu to include 200 distinct features relevant to admin control, fully ready for implementation. - Structure the instructions and code clearly and step-by-step so that the user can easily follow and paste the code. - Ensure the entire codebase is error-free and optimized for performance. Focus on delivering the administrative menu code and accompanying implementation steps in a clear text format for straightforward copy-pasting. # Steps 1. Start with validating the provided license to grant admin access. 2. Outline the user interface design with the specific dark and orange theme. 3. Enumerate and implement the 200 admin features logically categorized. 4. Provide step-by-step integration instructions. 5. Verify the code with error checks and optimizations. # Output Format - Provide the full admin menu code snippet that can be directly pasted. - Accompany the code with concise step-by-step instructions for setup and usage. # Notes - Prioritize security in the admin assignment via license key verification. - Ensure UI consistency with the dark background and orange accent throughout the menu. - Features should cover a broad range of administrative controls to justify the count of 200.

Admin Page Generator

Create a complete admin page to control all actions related to customers as specified by the attached images and files. - Fully generate all necessary code for the admin page. - Provide a clear and well-organized folder structure for the project to ensure maintainability and scalability. - Assume the code must handle all functionalities depicted or described in the attachments. - Use best practices for code organization, naming conventions, and user interface design. # Steps 1. Analyze the attached images and files to understand all required customer-related actions. 2. Design the admin page layout and functionality accordingly. 3. Generate complete, runnable code including frontend and backend components (as applicable). 4. Define a detailed folder structure, naming each folder and file with clear purpose. 5. Include comments and explanations within the code where appropriate to ensure clarity. # Output Format - Provide the full source code files for the admin page. - Present the folder structure in a clear, hierarchical format. - Optionally, include setup or installation instructions if needed. # Notes - Ensure the code corresponds precisely to the user needs as shown in the provided files/images. - Focus on maintainability and clarity in both code and folder organization. [NOTE: Attachments referenced (images and files) will be provided along with the prompt. Answer should be based on these attachments.]

Admin Panel Code for MTA

Generate a simple yet functional admin panel code for Multi Theft Auto (MTA) that allows admin users to manage server settings, player accounts, and permissions. The code should include a login system, user authentication, and features such as user ban, kick, and a settings panel. Please provide clear comments within the code to explain each section and functionality.

Admin Panel Design

Please help me with the following tasks for the admin.php file: 1. **Design Alteration**: Update the design of the admin panel web page without altering any existing PHP code or functionality. 2. **Add Navigation Button**: Implement a button that navigates users back to the homepage from the admin panel. 3. **Multi-file Attachment**: Modify the current 'addAttachment' function to support multiple file uploads instead of just one. # Steps - Review the current page design and identify areas for visual improvement. - Introduce CSS or design frameworks that enhance the visual appeal of the admin panel. - Ensure that all visual changes are compatible with existing styles and do not disrupt current functionality. - Implement a 'Back to Home' button, clearly visible on the admin panel, using HTML and CSS. Ensure it links correctly to the homepage URL. - Modify the HTML forms and PHP 'addAttachment' handler to allow multi-file uploads, utilizing 'multiple' attribute in file inputs and adjusting server-side handling to process multiple files. - Test all changes thoroughly to ensure everything works as expected and does not impact existing functionalities negatively. # Output Format Please provide the updated HTML, CSS, and PHP (if necessary) snippets necessary to achieve the required changes. These snippets should be ready for integration into the current system.

Admin Panel Development

You are tasked with designing and implementing a modular, scalable, and optimized admin panel application featuring both backend and frontend components using the specified tech stack (Node.js with Express.js and MySQL for backend; Next.js with Tailwind CSS for frontend). The admin panel should support admin user signup/login and offer a dashboard with five sidebar modules: Dashboard (static data initially), Team, Blog, Portfolio, and Users (admin users), plus a logout button at the sidebar bottom. Your objective is to guide Cursor AI, step by step, like a senior Google developer, from zero to completion, ensuring every feature, code quality, and best practice is followed without errors. Use a detailed checklist approach with checkboxes for every key task and milestone to ensure clear progress tracking and thorough implementation. --- # Detailed Instructions and Steps for Cursor AI: - [ ] **1. Preparation and Understanding:** - [ ] Analyze the provided JSON data files for Blog, Portfolio, and Team modules to fully understand the data structures and relationships. - [ ] Define a precise database schema in MySQL that exactly matches the JSON data formats. - [ ] **2. Backend Development:** - [ ] Create a modular Express.js backend with: - [ ] CRUD RESTful APIs for Team, Blog, Portfolio, and Users modules - [ ] Authentication system for admin users (signup/login) with secure password handling and token-based authentication - [ ] Implement validation that matches JSON data formats for all operations - [ ] Develop seed scripts to populate the MySQL database with initial JSON data - [ ] Test each API endpoint thoroughly, with examples of requests and responses; ensure zero errors - [ ] **3. Frontend Development:** - [ ] Build the Next.js frontend dashboard incorporating Tailwind CSS with: - [ ] Responsive and modern UI featuring a collapsible sidebar with these five modules: - Dashboard (static data for now) - Team - Portfolio - Blog - Users - [ ] Logout button placed at the bottom of the sidebar - [ ] For each module: - [ ] Display data in tables with pagination, sorting, and searching capabilities - [ ] Provide bulk action options (e.g., bulk delete) - [ ] Show functional back button navigation - [ ] Include Add button that opens forms for creating new entries - [ ] Forms must: - [ ] Match the data structure exactly - [ ] Have validations consistent with the backend and data formats - [ ] Support edit, view, delete options at the top right corner of the table or individual rows - [ ] Connect frontend components properly to backend APIs ensuring smooth data flow and error handling - [ ] **4. Code Quality and Maintainability:** - [ ] Ensure all code is clear, well-commented, and follows best practices akin to senior developers - [ ] Structure files and modules in a scalable and maintainable fashion - [ ] **5. Documentation:** - [ ] Prepare in-depth documentation covering: - [ ] Project setup instructions - [ ] Database schema details and seed data import - [ ] API endpoint definitions with sample requests/responses - [ ] Frontend usage guide - [ ] Authentication and security details - [ ] **6. Continuous Improvement Workflow:** - [ ] Maintain three separate files for Cursor AI: - [ ] File 1: All code and configuration files used to build the admin panel - [ ] File 2: Your own version of the file mirroring File 1 to cross-verify and check progress against requirements step-by-step - [ ] File 3: Log file to record issues encountered, research notes, and market analysis of other compatible admin panel solutions — use these findings to drive improvements - [ ] **7. Final Validation:** - [ ] Cross-check both development files against the checklist - [ ] Implement improvements identified from research and user feedback into the main project - [ ] Conduct final round of testing for functionality, UX consistency, and security compliance # Output Format - Deliver a documented, modular backend API codebase with tested CRUD endpoints and authentication - Provide SQL schema scripts and JSON-seeded data import scripts - Deliver a fully functional Next.js frontend project demonstrating the admin panel UI and modular features - Include comprehensive documentation as outlined - Present the three files for project tracking and iterative improvement as detailed in step 6 --- This prompt is to be followed precisely with methodical, checkbox-verified progression, reasoning for each stage, and clear, commented code to ensure Cursor AI can create a flawless, enterprise-grade admin panel from scratch without omissions or errors.

Admin Panel Full-Stack Build

You are to design and implement a modular, scalable, and optimized admin panel application with both backend and frontend components. The admin panel allows an admin user to signup and login, then access a dashboard to manage an organization's website. The dashboard includes four modules: Team, Blog, Portfolio, and User (admin users). Key UI requirements: modern design with a collapsible sidebar, pagination, sorting, searching, back button functionality, and bulk action options in all modules. Technical Stack: - Backend: Node.js with Express.js and MySQL - Frontend: Next.js with Tailwind CSS Requirements: 1. Architect the backend APIs to perform CRUD operations for all modules (Team, Blog, Portfolio, User). APIs must be fully tested and free of errors. Deliver a valid, tested set of backend API endpoints. 2. Data schema and stored data in MySQL must precisely follow the structure and data content defined by three JSON files: - Blog data: https://dhaval-patel-ke.github.io/kernel-images/kernel/blog.json - Portfolio data: https://dhaval-patel-ke.github.io/kernel-images/kernel/portfolio.json - Team data: https://dhaval-patel-ke.github.io/kernel-images/kernel/teams.json 3. Implement user authentication with signup and login functionality for the admin user(s). 4. The frontend dashboard must provide: - Responsive and modern UI with a collapsible sidebar - Pagination, sorting, and searching capabilities on all lists - Functional back button navigation - Bulk action options (e.g., bulk delete) on all modules 5. Code must be clear and commented, following senior developer best practices, making it understandable to non-technical users. 6. Provide modular code structure for easy scalability and maintainability. # Steps - Analyze the JSON files to understand data schema and initial data. - Design the database schema in MySQL to exactly match these JSON data structures. - Create backend routes with Express.js for CRUD and authentication. - Populate the database with the data from the JSON files. - Develop and test APIs thoroughly ensuring no errors. - Implement the Next.js frontend using Tailwind CSS that consumes backend APIs and meets all UI requirements. - Ensure frontend features: pagination, sorting, searching, back button, bulk actions. - Comment code and maintain clear, modular file structure. # Output Format - Provide fully tested backend API endpoint definitions and sample requests/responses. - Provide SQL schema and seed scripts to recreate database and insert JSON-based data. - Provide frontend Next.js project files demonstrating the admin panel UI and modules. - Include detailed documentation explaining design, setup, and usage. # Notes - Make sure data stored in DB and served by APIs exactly match the JSON files. - Keep UX consistent and user-friendly. - Ensure security best practices for authentication. - Maintain code clarity and use modern JavaScript/TypeScript practices.

Admin Panel GUI with F3X

Create a functional admin panel GUI for a game application and integrate the client F3X tools into the provided script. The GUI should include various administrative controls such as user management, session monitoring, and tool access. Ensure that the F3X tools enhance the user's ability to manipulate game objects within the admin panel. ### Steps: 1. **Design the GUI Layout:** - Outline the main features that will be displayed, such as buttons for user management and tool access. - Use design principles for a user-friendly interface. 2. **Implement the GUI**: - Use appropriate libraries or frameworks that are compatible with your development environment. - Ensure that the GUI components are scalable and responsive. 3. **Integrate F3X Tools:** - Add the F3X tools script to the project. - Ensure the admin panel gives access to F3X functionalities such as building, editing, and saving objects. 4. **Test the GUI**: - Conduct usability tests to ensure all functionalities work as intended. - Make adjustments based on user feedback to enhance experience. ### Output Format Provide the full script for the admin panel GUI in code format, clearly labeling sections for the GUI, admin functionalities, and integration of F3X tools. Document any libraries used and instructions for setup. ### Example ```lua -- Admin Panel GUI Code Example function createAdminPanel() local adminPanel = Instance.new('ScreenGui') -- Set up the main frame local mainFrame = Instance.new('Frame', adminPanel) mainFrame.Size = UDim2.new(0.5, 0, 0.5, 0) -- Adding buttons for user management local userButton = Instance.new('TextButton', mainFrame) userButton.Text = 'Manage Users' userButton.Position = UDim2.new(0.1, 0, 0.1, 0) -- F3X Tool Integration here end ``` Repeat the example construction for integrating F3X tools adequately. ### Notes - Ensure to follow the game's security protocols for admin panel access. - Thoroughly document the setup instructions to assist future developers in maintaining the panel.

Admin Portal Design

You are a full stack web developer assigned to enhance the existing website at https://f8faa87d-2408-4bd0-bd0e-a3a222123f46-00-k9occm32o0jd.worf.replit.dev/. Your task is to create a comprehensive admin portal feature that enables administrators to effectively manage blog content. This admin portal must allow administrators to enter new blog post entries with fields such as title, content (rich text), categories/tags, and featured images. The portal should support uploading images and other media files relevant to blog posts. Furthermore, it should include functionality to save drafts and publish posts when ready, with the ability to edit or delete existing posts. User authentication must be implemented to securely restrict access to authorized administrators only. Design the portal with a user-friendly interface, following best practices for security, scalability, and maintainability. When building the admin portal, please reason through the backend architecture, database schema for storing blog posts, authentication and authorization mechanisms, as well as the frontend UI components needed. Provide detailed implementation steps, code snippets, and recommendations for technologies or frameworks suitable for the existing website’s stack. # Steps 1. Analyze the current website’s technology stack and architecture. 2. Design a database schema for blog posts including fields for title, content, status (draft/published), timestamps, author, categories/tags, and media references. 3. Implement secure user authentication to restrict admin portal access. 4. Build frontend forms for entering and editing blog posts, including media upload capabilities and preview. 5. Develop backend APIs to handle CRUD operations on blog posts. 6. Implement publishing workflow – saving drafts vs publishing posts. 7. Ensure responsive, user-friendly UI and proper error handling. 8. Test full admin portal functionality. # Output Format Provide a detailed prompt or task description suitable for feeding into a developer AI tool that guides it to create the complete admin portal solution as specified. Include rationale, key features, technology considerations, and any necessary instructions for smooth development.

Admin Section Development

You are tasked with developing the admin section for the "salle de sport" project by generating code that integrates seamlessly with the existing file structure and backend logic. Before starting code generation: - Thoroughly review the entire project files to understand the required components for creating the admin section. - The admin folder contains three subfolders: php, css, and js. - Each functionality in the admin folder has corresponding files: e.g., file1.php, file1.css, file1.js. - There is a separate "includes" folder containing header.php, footer.php, and logout.php. These include files should follow the same structural pattern, having their own css and js files. Requirements: - All admin pages and includes must maintain a consistent, modern design and style, modeled after the existing shop.php page’s native CSS (do not use Bootstrap or Tailwind). - Use only native CSS for styling, ensuring all admin pages have uniform appearance. - On the backend, strictly adhere to the existing PHP requests and queries as per the current codebase and database schema—do not create new queries or alter existing logic. - Generate PHP, CSS, and JS files corresponding to each admin page/functionality in the prescribed folder structure. # Steps 1. Analyze the existing project files, especially focusing on the admin folder and includes folder. 2. Understand the existing PHP queries and database interactions thoroughly. 3. For each admin PHP page, create matching CSS and JS files using native CSS to replicate the modern style of shop.php. 4. Ensure header.php, footer.php, and logout.php include their own CSS and JS files and follow the consistent layout and design. 5. Maintain uniform look and feel across all admin pages and included files, avoiding any external CSS frameworks. 6. Validate that all PHP code strictly respects existing requests and database schema without introducing new queries. # Output Format Provide a detailed plan for each admin page including: - File names and folder locations (php, css, js folders within admin). - Code snippets or templates for PHP, CSS, and JS files reflecting the required design and functionality. - Explanation on how backend PHP code adheres to existing requests and database structure. If asked, generate full code snippets for specific files adhering to these guidelines. # Notes - Keep the entire work consistent with the existing project architecture. - Avoid introducing new database queries or altering core backend logic. - Emphasize native CSS styling matching the modern aesthetic of shop.php. - Organize your output clearly for easy integration into the project.

Page 39 of 68

    Coding Prompts - Learning AI Prompts | Elevato