Giter Club home page Giter Club logo

phonegap-template-vue-f7-split-panel's Introduction

A Split View / Panel PhoneGap template using Vue.js and Framework7

Vue.js, Framework7, and Cordova / PhoneGap Template with Babel, Webpack and Hot Reloading

example image iOS example image android

Getting Started

Prerequisites

To use this template, you'll need Node.js v6 or newer.

Installation

To use this as a template, use Cordova 6.0.0+ and create a new project:

cordova create MyAppName --template=phonegap-template-vue-f7-split-panel

or

phonegap create MyAppName --template phonegap-template-vue-f7-split-panel

then

cd MyAppName
npm install

Run the app in the browser / simulator

Run this to start the development webpack server:

npm run dev

You can then open the app in your browser by visiting localhost:8080

Open it in the iOS Simulator by running (in another terminal):

cordova platform add ios or phonegap platform add ios

then

npm run cordova-run-ios

Or in the Android emulator with:

cordova platform add android or phonegap platform add android

then

npm run cordova-run-android

(both of which are just calling cordova run ios and cordova run android)

Build the app for production

To build the app without the development hot module reloading server:

npm run build-prod

After that, the normal Cordova / PhoneGap commands can be used such as phonegap serve, or cordova run ios, etc.

phonegap-template-vue-f7-split-panel's People

Contributors

devgeeks avatar hermwong avatar hollyschinsky avatar macdonst avatar surajpindoria avatar timkim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phonegap-template-vue-f7-split-panel's Issues

Add SASS/SCSS support

Hi,
if I try to add a main.scss file from main.js, I always have an error like:

This relative module was not found:

* ./main.scss in ./src/main.js

The same behaviour with SASS files.

I'm also trying to use SCSS inside the style tag in my VueJS components and pages.
I've installed the sass-loader and the node-sass, but if I edits the style tag adding the lang="sass" and the . type="text/scss" attributes, I have the following error:

@media (min-width: 960px) {
                          ^
      Invalid CSS after "...width: 960px) {": expected "}", was "{"
      in /Users/lucacaprini/Development/Projects/CordovaF7Vue/src/app.vue (line 60, column 28)

 @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/
lib/style-compiler?{"vue":true,"id":"data-v-5ef48958","scoped":false,"hasInlineConfig":false}!./node_modul
es/sass-loader/lib/loader.js?{"indentedSyntax":true,"sourceMap":true}!./node_modules/vue-loader/lib/select
or.js?type=styles&index=0!./src/app.vue 4:14-383 13:3-17:5 14:22-391
 @ ./src/app.vue
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

Can you help me to adding SCSS support in this template?
Thanks

service worker caching policies

I want to add the caching policies into the service work. As per the tutorial from phonegap website this template support PWA and uses sw-precache-webpack-plugin.

Where can I define my own caching policies and test them. Please guide me.

Thank you.

iPhone X compatibility

After adding the appropriate splash screens to config.xml, the screen on the iPhone X is used completely.

But when i open the menu, it's missing:
simulator screen shot - iphone x - 2018-05-08 at 16 59 53

When i then rotate the device to the right and back, the content jumps up and is then displayed under the notch.

simulator screen shot - iphone x - 2018-05-08 at 17 00 30

This does not happen, when run on any other model, e.g. iPhone 8.

Is this only Framework7 dependent? Would upgrading to the latest version of Framework7 help here?

Thanks

missing script build

There is missing script after using this new v3 framework7

> npm run build && cordova run android

npm ERR! missing script: build

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cyruschan\AppData\Roaming\npm-cache\_logs\2019-01-02T02_01_24_363Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] cordova-run-android: `npm run build && cordova run android`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] cordova-run-android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\framework7\AppData\Roaming\npm-cache\_logs\2019-01-02T02_01_24_419Z-debug.log

Move index.html to ./src

To avoid confusion, we should move the index.html file that is used to build the final index.html from the root of the project to the src folder. This file is a src file in that it is the one that can be edited, then is used to generate the one in the www folder for use in Cordova.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.