Files
opnform-host-nginx/client
Chirag Chhatrala 61e9493e1e Add Template Creation Functionality in Admin Panel (#729)
* Add create template functionality in Admin Panel

- Implemented a new endpoint for creating templates in AdminController, utilizing the GenerateTemplate command.
- Added a form in the admin settings Vue component to allow users to input a template description and submit it.
- Enhanced the user experience with loading states and success/error alerts during template creation.

These changes facilitate the generation of new form templates directly from the admin interface, improving usability and functionality.

* Update template prompt validation length in AdminController

- Increased the maximum length of the 'template_prompt' field from 1000 to 4000 characters in the createTemplate method.

This change allows for more extensive template descriptions, enhancing the flexibility of template creation in the admin panel.

* Refactor template generation to use job-based approach

- Migrate template generation logic from the GenerateTemplate command to a new GenerateTemplateJob class for improved separation of concerns and better handling of asynchronous processing.
- Update AdminController to utilize the new job for generating templates, enhancing maintainability and clarity in the codebase.
- Remove unused dependencies and streamline the command's handle method for better performance and readability.

* fix lint

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-03-25 12:14:09 +01:00
..
2025-03-25 10:41:11 +01:00
2024-04-15 19:39:03 +02:00
2024-08-27 16:49:43 +02:00
2024-10-23 10:34:51 +02:00
2024-04-15 19:39:03 +02:00
2025-03-25 10:41:11 +01:00
2024-08-27 16:49:43 +02:00
2024-09-23 20:02:38 +02:00
2025-03-25 10:41:11 +01:00
2024-06-18 12:31:17 +02:00
2024-06-06 18:03:41 +02:00
2024-09-02 15:33:17 +02:00
2025-01-03 16:07:58 +01:00
2023-12-09 15:47:03 +01:00
2024-04-15 19:39:03 +02:00
2023-12-09 15:47:03 +01:00

Nuxt 3 Minimal Starter

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview

Check out the deployment documentation for more information.