Create a new Space every time Flatfile is opened.
development
environment.
init
command.
src
.
Depending on how you want to handle styling your application, you can have a styles.css
file in your src directory, create sub-directories to contain style files, or even create directories outside of src
if you prefer. The only requirement is that the files can be imported into vue files.
The heart of your vue app will be App.vue
, as this will configure and render your component(s) to the index.html.
publishableKey
and a new Space will be created on each page load. Optionally, add the content here to your styles.css
.
publishableKey
. You can find these under “Developer settings” when logged into platform.flatfile.com.
You can create your .env
file via the template below, as well as your App.vue
, tsconfig.json
, tsconfig.node.json
, and vite.config.ts
, which are the remaining top-level config files. After these are initialized properly we can configure the app files under src
.
App.vue
you’ll need to pass in a minimum of the publishableKey
from your .env
.
Also, add the content here to your main.ts
, and vite-env.d.ts
. Optionally you can also add shims-vue.d.ts
if you have the need.
config.ts
file, and place the following code in it. After you have done so, import the configuration to App.vue
, and update spaceProps
to have the value of config
under workbook
(this will be around line 36
). This config file has the configuration settings for your workbook, so feel free to edit however necessary to meet your needs.
src/listener.ts
file with this simple recordHook
.App.tsx
to import the listener.themeConfig
to spaceProps
in src/App.tsx
, we will now override colors in your Space to match your brand. See all of the options here in the Theming Reference.