npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nuxt7x

v1.0.5

Published

<p align="center"> <img src="https://github.com/nuxt-community/nuxt7/raw/master/.assets/nuxt7.png" alt="Nuxt7"> </p>

Downloads

18

Readme

Change the code to support windows issue: Windows Install error-options is not defined

📖 Release Notes

✨ Features

  • Fully compatible with framework7 2.x
  • Development mode with hot reloading
  • Optimized production builds suitable for 100% static hosting
  • Fully PWA compatible out of the box
  • Page based router for Framework7
  • Use vuex store in your apps
  • Familiar nuxt.js development experience with a super easy learning curve

⚔️ Quick Start

Use the command below to create a new app using starter template:

>  npm i nuxt7x
// in the nuxt.config.js change the `nuxt7` to `nuxt7x`

 modules: [
    'nuxt7x',
    '@nuxtjs/pwa'
  ],
> change the configuration in `nuxt.config.js` section  `framework7` 

▶️ Examples

To locally run each example:

  • Clone this repository
  • Install dependencies using yarn install
  • Run examples in development mode using yarn examples/[example name]
  • Navigate to http://localhost:3000

🔧 Module options

Add options in framework7 section inside nuxt.config.js file.

app

  • Type: Object

Default:

app: {
  theme: 'auto'
}

Framework7 constructor params. See App Component and App Docs for all available parameters.

main

  • Type: Object

Default:

main: {
    main: true,
    pushState: true
}

Props passed to the main <f7-view>. See View Component docs for more info.

mode

  • Type: String
  • Default: history

Router mode. Can be hash or history.

The history mode enables SEO friendly routes by setting main.pushStateSeparator value to ''.

invertNav

  • Type: boolean
  • Default: true

Invert navigation bars to fill style.

disableContextMenu

  • Type: boolean
  • Default: true

Disable context menu with long touch. (Recommanded to enable disableSelect too)

disableSelect

  • Type: boolean
  • Default: true

Disable selection/copy in UIWebView. (Useful to use with disableContextMenu)

rtl

  • Type: boolean
  • Default: false

Enable RTL Layout.

themeColor

  • Type: string
  • Default: #007aff (Dodger Blue)

Primary app color.

themes

  • Type: array
  • Default: `['ios', 'md']

darkTheme

  • Type: boolean
  • Default: true

Enable darkTheme support.

colors

App colors.

components

Enabled components. (only used for .less imports)

css

  • Type: Boolean
  • Default: true

Include Framework7 styles.

customCSS

  • Type: Boolean
  • Default: true

Include Nuxt7 custom styles.

f7Icons

  • Type: Boolean
  • Default: true

nclude Framework7 Icons (IOS).

mdIcons

  • Type: Boolean
  • Default: true

Include MD Icons (Android).

routes

  • Type: Boolean
  • Default: true

Routes are auto generated using pages directory structure. However if you need to make more customization (Like adding routable tabs) this option may be used.

Example: (nuxt.config.js)

framework7: {
    routes: {
      'tabs-routable': {
        tabs: [
          { path: "/", id: "tab1" },
          { path: "/tab2/", id: "tab2" },
          { path: "/tab3/", id: "tab3" },
        ]
      }
    }
}

🤔 Common Questions

Why asyncData/middleware is not working?

Framework7Vue has it's own router. You can define state in data() and use async mounted to fill the state.

Middleware also don't work. You can use nuxt plugins instead. (ServerMiddleware are supported in server mode)

How to deploy?

Nuxt7 is designed to make a fully functional PWA app. Users can install app using "Add to Homescreen".

  • Use nuxt generate to make a static version
  • Deploy it on your own server or use free services, now or netlify or surge

How to make sidepanel working?

The default layout can do the trick. See kitchen-sink/layouts/default.vue for an example.

🍳 Development

# Fork and clone [email protected]:nuxt-community/nuxt7.git

# Install dependencies
yarn install

# Start development server (kitchen sink)
yarn dev

License

MIT - Nuxt Community - Pooya Parsa