Commit Graph

324 Commits

Author SHA1 Message Date
Yev Vlasenko
3ac104f569 Merge pull request #87 from arve0/vue_runtime_dep
Remove Vue runtime dependency
2017-09-16 08:50:06 +01:00
euvl
40bdbfb3bc Merge branch 'master' of https://github.com/euvl/vue-modal 2017-09-14 11:47:10 +01:00
euvl
ddefb5db8f v1.2.12 2017-09-14 11:47:08 +01:00
Yev Vlasenko
8d81fb14e1 Merge pull request #86 from arve0/pivot-x-fix-width
Use window.innerWidth instead of body.clientWidth
2017-09-13 21:35:12 +01:00
arve0
e3179625d0 Remove Vue runtime dependency
This allow the bundle to be used in jsfiddle, plnkr, jsbin, etc.,
as the bundle does not depend on Vue.

The problem lies on second line of bundle

```js
"object" == typeof exports ? exports["vue-js-modal"] = factory(require("vue")) : root["vue-js-modal"] = factory(root.vue)
```

where `factory` tries to find `root.vue`, but the official Vue bundle exports
as `root.Vue`.

Removing the runtime dependency solves this.

`Object.assign` is available in all browsers but IE:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
2017-09-13 20:30:01 +02:00
arve0
9f814fb842 Use window.innerWidth instead of body.clientWidth
Fixes pivot-x for cases where you have body smaller than document,
for example:

```html
<!DOCTYPE html>
<html>
<head>
  <style>
    html {
      background-color: white;
    }
    body {
      width: 80%;
      background-color: lightgreen;
    }
  </style>
</head>
<body>
  <script>
      document.body.innerHTML += `<pre>
        window.innerWidth is ${window.innerWidth}<br>
        document.body.clientWidth is ${document.body.clientWidth}<br>
        window.innerWidth == document.body.clientWidth: ${window.innerWidth == document.body.clientWidth}`
    </script>
  </body>
</html>
```

Fixes issue #84
2017-09-13 19:25:21 +02:00
euvl
48721f956d Added uglification stap to remove dead code (fix by @arve0) 2017-09-13 13:41:30 +01:00
euvl
3a8a5884c8 Added configurable clickToClose and width for v-dialog (#76) 2017-09-12 17:31:41 +01:00
euvl
de051ee119 Merge branch 'master' of https://github.com/euvl/vue-modal 2017-09-07 15:44:00 +01:00
euvl
b5642b8bd6 Adding overflow:hidden to the body when "scrollable" is enabled. #71 2017-09-07 15:43:58 +01:00
Yev Vlasenko
5898d252cd Merge pull request #77 from detailyang/patch-1
doc: fix js demo syntax error
2017-08-31 17:10:54 +01:00
detailyang
f80a08ab05 doc: fix js demo syntax error 2017-08-31 23:38:14 +08:00
Yev Vlasenko
f61e6afac2 Update README.md 2017-08-29 15:03:48 +01:00
Yev Vlasenko
97e950a52e Merge pull request #74 from euvl/mobile-touch-fix
v1.2.9
2017-08-24 07:56:19 +01:00
euvl
f1049716eb v1.2.9 2017-08-24 07:55:27 +01:00
Yev Vlasenko
b3ce3d5314 Merge pull request #73 from euvl/mobile-touch-fix
Added touchstart to places where mousedown is called
2017-08-23 11:27:38 +01:00
euvl
c3098b52c7 Merge remote-tracking branch 'origin/master' into mobile-touch-fix 2017-08-23 11:26:18 +01:00
euvl
7dc7f5a303 Changed unit test env to PhantomJS 2017-08-23 11:21:13 +01:00
euvl
9f25307e30 CircleCI: added sudo for karma install 2017-08-23 11:14:34 +01:00
euvl
426f6c4955 Added touchstart to places where mousedown is called 2017-08-23 10:14:01 +01:00
euvl
a4b04312f0 Added globals task 2017-08-22 12:14:15 +01:00
euvl
9f857ea80b Removed update-npm task 2017-08-22 12:10:36 +01:00
euvl
074b191c02 Fixed a typ0 in Circle CI foldername (lol) 2017-08-22 12:05:51 +01:00
euvl
35451d0c95 Updated CircleCI config 2017-08-22 12:02:06 +01:00
euvl
6e1b9d7aa4 Updated CircleCI config 2017-08-22 11:48:29 +01:00
euvl
1fa934e0a1 Merge branch 'master' of https://github.com/euvl/vue-modal 2017-08-22 11:39:50 +01:00
euvl
81e8735bd3 Added circleCI integration 2017-08-22 11:39:47 +01:00
Yev Vlasenko
0a9cbb037a Update README.md 2017-08-19 16:51:40 +01:00
Yev Vlasenko
7229c8e5af Update README.md 2017-08-14 19:25:16 +01:00
Yev Vlasenko
4934fb16ed Update README.md 2017-08-14 14:52:56 +01:00
euvl
d48e2772a9 Added code linting & cleaned code acording to JavaScript Standard Style 2017-08-14 14:51:28 +01:00
euvl
de592d27f4 Added comments 2017-08-14 14:32:26 +01:00
Yev Vlasenko
c1f4d6f2e6 Added readme.cn.md file for chinese translation 2017-08-10 13:11:52 +01:00
Yev Vlasenko
8ff920b984 Added a file for russian translation of readme 2017-08-10 13:10:37 +01:00
Yev Vlasenko
a3ca70f89e Update README.md 2017-08-10 11:38:12 +01:00
Yev Vlasenko
f4ba0e6caf Update README.md 2017-08-10 11:00:48 +01:00
Yev Vlasenko
67159cc6de Update README.md 2017-08-10 10:58:09 +01:00
Yev Vlasenko
9a0ff62a4e Update README.md 2017-08-10 10:52:52 +01:00
Yev Vlasenko
ffe018878d Update README.md 2017-08-10 10:45:05 +01:00
Yev Vlasenko
f2a1bea004 Delete CHANGELOG.md 2017-08-10 10:36:46 +01:00
Yev Vlasenko
480085d323 Update README.md 2017-08-09 09:02:53 +01:00
Yev Vlasenko
eba5e8bb4a Merge pull request #59 from euvl/unit-tests
Added unit tests for "parser.js" and "util.js"
2017-08-07 16:08:24 +01:00
euvl
0089717a8c Added unit tests for "parser.js" and "util.js" 2017-08-07 16:07:57 +01:00
euvl
72f5222e4b Updated version to 1.2.8 2017-08-07 12:47:38 +01:00
euvl
c81801ceb5 Using document.body.clientWidth instead of window.innerWidth (#58) + rebuild 2017-08-07 12:46:14 +01:00
euvl
0ea9d797cd Added Dialog component, updated examples. 2017-08-07 12:39:13 +01:00
Yev Vlasenko
4c18b2b653 Update README.md 2017-08-04 11:41:40 +01:00
Yev Vlasenko
6383ea1dd0 Update README.md 2017-08-04 11:39:37 +01:00
Yev Vlasenko
bd9504d65b Merge pull request #55 from Atinux/master
Upgrade to nuxt 1.0-rc3
2017-08-01 18:07:00 +01:00
Sebastien Chopin
b316c18769 Upgrade to nuxt 1.0-rc3 2017-08-01 18:41:46 +02:00