speckle-server/packages/frontend-2
andrewwallacespeckle 678c75350c
feat(fe2): Update Section Box controls to include visibility (#3333)
* Update Section Box controls to include visibility

* Update reset v-if

* Update shortcut

* Added render requests so that section box updates are made visible

* Remove comments

* Exposed SectionToolEvent in the viewer

* Only show reset when change has been made to sectionbox

* gql

* Make state reactive

* Revert "Make state reactive"

This reverts commit 1697b12cd6.

* Handles WEB-2039

* Handles WEB-2035

* Changes from call with Fabs

---------

Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com>
2024-10-25 10:46:48 +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 feat(fe2): Update Section Box controls to include visibility (#3333) 2024-10-25 10:46:48 +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 feat(fe2): Update Section Box controls to include visibility (#3333) 2024-10-25 10:46:48 +01:00
middleware refactor(fe2): Update queries to use workspaceBySlug (#3177) 2024-10-02 13:01:38 +01:00
pages refactor(fe2): Use webflow api for dashboard stories (#3342) 2024-10-22 14:58:31 +01:00
plugins Update survicate.client.ts (#3330) 2024-10-18 14:45:12 +01:00
public refactor(fe2): Copy speckle_logo_big.png to public folder (#3248) 2024-10-11 15:06:06 +01: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 Add 'just now' to isTimeframe check (#2994) 2024-09-13 13:45:44 +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 refactor(fe2): Use webflow api for dashboard stories (#3342) 2024-10-22 14:58:31 +01: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.