speckle-server/packages/frontend-2
andrewwallacespeckle 662a4a09e9
Fix: Adjust create function modal inputs (#2555)
2024-08-01 07:27:20 +02:00
..
.vscode Gergo/automate backend module (#2267) 2024-05-17 14:36:28 +02:00
assets Dim/gendo (#2283) 2024-05-29 11:48:17 +02:00
components Fix: Adjust create function modal inputs (#2555) 2024-08-01 07:27:20 +02:00
composables fix(fe2): accept invite before onboarding after sign up (#2491) 2024-07-11 11:45:11 +03:00
layouts DO NOT MERGE - refactor: new design system implementation (#2537) 2024-07-30 15:34:41 +01:00
lib DO NOT MERGE - refactor: new design system implementation (#2537) 2024-07-30 15:34:41 +01:00
middleware Fix: Change quote type for security headers 2024-07-11 12:11:27 +02:00
pages DO NOT MERGE - refactor: new design system implementation (#2537) 2024-07-30 15:34:41 +01:00
plugins DO NOT MERGE - refactor: new design system implementation (#2537) 2024-07-30 15:34:41 +01:00
public Gergo/automate backend module (#2267) 2024-05-17 14:36:28 +02:00
server chore: upgrade to eslint 9 (#2348) 2024-06-12 14:38:02 +03:00
type-augmentations chore: remove raygun, debugbear etc. code (#2364) 2024-06-13 12:06:53 +03:00
utils Fix: Add 'days' to dateFormatter check (#2528) 2024-07-25 08:49:38 +02:00
.env.example chore: remove raygun, debugbear etc. code (#2364) 2024-06-13 12:06:53 +03:00
.gitignore feat: Frontend 2.0 MVP 2023-05-08 10:47:01 +03:00
.stylelintignore feat(server): proper model() and version() error handling (#1581) 2023-05-18 09:46:27 +02:00
Dockerfile chore: updating ws everywhere to resolve SNYK-JS-WS-7266574 (#2385) 2024-06-18 13:26:01 +03:00
app.vue fix(fe2): accept invite before onboarding after sign up (#2491) 2024-07-11 11:45:11 +03:00
codegen.ts chore(fe2): upgrade to nuxt 3.8.2 (#1887) 2023-11-29 10:22:17 +02:00
error.vue feat: various observability improvements (#2027) 2024-02-09 13:56:13 +02:00
eslint.config.mjs chore: upgrade to eslint 9 (#2348) 2024-06-12 14:38:02 +03:00
log.info fix(viewer): viewer node16 support + fixing up package.jsons (#2442) 2024-07-15 15:16:13 +03:00
nuxt.config.ts Feat: Move settings from individual pages into one settings modal (#2502) 2024-07-23 11:37:50 +02:00
package.json fix(fe2): accept invite before onboarding after sign up (#2491) 2024-07-11 11:45:11 +03:00
postcss.config.js feat: Frontend 2.0 MVP 2023-05-08 10:47:01 +03:00
readme.md random readme change to trigger deployment 2024-03-28 12:36:44 +02:00
stylelint.config.js feat: Frontend 2.0 MVP 2023-05-08 10:47:01 +03:00
tailwind.config.js Gergo/automate backend module (#2267) 2024-05-17 14:36:28 +02:00
tsconfig.eslint.json feat: Frontend 2.0 MVP 2023-05-08 10:47:01 +03:00
tsconfig.json chore: updating various dependencies (#1774) 2023-08-25 14:31:08 +03:00

readme.md

frontend-2 🏬

The replacement for our old Vue 2 Vue CLI frontend SPA app. This one's built with Vue 3, Nuxt 3, Tailwind and is server side rendered. Should be a faster and nicer experience both for our devs and our users!

Look at the nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

yarn install

And create an .env file from .env.example.

WSL2 on Windows

Remove the HOST env var from your .env file as its known to cause performance issues with the Nuxt dev server: https://github.com/nuxt/cli/issues/209

Development

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

yarn dev

Typed GraphQL

Type your queries & fragments using the graphql() helper from ~~/lib/common/generated/gql and then run yarn gqlgen (or yarn gqlgen:watch to run it in watch mode) to generated TS typing information for these GQL documents.

More info: https://the-guild.dev/blog/unleash-the-power-of-fragments-with-graphql-codegen

Troubleshooting

ESLint results doesn't update after GQL type regeneration

Restart the ESLint plugin through VSCode's command palette, this is a bug with the ESLint plugin.

GraphQL codegen throws an error like "Unknown fragment XXX" or something else that doesn't make sense

Sometimes the codegen throws misleading errors and the issue is actually something completely different so I suggest removing the new graphql fragments/operations you've added one by one until the generation works again, to isolate the problematic graphql code. And then thoroughly investigate the fragments/operations you've added, because you might have a syntax error somewhere.

Production

Build the application for production:

yarn build

You can serve the production build locally by running yarn preview afterwards.

Checkout the deployment documentation for more information.