opnform-host-nginx/client
Chirag Chhatrala 2c746437c9
Re-login modal (#717)
* Implement quick login/register flow with global event handling

- Add QuickRegister component with improved modal management
- Integrate quick login/register with app store state
- Implement custom event handling for login/registration flow
- Update OAuth callback to support quick login in popup windows
- Refactor authentication-related components to use global events

* Refactor authentication flow with centralized useAuth composable

- Create new useAuth composable to centralize login, registration, and social login logic
- Simplify authentication methods in LoginForm and RegisterForm
- Add event-based login/registration flow with quick login support
- Remove redundant API calls and consolidate authentication processes
- Improve error handling and analytics tracking for authentication events

* Enhance QuickRegister and RegisterForm components with unauthorized error handling

- Add closeable functionality to modals based on unauthorized error state
- Implement logout button in QuickRegister for unauthorized users
- Reset unauthorized error state on component unmount
- Update styling for "OR" text in RegisterForm for consistency
- Set unauthorized error flag in app store upon 401 response in API calls

* Refactor Authentication Flow and Remove Unused Callback Views

- Deleted unused callback views for Notion and OAuth to streamline the codebase.
- Updated QuickRegister and LoginForm components to remove the after-login event emission, replacing it with a window message system for better communication between components.
- Enhanced the RegisterForm and other components to utilize the new window message system for handling login completion, improving reliability and maintainability.
- Added a verifyAuthentication method in the useAuth composable to ensure user data is loaded correctly after social logins, including retry logic for fetching user data.

These changes aim to simplify the authentication process and improve the overall user experience by ensuring a more robust handling of login events.

* Add eslint-disable comment to useWindowMessage composable for linting control

* Refactor QuickRegister.vue for improved template structure and clarity

- Adjusted the rendering of horizontal dividers and the "or" text for better semantic HTML.
- Added a compact-header prop to the modal for enhanced layout control.

These changes aim to enhance the readability and maintainability of the QuickRegister component.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-03-25 10:41:11 +01:00
..
components Re-login modal (#717) 2025-03-25 10:41:11 +01:00
composables Re-login modal (#717) 2025-03-25 10:41:11 +01:00
data Add regex matching filters to open_filters.json (#722) 2025-03-15 13:55:42 +08:00
i18n/lang Add support for additional language locales (#693) 2025-02-10 12:33:52 +01:00
layouts 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
lib Decouple title from title block (#696) 2025-03-21 16:59:18 +01: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 Re-login modal (#717) 2025-03-25 10:41:11 +01:00
plugins Feature flags (#543) 2024-08-27 16:49:43 +02:00
public Refactor Form Not Found Handling and Improve Error Response (#730) 2025-03-20 16:55:53 +01:00
scss Form Editor v2.5 (#599) 2024-10-23 10:34:51 +02:00
server 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
stores Re-login modal (#717) 2025-03-25 10:41:11 +01:00
.env.docker Feature flags (#543) 2024-08-27 16:49:43 +02:00
.env.example Add reCAPTCHA support and update captcha provider handling (#647) 2024-12-18 16:35:09 +01:00
.eslintrc.cjs Google Sheet - OAuth "client" powered integrations (#415) 2024-06-05 15:35:46 +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 Re-login modal (#717) 2025-03-25 10:41:11 +01:00
error.vue Track 500 errors in Sentry 2024-06-18 12:31:17 +02:00
gtm.js Migrate to GTM 2024-06-06 18:03:41 +02:00
nuxt.config.ts Add support for additional language locales (#693) 2025-02-10 12:33:52 +01:00
opnform.config.js Technical docs (#553) 2024-09-02 15:33:17 +02:00
package-lock.json Refactor Docker configuration and development setup 2025-01-29 17:19:36 +01:00
package.json Support for Barcode reader (#650) 2025-01-03 16:07:58 +01:00
runtimeConfig.js Add client linting to GitHub Actions workflow 2025-01-27 18:24:27 +01: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.