|
|
4 jaren geleden | |
|---|---|---|
| .. | ||
| build | 4 jaren geleden | |
| cordova | 4 jaren geleden | |
| src | 4 jaren geleden | |
| static | 4 jaren geleden | |
| www | 4 jaren geleden | |
| .editorconfig | 4 jaren geleden | |
| README.md | 4 jaren geleden | |
| babel.config.js | 4 jaren geleden | |
| package-lock.json | 4 jaren geleden | |
| package.json | 4 jaren geleden | |
| stats.json | 4 jaren geleden | |
Translator WebApp is full-featured Framework7 with Webpack setup with hot-reload.
npm install
npm run dev
App will be opened in browser at http://localhost:8080/
npm run build-prod
The output will be at www/ folder
Cordova is not enabled by default, so make sure to remove the comment tags around the <script src="cordova.js"></script> line in [projectroot]/src/index.html
<body>
<div id="app"></div>
<!-- Cordova -->
<script src="cordova.js"></script>
<!-- built script files will be auto injected -->
</body>
It will be added during the build process to Android/iOS.
Just put the contents of www folder in your cordova's project root www folder
src/index.html - main app HTMLsrc/css - put custom app CSS styles here. Don't forget to import them in main.jssrc/pages - app .f7.html pagessrc/app.js - main app file where you include/import all required libs and init appsrc/routes.js - app routes/static/ - folder with extra static assets that will be copied into output folder