Skip to content

Commit 62f4653

Browse files
Merge pull request #22 from yarkovaleksei/dev
v3.3.0
2 parents 7c28200 + 66906a3 commit 62f4653

27 files changed

+228
-47
lines changed

dist/vue2-storage.common.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue2-storage v3.0.0
2+
* vue2-storage v3.3.0
33
* (c) 2018 Yarkov Aleksey
44
* Released under the MIT License.
55
*/
@@ -59,11 +59,11 @@ var Storage = function Storage (config) {
5959
var prototypeAccessors = { name: {},version: {},length: {},driver: {} };
6060

6161
prototypeAccessors.name.get = function () {
62-
return 'vue2-storage[v3.0.0]'
62+
return 'vue2-storage[v3.3.0]'
6363
};
6464

6565
prototypeAccessors.version.get = function () {
66-
return '3.0.0'
66+
return '3.3.0'
6767
};
6868

6969
prototypeAccessors.length.get = function () {
@@ -212,7 +212,9 @@ Object.defineProperties( Storage.prototype, prototypeAccessors );
212212
/* */
213213

214214
function Vue2Storage (Vue, options) {
215-
Vue.prototype.$storage = new Storage(options);
215+
var storage = new Storage(options);
216+
Vue['$storage'] = storage;
217+
Vue.prototype.$storage = storage;
216218
}
217219

218220
window.Vue2Storage = Vue2Storage;

dist/vue2-storage.esm.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue2-storage v3.0.0
2+
* vue2-storage v3.3.0
33
* (c) 2018 Yarkov Aleksey
44
* Released under the MIT License.
55
*/
@@ -57,11 +57,11 @@ var Storage = function Storage (config) {
5757
var prototypeAccessors = { name: {},version: {},length: {},driver: {} };
5858

5959
prototypeAccessors.name.get = function () {
60-
return 'vue2-storage[v3.0.0]'
60+
return 'vue2-storage[v3.3.0]'
6161
};
6262

6363
prototypeAccessors.version.get = function () {
64-
return '3.0.0'
64+
return '3.3.0'
6565
};
6666

6767
prototypeAccessors.length.get = function () {
@@ -210,7 +210,9 @@ Object.defineProperties( Storage.prototype, prototypeAccessors );
210210
/* */
211211

212212
function Vue2Storage (Vue, options) {
213-
Vue.prototype.$storage = new Storage(options);
213+
var storage = new Storage(options);
214+
Vue['$storage'] = storage;
215+
Vue.prototype.$storage = storage;
214216
}
215217

216218
window.Vue2Storage = Vue2Storage;

dist/vue2-storage.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue2-storage v3.0.0
2+
* vue2-storage v3.3.0
33
* (c) 2018 Yarkov Aleksey
44
* Released under the MIT License.
55
*/
@@ -63,11 +63,11 @@ var Storage = function Storage (config) {
6363
var prototypeAccessors = { name: {},version: {},length: {},driver: {} };
6464

6565
prototypeAccessors.name.get = function () {
66-
return 'vue2-storage[v3.0.0]'
66+
return 'vue2-storage[v3.3.0]'
6767
};
6868

6969
prototypeAccessors.version.get = function () {
70-
return '3.0.0'
70+
return '3.3.0'
7171
};
7272

7373
prototypeAccessors.length.get = function () {
@@ -216,7 +216,9 @@ Object.defineProperties( Storage.prototype, prototypeAccessors );
216216
/* */
217217

218218
function Vue2Storage (Vue, options) {
219-
Vue.prototype.$storage = new Storage(options);
219+
var storage = new Storage(options);
220+
Vue['$storage'] = storage;
221+
Vue.prototype.$storage = storage;
220222
}
221223

222224
window.Vue2Storage = Vue2Storage;

dist/vue2-storage.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/en/api.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,19 @@
253253

254254
<li class="chapter " data-level="1.5.1.7" data-path="api.html">
255255

256+
<a href="api.html#key">
257+
258+
259+
key
260+
261+
</a>
262+
263+
264+
265+
</li>
266+
267+
<li class="chapter " data-level="1.5.1.8" data-path="api.html">
268+
256269
<a href="api.html#keys">
257270

258271

@@ -264,7 +277,7 @@
264277

265278
</li>
266279

267-
<li class="chapter " data-level="1.5.1.8" data-path="api.html">
280+
<li class="chapter " data-level="1.5.1.9" data-path="api.html">
268281

269282
<a href="api.html#length">
270283

@@ -689,7 +702,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
689702
<script>
690703
var gitbook = gitbook || [];
691704
gitbook.push(function() {
692-
gitbook.page.hasChanged({"page":{"title":"API","level":"1.5","depth":1,"next":{"title":"Methods","level":"1.5.1","depth":2,"anchor":"#methods","path":"api.md","ref":"api.md#methods","articles":[{"title":"setOptions","level":"1.5.1.1","depth":3,"anchor":"#setoptions","path":"api.md","ref":"api.md#setoptions","articles":[]},{"title":"get","level":"1.5.1.2","depth":3,"anchor":"#get","path":"api.md","ref":"api.md#get","articles":[]},{"title":"set","level":"1.5.1.3","depth":3,"anchor":"#set","path":"api.md","ref":"api.md#set","articles":[]},{"title":"remove","level":"1.5.1.4","depth":3,"anchor":"#remove","path":"api.md","ref":"api.md#remove","articles":[]},{"title":"clear","level":"1.5.1.5","depth":3,"anchor":"#clear","path":"api.md","ref":"api.md#clear","articles":[]},{"title":"has","level":"1.5.1.6","depth":3,"anchor":"#has","path":"api.md","ref":"api.md#has","articles":[]},{"title":"keys","level":"1.5.1.7","depth":3,"anchor":"#keys","path":"api.md","ref":"api.md#keys","articles":[]},{"title":"length","level":"1.5.1.8","depth":3,"anchor":"#length","path":"api.md","ref":"api.md#length","articles":[]}]},"previous":{"title":"Options","level":"1.4","depth":1,"path":"options.md","ref":"options.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","[email protected]"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/yarkovaleksei/vue2-storage/"},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"advanced-emoji":{"embedEmojis":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/yarkovaleksei/vue2-storage/tree/dev/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"en","links":{"sharing":{"facebook":true,"twitter":true}},"gitbook":"*"},"file":{"path":"api.md","mtime":"2018-04-03T20:22:44.125Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-04-03T21:40:10.100Z"},"basePath":".","book":{"language":"en"}});
705+
gitbook.page.hasChanged({"page":{"title":"API","level":"1.5","depth":1,"next":{"title":"Methods","level":"1.5.1","depth":2,"anchor":"#methods","path":"api.md","ref":"api.md#methods","articles":[{"title":"setOptions","level":"1.5.1.1","depth":3,"anchor":"#setoptions","path":"api.md","ref":"api.md#setoptions","articles":[]},{"title":"get","level":"1.5.1.2","depth":3,"anchor":"#get","path":"api.md","ref":"api.md#get","articles":[]},{"title":"set","level":"1.5.1.3","depth":3,"anchor":"#set","path":"api.md","ref":"api.md#set","articles":[]},{"title":"remove","level":"1.5.1.4","depth":3,"anchor":"#remove","path":"api.md","ref":"api.md#remove","articles":[]},{"title":"clear","level":"1.5.1.5","depth":3,"anchor":"#clear","path":"api.md","ref":"api.md#clear","articles":[]},{"title":"has","level":"1.5.1.6","depth":3,"anchor":"#has","path":"api.md","ref":"api.md#has","articles":[]},{"title":"key","level":"1.5.1.7","depth":3,"anchor":"#key","path":"api.md","ref":"api.md#key","articles":[]},{"title":"keys","level":"1.5.1.8","depth":3,"anchor":"#keys","path":"api.md","ref":"api.md#keys","articles":[]},{"title":"length","level":"1.5.1.9","depth":3,"anchor":"#length","path":"api.md","ref":"api.md#length","articles":[]}]},"previous":{"title":"Options","level":"1.4","depth":1,"path":"options.md","ref":"options.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","[email protected]"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/yarkovaleksei/vue2-storage/"},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"advanced-emoji":{"embedEmojis":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/yarkovaleksei/vue2-storage/tree/dev/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"en","links":{"sharing":{"facebook":true,"twitter":true}},"gitbook":"*"},"file":{"path":"api.md","mtime":"2018-04-13T20:03:54.632Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-04-13T20:14:16.381Z"},"basePath":".","book":{"language":"en"}});
693706
});
694707
</script>
695708
</div>

0 commit comments

Comments
 (0)