opnform-host-nginx/client/components/global
Chirag Chhatrala b2b04d7f2a
Self hosted domain redirect (#756)
* Integration pages from Notion

* Self hosted domain redirect

* Refactor root-redirect middleware and update 404 page layout

- Simplified the `root-redirect.js` middleware by removing the specific route checks, allowing for a more general redirect based on the `self_hosted` feature flag.
- Updated the 404 error page in `[...all].vue` by removing the unnecessary `NuxtLayout` wrapper and replacing `NuxtLink` with a custom `UButton` for navigation, enhancing the overall layout and user experience.

These changes aim to streamline the redirect logic and improve the presentation of the 404 error page.

* Refactor feature flag handling and update middleware

- Updated the condition in `Navbar.vue` to correctly evaluate the feature flags for rendering the AI form builder link.
- Removed the `feature-flags.global.js` middleware as it was no longer needed, streamlining the middleware structure.
- Enhanced the `root-redirect.js` middleware to utilize `h3`'s `sendRedirect` for server-side redirection, improving the redirect logic.
- Modified the `ai-form-builder.vue` page to include the new `root-redirect` middleware, ensuring proper redirection based on feature flags.

These changes aim to improve the handling of feature flags and redirection logic, enhancing the overall application flow.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-05-20 14:51:44 +02:00
..
Settings Fix quill and mentions (#758) 2025-05-16 17:09:07 +02:00
transitions Enhance VTransition and OpenForm Components for Improved Animation and Structure 2025-05-19 19:42:33 +02:00
Badge.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
Breadcrumb.vue fix template page breadcrumb ui (#623) 2024-11-21 15:55:01 +01:00
Card.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
Collapse.vue A227b new admin features (#388) 2024-05-06 14:12:05 +02:00
Dropdown.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
EditableTag.vue Form Editor v2.5 (#599) 2024-10-23 10:34:51 +02:00
ErrorBoundary.vue Add client linting to GitHub Actions workflow 2025-01-27 18:24:27 +01:00
Loader.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
Modal.vue Apply Mentions everywhere (#595) 2024-10-22 10:34:29 +02:00
Navbar.vue Self hosted domain redirect (#756) 2025-05-20 14:51:44 +02:00
Notifications.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
NotificationsWrapper.vue nuxt ui notifications (#390) 2024-05-06 14:19:06 +02:00
NotionPage.vue Integration pages from Notion (#753) 2025-05-19 15:08:15 +02:00
ProTag.vue Feature flags (#543) 2024-08-27 16:49:43 +02:00
ScrollShadow.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
Steps.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
VButton.vue Refactor Admin Panel with more features (#384) 2024-04-22 16:11:21 +02:00
WorkspaceDropdown.vue Team functionality (#459) 2024-07-04 17:21:36 +02:00