framework7 7.1.1 → 7.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1201,12 +1201,12 @@ class Router extends Framework7Class {
1201
1201
  }
1202
1202
  } else {
1203
1203
  if (browserHistoryRoot && documentUrl.indexOf(browserHistoryRoot) >= 0) {
1204
- documentUrl = documentUrl.split(browserHistoryRoot)[1];
1204
+ documentUrl = documentUrl.substring(documentUrl.indexOf(browserHistoryRoot) + browserHistoryRoot.length);
1205
1205
  if (documentUrl === '') documentUrl = '/';
1206
1206
  }
1207
1207
 
1208
1208
  if (browserHistorySeparator.length > 0 && documentUrl.indexOf(browserHistorySeparator) >= 0) {
1209
- initialUrl = documentUrl.split(browserHistorySeparator)[1];
1209
+ initialUrl = documentUrl.substring(documentUrl.indexOf(browserHistorySeparator) + browserHistorySeparator.length);
1210
1210
  } else {
1211
1211
  initialUrl = documentUrl;
1212
1212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7",
3
- "version": "7.1.1",
3
+ "version": "7.1.2",
4
4
  "description": "Full featured mobile HTML framework for building iOS & Android apps",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,26 +0,0 @@
1
- import $ from './shared/dom7.js';
2
- import Framework7 from './components/app/app-class.js'; //IMPORT_HELPERS
3
-
4
- import DeviceModule from './modules/device/device.js';
5
- import SupportModule from './modules/support/support.js';
6
- import UtilsModule from './modules/utils/utils.js';
7
- import ResizeModule from './modules/resize/resize.js';
8
- import RequestModule from './modules/request/request.js';
9
- import TouchModule from './modules/touch/touch.js';
10
- import ClicksModule from './modules/clicks/clicks.js';
11
- import RouterModule from './modules/router/router.js';
12
- import HistoryModule from './modules/history/history.js';
13
- import ServiceWorkerModule from './modules/service-worker/service-worker.js';
14
- import StoreModule, { createStore } from './modules/store/store.js';
15
- import Statusbar from './components/statusbar/statusbar.js';
16
- import View from './components/view/view.js';
17
- import Navbar from './components/navbar/navbar.js';
18
- import Toolbar from './components/toolbar/toolbar.js';
19
- import Subnavbar from './components/subnavbar/subnavbar.js';
20
- import TouchRipple from './components/touch-ripple/touch-ripple.js';
21
- import Modal from './components/modal/modal.js'; //IMPORT_COMPONENTS
22
-
23
- Framework7.use([DeviceModule, SupportModule, UtilsModule, ResizeModule, RequestModule, TouchModule, ClicksModule, RouterModule, HistoryModule, ServiceWorkerModule, StoreModule, Statusbar, View, Navbar, Toolbar, Subnavbar, TouchRipple, Modal //INSTALL_COMPONENTS
24
- ]); //NAMED_EXPORT
25
-
26
- export default Framework7;
package/less/plugin.js DELETED
@@ -1,18 +0,0 @@
1
- const fs = require('fs');
2
-
3
- function base64Encode(file) {
4
- // read binary data
5
- const bitmap = fs.readFileSync(file); // convert binary data to base64 encoded string
6
-
7
- return Buffer.from(bitmap).toString('base64');
8
- }
9
-
10
- module.exports = {
11
- install(less, pluginManager, functions) {
12
- functions.add('framework7_coreIconsFont', () => {
13
- const iconsFontBase64 = base64Encode('./src/core/icons/font/framework7-core-icons.woff');
14
- return iconsFontBase64;
15
- });
16
- }
17
-
18
- };