Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build #22

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
99607fd
Allow any user make a login on application.
thulioph Jun 5, 2017
b4e8df8
Removes the unused code.
thulioph Jun 5, 2017
a6cf3a2
Adds a new file to manage all exceptions.
thulioph Jun 5, 2017
115fe65
Adds the exception class to manage all errors.
thulioph Jun 5, 2017
e196f39
Adds the reference link to exception.
thulioph Jun 5, 2017
551df75
Install the sentry to monitoring and capture all exceptions.
thulioph Jun 5, 2017
b39b3d6
Adds the config file to manage the .env data.
thulioph Jun 5, 2017
abfdcd4
Updates the node and npm version and set some packages to devDependen…
thulioph Jun 5, 2017
146d02f
Adds the package-lock file.
thulioph Jun 5, 2017
bd30f92
Adds the new uid.
thulioph Jun 19, 2017
e9eccb4
Creates the params obj to manage the request url params of google maps.
thulioph Jun 23, 2017
8d77da7
Adds text to features component.
thulioph Jun 23, 2017
8767c1c
Updates the url to logo.
thulioph Jun 23, 2017
55d4b43
Adjust the text to newsletter section.
thulioph Jun 23, 2017
1c0495b
Adds new icons to features section.
thulioph Jun 23, 2017
38354ea
Updates the node to v8.
thulioph Jun 23, 2017
a6058ad
Merge pull request #19 from starkland/textos
thulioph Jun 23, 2017
b5496e2
Updates the nodejs version.
thulioph Jun 26, 2017
f2e6815
Adjusts the form component, removing some html markup.
thulioph Jun 26, 2017
33c3e3d
Adjust the event page.
thulioph Jun 26, 2017
618fe55
Removes the unused component code from TableEvents.
thulioph Jun 26, 2017
8f16469
Adjusts the relatorios events component.
thulioph Jun 26, 2017
7d00d95
Creates a new component called level.
thulioph Jun 26, 2017
e5213a2
Adjusts the reports page.
thulioph Jun 26, 2017
739b5c3
Set new properties to level component.
thulioph Jun 26, 2017
9823eae
Adjusts the newsletter report component.
thulioph Jun 26, 2017
6c9b327
Adjusts the profile component.
thulioph Jun 26, 2017
11808bc
Set menu as active when route is matched.
thulioph Jun 26, 2017
4c3e87a
Removes the unused code.
thulioph Jun 26, 2017
0d24d5d
Adjuts the configuration view.
thulioph Jun 26, 2017
d1b9de8
Adds the location service.
thulioph Jun 26, 2017
d82a7a0
Updates the package.json version.
thulioph Jun 26, 2017
d555cf8
Creates the notification class.
thulioph Jun 26, 2017
bb1b17e
Updates the readme file with travis and codacy badges.
thulioph Jun 26, 2017
f1b1814
Adds the travis file.
thulioph Jun 26, 2017
391d821
Adds initial test case to Subheader component.
thulioph Jun 26, 2017
27a7e22
Updates the travis file.
thulioph Jun 26, 2017
3a60953
Adds the facebook uid to valid credentials.
thulioph Jun 26, 2017
e2a7efd
Adds a new valid credential.
thulioph Jun 26, 2017
7035a02
Merge branch 'dev' into layout-v2
thulioph Jun 28, 2017
aa59803
Merge branch 'dev' into allow-user
thulioph Jun 28, 2017
39fef91
Merge pull request #21 from starkland/allow-user
thulioph Jun 28, 2017
03357d7
Removes the package-lock file.
thulioph Jun 28, 2017
844f95b
Updates the node and npm version.
thulioph Jun 28, 2017
7128e19
Merge branch 'dev' into layout-v2
thulioph Jun 28, 2017
0f1a286
Merge pull request #20 from starkland/layout-v2
thulioph Jun 28, 2017
16fd9f7
Merge branch 'master' into dev
thulioph Jun 28, 2017
bf70d61
Updates all packages.
thulioph Jun 28, 2017
8bd4a3e
Merge branch 'dev' of github.com:starkland/omosca into dev
thulioph Jun 28, 2017
a07acba
Adjusts the grid and removes the container wrappers.
thulioph Jun 28, 2017
008f617
Adds the title to table buttons.
thulioph Jun 28, 2017
ccc39dc
Adds for and id attributes on form component.
thulioph Jun 28, 2017
7dcf9c3
Adds title attribute to buttom component.
thulioph Jun 28, 2017
83bc826
Adjusts the grid position.
thulioph Jun 28, 2017
2ad2078
Adds the trash icon on events table.
thulioph Jun 28, 2017
27b45bc
Adjust the form component and some displayed data.
thulioph Jun 28, 2017
9a09f15
Update the node version.
thulioph Jul 21, 2017
c18e56c
Updates the package file.
thulioph Jul 21, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- '8'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Setup

[![Build Status](https://travis-ci.org/starkland/omosca.svg?branch=master)](https://travis-ci.org/starkland/omosca) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/068eb7197685459ab73321ffeb139c1c)](https://www.codacy.com/app/Starkland/omosca?utm_source=github.com&utm_medium=referral&utm_content=starkland/omosca&utm_campaign=Badge_Grade)


``` bash
# install dependencies
npm install
Expand Down
5 changes: 4 additions & 1 deletion config/dev.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ var merge = require('webpack-merge')
var prodEnv = require('./prod.env')

module.exports = merge(prodEnv, {
NODE_ENV: '"development"'
NODE_ENV: '"development"',
SENTRY_CONFIG: '"https://87875b8c7a3a4f4bbaf24aefac89ae3d@sentry.io/176198"',
ADMIN_ID_1: '"Zlc63LFcG6WXs2uJ2u7OgiR0Y6A3"',
ADMIN_ID_2: '"m4VZhhWnF0R8DPQduhX1byUa2KH3"',
})
5 changes: 4 additions & 1 deletion config/prod.env.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
NODE_ENV: '"production"'
NODE_ENV: '"production"',
SENTRY_CONFIG: '"https://87875b8c7a3a4f4bbaf24aefac89ae3d@sentry.io/176198"',
ADMIN_ID_1: '"Zlc63LFcG6WXs2uJ2u7OgiR0Y6A3"',
ADMIN_ID_2: '"m4VZhhWnF0R8DPQduhX1byUa2KH3"',
}
5,405 changes: 5,405 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

118 changes: 61 additions & 57 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omosca",
"version": "1.0.0",
"version": "2.0.0",
"description": "O mosca landing page.",
"author": "thulioph <thulioph@gmail.com>",
"private": true,
Expand All @@ -14,86 +14,90 @@
"test": "npm run unit && npm run e2e",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
},
"devDependencies": {
"chai": "^3.5.0",
"karma": "^1.4.1",
"karma-coverage": "^1.1.1",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-phantomjs-shim": "^1.4.0",
"karma-sinon-chai": "^1.3.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "0.0.30",
"karma-webpack": "^2.0.2",
"mocha": "^3.2.0",
"nightwatch": "^0.9.12",
"phantomjs-prebuilt": "^2.1.14",
"selenium-server": "^3.0.1",
"sinon": "^2.1.0",
"sinon-chai": "^2.8.0"
},
"dependencies": {
"autoprefixer": "^6.7.2",
"axios": "^0.16.1",
"babel-core": "^6.22.1",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.10",
"babel-plugin-istanbul": "^4.1.1",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-env": "^1.3.2",
"autoprefixer": "^6.7.7",
"axios": "^0.16.2",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^6.4.1",
"babel-plugin-istanbul": "^4.1.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.22.0",
"chai": "^3.5.0",
"babel-preset-stage-2": "^6.24.1",
"babel-register": "^6.24.1",
"caniuse-lite": "^1.0.30000696",
"chalk": "^1.1.3",
"chromedriver": "^2.27.2",
"chromedriver": "^2.30.1",
"connect-history-api-fallback": "^1.3.0",
"copy-webpack-plugin": "^4.0.1",
"cross-env": "^4.0.0",
"cross-spawn": "^5.0.1",
"css-loader": "^0.28.0",
"cross-spawn": "^5.1.0",
"css-loader": "^0.28.4",
"each-async": "^1.1.1",
"eslint": "^3.19.0",
"eslint-config-airbnb-base": "^11.1.3",
"eslint-config-airbnb-base": "^11.2.0",
"eslint-friendly-formatter": "^2.0.7",
"eslint-import-resolver-webpack": "^0.8.1",
"eslint-loader": "^1.7.1",
"eslint-plugin-html": "^2.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-loader": "^1.8.0",
"eslint-plugin-html": "^2.0.3",
"eslint-plugin-import": "^2.6.0",
"eventsource-polyfill": "^0.9.6",
"express": "^4.14.1",
"extract-text-webpack-plugin": "^2.0.0",
"file-loader": "^0.11.1",
"friendly-errors-webpack-plugin": "^1.1.3",
"html-webpack-plugin": "^2.28.0",
"http-proxy-middleware": "^0.17.3",
"express": "^4.15.3",
"extract-text-webpack-plugin": "^2.1.2",
"file-loader": "^0.11.2",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.29.0",
"http-proxy-middleware": "^0.17.4",
"http-server": "^0.10.0",
"indent-string": "^3.1.0",
"inject-loader": "^3.0.0",
"karma": "^1.4.1",
"karma-coverage": "^1.1.1",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-phantomjs-shim": "^1.4.0",
"karma-sinon-chai": "^1.3.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "0.0.30",
"karma-webpack": "^2.0.2",
"lodash": "^4.17.4",
"lolex": "^1.5.2",
"mocha": "^3.2.0",
"lolex": "^1.6.0",
"moment": "^2.18.1",
"nightwatch": "^0.9.12",
"opn": "^4.0.2",
"optimize-css-assets-webpack-plugin": "^1.3.0",
"ora": "^1.2.0",
"phantomjs-prebuilt": "^2.1.14",
"rimraf": "^2.6.0",
"selenium-server": "^3.0.1",
"semver": "~5.2.0",
"shelljs": "^0.7.6",
"sinon": "^2.1.0",
"sinon-chai": "^2.8.0",
"url-loader": "^0.5.8",
"vue": "^2.2.6",
"vue-awesome-swiper": "^2.4.2",
"optimize-css-assets-webpack-plugin": "^1.3.2",
"ora": "^1.3.0",
"raven-js": "^3.16.0",
"rimraf": "^2.6.1",
"semver": "^5.2.0",
"shelljs": "^0.7.8",
"url-loader": "^0.5.9",
"vue": "^2.3.4",
"vue-awesome-swiper": "^2.5.0",
"vue-google-autocomplete": "^1.0.10",
"vue-loader": "^11.3.4",
"vue-moment": "^2.0.2",
"vue-router": "^2.3.1",
"vue-router": "^2.6.0",
"vue-style-loader": "^2.0.5",
"vue-template-compiler": "^2.2.6",
"webpack": "^2.3.3",
"webpack-bundle-analyzer": "^2.2.1",
"webpack-dev-middleware": "^1.10.0",
"vue-template-compiler": "^2.3.4",
"webpack": "^2.6.1",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-dev-middleware": "^1.11.0",
"webpack-hot-middleware": "^2.18.0",
"webpack-merge": "^4.1.0"
},
"engines": {
"node": "~7.2.0",
"npm": "~3.10.9"
"node": "8.2.1",
"npm": "5.3.0"
},
"browserslist": [
"> 1%",
Expand Down
27 changes: 27 additions & 0 deletions src/assets/images/icons/features/agenda.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/assets/images/icons/features/descontos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/images/icons/features/favoritos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/images/icons/features/mapa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/images/icons/features/perfil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/assets/images/icons/features/programacao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions src/assets/js/ApiService.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import axios from 'axios';
import Event from './Event';
import Exception from './Exception';

class ApiService {
constructor() {
Expand Down Expand Up @@ -48,14 +49,14 @@ class ApiService {
axios
.get(`${this.firebase_url}/pre_events.json`)
.then(response => Event.$emit('all_events', response))
.catch(error => console.info(error));
.catch(error => new Exception(error));
}

getAllNews() {
axios
.get(`${this.firebase_url}/newsletter.json`)
.then(response => Event.$emit('all_newsletter', response))
.catch(error => console.info(error));
.catch(error => new Exception(error));
}

removesEventById(id) {
Expand All @@ -78,7 +79,7 @@ class ApiService {
axios
.get(`${this.firebase_url}/pre_events/${id}.json`)
.then(response => Event.$emit('event_details', response.data))
.catch(error => console.info(error));
.catch(error => new Exception(error));
}

removeNewsById(id) {
Expand Down
5 changes: 5 additions & 0 deletions src/assets/js/Config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
sentry_config: process.env.SENTRY_CONFIG,
admin_1: process.env.ADMIN_ID_1,
admin_2: process.env.ADMIN_ID_2,
};
17 changes: 17 additions & 0 deletions src/assets/js/Exception.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class Exception extends Error {
constructor(message) {
super(message);

this.name = this.constructor.name;

if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, this.constructor);
} else {
this.stack = (new Error(message)).stack;
}
}
}

export default Exception;

// https://stackoverflow.com/questions/31089801/extending-error-in-javascript-with-es6-syntax/32749533#32749533
Loading