speckle-server/packages/frontend-2
Mike 5628068bda
Fix: Billing fail/success toasts (#3516)
2024-11-20 13:52:13 +01:00
..
.vscode Gergo/automate backend module (#2267) 2024-05-17 14:36:28 +02:00
assets feature(fe2): New specklecon banner (#3104) 2024-09-24 16:40:35 +01:00
components Fix: Billing fail/success toasts (#3516) 2024-11-20 13:52:13 +01:00
composables gergo/web 1968 add features list (#3332) 2024-10-20 15:40:31 +02:00
layouts Feat: Remove workspace promobanner (#3185) 2024-10-08 09:45:33 +02:00
lib Fix: Billing fail/success toasts (#3516) 2024-11-20 13:52:13 +01:00
middleware refactor(fe2): Update queries to use workspaceBySlug (#3177) 2024-10-02 13:01:38 +01:00
pages SSO (#3376) 2024-10-31 13:20:53 +01:00
plugins Update survicate.client.ts (#3330) 2024-10-18 14:45:12 +01:00
public Revert "fix(automate): drop specklecon function templates (#3503)" (#3504) 2024-11-16 19:57:04 +00:00
server fix(fe2): Handle no webflow api token errors more gracefully (#3386) 2024-10-24 10:15:56 +01:00
tools feat(fe2): greatly improved DX for apollo cache modification (#2831) 2024-09-03 10:59:16 +03:00
type-augmentations chore: remove raygun, debugbear etc. code (#2364) 2024-06-13 12:06:53 +03:00
utils feat: add & list server regions (#3423) 2024-10-31 16:08:50 +01:00
.env.example refactor(fe2): Use webflow api for dashboard stories (#3342) 2024-10-22 14:58:31 +01: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 fix(fe2): dont build sourcemaps unnecessarily (#2597) 2024-08-08 11:56:36 +03:00
app.vue Andrew/web 1338 implement new navigation (#2668) 2024-08-20 11:11:15 +01:00
codegen.ts feat(fe2): greatly improved DX for apollo cache modification (#2831) 2024-09-03 10:59:16 +03:00
error.vue feat: various observability improvements (#2027) 2024-02-09 13:56:13 +02:00
eslint.config.mjs feat(fe2): invite + list workspace invites (#2629) 2024-08-12 11:30:01 +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 refactor(fe2): Use webflow api for dashboard stories (#3342) 2024-10-22 14:58:31 +01:00
package.json chore(server): various useful multiregion changes from comments pr (#3499) 2024-11-15 15:49:34 +02: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.