diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..66dc9051 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +undefined \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index 67c085d6..b3a0b5d8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,20 +7,20 @@ module.exports = { sourceType: 'module' }, env: { - browser: true, + browser: true }, // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style extends: 'standard', // required to lint *.vue files - plugins: [ - 'html' - ], + plugins: ['html'], // add your custom rules here - 'rules': { + rules: { // allow paren-less arrow functions 'arrow-parens': 0, // allow async-await 'generator-star-spacing': 0, + // disable space before func paren + 'space-before-function-paren': 0, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 } diff --git a/.gitignore b/.gitignore index 79eadfdb..0c97e27c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ test/unit/coverage test/e2e/reports selenium-debug.log .netlify +.*.dockerfile +.vs \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..afabba52 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - 'node' +install: + - 'npm install' +script: + - 'npm run build' \ No newline at end of file diff --git a/README.md b/README.md index 2c9a5841..073d309f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ ✈️️ Take it for a spin. + +[![Build Status](https://travis-ci.org/misterGF/CoPilot.svg?branch=master)](https://travis-ci.org/misterGF/CoPilot) +[![Build status](https://ci.appveyor.com/api/projects/status/wenct56narbt6r1l?svg=true)](https://ci.appveyor.com/project/misterGF/copilot) + !["CoPilot Screenshot"](http://res.cloudinary.com/gatec21/image/upload/v1489954238/copilot-march-2017_ifdrlj.png) In an attempt to keep the project clean I have not included every plugin/feature that AdminLTE offers. You simply need to add the plugin in the /static/js/plugin folder to include them or use npm. I've included the popular ones. diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..b468e1e9 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,14 @@ +environment: + nodejs_version: "7" +install: + - ps: Install-Product node $env:nodejs_version + - npm install --loglevel=error # no warnings +test_script: + # Output useful info for debugging. + - node --version + - npm --version + # run tests + - npm run build + +# Don't actually build. +build: off \ No newline at end of file diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 8acac82d..cd79c65d 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -23,6 +23,7 @@ module.exports = { alias: { 'vue$': 'vue/dist/vue.esm.js', '@': resolve('src'), + 'utils': resolve('src/utils') } }, module: { diff --git a/build/webpack.test.conf.js b/build/webpack.test.conf.js index 8e4385cf..37f98061 100644 --- a/build/webpack.test.conf.js +++ b/build/webpack.test.conf.js @@ -14,6 +14,10 @@ var webpackConfig = merge(baseConfig, { plugins: [ new webpack.DefinePlugin({ 'process.env': require('../config/test.env') + }), + new webpack.ProvidePlugin({ + $: 'jquery', + jQuery: 'jquery', }) ] }) diff --git a/index.html b/index.html index 4d76b93f..d452776c 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@ - +
@@ -30,6 +30,8 @@ + + diff --git a/src/components/Dash.vue b/src/components/Dash.vue index ed44d679..aa775e1c 100644 --- a/src/components/Dash.vue +++ b/src/components/Dash.vue @@ -1,137 +1,12 @@ - diff --git a/src/components/SidebarMenu.vue b/src/components/SidebarMenu.vue deleted file mode 100644 index 5ce798b8..00000000 --- a/src/components/SidebarMenu.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - diff --git a/src/components/layout/DashFooter.vue b/src/components/layout/DashFooter.vue new file mode 100644 index 00000000..cb45f9a1 --- /dev/null +++ b/src/components/layout/DashFooter.vue @@ -0,0 +1,17 @@ + + + diff --git a/src/components/layout/DashHeader.vue b/src/components/layout/DashHeader.vue new file mode 100644 index 00000000..8915bb94 --- /dev/null +++ b/src/components/layout/DashHeader.vue @@ -0,0 +1,48 @@ + + + diff --git a/src/components/layout/MessageItem.vue b/src/components/layout/MessageItem.vue new file mode 100644 index 00000000..790c7c00 --- /dev/null +++ b/src/components/layout/MessageItem.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/src/components/layout/MessagesMenu.vue b/src/components/layout/MessagesMenu.vue new file mode 100644 index 00000000..b41c9d6a --- /dev/null +++ b/src/components/layout/MessagesMenu.vue @@ -0,0 +1,40 @@ + + + diff --git a/src/components/layout/NotificationItem.vue b/src/components/layout/NotificationItem.vue new file mode 100644 index 00000000..4546bdd4 --- /dev/null +++ b/src/components/layout/NotificationItem.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/src/components/layout/NotificationsMenu.vue b/src/components/layout/NotificationsMenu.vue new file mode 100644 index 00000000..0f7e80d6 --- /dev/null +++ b/src/components/layout/NotificationsMenu.vue @@ -0,0 +1,115 @@ + + + + + diff --git a/src/components/Sidebar.vue b/src/components/layout/Sidebar.vue similarity index 64% rename from src/components/Sidebar.vue rename to src/components/layout/Sidebar.vue index 5347c8c2..d6829475 100644 --- a/src/components/Sidebar.vue +++ b/src/components/layout/Sidebar.vue @@ -7,11 +7,11 @@
- +
-

{{ displayName }}

+

{{user.displayName}}

Online @@ -20,16 +20,16 @@
-