1 | <p align="center">
|
2 | <img src="https://github.com/nuxt-community/nuxt7/raw/master/.assets/nuxt7.png" alt="Nuxt7">
|
3 | </p>
|
4 |
|
5 | <p align="center">
|
6 | <a href="https://david-dm.org/nuxt-community/nuxt7">
|
7 | <img alt="" src="https://david-dm.org/nuxt-community/nuxt7/status.svg?style=flat-square">
|
8 | </a>
|
9 | <a href="https://npmjs.com/package/nuxt7">
|
10 | <img alt="" src="https://img.shields.io/npm/v/nuxt7/latest.svg?style=flat-square">
|
11 | </a>
|
12 | <a href="https://npmjs.com/package/nuxt7">
|
13 | <img alt="" src="https://img.shields.io/npm/dt/nuxt7.svg?style=flat-square">
|
14 | </a>
|
15 | <a href="https://circleci.com/gh/nuxt-community/nuxt7">
|
16 | <img alt="" src="https://img.shields.io/circleci/project/github/nuxt-community/nuxt7/master.svg?style=flat-square">
|
17 | </a>
|
18 | <a href="https://standardjs.com">
|
19 | <img alt="" src="https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square">
|
20 | </a>
|
21 | </p>
|
22 |
|
23 | <p align="center">
|
24 | Full Featured iOS & Android <strong>PWA</strong> Apps with <a href="https://nuxtjs.org">Nuxt.js</a> and <a href="https://framework7.io">Framework7</a>
|
25 | <br>
|
26 | </p>
|
27 |
|
28 | Nuxt7 integrates universal nuxt.js applications with [Framework7](https://framework7.io/)[-Vue](https://framework7.io/vue)
|
29 | to rapidly create efficient and feature-reach [PWA](https://developers.google.com/web/progressive-web-apps) mobile applications with help of [pwa-module](https://github.com/nuxt-community/pwa-module). Production builds can be statically hosted or running offline.
|
30 |
|
31 | <a href="./CHANGELOG.md">📖 Release Notes</a>
|
32 |
|
33 | <h2 align="center">✨ Features</h2>
|
34 |
|
35 | * Fully compatible with framework7 2.x
|
36 | * Development mode with hot reloading
|
37 | * Optimized production builds suitable for 100% static hosting
|
38 | * Fully PWA compatible out of the box
|
39 | * Page based router for Framework7
|
40 | * Use vuex store in your apps
|
41 | * Familiar nuxt.js development experience with a super easy learning curve
|
42 |
|
43 | <h2 align="center">⚔️ Quick Start</h2>
|
44 |
|
45 | Use the command below to create a new app using starter template:
|
46 |
|
47 | ```bash
|
48 | > npx sao nuxt-community/nuxt7 nuxt7-app
|
49 | ```
|
50 |
|
51 | <h2 align="center">▶️ Examples</h2>
|
52 |
|
53 | * [kitchen-sink](./examples/kitchen-sink) - [online version](https://nuxt7.cf)
|
54 | * [with-params](./examples/with-params)
|
55 |
|
56 | To locally run each example:
|
57 |
|
58 | * Clone this repository
|
59 | * Install dependencies using `yarn install`
|
60 | * Run examples in development mode using `yarn examples/[example name]`
|
61 | * Navigate to `http://localhost:3000`
|
62 |
|
63 | <h2 align="center">🔧 Module options</h2>
|
64 |
|
65 | Add options in `framework7` section inside `nuxt.config.js` file.
|
66 |
|
67 | | Option | Type | Default | Description |
|
68 | | ------------ | ------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
|
69 | | `css` | Boolean | `true` | Include Framework7 styles (Useful to disable and provide your own) |
|
70 | | `rtl` | Boolean | `false` | Enable RTL layout |
|
71 | | `f7Icons` | Boolean | `true` | Include Framework7 Icons (IOS) |
|
72 | | `mdIcons` | Boolean | `true` | Include MD Icons |
|
73 | | `pwa` | Boolean | `true` | Enable [@nuxtjs/pwa](https://github.com/nuxt-community/pwa-module) module |
|
74 | | `routes` | Object | `true` | Route overrides (see below) |
|
75 | | `mode` | String | `hash` | Router mode. Can be `hash` or `history` |
|
76 | | `view` | Object | defaults | Options passed to root view of framework7 |
|
77 | | `build` | Object | [framework7 defaults](https://github.com/framework7io/Framework7/blob/master/scripts/build-config.js) | Framework7 build config used for customizing less variables |
|
78 | | `themeColor` | String | `undefined` | If specified, automatically sets all global theme colors to this value |
|
79 |
|
80 | ### routes override
|
81 |
|
82 | Routes are auto generated using pages directory structure.
|
83 | However if you need to make more customization (Like adding routable tabs) this option may be used.
|
84 |
|
85 | Example: (**nuxt.config.js**)
|
86 |
|
87 | ```js
|
88 | framework7: {
|
89 | routes: {
|
90 | 'tabs-routable': {
|
91 | tabs: [
|
92 | { path: "/", id: "tab1" },
|
93 | { path: "/tab2/", id: "tab2" },
|
94 | { path: "/tab3/", id: "tab3" },
|
95 | ]
|
96 | }
|
97 | }
|
98 | }
|
99 | ```
|
100 |
|
101 | <h2 align="center">🍳 Development</h2>
|
102 |
|
103 | ```bash
|
104 | # Fork and clone git@github.com:nuxt-community/nuxt7.git
|
105 |
|
106 | # Install dependencies
|
107 | yarn install
|
108 |
|
109 | # Start development server (kitchen sink)
|
110 | yarn dev
|
111 | ```
|
112 |
|
113 | <h2 align="center">License</h2>
|
114 |
|
115 | MIT - Nuxt Community - Pooya Parsa
|