Skip to content

Commit

Permalink
Merge branch 'sfg-main' into dev-main
Browse files Browse the repository at this point in the history
  • Loading branch information
wbbaker committed Mar 25, 2025
2 parents 6a8e831 + 8de4ef6 commit 069cba2
Show file tree
Hide file tree
Showing 57 changed files with 1,820 additions and 1,003 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dist-ssr
/pages
/components
/panels
/layouts
public
README.md
*.local
Expand Down
47 changes: 47 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,53 @@ export default {
}
```

### Customizing the Layout

The application comes with a default layout that includes a header and a footer. If you'd like to replace this layout with your own, you can do so by creating a custom layout file.

Steps to replace the default layout

1. In the root folder of your project, create a new folder called `layouts` (if it doesn't already exist).
2. Inside this folder, create a file named default.vue.
3. Define your custom layout structure inside this file as needed.

Example of layouts/default.vue

```vuejs
<template>
<div>
<slot />
</div>
</template>
```

This custom layout will replace the default one and be applied throughout the application. You can include your own elements, such as a navigation bar or footer, as needed.

#### Using Multiple Layouts

In addition to replacing the default layout, you can create multiple layouts by adding more .vue files inside the layout folder. You can then specify which layout to use for a specific page by setting the layout name in the meta property of the `<route>` tag in your Single File Component (SFC).

JSON5:

```js
<route>
{
meta: {
layout: 'custom'
}
}
</route>
```

YAML:

```yaml
<route lang="yaml">
meta:
layout: custom
</route>
```

### External panels

To add panels in Taxa pages, create a folder called `panels` in your `setup` branch, and inside it create another folder for your panel. For example: `panels/PanelTest`
Expand Down
Loading

0 comments on commit 069cba2

Please sign in to comment.