diff --git a/.npmignore b/.npmignore index f16fc41..528897c 100644 --- a/.npmignore +++ b/.npmignore @@ -2,3 +2,5 @@ tests/ test/ *.test.js testing/ +examples/ +*.lock diff --git a/examples/client/.babelrc b/examples/client/.babelrc deleted file mode 100644 index ce118af..0000000 --- a/examples/client/.babelrc +++ /dev/null @@ -1,28 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", { - "modules": false, - "loose": false, - "useBuiltIns": "usage" - } - ], - [ - "@babel/preset-stage-2", { - "modules": false, - "loose": false, - "useBuiltIns": true, - "decoratorsLegacy": true - } - ] - ], - "plugins": [ - [ - "@babel/transform-runtime", { - "polyfill": false, - "regenerator": false - } - ] - ], - "comments": false -} diff --git a/examples/client/.editorconfig b/examples/client/.editorconfig deleted file mode 100644 index 9d08a1a..0000000 --- a/examples/client/.editorconfig +++ /dev/null @@ -1,9 +0,0 @@ -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true diff --git a/examples/client/.eslintignore b/examples/client/.eslintignore deleted file mode 100644 index 9b1c8b1..0000000 --- a/examples/client/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -/dist diff --git a/examples/client/.eslintrc.js b/examples/client/.eslintrc.js deleted file mode 100644 index 9d74edb..0000000 --- a/examples/client/.eslintrc.js +++ /dev/null @@ -1,47 +0,0 @@ -module.exports = { - root: true, - parserOptions: { - parser: 'babel-eslint', - sourceType: 'module' - }, - env: { - browser: true - }, - extends: [ - // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention - // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. - 'plugin:vue/essential', - // https://github.com/standard/standard/blob/master/docs/RULES-en.md - 'standard' - ], - // required to lint *.vue files - plugins: [ - 'vue' - ], - globals: { - 'ga': true, // Google Analytics - 'cordova': true, - '__statics': true - }, - // add your custom rules here - 'rules': { - // allow async-await - 'generator-star-spacing': 'off', - - // allow paren-less arrow functions - 'arrow-parens': 0, - 'one-var': 0, - - 'import/first': 0, - 'import/named': 2, - 'import/namespace': 2, - 'import/default': 2, - 'import/export': 2, - 'import/extensions': 0, - 'import/no-unresolved': 0, - 'import/no-extraneous-dependencies': 0, - - // allow debugger during development - 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 - } -} diff --git a/examples/client/.gitignore b/examples/client/.gitignore deleted file mode 100644 index c1356d3..0000000 --- a/examples/client/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -.quasar -.DS_Store -.thumbs.db -node_modules -/dist -/src-cordova/platforms -/src-cordova/plugins -/src-cordova/www -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln diff --git a/examples/client/.postcssrc.js b/examples/client/.postcssrc.js deleted file mode 100644 index 1174fe5..0000000 --- a/examples/client/.postcssrc.js +++ /dev/null @@ -1,8 +0,0 @@ -// https://github.com/michael-ciniawsky/postcss-load-config - -module.exports = { - plugins: [ - // to edit target browsers: use "browserslist" field in package.json - require('autoprefixer') - ] -} diff --git a/examples/client/.stylintrc b/examples/client/.stylintrc deleted file mode 100644 index ce38d77..0000000 --- a/examples/client/.stylintrc +++ /dev/null @@ -1,35 +0,0 @@ -{ - "blocks": "never", - "brackets": "never", - "colons": "never", - "colors": "always", - "commaSpace": "always", - "commentSpace": "always", - "cssLiteral": "never", - "depthLimit": false, - "duplicates": true, - "efficient": "always", - "extendPref": false, - "globalDupe": true, - "indentPref": 2, - "leadingZero": "never", - "maxErrors": false, - "maxWarnings": false, - "mixed": false, - "namingConvention": false, - "namingConventionStrict": false, - "none": "never", - "noImportant": false, - "parenSpace": "never", - "placeholder": false, - "prefixVarsWithDollar": "always", - "quotePref": "single", - "semicolons": "never", - "sortOrder": false, - "stackedProperties": "never", - "trailingWhitespace": "never", - "universal": "never", - "valid": true, - "zeroUnits": "never", - "zIndexNormalize": false -} diff --git a/examples/client/README.md b/examples/client/README.md deleted file mode 100644 index 51830ce..0000000 --- a/examples/client/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Quasar App - -> WIP diff --git a/examples/client/package.json b/examples/client/package.json deleted file mode 100644 index 55f6506..0000000 --- a/examples/client/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "client", - "version": "1.0.0", - "description": "simple web socket client tester", - "productName": "client", - "cordovaId": "org.cordova.quasar.app", - "author": "David Kebler ", - "private": true, - "scripts": { - "lint": "eslint --ext .js,.vue src", - "test": "echo \"No test specified\" && exit 0" - }, - "dependencies": { - "@uci/websocket-client": "^0.1.2", - "axios": "^0.18.0", - "better-try-catch": "^0.6.2" - }, - "devDependencies": { - "babel-eslint": "^8.2.1", - "eslint": "^4.18.2", - "eslint-config-standard": "^11.0.0", - "eslint-friendly-formatter": "^4.0.1", - "eslint-loader": "^2.0.0", - "eslint-plugin-import": "^2.9.0", - "eslint-plugin-node": "^6.0.1", - "eslint-plugin-promise": "^3.7.0", - "eslint-plugin-standard": "^3.0.1", - "eslint-plugin-vue": "^4.3.0", - "quasar-cli": "^0.16.0" - }, - "engines": { - "node": ">= 8.9.0", - "npm": ">= 5.6.0" - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not ie <= 10" - ] -} diff --git a/examples/client/quasar.conf.js b/examples/client/quasar.conf.js deleted file mode 100644 index 2885341..0000000 --- a/examples/client/quasar.conf.js +++ /dev/null @@ -1,139 +0,0 @@ -// Configuration for your app - -module.exports = function (ctx) { - return { - // app plugins (/src/plugins) - plugins: [ - ], - css: [ - 'app.styl' - ], - extras: [ - ctx.theme.mat ? 'roboto-font' : null, - 'material-icons', - ctx.theme.ios ? 'ionicons' : null - // 'mdi', - // 'fontawesome' - ], - supportIE: false, - build: { - scopeHoisting: true, - vueRouterMode: 'history', - // vueCompiler: true, - // gzip: true, - // analyze: true, - // extractCSS: false, - extendWebpack (cfg) { - cfg.module.rules.push({ - enforce: 'pre', - test: /\.(js|vue)$/, - loader: 'eslint-loader', - exclude: /(node_modules|quasar)/ - }) - } - }, - devServer: { - // https: true, - // port: 8080, - open: true // opens browser window automatically - }, - // framework: 'all' --- includes everything; for dev only! - framework: { - components: [ - 'QLayout', - 'QLayoutHeader', - 'QLayoutDrawer', - 'QPageContainer', - 'QPage', - 'QToolbar', - 'QToolbarTitle', - 'QBtn', - 'QIcon', - 'QList', - 'QListHeader', - 'QItem', - 'QItemMain', - 'QItemSide', - 'QInput', - 'QField' - ], - directives: [ - 'Ripple' - ], - // Quasar plugins - plugins: [ - 'Notify' - ], - iconSet: ctx.theme.mat ? 'material-icons' : 'ionicons' - }, - // animations: 'all' --- includes all animations - animations: [ - ], - pwa: { - // workboxPluginMode: 'InjectManifest', - // workboxOptions: {}, - manifest: { - // name: 'Quasar App', - // short_name: 'Quasar-PWA', - // description: 'Best PWA App in town!', - display: 'standalone', - orientation: 'portrait', - background_color: '#ffffff', - theme_color: '#027be3', - icons: [ - { - 'src': 'statics/icons/icon-128x128.png', - 'sizes': '128x128', - 'type': 'image/png' - }, - { - 'src': 'statics/icons/icon-192x192.png', - 'sizes': '192x192', - 'type': 'image/png' - }, - { - 'src': 'statics/icons/icon-256x256.png', - 'sizes': '256x256', - 'type': 'image/png' - }, - { - 'src': 'statics/icons/icon-384x384.png', - 'sizes': '384x384', - 'type': 'image/png' - }, - { - 'src': 'statics/icons/icon-512x512.png', - 'sizes': '512x512', - 'type': 'image/png' - } - ] - } - }, - cordova: { - // id: 'org.cordova.quasar.app' - }, - electron: { - // bundler: 'builder', // or 'packager' - extendWebpack (cfg) { - // do something with Electron process Webpack cfg - }, - packager: { - // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options - - // OS X / Mac App Store - // appBundleId: '', - // appCategoryType: '', - // osxSign: '', - // protocol: 'myapp://path', - - // Window only - // win32metadata: { ... } - }, - builder: { - // https://www.electron.build/configuration/configuration - - // appId: 'quasar-app' - } - } - } -} diff --git a/examples/client/src/App.vue b/examples/client/src/App.vue deleted file mode 100644 index 3fa5037..0000000 --- a/examples/client/src/App.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - - - diff --git a/examples/client/src/assets/quasar-logo-full.svg b/examples/client/src/assets/quasar-logo-full.svg deleted file mode 100644 index 281d072..0000000 --- a/examples/client/src/assets/quasar-logo-full.svg +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/client/src/assets/sad.svg b/examples/client/src/assets/sad.svg deleted file mode 100644 index 628136f..0000000 --- a/examples/client/src/assets/sad.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/examples/client/src/components/.gitkeep b/examples/client/src/components/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/examples/client/src/css/app.styl b/examples/client/src/css/app.styl deleted file mode 100644 index e3e5a1e..0000000 --- a/examples/client/src/css/app.styl +++ /dev/null @@ -1 +0,0 @@ -// app global css diff --git a/examples/client/src/css/themes/common.variables.styl b/examples/client/src/css/themes/common.variables.styl deleted file mode 100644 index 4d659aa..0000000 --- a/examples/client/src/css/themes/common.variables.styl +++ /dev/null @@ -1,25 +0,0 @@ -// App Shared Variables -// -------------------------------------------------- -// To customize the look and feel of this app, you can override -// the Stylus variables found in Quasar's source Stylus files. Setting -// variables before Quasar's Stylus will use these variables rather than -// Quasar's default Stylus variable values. Stylus variables specific -// to the themes belong in either the variables.ios.styl or variables.mat.styl files. - -// Check documentation for full list of Quasar variables - - -// App Shared Color Variables -// -------------------------------------------------- -// It's highly recommended to change the default colors -// to match your app's branding. - -$primary = #027be3 -$secondary = #26A69A -$tertiary = #555 - -$neutral = #E0E1E2 -$positive = #21BA45 -$negative = #DB2828 -$info = #31CCEC -$warning = #F2C037 diff --git a/examples/client/src/css/themes/variables.ios.styl b/examples/client/src/css/themes/variables.ios.styl deleted file mode 100644 index 953b825..0000000 --- a/examples/client/src/css/themes/variables.ios.styl +++ /dev/null @@ -1,7 +0,0 @@ -// App Shared Variables -// -------------------------------------------------- -// Shared Stylus variables go in the common.variables.styl file -@import 'common.variables' - -// iOS only Quasar variables overwrites -// ----------------------------------------- diff --git a/examples/client/src/css/themes/variables.mat.styl b/examples/client/src/css/themes/variables.mat.styl deleted file mode 100644 index 8169a52..0000000 --- a/examples/client/src/css/themes/variables.mat.styl +++ /dev/null @@ -1,7 +0,0 @@ -// App Shared Variables -// -------------------------------------------------- -// Shared Stylus variables go in the common.variables.styl file -@import 'common.variables' - -// Material only Quasar variables overwrites -// ----------------------------------------- diff --git a/examples/client/src/index.template.html b/examples/client/src/index.template.html deleted file mode 100644 index be92ba0..0000000 --- a/examples/client/src/index.template.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - <%= htmlWebpackPlugin.options.productName %> - - - - - - - - - -
- - - - diff --git a/examples/client/src/layouts/default.vue b/examples/client/src/layouts/default.vue deleted file mode 100644 index 2a37c35..0000000 --- a/examples/client/src/layouts/default.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - - - diff --git a/examples/client/src/pages/404.vue b/examples/client/src/pages/404.vue deleted file mode 100644 index 6484cb2..0000000 --- a/examples/client/src/pages/404.vue +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/examples/client/src/pages/index.vue b/examples/client/src/pages/index.vue deleted file mode 100644 index bd4a70a..0000000 --- a/examples/client/src/pages/index.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - diff --git a/examples/client/src/plugins/.gitkeep b/examples/client/src/plugins/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/examples/client/src/plugins/socket.js b/examples/client/src/plugins/socket.js deleted file mode 100644 index fc60a57..0000000 --- a/examples/client/src/plugins/socket.js +++ /dev/null @@ -1,11 +0,0 @@ -// import WebSocket from '@uci/websocket-client' -import WebSocket from '../../../../../uci-websocket-client/browser-client' - -const ws = new WebSocket(process.env.WSS || 'ws://0.0.0.0:8090') - -export { ws } - -// leave the export, even if you don't use it -export default ({ Vue }) => { - Vue.prototype.$socket = ws -} diff --git a/examples/client/src/plugins/ssaxios.js b/examples/client/src/plugins/ssaxios.js deleted file mode 100644 index 325a88e..0000000 --- a/examples/client/src/plugins/ssaxios.js +++ /dev/null @@ -1,10 +0,0 @@ -import axios from 'axios' - -export default ({ Vue }) => { - // we add it to Vue prototype - // so we can reference it in Vue files - // without the need to import axios - Vue.prototype.$axios = axios - - // Example: this.$axios will reference Axios now so you don't need stuff like vue-axios -} diff --git a/examples/client/src/router/index.js b/examples/client/src/router/index.js deleted file mode 100644 index 67486b2..0000000 --- a/examples/client/src/router/index.js +++ /dev/null @@ -1,24 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' - -import routes from './routes' - -Vue.use(VueRouter) - -const Router = new VueRouter({ - /* - * NOTE! Change Vue Router mode from quasar.conf.js -> build -> vueRouterMode - * - * When going with "history" mode, please also make sure "build.publicPath" - * is set to something other than an empty string. - * Example: '/' instead of '' - */ - - // Leave as is and change from quasar.conf.js instead! - mode: process.env.VUE_ROUTER_MODE, - base: process.env.VUE_ROUTER_BASE, - scrollBehavior: () => ({ y: 0 }), - routes -}) - -export default Router diff --git a/examples/client/src/router/routes.js b/examples/client/src/router/routes.js deleted file mode 100644 index e098954..0000000 --- a/examples/client/src/router/routes.js +++ /dev/null @@ -1,15 +0,0 @@ - -export default [ - { - path: '/', - component: () => import('layouts/default'), - children: [ - { path: '', component: () => import('pages/index') } - ] - }, - - { // Always leave this as last one - path: '*', - component: () => import('pages/404') - } -] diff --git a/examples/client/src/statics/icons/apple-icon-152x152.png b/examples/client/src/statics/icons/apple-icon-152x152.png deleted file mode 100644 index c918acd..0000000 Binary files a/examples/client/src/statics/icons/apple-icon-152x152.png and /dev/null differ diff --git a/examples/client/src/statics/icons/favicon-16x16.png b/examples/client/src/statics/icons/favicon-16x16.png deleted file mode 100644 index 177c86e..0000000 Binary files a/examples/client/src/statics/icons/favicon-16x16.png and /dev/null differ diff --git a/examples/client/src/statics/icons/favicon-32x32.png b/examples/client/src/statics/icons/favicon-32x32.png deleted file mode 100644 index b8e6cdf..0000000 Binary files a/examples/client/src/statics/icons/favicon-32x32.png and /dev/null differ diff --git a/examples/client/src/statics/icons/icon-128x128.png b/examples/client/src/statics/icons/icon-128x128.png deleted file mode 100644 index 590e8ce..0000000 Binary files a/examples/client/src/statics/icons/icon-128x128.png and /dev/null differ diff --git a/examples/client/src/statics/icons/icon-192x192.png b/examples/client/src/statics/icons/icon-192x192.png deleted file mode 100644 index 2a9b50b..0000000 Binary files a/examples/client/src/statics/icons/icon-192x192.png and /dev/null differ diff --git a/examples/client/src/statics/icons/icon-256x256.png b/examples/client/src/statics/icons/icon-256x256.png deleted file mode 100644 index 8450959..0000000 Binary files a/examples/client/src/statics/icons/icon-256x256.png and /dev/null differ diff --git a/examples/client/src/statics/icons/icon-384x384.png b/examples/client/src/statics/icons/icon-384x384.png deleted file mode 100644 index 2d6dd7b..0000000 Binary files a/examples/client/src/statics/icons/icon-384x384.png and /dev/null differ diff --git a/examples/client/src/statics/icons/icon-512x512.png b/examples/client/src/statics/icons/icon-512x512.png deleted file mode 100644 index a57354e..0000000 Binary files a/examples/client/src/statics/icons/icon-512x512.png and /dev/null differ diff --git a/examples/client/src/statics/icons/ms-icon-144x144.png b/examples/client/src/statics/icons/ms-icon-144x144.png deleted file mode 100644 index b0880e8..0000000 Binary files a/examples/client/src/statics/icons/ms-icon-144x144.png and /dev/null differ diff --git a/examples/client/src/statics/quasar-logo.png b/examples/client/src/statics/quasar-logo.png deleted file mode 100644 index 590e8ce..0000000 Binary files a/examples/client/src/statics/quasar-logo.png and /dev/null differ