An open API service indexing awesome lists of open source software.

https://github.com/mercs600/nuxt-typo3-skin


https://github.com/mercs600/nuxt-typo3-skin

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# nuxt-typo3-skin

Proof of concept additional theming for [nuxt-typo3](https://github.com/TYPO3-Initiatives/nuxt-typo3)

## Features
+ Storybook
+ Tailwind.css
+ Postcss
+ Ready to use as nuxt module

## Theme installation
in your nuxt-typo3 project

```
yarn add nuxt-typo3-skin
```

`nuxt.config.js`:
```js
...
modules: [
'nuxt-typo3-skin',
// Doc: https://github.com/TYPO3-Initiatives/nuxt-typo3
'nuxt-typo3'
],
...
```

And use our [layouts/default.vue]('/src/layouts/default.vue)

```html




























import {
NavigationMain,
Logo,
HeaderMain,
FooterMain,
Breadcrumbs,
LanguageSwitcher
} from 'nuxt-typo3-skin/components'
import { mapState } from 'vuex'
export default {
components: {
NavigationMain,
HeaderMain,
FooterMain,
Logo,
Breadcrumbs,
LanguageSwitcher
},
computed: {
...mapState({
navMain: (state) => state.typo3.initial.navigation[0] || [], // get first instance from root tree,
breadcrumbs: (state) => state.typo3.page.page.breadcrumbs || [], // get breadcrumbs for current page,
currentLanguage: (state) => state.typo3.locale,
availableLanguages: (state) => state.typo3.page.languages
})
}
}

```