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">👉 Demo</h2>
|
52 |
|
53 | Latest version is always published [Here.](https://nuxt7.cf) (Thanks to Surge and CloudFlare for hosting)
|
54 |
|
55 | 🔦 Lighthouse tests: [Mobile Regular 3G](https://www.webpagetest.org/result/171108_XA_8a8f20e7c71b24cb17e3c269cb5d8a5c)
|
56 |
|
57 | <h2 align="center">🔧 Module options</h2>
|
58 |
|
59 | Add options in `framework7` section inside `nuxt.config.js` file.
|
60 |
|
61 | Option | Type | Default | Description
|
62 | ----------------|--------------|-----------|--------------------------------------------------------------
|
63 | `css` | Boolean | `true` | Include Framework7 styles (Useful to disable and provide your own)
|
64 | `rtl` | Boolean | `false` | Enable RTL layout
|
65 | `f7Icons` | Boolean | `true` | Include Framework7 Icons (IOS)
|
66 | `mdIcons` | Boolean | `true` | Include MD Icons
|
67 | `pwa` | Boolean | `true` | Enable [@nuxtjs/pwa](https://github.com/nuxt-community/pwa-module) module
|
68 | `routes` | Object | `true` | Route overrides (see below)
|
69 | `mode` | String | `hash` | Router mode. Can be `hash` or `history`
|
70 | `view` | Object | defaults | Options passed to root view of framework7
|
71 | `build` | Object | [framework7 defaults](https://unpkg.com/framework7/scripts/build-config.js) | Framework7 build config used for customizing less variables
|
72 | `themeColor` | String | `undefined` | If specified, automatically sets all global theme colors to this value
|
73 |
|
74 | ### routes override
|
75 | Routes are auto generated using pages directory structure.
|
76 | However if you need to make more customization (Like adding routable tabs) this option may be used.
|
77 |
|
78 | Example: (**nuxt.config.js**)
|
79 |
|
80 | ```js
|
81 | framework7: {
|
82 | routes: {
|
83 | 'tabs-routable': {
|
84 | tabs: [
|
85 | { path: "/", id: "tab1" },
|
86 | { path: "/tab2/", id: "tab2" },
|
87 | { path: "/tab3/", id: "tab3" },
|
88 | ]
|
89 | }
|
90 | }
|
91 | }
|
92 | ```
|
93 |
|
94 | <h2 align="center">🍳 Development</h2>
|
95 |
|
96 | ```bash
|
97 | # Fork and clone git@github.com:nuxt-community/nuxt7.git
|
98 |
|
99 | # Install dependencies
|
100 | yarn install
|
101 |
|
102 | # Start development server (kitchen sink)
|
103 | yarn dev
|
104 | ```
|
105 |
|
106 | <h2 align="center">License</h2>
|
107 |
|
108 | MIT - Nuxt Community - Pooya Parsa
|