From 6de90a026e1bdb0781608a9b6a8bdd559e728c54 Mon Sep 17 00:00:00 2001 From: dtomlinson Date: Mon, 2 Mar 2020 23:11:22 +0000 Subject: [PATCH] initial commit --- .browserslistrc | 2 + .eslintrc.js | 17 + .gitignore | 19 + auth_config.json | 4 + babel.config.js | 5 + flow.md | 141 + notes.md | 82 + package-lock.json | 11806 ++++++++++++++++++++++++++++++ package.json | 34 + public/favicon.ico | Bin 0 -> 4286 bytes public/index.html | 17 + src/App.vue | 24 + src/auth/authGuard.js | 27 + src/auth/index.js | 127 + src/components/EventCard.vue | 63 + src/components/EventsList.vue | 76 + src/components/HelloWorld.vue | 63 + src/components/partials/Nav.vue | 88 + src/main.js | 38 + src/router/index.js | 36 + src/views/About.vue | 18 + src/views/EventSingle.vue | 105 + src/views/Home.vue | 88 + vue.config.js | 0 vue_tags.toml | 5 + yarn.lock | 8408 +++++++++++++++++++++ 26 files changed, 21293 insertions(+) create mode 100644 .browserslistrc create mode 100644 .eslintrc.js create mode 100644 .gitignore create mode 100644 auth_config.json create mode 100644 babel.config.js create mode 100644 flow.md create mode 100644 notes.md create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 public/favicon.ico create mode 100644 public/index.html create mode 100644 src/App.vue create mode 100644 src/auth/authGuard.js create mode 100644 src/auth/index.js create mode 100644 src/components/EventCard.vue create mode 100644 src/components/EventsList.vue create mode 100644 src/components/HelloWorld.vue create mode 100644 src/components/partials/Nav.vue create mode 100644 src/main.js create mode 100644 src/router/index.js create mode 100644 src/views/About.vue create mode 100644 src/views/EventSingle.vue create mode 100644 src/views/Home.vue create mode 100644 vue.config.js create mode 100644 vue_tags.toml create mode 100644 yarn.lock diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..d6471a3 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,2 @@ +> 1% +last 2 versions diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..11cf2bf --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,17 @@ +module.exports = { + root: true, + env: { + node: true + }, + 'extends': [ + 'plugin:vue/essential', + 'eslint:recommended' + ], + parserOptions: { + parser: 'babel-eslint' + }, + rules: { + 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..370a6ed --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +.DS_Store +node_modules +*.log +explorations +TODOs.md +dist/*.gz +dist/*.map +dist/vue.common.min.js +test/e2e/reports +test/e2e/screenshots +coverage +RELEASE_NOTE*.md +dist/*.js +packages/vue-server-renderer/basic.js +packages/vue-server-renderer/build.js +packages/vue-server-renderer/server-plugin.js +packages/vue-server-renderer/client-plugin.js +packages/vue-template-compiler/build.js +.vscode diff --git a/auth_config.json b/auth_config.json new file mode 100644 index 0000000..7b6e7f5 --- /dev/null +++ b/auth_config.json @@ -0,0 +1,4 @@ +{ + "domain": "dev-xu-97g3w.eu.auth0.com", + "clientId": "W0Iim8av0OOJXQMfuPiOAjA3fx3ESQoi" +} diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..e955840 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,5 @@ +module.exports = { + presets: [ + '@vue/cli-plugin-babel/preset' + ] +} diff --git a/flow.md b/flow.md new file mode 100644 index 0000000..394a06c --- /dev/null +++ b/flow.md @@ -0,0 +1,141 @@ +# Flow + Structure of Vue project + + +- If components are to be imported elsewhere they should `export default` and set their name to be the name of the html element you want. +- If components import an element they should `export default` and set a `components` with an array of the components being used in the html. + + +``` + import Nav from './components/partials/Nav.vue'; + export default { + name: 'App', + components: { + Nav + } + } +``` + + +## Main Page + + +### `App.vue` + + +This is the main entrypoint into the website. + + +- `template` should inject a `
` +- insert the `