vue-component-tree
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "vue-component-tree", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Tree view for your demo components", | ||
@@ -31,5 +31,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@types/jasmine": "^2.5.54", | ||
"@types/node": "^9.6.5", | ||
"@types/webpack-env": "^1.13.6", | ||
"@types/jasmine": "^2.5.54", | ||
"babel-core": "^6.26.0", | ||
@@ -44,2 +44,3 @@ "babel-loader": "^7.1.4", | ||
"font-awesome": "^4.7.0", | ||
"html-webpack-plugin": "^3.2.0", | ||
"jasmine-core": "^2.8.0", | ||
@@ -53,4 +54,4 @@ "karma": "^1.7.1", | ||
"karma-webpack": "^2.0.3", | ||
"html-webpack-plugin": "^3.2.0", | ||
"node-sass": "^4.8.3", | ||
"requirejs": "^2.3.5", | ||
"sass-loader": "^7.0.1", | ||
@@ -57,0 +58,0 @@ "style-loader": "^0.20.3", |
@@ -51,3 +51,3 @@ [![Build status][circleci-badge]][circleci-url] | ||
routes: [ | ||
VueComponentTree.create(require.context('./../tree', true, /.vue$/), '/demo'), | ||
VueComponentTree(require.context('./../tree', true, /.vue$/), '/demo'), | ||
] | ||
@@ -81,2 +81,2 @@ }) | ||
[circleci-badge]: https://img.shields.io/circleci/project/github/asvae/vue-component-tree/master.svg?style=flat-square | ||
[circleci-url]: https://circleci.com/gh/asvae/vue-component-tree | ||
[circleci-url]: https://circleci.com/gh/asvae/vue-component-tree |
import storage from './storage' | ||
import DemoPageConfig, {DemoPageMode} from '../components/DemoPage/DemoPageConfig' | ||
import DemoPageConfig, { DemoPageMode } from '../components/DemoPage/DemoPageConfig' | ||
@@ -10,6 +10,10 @@ const STORAGE_KEY = 'config' | ||
get config (): DemoPageConfig { | ||
if (! this._config) { | ||
if (!this._config) { | ||
const data = storage.fetch(STORAGE_KEY) || new DemoPageConfig() | ||
const config: DemoPageConfig = new DemoPageConfig(data.mode, data.isFlat, data.isShowingInfo, data.searchText, data.width) | ||
this._config = config | ||
this._config = new DemoPageConfig( | ||
data.mode, | ||
data.isFlat, | ||
data.searchText, | ||
data.width, | ||
) | ||
} | ||
@@ -22,2 +26,2 @@ return this._config | ||
}, | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24319
81
4459187
35
87