Skip to content

Commit bfb3431

Browse files
committed
Internal tippy.js script
1 parent 80f0bf3 commit bfb3431

File tree

12 files changed

+46
-57
lines changed

12 files changed

+46
-57
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
### Main resources
88
* CSS Framework : [ChuckCSS Framework](http://chuckcss.io/)
99
* JS Framework : [VueJS](https://github.com/vuejs/vue)
10-
* Compilation : [Webpack](https://webpack.github.io/docs/)
10+
* Compilation : [Webpack2](https://webpack.github.io/docs/)
1111
* Unit tests runner : [Karma](https://github.com/karma-runner/karma/)
1212
* Javascript testing framework : [Jasmine](https://github.com/jasmine/jasmine)
1313
* JS Libraries :
@@ -19,12 +19,13 @@
1919
### VueJS Plugins/Resources
2020
* Components format : [Vue-loader](https://github.com/vuejs/vue-loader/)
2121
* Routing : [Vue-router](https://github.com/vuejs/vue-router)
22+
* Store management : [Vuex](https://github.com/vuejs/vuex)
2223
* Fetch Datas : [Vue-axios](https://github.com/imcvampire/vue-axios)
2324
* Metatags management : [Vue-head](https://github.com/ktquez/vue-head)
2425
* Form validation : [Vuelidate](https://github.com/monterail/vuelidate)
2526
* Cookies : [Vue-cookie](https://github.com/alfhen/vue-cookie)
2627
* HighCharts : [Vue-HighCharts](https://github.com/weizhenye/vue-highcharts)
27-
* Vue Analytics : [Vue-ua](https://github.com/ScreamZ/vue-analytics)
28+
* Google Analytics : [Vue-ua](https://github.com/ScreamZ/vue-analytics)
2829
* Date picker : [Vue-Flatpickr](https://github.com/jrainlau/vue-flatpickr)
2930
* Files uploader : [Dropzone](https://github.com/enyo/dropzone/)
3031
* Tooltips : [TippyJS](https://github.com/atomiks/tippyjs)

dist/build.js

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

dist/build.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tippy.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
<body>
88
<div id="app"></div>
99

10-
11-
<!-- Tippy.js -->
12-
<script src="dist/tippy.js"></script>
13-
1410
<!-- Tinymce -->
1511
<script src="//cloud.tinymce.com/stable/tinymce.min.js"></script>
1612

package.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,29 @@
1010
},
1111
"dependencies": {
1212
"ChuckCSS": "^3",
13-
"cross-env": "^3.2.4",
14-
"dropzone": "^4.3.0",
13+
"cross-env": "^3.2",
1514
"karma-cli": "^1.0.1",
16-
"lodash": "^4.17.4",
17-
"tinymce": "^4.5.6",
18-
"vue": "^2.2.6",
19-
"vue-template-compiler": "^2.2.6",
20-
"vuex": "^2.3.0",
21-
"webpack": "^2.3.2",
22-
"webpack-dev-server": "^2.4.2"
15+
"vue": "^2.2",
16+
"vue-template-compiler": "^2.2",
17+
"webpack": "^2.3",
18+
"webpack-dev-server": "^2.4"
2319
},
2420
"devDependencies": {
2521
"accounting": "^0.4.1",
2622
"autoprefixer": "^6.7.6",
27-
"axios": "^0.15.3",
23+
"axios": "^0.15",
2824
"babel-core": "^6",
2925
"babel-loader": "^6.0.0",
3026
"babel-plugin-transform-object-rest-spread": "^6.23.0",
3127
"babel-plugin-transform-runtime": "^6.23.0",
3228
"babel-polyfill": "^6.23.0",
3329
"babel-preset-es2015": "^6.0.0",
3430
"babel-preset-stage-2": "^6.22.0",
35-
"cross-env": "^3.2.3",
3631
"css-loader": "^0.25.0",
37-
"exports-loader": "^0.6.4",
32+
"dropzone": "^4.3.0",
3833
"expose-loader": "^0.7.3",
3934
"file-loader": "^0.9.0",
4035
"highcharts": "^5",
41-
"imports-loader": "^0.7.1",
4236
"jasmine-core": "^2.5.2",
4337
"json-loader": "^0.5.4",
4438
"karma": "^1.5.0",
@@ -51,10 +45,12 @@
5145
"karma-webpack": "^2.0.3",
5246
"less": "^2.7.2",
5347
"less-loader": "^2.2.3",
48+
"lodash": "^4.17.4",
5449
"moment": "^2.17.1",
5550
"phantomjs-prebuilt": "^2.1.14",
5651
"postcss-loader": "^1.3.3",
5752
"style-loader": "^0.13.1",
53+
"tinymce": "^4.5.6",
5854
"tippy.js": "^0.4.0",
5955
"vue-axios": "^1.2.2",
6056
"vue-cookie": "^1.1.3",
@@ -64,6 +60,7 @@
6460
"vue-loader": "^10.0.0",
6561
"vue-router": "^2.2.1",
6662
"vue-ua": "^1.3.0",
63+
"vuex": "^2.3.0",
6764
"vuelidate": "^0.4"
6865
}
6966
}

src/js/components/tinymce.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
height : 300,
3030
max_height: 500,
3131
body_class: 'my-tinymce',
32-
content_css: '/dist/tinymce.css?' + new Date().getTime()
32+
content_css: 'dist/tinymce.css?' + new Date().getTime()
3333
}
3434
}}
3535
},

src/js/directives/tooltips.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Vue from 'vue'
33
import Vuex from 'vuex'
44
import store from '../store.js'
5-
// import Tippy from 'tippy'
5+
import Tippy from 'tippy'
66
77
88

src/js/main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ import 'vue-flatpickr/theme/material_blue.css'
1616
// App specific features
1717
import less from '../less/front.less'
1818
import router from './router.js'
19+
import store from './store.js'
1920
import filters from './components/filters.vue'
20-
import './directives/tooltips.vue'
2121

22-
import store from './store.js'
22+
// Custom directives
23+
import './directives/tooltips.vue'
2324

2425

26+
// Use Plugins
2527
Vue.use(VueHead)
2628
Vue.use(VueAxios, axios)
2729
Vue.use(Vuelidate)
@@ -36,7 +38,7 @@ Vue.use(VueAnalytics, {
3638
})
3739

3840

39-
41+
// Make the world better
4042
const app = new Vue({
4143
store,
4244
router,

src/js/store.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import Vuex from 'vuex'
44
Vue.use(Vuex)
55

66
const state = {
7+
8+
// Does the user enabled / disabled the Tootlips helpers ?
79
showTooltips: false
810
}
911

src/js/tippy.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// import Popper from 'popper.js'
2+
3+
/**!
4+
* @file tippy.js | Pure JS Tooltip Library
5+
* @version 0.4.0
6+
* @license MIT
7+
*/
8+
9+
class Tippy {
10+
constructor(selector, settings = {}) {
11+
alert('coucou')
12+
}
13+
14+
}
15+
module.exports = Tippy;
16+
window.Tippy = Tippy

src/js/views/dashboard/dashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<!-- Sales -->
4242
<div>
43-
<div class="push-item" v-tooltip="{title: 'I\'m the second tooltip dude ^^'}">
43+
<div class="push-item">
4444
<span class="push-icon cc-bg-green">
4545
<i class="ion-android-cart"></i>
4646
</span>

0 commit comments

Comments
 (0)