├── .babelrc ├── .dockerignore ├── .editorconfig ├── .env.template ├── .eslintignore ├── .eslintrc.js ├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── .prettierrc ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── Dockerfile ├── LICENSE.md ├── README.md ├── assets ├── README.md └── styles │ ├── imports │ ├── _toast.scss │ └── _tooltip.scss │ └── main.scss ├── components ├── Badges.spec.js ├── Badges.vue ├── Comment.spec.js ├── Comment.vue ├── ContentMenu.vue ├── ContributionForm.vue ├── CountTo.vue ├── Dropdown.vue ├── Editor │ ├── Editor.vue │ └── plugins │ │ └── eventHandler.js ├── Empty.vue ├── FollowButton.vue ├── LoadMore.vue ├── LocaleSwitch.vue ├── Logo.vue ├── Modal.spec.js ├── Modal.vue ├── Modal │ ├── DisableModal.spec.js │ ├── DisableModal.vue │ ├── ReportModal.spec.js │ └── ReportModal.vue ├── PostCard.vue ├── README.md ├── SearchInput.spec.js ├── SearchInput.vue ├── ShoutButton.vue ├── User.spec.js ├── User.vue └── mixins │ └── seo.js ├── cypress.env.template.json ├── cypress.json ├── cypress ├── fixtures │ ├── example.json │ └── users.json ├── integration │ ├── 01.Login.feature │ ├── 02.Internationalization.feature │ ├── 03.TagsAndCategories.feature │ ├── 04.AboutMeAndLocation.feature │ ├── 06.Search.feature │ ├── 06.WritePost.feature │ ├── common │ │ ├── admin.js │ │ ├── report.js │ │ ├── search.js │ │ ├── settings.js │ │ └── steps.js │ └── moderation │ │ ├── HidePosts.feature │ │ └── ReportContent.feature ├── plugins │ └── index.js └── support │ ├── commands.js │ ├── factories.js │ ├── helpers.js │ └── index.js ├── docker-compose.override.yml ├── docker-compose.travis.yml ├── docker-compose.yml ├── graphql ├── ModerationListQuery.js ├── PostMutations.js └── UserProfileQuery.js ├── layouts ├── README.md ├── blank.vue └── default.vue ├── locales ├── de.json ├── en.json ├── es.json ├── fr.json ├── index.js ├── it.json ├── nl.json ├── pl.json └── pt.json ├── lokalise.png ├── middleware ├── README.md ├── authenticated.js ├── isAdmin.js └── isModerator.js ├── nuxt.config.js ├── package.json ├── pages ├── README.md ├── admin.vue ├── admin │ ├── categories.vue │ ├── index.vue │ ├── notifications.vue │ ├── organizations.vue │ ├── pages.vue │ ├── settings.vue │ ├── tags.vue │ └── users.vue ├── index.vue ├── login.vue ├── logout.vue ├── moderation.vue ├── moderation │ └── index.vue ├── post │ ├── _slug.vue │ ├── _slug │ │ ├── index.vue │ │ ├── more-info.vue │ │ └── take-action.vue │ ├── create.vue │ └── edit │ │ └── _id.vue ├── profile │ ├── _slug.vue │ └── index.vue ├── settings.vue └── settings │ ├── data-download.vue │ ├── delete-account.vue │ ├── index.vue │ ├── invites.vue │ ├── languages.vue │ ├── my-organizations.vue │ └── security.vue ├── plugins ├── README.md ├── apollo-config.js ├── axios.js ├── i18n.js ├── izi-toast.js ├── keep-alive.js ├── styleguide-dev.js ├── styleguide.js ├── v-tooltip.js ├── vue-directives.js └── vue-filters.js ├── screenshot-styleguide.png ├── screenshot.png ├── scripts ├── deploy.sh └── docker_push.sh ├── server └── index.js ├── static ├── README.md ├── favicon.ico └── img │ ├── badges │ ├── fundraisingbox_de_airship.svg │ ├── fundraisingbox_de_alienship.svg │ ├── fundraisingbox_de_balloon.svg │ ├── fundraisingbox_de_bigballoon.svg │ ├── fundraisingbox_de_crane.svg │ ├── fundraisingbox_de_glider.svg │ ├── fundraisingbox_de_helicopter.svg │ ├── fundraisingbox_de_starter.svg │ ├── indiegogo_en_bear.svg │ ├── indiegogo_en_panda.svg │ ├── indiegogo_en_rabbit.svg │ ├── indiegogo_en_racoon.svg │ ├── indiegogo_en_rhino.svg │ ├── indiegogo_en_tiger.svg │ ├── indiegogo_en_turtle.svg │ ├── indiegogo_en_whale.svg │ ├── indiegogo_en_wolf.svg │ ├── user_role_admin.svg │ ├── user_role_developer.svg │ ├── user_role_moderator.svg │ ├── wooold_de_bee.svg │ ├── wooold_de_butterfly.svg │ ├── wooold_de_double_rainbow.svg │ ├── wooold_de_end_of_rainbow.svg │ ├── wooold_de_flower.svg │ ├── wooold_de_lifetree.svg │ ├── wooold_de_magic_rainbow.svg │ └── wooold_de_super_founder.svg │ ├── empty-state.svg │ ├── empty │ ├── alert.svg │ ├── docs.svg │ ├── events.svg │ ├── file.svg │ ├── messages.svg │ └── tasks.svg │ ├── locale-flags │ ├── de.svg │ ├── en.svg │ ├── es.svg │ ├── fr.svg │ ├── it.svg │ ├── nl.svg │ ├── pl.svg │ └── pt.svg │ └── sign-up │ ├── alpha-invite.png │ ├── alpha-invite2x.png │ ├── humanconnection.png │ ├── humanconnection.svg │ ├── nicetomeetyou.png │ ├── nicetomeetyou.svg │ ├── onourjourney.png │ └── onourjourney.svg ├── store ├── README.md ├── auth.js ├── auth.test.js ├── index.js ├── modal.js └── search.js ├── styleguide └── src │ └── system │ └── icons │ └── svg │ ├── bold.svg │ ├── italic.svg │ ├── list-ol.svg │ ├── list-ul.svg │ ├── paragraph.svg │ └── quote-right.svg └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | [ 4 | "@babel/preset-env", 5 | { 6 | "modules": false 7 | } 8 | ] 9 | ], 10 | "env": { 11 | "test": { 12 | "presets": [ 13 | [ 14 | "@babel/preset-env", 15 | { 16 | "targets": { 17 | "node": "10" 18 | } 19 | } 20 | ] 21 | ] 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | 3 | styleguide/ 4 | node_modules/ 5 | npm-debug.log 6 | 7 | Dockerfile 8 | docker-compose*.yml 9 | scripts/ 10 | 11 | .env 12 | 13 | cypress/ 14 | 15 | README.md 16 | screenshot*.png 17 | lokalise.png 18 | .editorconfig 19 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.env.template: -------------------------------------------------------------------------------- 1 | MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ" 2 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | .nuxt 4 | styleguide/ 5 | **/*.min.js 6 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | browser: true, 5 | node: true 6 | }, 7 | parserOptions: { 8 | parser: 'babel-eslint' 9 | }, 10 | extends: [ 11 | 'plugin:vue/recommended', 12 | 'plugin:prettier/recommended' 13 | ], 14 | // required to lint *.vue files 15 | plugins: [ 16 | 'vue', 17 | 'prettier' 18 | ], 19 | // add your custom rules here 20 | rules: { 21 | 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 22 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 23 | 'vue/component-name-in-template-casing': ['error', 'kebab-case'] 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | **Describe the bug** 8 | A clear and concise description of what the bug is. 9 | 10 | **To Reproduce** 11 | Steps to reproduce the behavior: 12 | 1. Go to 'http...' 13 | 2. Click on '....' 14 | 3. Scroll down to '....' 15 | 4. See error 16 | 17 | **Expected behavior** 18 | A clear and concise description of what you expected to happen. 19 | 20 | **Screenshots** 21 | If applicable, add screenshots to help explain your problem. 22 | 23 | **Desktop (please complete the following information):** 24 | - OS: [e.g. iOS] 25 | - Browser [e.g. chrome, safari] 26 | - Version [e.g. 22] 27 | 28 | **Smartphone (please complete the following information):** 29 | - Device: [e.g. iPhone6] 30 | - OS: [e.g. iOS8.1] 31 | - Browser [e.g. stock browser, safari] 32 | - Version [e.g. 22] 33 | 34 | **Additional context** 35 | Add any other context about the problem here. 36 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | **Is your feature request related to a problem? Please describe.** 8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 9 | 10 | **Describe the solution you'd like** 11 | A clear and concise description of what you want to happen. 12 | 13 | **Describe alternatives you've considered** 14 | A clear and concise description of any alternative solutions or features you've considered. 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Node template 3 | # Logs 4 | logs 5 | *.log 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | 10 | # Runtime data 11 | pids 12 | *.pid 13 | *.seed 14 | *.pid.lock 15 | 16 | # Directory for instrumented libs generated by jscoverage/JSCover 17 | lib-cov 18 | 19 | # Coverage directory used by tools like istanbul 20 | coverage 21 | 22 | # nyc test coverage 23 | .nyc_output 24 | 25 | # node-waf configuration 26 | .lock-wscript 27 | 28 | # Compiled binary addons (https://nodejs.org/api/addons.html) 29 | build/Release 30 | 31 | # Dependency directories 32 | node_modules/ 33 | styleguide/ 34 | 35 | # TypeScript v1 declaration files 36 | typings/ 37 | 38 | # Optional npm cache directory 39 | .npm 40 | 41 | # Optional eslint cache 42 | .eslintcache 43 | 44 | # Optional REPL history 45 | .node_repl_history 46 | 47 | # Output of 'npm pack' 48 | *.tgz 49 | 50 | # Yarn Integrity file 51 | .yarn-integrity 52 | 53 | # dotenv environment variables file 54 | .env 55 | 56 | # parcel-bundler cache (https://parceljs.org/) 57 | .cache 58 | 59 | # next.js build output 60 | .next 61 | 62 | # nuxt.js build output 63 | .nuxt 64 | 65 | # Nuxt generate 66 | dist 67 | 68 | #ignore internal github files 69 | /.github 70 | 71 | # Serverless directories 72 | .serverless 73 | 74 | # IDE 75 | .idea 76 | .vscode 77 | 78 | # TEMORIRY 79 | static/uploads 80 | 81 | cypress/videos 82 | cypress/screenshots/ 83 | cypress.env.json 84 | 85 | # Apple macOS folder attribute file 86 | .DS_Store 87 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "singleQuote": true, 4 | "tabWidth": 2, 5 | "bracketSpacing": true 6 | } 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "10" 4 | cache: 5 | yarn: true 6 | directories: 7 | - node_modules 8 | services: 9 | - docker 10 | addons: 11 | chrome: stable 12 | apt: 13 | sources: 14 | - google-chrome 15 | packages: 16 | - google-chrome-stable 17 | 18 | env: 19 | - DOCKER_COMPOSE_VERSION=1.23.2 BACKEND_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH:-master}} 20 | 21 | 22 | before_install: 23 | - echo $BACKEND_BRANCH 24 | - sudo rm /usr/local/bin/docker-compose 25 | - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose 26 | - chmod +x docker-compose 27 | - sudo mv docker-compose /usr/local/bin 28 | - cp cypress.env.template.json cypress.env.json 29 | 30 | install: 31 | - docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT --target production -t humanconnection/nitro-web . 32 | - docker-compose -f docker-compose.yml -f docker-compose.travis.yml up -d 33 | - git clone https://github.com/Human-Connection/Nitro-Backend.git ../Nitro-Backend 34 | - git -C "../Nitro-Backend" checkout $BACKEND_BRANCH || git -C "../Nitro-Backend" checkout master 35 | - cd ../Nitro-Backend && yarn install && cd - 36 | - docker-compose -f ../Nitro-Backend/docker-compose.yml -f ../Nitro-Backend/docker-compose.cypress.yml up -d 37 | - yarn global add cypress wait-on 38 | - yarn add cypress-cucumber-preprocessor 39 | 40 | script: 41 | - docker-compose exec -e NODE_ENV=test webapp yarn run lint 42 | - docker-compose exec -e NODE_ENV=test webapp yarn run test 43 | - wait-on http://localhost:7474 && docker-compose -f ../Nitro-Backend/docker-compose.yml exec neo4j migrate 44 | - wait-on http://localhost:3000 && cypress run --browser chrome --record --key $CYPRESS_TOKEN 45 | 46 | after_success: 47 | - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh 48 | - chmod +x send.sh 49 | - ./send.sh success $WEBHOOK_URL 50 | - if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_EVENT_TYPE == "push" ]; then 51 | wget https://raw.githubusercontent.com/Human-Connection/Discord-Bot/develop/tester.sh && 52 | chmod +x tester.sh && 53 | ./tester.sh staging $WEBHOOK_URL; 54 | fi 55 | 56 | after_failure: 57 | - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh 58 | - chmod +x send.sh 59 | - ./send.sh failure $WEBHOOK_URL 60 | 61 | deploy: 62 | - provider: script 63 | script: scripts/docker_push.sh 64 | on: 65 | branch: master 66 | - provider: script 67 | script: scripts/deploy.sh nitro.human-connection.org 68 | on: 69 | branch: master 70 | tags: true 71 | - provider: script 72 | script: scripts/deploy.sh nitro-staging.human-connection.org 73 | on: 74 | branch: master 75 | - provider: script 76 | script: scripts/deploy.sh "nitro-$(git rev-parse --short HEAD).human-connection.org" 77 | on: 78 | tags: true 79 | all_branches: true 80 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at developer@human-connection.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:10-alpine as base 2 | LABEL Description="Web Frontend of the Social Network Human-Connection.org" Vendor="Human-Connection gGmbH" Version="0.0.1" Maintainer="Human-Connection gGmbH (developer@human-connection.org)" 3 | 4 | EXPOSE 3000 5 | CMD ["yarn", "run", "start"] 6 | 7 | # Expose the app port 8 | ARG BUILD_COMMIT 9 | ENV BUILD_COMMIT=$BUILD_COMMIT 10 | ARG WORKDIR=/nitro-web 11 | RUN mkdir -p $WORKDIR 12 | WORKDIR $WORKDIR 13 | 14 | # See: https://github.com/nodejs/docker-node/pull/367#issuecomment-430807898 15 | RUN apk --no-cache add git 16 | 17 | COPY . . 18 | 19 | FROM base as build-and-test 20 | RUN cp .env.template .env 21 | RUN yarn install --production=false --frozen-lockfile --non-interactive 22 | RUN yarn run build 23 | 24 | FROM base as production 25 | ENV NODE_ENV=production 26 | COPY --from=build-and-test ./nitro-web/node_modules ./node_modules 27 | COPY --from=build-and-test ./nitro-web/.nuxt ./.nuxt 28 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Human-Connection gGmbH 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
4 | 5 | # NITRO Web 6 | [](https://travis-ci.com/Human-Connection/Nitro-Web) 7 | [](https://github.com/Human-Connection/Nitro-Web/blob/master/LICENSE.md) 8 | [](https://app.fossa.io/projects/git%2Bgithub.com%2FHuman-Connection%2FNitro-Web?ref=badge_shield) 9 | [](https://discord.gg/6ub73U3) 10 | 11 |  12 | 13 | ## Build Setup 14 | 15 | 16 | 17 | ### Install 18 | ``` bash 19 | # install all dependencies 20 | $ yarn install 21 | ``` 22 | 23 | Copy: 24 | ``` 25 | cp .env.template .env 26 | cp cypress.env.template.json cypress.env.json 27 | ``` 28 | Configure the files according to your needs and your local setup. 29 | 30 | ### Development 31 | ``` bash 32 | # serve with hot reload at localhost:3000 33 | $ yarn dev 34 | ``` 35 | 36 | ### Build for production 37 | ``` bash 38 | # build for production and launch server 39 | $ yarn build 40 | $ yarn start 41 | ``` 42 | 43 | ## Styleguide 44 | 45 | All reusable Components (for example avatar) should be done inside the [Nitro-Styleguide](https://github.com/Human-Connection/Nitro-Styleguide) repository. 46 | 47 |  48 | 49 | More information can be found here: https://github.com/Human-Connection/Nitro-Styleguide 50 | 51 | 52 | If you need to change something in the styleguide and want to see the effects on the frontend immediately, then we have you covered. 53 | You need to clone the styleguide to the parent directory `../Nitro-Styleguide` and run `yarn && yarn run dev`. After that you run `yarn run dev:styleguide` instead of `yarn run dev` and you will see your changes reflected inside the fronten! 54 | 55 | ## Internationalization (i18n) 56 | 57 | You can help translating the interface by joining us on [lokalise.co](https://lokalise.co/public/556252725c18dd752dd546.13222042/). 58 | 59 | Thanks lokalise.co that we can use your premium account! 60 | 61 |