Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 1%
last 2 versions
14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
root: true,
env: {
node: true
},
extends: ["plugin:vue/essential", "@vue/prettier"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
parserOptions: {
parser: "babel-eslint"
}
};
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,13 @@ typings/

# Config files
credential.js
secret.js
secret.js

# Node modules
node_modules/

# Build Files
dist/

# Config files
.prettierrc.js
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: node_js
node_js:
- 11.9.0

cache:
npm: true
directories:
- node_modules

branches:
only:
- master

before_script:
- npm ci

script:
- npm run build

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: dist
on:
branch: master
49 changes: 29 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,54 @@
# About Codebadge

[![Online Status](https://img.shields.io/website/http/prabhani.me/Codebadge.svg?down_message=offline&up_message=online)](http://prabhani.me/Codebadge)
[![Build Status](https://travis-ci.com/PrabhaniN/Codebadge.svg?branch=master)](https://travis-ci.com/PrabhaniN/Codebadge)
![Language Count](https://img.shields.io/github/languages/count/PrabhaniN/codebadge.svg)
[![License](https://img.shields.io/github/license/PrabhaniN/codebadge.svg)](https://github.com/PrabhaniN/Codebadge/blob/master/LICENSE)

Well we all have been working in Open Source and committing various Pull requests and issues. Many a times it may happen that a mentor is unanle to manage all these activities. So This project is about tracking the contributor as well as its contribution by respective mentors.

### Features

- Easy to monitor the activities of various contributors.
- Visibility of top contributors in various projects.
- Real time tracking of commits, PR's and other contributions.
- Contributors list based on number of PR's, merged pulls and other activities.
- Contribution history of each contributor.
- Easy to monitor the activities of various contributors.
- Visibility of top contributors in various projects.
- Real time tracking of commits, PR's and other contributions.
- Contributors list based on number of PR's, merged pulls and other activities.
- Contribution history of each contributor.

The other part of this project includes the “notifying moderator” since we see sometimes that there are many PRs being sent, or issues being opened by various people across the globe but there are limited numbers of maintainers merging the PRs. This way organisations usually lose their potential contributors due to following things:

- Their PRs are not being merged
- They finds difficulty in understanding the issue
- They could not reach to expectation
So this will help the maintainers get notified when they see these people inactive.
- Their PRs are not being merged
- They finds difficulty in understanding the issue
- They could not reach to expectation
So this will help the maintainers get notified when they see these people inactive.

## How does it work

For instance, suppose a contributor “X” has been quite active within the community by working on various PRs, opening and resolving various issues, active on chat channels but after a month “X” gets disappeared. So by using this dashboard they will have a badge interface. There will be a badge attached in front of the name of the contributor. Let the name of the badge be “Y” so this badge will have a unique color. So as the time passes like “ a day went, 1 week went, 2 weeks went, a month, etc) this badges will get keep on fading. And Every fade color will have a unique reason. For example, when a contributor made a PR, the badge appeared “Red” in color. This badge will remain in the same color as long as he/she is contributing. Assume that contributor stops contributing and has not contributed for a week so his badge will become green in color. And this will keep on notifying mainaters, Admins about their disappearing. This way the organisations will have greater eye on the contributors and can help them sustain with the community.

## Stack used

This will have a dashboard, where these things can be placed. The stack used can be any but since the organisation have fixed stack so its better to stick to Nodejs, Vue, React.

## Benefits to the community

Different communities or programs like “GirlScript Summer of Code, Codeheat, GSOC, etc would be able to track their contributors and this project will help them by not losing potential contributors and select the best from all potential candidates.

## Contributions Best Practices

**Commits**

- Write clear meaningful git commit messages (Do read http://chris.beams.io/posts/git-commit/)
- Make sure your PR's description contains GitHub's special keyword references that automatically close the related issue when the PR is merged. (More info at https://github.com/blog/1506-closing-issues-via-pull-requests )
- When you make very very minor changes to a PR of yours (like for example fixing a failing Travis build or some small style corrections or minor changes requested by reviewers) make sure you squash your commits afterward so that you don't have an absurd number of commits for a very small fix. (Learn how to squash at https://davidwalsh.name/squash-commits-git )
- When you're submitting a PR for a UI-related issue, it would be really awesome if you add a screenshot of your change or a link to a deployment where it can be tested out along with your PR. It makes it very easy for the reviewers and you'll also get reviews quicker.
- Write clear meaningful git commit messages (Do read http://chris.beams.io/posts/git-commit/)
- Make sure your PR's description contains GitHub's special keyword references that automatically close the related issue when the PR is merged. (More info at https://github.com/blog/1506-closing-issues-via-pull-requests )
- When you make very very minor changes to a PR of yours (like for example fixing a failing Travis build or some small style corrections or minor changes requested by reviewers) make sure you squash your commits afterward so that you don't have an absurd number of commits for a very small fix. (Learn how to squash at https://davidwalsh.name/squash-commits-git )
- When you're submitting a PR for a UI-related issue, it would be really awesome if you add a screenshot of your change or a link to a deployment where it can be tested out along with your PR. It makes it very easy for the reviewers and you'll also get reviews quicker.

## Community
All feedback and suggestions are welcome!

- 💬 Join the community on [Slack](https://join.slack.com/t/codeuino/shared_invite/enQtMzcxOTQwNzE4NzcxLWEyNzUxYjI0ZThiNWUyYWI5MzJlMTNmODMxN2NjMTcxODJkZmFhNTVkYmUyOTQ1YzgzNTlmMTVkYzVhMzdmNTQ )
- 📣 Stay up to date on new features and announcements on the following
- [@Mailing List](codeuino-devel@googlegroups.com).
- [@Discussion Portal](https://groups.google.com/d/forum/codeuino-devel).
- [@Codeuino Wiki](wiki.codeuino.org).

All feedback and suggestions are welcome!

- 💬 Join the community on [Slack](https://join.slack.com/t/codeuino/shared_invite/enQtMzcxOTQwNzE4NzcxLWEyNzUxYjI0ZThiNWUyYWI5MzJlMTNmODMxN2NjMTcxODJkZmFhNTVkYmUyOTQ1YzgzNTlmMTVkYzVhMzdmNTQ)
- 📣 Stay up to date on new features and announcements on the following
- [@Mailing List](codeuino-devel@googlegroups.com).
- [@Discussion Portal](https://groups.google.com/d/forum/codeuino-devel).
- [@Codeuino Wiki](wiki.codeuino.org).
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@vue/app"]
};
3 changes: 0 additions & 3 deletions config/credentials.js

This file was deleted.

Empty file removed controller/details.js
Empty file.
10 changes: 0 additions & 10 deletions jobs/everyweek.js

This file was deleted.

25 changes: 0 additions & 25 deletions models/user.js

This file was deleted.

50 changes: 27 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
{
"name": "codebadge",
"version": "1.0.0",
"description": "Community sustainer",
"main": "server.js",
"version": "0.1.0",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"repository": {
"type": "git",
"url": "git+https://github.com/TG1999/Codebadge.git"
},
"keywords": [
"community",
"badge"
],
"author": "TG",
"license": "MIT",
"bugs": {
"url": "https://github.com/TG1999/Codebadge/issues"
},
"homepage": "https://github.com/TG1999/Codebadge#readme",
"dependencies": {
"express": "^4.16.4",
"mongoose": "^5.4.22",
"node-schedule": "^1.3.2",
"request": "^2.88.0"
"axios": "^0.18.0",
"core-js": "^2.6.5",
"vue": "^2.6.10",
"vue-router": "^3.0.3",
"vuetify": "^1.5.5",
"vuex": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.7.0",
"@vue/cli-plugin-eslint": "^3.7.0",
"@vue/cli-service": "^3.7.0",
"@vue/eslint-config-prettier": "^4.0.1",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.9.0",
"sass-loader": "^7.1.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"vue-cli-plugin-vuetify": "^0.5.0",
"vue-template-compiler": "^2.5.21",
"vuetify-loader": "^1.0.5"
}
}
5 changes: 5 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {}
}
};
Binary file added public/favicon.ico
Binary file not shown.
34 changes: 34 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>codebadge</title>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Material+Icons"
/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
crossorigin="anonymous"
/>
</head>
<body>
<noscript>
<strong
>We're sorry but codebadge doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
6 changes: 0 additions & 6 deletions routes/index.js

This file was deleted.

21 changes: 0 additions & 21 deletions server.js

This file was deleted.

32 changes: 32 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<v-app>
<v-toolbar color="white" app>
<v-toolbar-title class="headline text-uppercase">
<span>Codebadge</span>
<span class="font-weight-light text-none">&nbsp;(Production Stage)</span>
</v-toolbar-title>
</v-toolbar>

<v-content class="content">
<router-view></router-view>
</v-content>
</v-app>
</template>

<script>
export default {
name: 'App',
components: {},
data() {
return {
//
};
}
};
</script>

<style lang="scss" >
.content {
background-color: white;
}
</style>
1 change: 1 addition & 0 deletions src/assets/loaders/bars.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/assets/loaders/block.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading