opnform-host-nginx/client
Chirag Chhatrala cc2b0e989d
Slug customisation (#755)
* Enhance Form Slug Handling and Validation Logic

- Updated `FormController.php` to conditionally set the form slug based on the `self_hosted` configuration, ensuring proper slug assignment during form creation and updates.
- Introduced `CustomSlugRule.php` to validate custom slugs, enforcing format and uniqueness constraints, and integrated this rule into `UserFormRequest.php`.
- Enhanced the `FormCustomSeo.vue` component to include a field for custom URL slugs, improving user experience by allowing users to define unique identifiers for their forms.
- Updated API routes to apply middleware for form updates, ensuring proper form resolution during requests.

These changes aim to improve the functionality and user experience related to form slug management and validation.

* Test case for Custom slug

* Update OpenCompleteForm and FormCustomSeo for Improved Functionality and Clarity

- Modified `OpenCompleteForm.vue` to ensure `submissionId` is correctly referenced as `submissionId.value`, enhancing data handling during form initialization.
- Updated `FormCustomSeo.vue` to rename "Custom URL Slug" to "Custom Form URL" for better clarity and user understanding, ensuring consistent terminology across the application.
- Enhanced `useFormInitialization.js` to include `submission_id` in the data passed to `form.resetAndFill`, improving the accuracy of form data handling.

These changes aim to improve the functionality and user experience of the form components by ensuring correct data references and clearer labeling.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-05-19 21:06:54 +02:00
..
components Slug customisation (#755) 2025-05-19 21:06:54 +02:00
composables Refactor Form Submission Logic and Improve File Handling 2025-05-07 20:03:56 +02:00
data Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
i18n/lang Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
layouts 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
lib Slug customisation (#755) 2025-05-19 21:06:54 +02:00
middleware Enhance JWT Token Management and Authentication Flow (#720) 2025-03-10 17:32:17 +08:00
mixins/forms 41db1 submission editor theme fix (#500) 2024-07-24 09:50:42 +02:00
pages Integration pages from Notion (#753) 2025-05-19 15:08:15 +02:00
plugins Update GTM Configuration and Dependencies 2025-05-19 15:54:45 +02:00
public Refactor Form Not Found Handling and Improve Error Response (#730) 2025-03-20 16:55:53 +01:00
scss Refactor QuillyEditor and Quill Mention Extension for Improved Functionality 2025-05-12 13:08:58 +02:00
server 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
stores Integration pages from Notion (#753) 2025-05-19 15:08:15 +02:00
.env.docker Feature flags (#543) 2024-08-27 16:49:43 +02:00
.env.example Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
.gitignore Reworked docker scripts for new nuxt infrastructure (#285) 2024-01-18 16:35:45 +01:00
README.md Work in progress 2023-12-09 15:47:03 +01:00
app.config.ts Form editor v2 (#579) 2024-09-23 20:02:38 +02:00
app.vue Fix hydratation issues. Refactor OpenCompleteForm and app.vue for Improved Component Structure 2025-05-14 12:39:02 +02:00
error.vue Track 500 errors in Sentry 2024-06-18 12:31:17 +02:00
eslint.config.cjs Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
gtm.js Update GTM Configuration and Dependencies 2025-05-19 15:54:45 +02:00
nuxt.config.ts Update Nuxt Configuration and Package Dependencies 2025-04-29 14:54:20 +02:00
opnform.config.js Technical docs (#553) 2024-09-02 15:33:17 +02:00
package-lock.json Update GTM Configuration and Dependencies 2025-05-19 15:54:45 +02:00
package.json Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
runtimeConfig.js Add client linting to GitHub Actions workflow 2025-01-27 18:24:27 +01:00
sentry.client.config.ts Enhance Sentry Client Configuration for Improved Error Handling 2025-05-16 12:46:12 +02:00
sentry.server.config.ts Sentry + Nuxt upgrade & (#738) 2025-04-01 17:41:10 +02:00
sitemap.js 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
tailwind.config.js Refactor form components (#659) 2025-01-03 16:15:47 +01:00
tsconfig.json Work in progress 2023-12-09 15:47:03 +01:00

README.md

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.