mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-04-27 00:08:45 +00:00
Merge branch 'master' of https://github.com/Ocelot-Social-Community/Ocelot-Social into 4451-new-deployment-with-base-and-code
This commit is contained in:
commit
42bd648169
8
.github/ISSUE_TEMPLATE/question.md
vendored
8
.github/ISSUE_TEMPLATE/question.md
vendored
@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: 💬 Question
|
name: 💬 Question
|
||||||
about: If you need help understanding HumanConnection.
|
about: If you need help understanding ocelot.social.
|
||||||
labels: question
|
labels: question
|
||||||
title: 💬 [Question]
|
title: 💬 [Question]
|
||||||
---
|
---
|
||||||
<!-- Chat with Team HumanConnection -->
|
<!-- Chat with ocelot.social team -->
|
||||||
<!-- If you need an answer right away, visit the HumanConnection Discord:
|
<!-- If you need an answer right away, visit the ocelot.social Discord:
|
||||||
https://discord.gg/Q3mpcgr -->
|
https://discord.gg/AJSX9DCSUA -->
|
||||||
|
|
||||||
## :speech_balloon: Question
|
## :speech_balloon: Question
|
||||||
<!-- Describe your Question in detail. Include screenshots and drawings if needed. -->
|
<!-- Describe your Question in detail. Include screenshots and drawings if needed. -->
|
||||||
|
|||||||
@ -4,31 +4,33 @@ Thank you so much for thinking of contributing to the Human Connection project!
|
|||||||
|
|
||||||
## Getting Set Up
|
## Getting Set Up
|
||||||
|
|
||||||
Instructions for how to install all the necessary software and some code guidelines can be found in our [documentation](https://docs.human-connection.org/human-connection/).
|
Instructions for how to install all the necessary software and some code guidelines can be found in our main [Readme](/README.md) or in our [documentation](https://docs.human-connection.org/human-connection/).
|
||||||
|
|
||||||
To get you started we recommend that you join forces with a regular contributor. Please join [our discord instance](https://human-connection.org/discord) to chat with developers or just get in touch directly on an issue on either [Github](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues) or [Zenhub](https://app.zenhub.com/workspaces/ocelotsocial-5fb21ff922cb410015dd6535/board?filterLogic=any&repos=301151089):
|
To get you started we recommend that you join forces with a regular contributor. Please join [our Discord instance](https://discord.gg/AJSX9DCSUA) to chat with developers or just get in touch directly on an issue on either [Github](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues) or [Zenhub](https://app.zenhub.com/workspaces/ocelotsocial-5fb21ff922cb410015dd6535/board?filterLogic=any&repos=301151089):
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
We also have regular pair programming sessions that you are very welcome to join! We feel this is often the best way to get to know both the project and the team. Most developers are also available for spontaneous sessions if the times listed below don't work for you – just ping us on discord.
|
We also have regular pair programming sessions that you are very welcome to join! We feel this is often the best way to get to know both the project and the team. Most developers are also available for spontaneous sessions if the times listed below don't work for you – just ping us on Discord.
|
||||||
|
|
||||||
## Development Flow
|
## Development Flow
|
||||||
|
|
||||||
We operate in two week sprints that are planned, estimated and prioritised on [Zenhub](https://app.zenhub.com/workspaces/ocelotsocial-5fb21ff922cb410015dd6535/board?filterLogic=any&repos=301151089). All issues are also linked to and synced with [Github](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues). Look for the `good first issue` label if you're not sure where to start!
|
We operate in two week sprints that are planned, estimated and prioritised on [Zenhub](https://app.zenhub.com/workspaces/ocelotsocial-5fb21ff922cb410015dd6535/board?filterLogic=any&repos=301151089). All issues are also linked to and synced with [Github](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues). Look for the `good first issue` label if you're not sure where to start!
|
||||||
|
|
||||||
We try to discuss all questions directly related to a feature or bug in the respective issue, in order to preserve it for the future and for other developers. We use discord for real-time communication.
|
We try to discuss all questions directly related to a feature or bug in the respective issue, in order to preserve it for the future and for other developers. We use Discord for real-time communication.
|
||||||
|
|
||||||
This is how we solve bugs and implement features, step by step:
|
This is how we solve bugs and implement features, step by step:
|
||||||
|
|
||||||
1. We find an issue we want to work on, usually during the sprint planning but as an open source contributor this can happen at any time.
|
1. We find an issue we want to work on, usually during the sprint planning but as an open source contributor this can happen at any time.
|
||||||
2. We communicate with the team to see if the issue is still available. (When you comment on an issue but don't get an answer there within 1-2 days try to mention @Human-Connection/hc-dev-team to make sure we check in.)
|
2. We communicate with the team to see if the issue is still available. (When you comment on an issue but don't get an answer there within 1-2 days try to mention @Human-Connection/hc-dev-team to make sure we check in.)
|
||||||
3. We make sure we understand the issue in detail – what problem is it solving and how should it be implemented?
|
3. We make sure we understand the issue in detail – what problem is it solving and how should it be implemented?
|
||||||
4. We assign ourselves to the issue and move it to `In Progress` on [Zenhub](https://app.zenhub.com/workspaces/human-connection-nitro-5c0154ecc699f60fc92cf11f).
|
4. We assign ourselves to the issue and move it to `In Progress` on [Zenhub](https://app.zenhub.com/workspaces/ocelotsocial-5fb21ff922cb410015dd6535/board?filterLogic=any&repos=301151089).
|
||||||
5. We start working on it in a `new branch` and open a `pull request` prefixed with `[WIP]` (work in progress) to which we regularly push our changes.
|
5. We start working on it in a `new branch` and open a `pull request` prefixed with `[WIP]` (work in progress) to which we regularly push our changes.
|
||||||
6. When questions come up we clarify them with the team (directly in the issue on Github).
|
6. When questions come up we clarify them with the team (directly in the issue on Github).
|
||||||
7. When we are happy with our work and our PR is passing all tests we remove the `[WIP]` from the PR description and ask for reviews (if you're not sure who to ask there is @Human-Connection/hc-dev-team which pings all core developers).
|
7. When we are happy with our work and our PR is passing all tests we remove the `[WIP]` from the PR description and ask for reviews (if you're not sure who to ask there is @Human-Connection/hc-dev-team which pings all core developers).
|
||||||
8. We then incorporate the suggestions from the reviews into our work and once it has been approved it can be merged into master!
|
8. We then incorporate the suggestions from the reviews into our work and once it has been approved it can be merged into master!
|
||||||
|
|
||||||
Every pull request needs to:
|
Every pull request needs to:
|
||||||
|
|
||||||
* fix an issue (if there is something you want to work on but there is no issue for it, create one first and discuss it with the team)
|
* fix an issue (if there is something you want to work on but there is no issue for it, create one first and discuss it with the team)
|
||||||
* include tests for the code that is added or changed
|
* include tests for the code that is added or changed
|
||||||
* pass all tests (linter, backend, frontend, end-to-end)
|
* pass all tests (linter, backend, frontend, end-to-end)
|
||||||
@ -38,37 +40,46 @@ Every pull request needs to:
|
|||||||
|
|
||||||
There are many volunteers all around the world helping us build this network and without their contributions we wouldn't be where we are today. Big thank you to all of you!
|
There are many volunteers all around the world helping us build this network and without their contributions we wouldn't be where we are today. Big thank you to all of you!
|
||||||
|
|
||||||
You can see the core team behind Human Connection [on our website](https://human-connection.org/en/the-team/). On Github you will mostly run into our developers:
|
You can talk to our core team on [Discord](https://discord.gg/AJSX9DCSUA). And on Github you will mostly run into our core developers:
|
||||||
* Robert (@roschaefer)
|
|
||||||
* Matt (@mattwr18)
|
* Ulf (@ulfgebhardt)
|
||||||
|
* Moriz (@Mogge)
|
||||||
* Wolle (@Tirokk)
|
* Wolle (@Tirokk)
|
||||||
* Alex (@ogerly)
|
* Alex (@ogerly)
|
||||||
|
|
||||||
|
<!-- * Robert (@roschaefer)
|
||||||
|
* Matt (@mattwr18)
|
||||||
* Alina (@alina-beck)
|
* Alina (@alina-beck)
|
||||||
* Martin (@datenbrei), our head of IT
|
* Martin (@datenbrei), our head of IT
|
||||||
* and sometimes Dennis (@DennisHack), the founder of Human Connection
|
* and sometimes Dennis (@DennisHack), the founder of Human Connection -->
|
||||||
|
|
||||||
## Meetings and Pair Programming Sessions
|
## Meetings and Pair Programming Sessions
|
||||||
|
|
||||||
Times below refer to **German Time** – that's CET (GMT+1) in winter and CEST (GMT+2) in summer – because most Human Connection core team members are living in Germany.
|
Times below refer to **German Time** – that's CET (GMT+1) in winter and CEST (GMT+2) in summer – because most Human Connection core team members are living in Germany.
|
||||||
|
|
||||||
Daily standup
|
Daily standup
|
||||||
* every Monday–Friday 11:30
|
|
||||||
* in the discord `Conference Room`
|
* every Monday–Thursday 11:30 am (german time see above 👆🏼)
|
||||||
|
* in our [Discord](https://discord.gg/AJSX9DCSUA) `Office Cube`
|
||||||
* all contributors welcome!
|
* all contributors welcome!
|
||||||
* everybody shares what they are working on and asks for help if they are blocked
|
* everybody shares what they are working on and asks for help if they are blocked
|
||||||
|
|
||||||
|
<!--
|
||||||
Regular pair programming sessions
|
Regular pair programming sessions
|
||||||
|
|
||||||
* every Monday, Wednesday and Thursday 15:00
|
* every Monday, Wednesday and Thursday 15:00
|
||||||
* the link will be posted in the [discord chat](https://discord.gg/6ub73U3) and on the [Agile Ventures website](https://www.agileventures.org/events?utf8=%E2%9C%93&project_id=220&commit=Filter+by+Project)
|
* the link will be posted in the [Discord chat](https://discord.gg/AJSX9DCSUA) and on the [Agile Ventures website](https://www.agileventures.org/events?utf8=%E2%9C%93&project_id=220&commit=Filter+by+Project)
|
||||||
* all contributors welcome!
|
* all contributors welcome!
|
||||||
* we team up and work on an issue together (often using Visual Studio live sharing sessions)
|
* we team up and work on an issue together (often using Visual Studio live sharing sessions)
|
||||||
|
|
||||||
Open-Source Community Meeting
|
Open-Source Community Meeting
|
||||||
|
|
||||||
* bi-weekly on Mondays 13:00 (when there is no sprint retrospective)
|
* bi-weekly on Mondays 13:00 (when there is no sprint retrospective)
|
||||||
* the link will be posted in the [discord chat](https://discord.gg/6ub73U3) and on the [Agile Ventures website](https://www.agileventures.org/events?utf8=%E2%9C%93&project_id=220&commit=Filter+by+Project)
|
* the link will be posted in the [Discord chat](https://discord.gg/AJSX9DCSUA) and on the [Agile Ventures website](https://www.agileventures.org/events?utf8=%E2%9C%93&project_id=220&commit=Filter+by+Project)
|
||||||
* all contributors welcome!
|
* all contributors welcome!
|
||||||
|
|
||||||
Meet the team
|
Meet the team
|
||||||
|
|
||||||
* every Monday 21:00 (at the moment only in German)
|
* every Monday 21:00 (at the moment only in German)
|
||||||
* details here https://human-connection.org/veranstaltungen/
|
* details here https://human-connection.org/veranstaltungen/
|
||||||
* via this [zoom link](https://zoom.us/j/936943532)
|
* via this [zoom link](https://zoom.us/j/936943532)
|
||||||
@ -76,6 +87,7 @@ Meet the team
|
|||||||
* users of the network chat with the Human Connection team and discuss current questions and issues
|
* users of the network chat with the Human Connection team and discuss current questions and issues
|
||||||
|
|
||||||
Sprint planning
|
Sprint planning
|
||||||
|
|
||||||
* bi-weekly on Tuesday 13:00
|
* bi-weekly on Tuesday 13:00
|
||||||
* via this [zoom link](https://zoom.us/j/7743582385)
|
* via this [zoom link](https://zoom.us/j/7743582385)
|
||||||
* all contributors welcome (recommended for those who want to work on an issue in this sprint)
|
* all contributors welcome (recommended for those who want to work on an issue in this sprint)
|
||||||
@ -87,6 +99,7 @@ Sprint retrospective
|
|||||||
* via this [zoom link](https://zoom.us/j/7743582385)
|
* via this [zoom link](https://zoom.us/j/7743582385)
|
||||||
* all contributors welcome (most interesting for those who participated in the sprint)
|
* all contributors welcome (most interesting for those who participated in the sprint)
|
||||||
* we review the past sprint and talk about what went well and what we could improve
|
* we review the past sprint and talk about what went well and what we could improve
|
||||||
|
-->
|
||||||
|
|
||||||
## Philosophy
|
## Philosophy
|
||||||
|
|
||||||
@ -102,10 +115,9 @@ We use pair programming sessions as a tool for knowledge sharing. We can learn a
|
|||||||
|
|
||||||
As a volunteeer you have no commitment except your own self development and your awesomeness by contributing to this free and open-source software project. Cheers to you!
|
As a volunteeer you have no commitment except your own self development and your awesomeness by contributing to this free and open-source software project. Cheers to you!
|
||||||
|
|
||||||
|
|
||||||
## Open-Source Bounties
|
## Open-Source Bounties
|
||||||
|
|
||||||
There are so many good reasons to contribute to Human Connection
|
There are so many good reasons to contribute to ocelot.social
|
||||||
|
|
||||||
* You learn state-of-the-art technologies
|
* You learn state-of-the-art technologies
|
||||||
* You build your portfolio
|
* You build your portfolio
|
||||||
@ -121,7 +133,7 @@ pull request approved and merged for free**. You can choose something really
|
|||||||
quick and easy. What's important is starting a working relationship with the
|
quick and easy. What's important is starting a working relationship with the
|
||||||
team, learning the workflow, and understanding this contribution guide. You can
|
team, learning the workflow, and understanding this contribution guide. You can
|
||||||
filter issues by 'good first issue', to get an idea where to start. Please join
|
filter issues by 'good first issue', to get an idea where to start. Please join
|
||||||
our our [community chat](https://human-connection.org/discord), too.
|
our our [Discord community chat](https://discord.gg/AJSX9DCSUA), too.
|
||||||
|
|
||||||
You can filter Github issues with label [bounty](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues?q=is%3Aopen+is%3Aissue+label%3Abounty). These issues should have a second label `€<amount>`
|
You can filter Github issues with label [bounty](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues?q=is%3Aopen+is%3Aissue+label%3Abounty). These issues should have a second label `€<amount>`
|
||||||
which indicate their respective financial compensation in Euros.
|
which indicate their respective financial compensation in Euros.
|
||||||
|
|||||||
19
README.md
19
README.md
@ -31,6 +31,7 @@ Logins:
|
|||||||
## Directory Layout
|
## Directory Layout
|
||||||
|
|
||||||
There are four important directories:
|
There are four important directories:
|
||||||
|
|
||||||
* [Backend](./backend) runs on the server and is a middleware between database and frontend
|
* [Backend](./backend) runs on the server and is a middleware between database and frontend
|
||||||
* [Frontend](./webapp) is a server-side-rendered and client-side-rendered web frontend
|
* [Frontend](./webapp) is a server-side-rendered and client-side-rendered web frontend
|
||||||
* [Cypress](./cypress) contains end-to-end tests and executable feature specifications
|
* [Cypress](./cypress) contains end-to-end tests and executable feature specifications
|
||||||
@ -46,16 +47,19 @@ There are two approaches:
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Clone the Repository
|
### Clone the Repository
|
||||||
|
|
||||||
Clone the repository, this will create a new folder called `Ocelot-Social`:
|
Clone the repository, this will create a new folder called `Ocelot-Social`:
|
||||||
|
|
||||||
Using HTTPS:
|
Using HTTPS:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://github.com/Ocelot-Social-Community/Ocelot-Social.git
|
$ git clone https://github.com/Ocelot-Social-Community/Ocelot-Social.git
|
||||||
```
|
```
|
||||||
|
|
||||||
Using SSH:
|
Using SSH:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone git@github.com:Human-Connection/Human-Connection.git
|
$ git clone git@github.com:Ocelot-Social-Community/Ocelot-Social.git
|
||||||
```
|
```
|
||||||
|
|
||||||
Change into the new folder.
|
Change into the new folder.
|
||||||
@ -88,13 +92,15 @@ docker-compose version 1.23.2
|
|||||||
#### Start Ocelot-Social via Docker-Compose
|
#### Start Ocelot-Social via Docker-Compose
|
||||||
|
|
||||||
For Development:
|
For Development:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose up
|
$ docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
For Production
|
For Production:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker-compose.yml up
|
$ docker-compose -f docker-compose.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
This will start all required Docker containers
|
This will start all required Docker containers
|
||||||
@ -107,12 +113,12 @@ The only deployment method in this repository is `docker-compose` for developmen
|
|||||||
|
|
||||||
## Developer Chat
|
## Developer Chat
|
||||||
|
|
||||||
Join our friendly open-source community on [Discord](https://discordapp.com/invite/DFSjPaX) :heart_eyes_cat:
|
Join our friendly open-source community on [Discord](https://discord.gg/AJSX9DCSUA) :heart_eyes_cat:
|
||||||
Just introduce yourself at `#introduce-yourself` and mention `@@Mentor` to get you onboard :neckbeard:
|
Just introduce yourself at `#introduce-yourself` and mention `@@Mentor` to get you onboard :neckbeard:
|
||||||
Check out the [contribution guideline](./CONTRIBUTING.md), too!
|
Check out the [contribution guideline](./CONTRIBUTING.md), too!
|
||||||
|
|
||||||
We give write permissions to every developer who asks for it. Just text us on
|
We give write permissions to every developer who asks for it. Just text us on
|
||||||
[Discord](https://discord.gg/6ub73U3).
|
[Discord](https://discord.gg/AJSX9DCSUA).
|
||||||
|
|
||||||
## Technology Stack
|
## Technology Stack
|
||||||
|
|
||||||
@ -131,4 +137,5 @@ Browser compatibility testing with [BrowserStack](https://www.browserstack.com/)
|
|||||||
<img alt="BrowserStack Logo" src=".gitbook/assets/browserstack-logo.svg" width="256">
|
<img alt="BrowserStack Logo" src=".gitbook/assets/browserstack-logo.svg" width="256">
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).
|
See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).
|
||||||
|
|||||||
@ -1,7 +1,13 @@
|
|||||||
// this file is duplicated in `backend/src/config/links.js` and `webapp/constants/links.js` and replaced on rebranding
|
// this file is duplicated in `backend/src/config/links.js` and `webapp/constants/links.js` and replaced on rebranding
|
||||||
export default {
|
export default {
|
||||||
ORGANIZATION: 'https://ocelot.social',
|
ORGANIZATION: 'https://ocelot.social',
|
||||||
DONATE: 'https://ocelot-social.herokuapp.com/donations',
|
|
||||||
FAQ: 'https://ocelot.social',
|
|
||||||
SUPPORT: 'https://ocelot.social',
|
SUPPORT: 'https://ocelot.social',
|
||||||
|
|
||||||
|
// on null or empty strings internal imprint is used, see 'webapp/locales/html/'
|
||||||
|
DONATE: 'https://ocelot-social.herokuapp.com/donations', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
|
||||||
|
IMPRINT: 'https://ocelot-social.herokuapp.com/imprint', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
|
||||||
|
TERMS_AND_CONDITIONS: null,
|
||||||
|
CODE_OF_CONDUCT: null,
|
||||||
|
DATA_PRIVACY: null,
|
||||||
|
FAQ: 'https://ocelot.social',
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { config, mount } from '@vue/test-utils'
|
import { config, mount } from '@vue/test-utils'
|
||||||
import PageFooter from './PageFooter.vue'
|
import PageFooter from './PageFooter.vue'
|
||||||
import links from '~/constants/links.js'
|
import linksDefault from '~/constants/links.js'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
@ -8,6 +8,7 @@ config.stubs['nuxt-link'] = '<span class="nuxt-link"><slot /></span>'
|
|||||||
|
|
||||||
describe('PageFooter.vue', () => {
|
describe('PageFooter.vue', () => {
|
||||||
let mocks
|
let mocks
|
||||||
|
let wrapper
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mocks = {
|
mocks = {
|
||||||
@ -15,30 +16,118 @@ describe('PageFooter.vue', () => {
|
|||||||
$env: {
|
$env: {
|
||||||
VERSION: 'v1.0.0',
|
VERSION: 'v1.0.0',
|
||||||
},
|
},
|
||||||
links,
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
let wrapper
|
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
return mount(PageFooter, { mocks, localVue })
|
return mount(PageFooter, { mocks, localVue })
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeEach(() => {
|
describe('links.js', () => {
|
||||||
wrapper = Wrapper()
|
beforeEach(() => {
|
||||||
|
wrapper = Wrapper()
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders four links', () => {
|
||||||
|
expect(wrapper.findAll('a')).toHaveLength(4)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders three nuxt-links', () => {
|
||||||
|
expect(wrapper.findAll('.nuxt-link')).toHaveLength(3)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders version', () => {
|
||||||
|
expect(wrapper.find('.ds-footer').text()).toContain('v1.0.0')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders three links', () => {
|
describe('inflexible links', () => {
|
||||||
expect(wrapper.findAll('a')).toHaveLength(3)
|
beforeEach(() => {
|
||||||
|
wrapper = Wrapper()
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders ORGANIZATION', () => {
|
||||||
|
expect(wrapper.find('a[data-test="organization-link"]').exists()).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders version', () => {
|
||||||
|
expect(wrapper.find('a[data-test="version-link"]').exists()).toBe(true)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders four nuxt-links', () => {
|
describe('flexible links not set', () => {
|
||||||
expect(wrapper.findAll('.nuxt-link')).toHaveLength(4)
|
beforeEach(async () => {
|
||||||
|
const links = {
|
||||||
|
...linksDefault,
|
||||||
|
IMPRINT: null,
|
||||||
|
TERMS_AND_CONDITIONS: null,
|
||||||
|
CODE_OF_CONDUCT: null,
|
||||||
|
DATA_PRIVACY: null,
|
||||||
|
FAQ: null,
|
||||||
|
}
|
||||||
|
wrapper = Wrapper()
|
||||||
|
wrapper.setData({ links })
|
||||||
|
await wrapper.vm.$nextTick()
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders IMPRINT as nuxt-link', () => {
|
||||||
|
expect(wrapper.find('span[data-test="imprint-nuxt-link"]').exists()).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders TERMS_AND_CONDITIONS as nuxt-link', () => {
|
||||||
|
expect(wrapper.find('span[data-test="terms-nuxt-link"]').exists()).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders CODE_OF_CONDUCT as nuxt-link', () => {
|
||||||
|
expect(wrapper.find('span[data-test="code-nuxt-link"]').exists()).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders DATA_PRIVACY as nuxt-link', () => {
|
||||||
|
expect(wrapper.find('span[data-test="data-nuxt-link"]').exists()).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders FAQ as nuxt-link', () => {
|
||||||
|
expect(wrapper.find('span[data-test="faq-nuxt-link"]').exists()).toBe(true)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders version', () => {
|
describe('flexible links set', () => {
|
||||||
expect(wrapper.find('.ds-footer').text()).toContain('v1.0.0')
|
beforeEach(async () => {
|
||||||
|
const links = {
|
||||||
|
...linksDefault,
|
||||||
|
IMPRINT: 'https://ocelot.social/IMPRINT',
|
||||||
|
TERMS_AND_CONDITIONS: 'https://ocelot.social/TERMS_AND_CONDITIONS',
|
||||||
|
CODE_OF_CONDUCT: 'https://ocelot.social/CODE_OF_CONDUCT',
|
||||||
|
DATA_PRIVACY: 'https://ocelot.social/DATA_PRIVACY',
|
||||||
|
FAQ: 'https://ocelot.social/FAQ',
|
||||||
|
}
|
||||||
|
wrapper = Wrapper()
|
||||||
|
wrapper.setData({ links })
|
||||||
|
await wrapper.vm.$nextTick()
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders IMPRINT as "a" tag link', () => {
|
||||||
|
expect(wrapper.find(`a[href="https://ocelot.social/IMPRINT"]`).exists()).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders TERMS_AND_CONDITIONS as "a" tag link', () => {
|
||||||
|
expect(wrapper.find(`a[href="https://ocelot.social/TERMS_AND_CONDITIONS"]`).exists()).toBe(
|
||||||
|
true,
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders CODE_OF_CONDUCT as "a" tag link', () => {
|
||||||
|
expect(wrapper.find(`a[href="https://ocelot.social/CODE_OF_CONDUCT"]`).exists()).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders DATA_PRIVACY as "a" tag link', () => {
|
||||||
|
expect(wrapper.find(`a[href="https://ocelot.social/DATA_PRIVACY"]`).exists()).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders FAQ as "a" tag link', () => {
|
||||||
|
expect(wrapper.find(`a[href="https://ocelot.social/FAQ"]`).exists()).toBe(true)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,26 +1,67 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="footer" class="ds-footer">
|
<div id="footer" class="ds-footer">
|
||||||
<a :href="links.ORGANIZATION" target="_blank" v-html="$t('site.made')"></a>
|
<!-- made with ❤️ -->
|
||||||
|
<a :href="links.ORGANIZATION" target="_blank" data-test="organization-link">
|
||||||
|
{{ $t('site.made') }}
|
||||||
|
</a>
|
||||||
<span>-</span>
|
<span>-</span>
|
||||||
<nuxt-link to="/imprint">
|
<!-- imprint -->
|
||||||
|
<nuxt-link v-if="noLinkDefined(links.IMPRINT)" to="/imprint" data-test="imprint-nuxt-link">
|
||||||
{{ $t('site.imprint') }}
|
{{ $t('site.imprint') }}
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
|
<a v-else :href="links.IMPRINT" target="_blank">
|
||||||
|
{{ $t('site.imprint') }}
|
||||||
|
</a>
|
||||||
<span>-</span>
|
<span>-</span>
|
||||||
<nuxt-link to="/terms-and-conditions">{{ $t('site.termsAndConditions') }}</nuxt-link>
|
<!-- terms and conditions -->
|
||||||
|
<nuxt-link
|
||||||
|
v-if="noLinkDefined(links.TERMS_AND_CONDITIONS)"
|
||||||
|
to="/terms-and-conditions"
|
||||||
|
data-test="terms-nuxt-link"
|
||||||
|
>
|
||||||
|
{{ $t('site.termsAndConditions') }}
|
||||||
|
</nuxt-link>
|
||||||
|
<a v-else :href="links.TERMS_AND_CONDITIONS" target="_blank">
|
||||||
|
{{ $t('site.termsAndConditions') }}
|
||||||
|
</a>
|
||||||
<span>-</span>
|
<span>-</span>
|
||||||
<nuxt-link to="/code-of-conduct">{{ $t('site.code-of-conduct') }}</nuxt-link>
|
<!-- code of conduct -->
|
||||||
|
<nuxt-link
|
||||||
|
v-if="noLinkDefined(links.CODE_OF_CONDUCT)"
|
||||||
|
to="/code-of-conduct"
|
||||||
|
data-test="code-nuxt-link"
|
||||||
|
>
|
||||||
|
{{ $t('site.code-of-conduct') }}
|
||||||
|
</nuxt-link>
|
||||||
|
<a v-else :href="links.CODE_OF_CONDUCT" target="_blank">
|
||||||
|
{{ $t('site.code-of-conduct') }}
|
||||||
|
</a>
|
||||||
<span>-</span>
|
<span>-</span>
|
||||||
<nuxt-link to="/data-privacy">
|
<!-- data privacy -->
|
||||||
|
<nuxt-link
|
||||||
|
v-if="noLinkDefined(links.DATA_PRIVACY)"
|
||||||
|
to="/data-privacy"
|
||||||
|
data-test="data-nuxt-link"
|
||||||
|
>
|
||||||
{{ $t('site.data-privacy') }}
|
{{ $t('site.data-privacy') }}
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
|
<a v-else :href="links.DATA_PRIVACY" target="_blank">
|
||||||
|
{{ $t('site.data-privacy') }}
|
||||||
|
</a>
|
||||||
<span>-</span>
|
<span>-</span>
|
||||||
<a :href="links.FAQ" target="_blank">
|
<!-- faq -->
|
||||||
|
<nuxt-link v-if="noLinkDefined(links.FAQ)" to="/faq" data-test="faq-nuxt-link">
|
||||||
|
{{ $t('site.faq') }}
|
||||||
|
</nuxt-link>
|
||||||
|
<a v-else :href="links.FAQ" target="_blank">
|
||||||
{{ $t('site.faq') }}
|
{{ $t('site.faq') }}
|
||||||
</a>
|
</a>
|
||||||
<span>-</span>
|
<span>-</span>
|
||||||
|
<!-- version -->
|
||||||
<a
|
<a
|
||||||
href="https://github.com/Ocelot-Social-Community/Ocelot-Social/blob/master/CHANGELOG.md"
|
href="https://github.com/Ocelot-Social-Community/Ocelot-Social/blob/master/CHANGELOG.md"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
data-test="version-link"
|
||||||
>
|
>
|
||||||
{{ version }}
|
{{ version }}
|
||||||
</a>
|
</a>
|
||||||
@ -29,10 +70,16 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import links from '~/constants/links.js'
|
import links from '~/constants/links.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return { links, version: `v${this.$env.VERSION}` }
|
return { links, version: `v${this.$env.VERSION}` }
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
noLinkDefined(link) {
|
||||||
|
return !link || link.length === 0
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,13 @@
|
|||||||
// this file is duplicated in `backend/src/config/links.js` and `webapp/constants/links.js` and replaced on rebranding
|
// this file is duplicated in `backend/src/config/links.js` and `webapp/constants/links.js` and replaced on rebranding
|
||||||
export default {
|
export default {
|
||||||
ORGANIZATION: 'https://ocelot.social',
|
ORGANIZATION: 'https://ocelot.social',
|
||||||
DONATE: 'https://ocelot-social.herokuapp.com/donations',
|
|
||||||
FAQ: 'https://ocelot.social',
|
|
||||||
SUPPORT: 'https://ocelot.social',
|
SUPPORT: 'https://ocelot.social',
|
||||||
|
|
||||||
|
// on null or empty strings internal imprint is used, see 'webapp/locales/html/'
|
||||||
|
DONATE: 'https://ocelot-social.herokuapp.com/donations', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
|
||||||
|
IMPRINT: 'https://ocelot-social.herokuapp.com/imprint', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
|
||||||
|
TERMS_AND_CONDITIONS: null,
|
||||||
|
CODE_OF_CONDUCT: null,
|
||||||
|
DATA_PRIVACY: null,
|
||||||
|
FAQ: 'https://ocelot.social',
|
||||||
}
|
}
|
||||||
|
|||||||
@ -771,7 +771,7 @@
|
|||||||
"faq": "FAQ",
|
"faq": "FAQ",
|
||||||
"germany": "Deutschland",
|
"germany": "Deutschland",
|
||||||
"imprint": "Impressum",
|
"imprint": "Impressum",
|
||||||
"made": "Mit ❤ gemacht",
|
"made": "Mit ❤️ gemacht",
|
||||||
"register": "Registernummer",
|
"register": "Registernummer",
|
||||||
"responsible": "Verantwortlich für Inhalte dieser Seite (§ 55 Abs. 2 RStV)",
|
"responsible": "Verantwortlich für Inhalte dieser Seite (§ 55 Abs. 2 RStV)",
|
||||||
"taxident": "Umsatzsteuer-Identifikationsnummer gemäß § 27 a Umsatzsteuergesetz (Deutschland)",
|
"taxident": "Umsatzsteuer-Identifikationsnummer gemäß § 27 a Umsatzsteuergesetz (Deutschland)",
|
||||||
|
|||||||
@ -771,7 +771,7 @@
|
|||||||
"faq": "FAQ",
|
"faq": "FAQ",
|
||||||
"germany": "Germany",
|
"germany": "Germany",
|
||||||
"imprint": "Imprint",
|
"imprint": "Imprint",
|
||||||
"made": "Made with ❤",
|
"made": "Made with ❤️",
|
||||||
"register": "Registry number",
|
"register": "Registry number",
|
||||||
"responsible": "responsible for contents of this page (§ 55 Abs. 2 RStV)",
|
"responsible": "responsible for contents of this page (§ 55 Abs. 2 RStV)",
|
||||||
"taxident": "USt-ID. according to §27a of the German Sales Tax Law:",
|
"taxident": "USt-ID. according to §27a of the German Sales Tax Law:",
|
||||||
|
|||||||
@ -694,7 +694,7 @@
|
|||||||
"faq": "Preguntas más frecuentes",
|
"faq": "Preguntas más frecuentes",
|
||||||
"germany": "Alemania",
|
"germany": "Alemania",
|
||||||
"imprint": "Pie de imprenta",
|
"imprint": "Pie de imprenta",
|
||||||
"made": "Hecho con ❤",
|
"made": "Hecho con ❤️",
|
||||||
"register": "Número de registro",
|
"register": "Número de registro",
|
||||||
"responsible": "Responsable según § 55 Abs. 2 RStV (Alemania)",
|
"responsible": "Responsable según § 55 Abs. 2 RStV (Alemania)",
|
||||||
"taxident": "Número de identificación del impuesto sobre el valor añadido según el § 27 a de la Ley del Impuesto sobre el Valor Añadido (Alemania)",
|
"taxident": "Número de identificación del impuesto sobre el valor añadido según el § 27 a de la Ley del Impuesto sobre el Valor Añadido (Alemania)",
|
||||||
|
|||||||
@ -662,7 +662,7 @@
|
|||||||
"faq": "FAQ",
|
"faq": "FAQ",
|
||||||
"germany": "Allemagne",
|
"germany": "Allemagne",
|
||||||
"imprint": "Mentions légales",
|
"imprint": "Mentions légales",
|
||||||
"made": "Fabriqué avec ❤",
|
"made": "Fabriqué avec ❤️",
|
||||||
"register": "Numéro de registre",
|
"register": "Numéro de registre",
|
||||||
"responsible": "Responsable selon § 55 Abs. 2 RStV (Allemagne)",
|
"responsible": "Responsable selon § 55 Abs. 2 RStV (Allemagne)",
|
||||||
"taxident": "Numéro d'identification à la taxe sur la valeur ajoutée selon § 27 a de la loi sur la taxe sur la valeur ajoutée (Allemagne)",
|
"taxident": "Numéro d'identification à la taxe sur la valeur ajoutée selon § 27 a de la loi sur la taxe sur la valeur ajoutée (Allemagne)",
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
<p>Ich bin der Inhalt vom Verhaltenskodex</p>
|
<p>Ich bin der Inhalt vom Verhaltenskodex</p>
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
<p>Das hier wäre der Inhalt der Datenschutzbestimmungen</p>
|
<p>Das hier wäre der Inhalt der Datenschutzbestimmungen</p>
|
||||||
|
|||||||
3
webapp/locales/html/de/faq.html
Normal file
3
webapp/locales/html/de/faq.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
|
<p>Hier stehen die FAQs</p>
|
||||||
@ -1 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
<p>Ich bin das Impressum</p>
|
<p>Ich bin das Impressum</p>
|
||||||
|
|||||||
@ -1,11 +1,13 @@
|
|||||||
import termsAndConditions from './terms-and-conditions.html'
|
import termsAndConditions from './terms-and-conditions.html'
|
||||||
import codeOfConduct from './code-of-conduct.html'
|
import codeOfConduct from './code-of-conduct.html'
|
||||||
import dataPrivacy from './data-privacy.html'
|
import dataPrivacy from './data-privacy.html'
|
||||||
|
import faq from './faq.html'
|
||||||
import imprint from './imprint.html'
|
import imprint from './imprint.html'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
termsAndConditions,
|
termsAndConditions,
|
||||||
codeOfConduct,
|
codeOfConduct,
|
||||||
dataPrivacy,
|
dataPrivacy,
|
||||||
|
faq,
|
||||||
imprint,
|
imprint,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
<p>Ich bin der Inhalt der Seite "Nutzungsbedingungen"</p>
|
<p>Ich bin der Inhalt der Seite "Nutzungsbedingungen"</p>
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
<p>I am the content of the code of conduct</p>
|
<p>I am the content of the code of conduct</p>
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
<p>This would be our data privacy section</p>
|
<p>This would be our data privacy section</p>
|
||||||
|
|||||||
3
webapp/locales/html/en/faq.html
Normal file
3
webapp/locales/html/en/faq.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
|
<p>Here are the FAQs</p>
|
||||||
@ -1 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
<p>I am the imprint</p>
|
<p>I am the imprint</p>
|
||||||
|
|||||||
@ -1,11 +1,13 @@
|
|||||||
import termsAndConditions from './terms-and-conditions.html'
|
import termsAndConditions from './terms-and-conditions.html'
|
||||||
import codeOfConduct from './code-of-conduct.html'
|
import codeOfConduct from './code-of-conduct.html'
|
||||||
import dataPrivacy from './data-privacy.html'
|
import dataPrivacy from './data-privacy.html'
|
||||||
|
import faq from './faq.html'
|
||||||
import imprint from './imprint.html'
|
import imprint from './imprint.html'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
termsAndConditions,
|
termsAndConditions,
|
||||||
codeOfConduct,
|
codeOfConduct,
|
||||||
dataPrivacy,
|
dataPrivacy,
|
||||||
|
faq,
|
||||||
imprint,
|
imprint,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
|
<!-- this file is replaced on rebranding -->
|
||||||
|
|
||||||
<p>I am the content of the page "terms and conditions"<p>
|
<p>I am the content of the page "terms and conditions"<p>
|
||||||
|
|||||||
@ -612,7 +612,7 @@
|
|||||||
"faq": null,
|
"faq": null,
|
||||||
"germany": "Germania",
|
"germany": "Germania",
|
||||||
"imprint": "Impressum",
|
"imprint": "Impressum",
|
||||||
"made": "Con ❤ fatto",
|
"made": "Con ❤️ fatto",
|
||||||
"register": "numero di registro",
|
"register": "numero di registro",
|
||||||
"responsible": "Responsabile ai sensi del § 55 Abs. 2 RStV (Germania)",
|
"responsible": "Responsabile ai sensi del § 55 Abs. 2 RStV (Germania)",
|
||||||
"taxident": "Numero di identificazione dell'imposta sul valore aggiunto ai sensi del § 27 a Legge sull'imposta sul valore aggiunto (Germania)",
|
"taxident": "Numero di identificazione dell'imposta sul valore aggiunto ai sensi del § 27 a Legge sull'imposta sul valore aggiunto (Germania)",
|
||||||
|
|||||||
@ -165,7 +165,7 @@
|
|||||||
"director": "Directeur",
|
"director": "Directeur",
|
||||||
"germany": "Duitsland",
|
"germany": "Duitsland",
|
||||||
"imprint": "Afdruk",
|
"imprint": "Afdruk",
|
||||||
"made": "Met ❤ gemaakt",
|
"made": "Met ❤️ gemaakt",
|
||||||
"register": "inschrijfnummer",
|
"register": "inschrijfnummer",
|
||||||
"responsible": "Verantwoordelijk volgens § 55 Abs. 2 RStV (Duitsland).",
|
"responsible": "Verantwoordelijk volgens § 55 Abs. 2 RStV (Duitsland).",
|
||||||
"taxident": "Identificatienummer voor de belasting over de toegevoegde waarde overeenkomstig § 27 a Wet op de belasting over de toegevoegde waarde (Duitsland).",
|
"taxident": "Identificatienummer voor de belasting over de toegevoegde waarde overeenkomstig § 27 a Wet op de belasting over de toegevoegde waarde (Duitsland).",
|
||||||
|
|||||||
@ -350,7 +350,7 @@
|
|||||||
"director": "Dyrektor zarządzający",
|
"director": "Dyrektor zarządzający",
|
||||||
"germany": "Niemcy",
|
"germany": "Niemcy",
|
||||||
"imprint": "Nadruk",
|
"imprint": "Nadruk",
|
||||||
"made": "Z ❤ zrobiony",
|
"made": "Z ❤️ zrobiony",
|
||||||
"register": "numer rejestracyjny",
|
"register": "numer rejestracyjny",
|
||||||
"responsible": "Odpowiedzialny zgodnie z § 55 Abs. 2 RStV (Niemcy)",
|
"responsible": "Odpowiedzialny zgodnie z § 55 Abs. 2 RStV (Niemcy)",
|
||||||
"taxident": "Numer identyfikacyjny podatku od wartości dodanej zgodnie z § 27 a Ustawa o podatku od wartości dodanej (Niemcy)",
|
"taxident": "Numer identyfikacyjny podatku od wartości dodanej zgodnie z § 27 a Ustawa o podatku od wartości dodanej (Niemcy)",
|
||||||
|
|||||||
@ -647,7 +647,7 @@
|
|||||||
"faq": "FAQ",
|
"faq": "FAQ",
|
||||||
"germany": "Alemanha",
|
"germany": "Alemanha",
|
||||||
"imprint": "Impressão",
|
"imprint": "Impressão",
|
||||||
"made": "Feito com ❤",
|
"made": "Feito com ❤️",
|
||||||
"register": "número de registo",
|
"register": "número de registo",
|
||||||
"responsible": "Responsável segundo § 55 Abs. 2 RStV (Alemanha) ",
|
"responsible": "Responsável segundo § 55 Abs. 2 RStV (Alemanha) ",
|
||||||
"taxident": "Número de identificação do imposto sobre o valor acrescentado de acordo com o § 27 da Lei do Imposto sobre o Valor Acrescentado (Alemanha)",
|
"taxident": "Número de identificação do imposto sobre o valor acrescentado de acordo com o § 27 da Lei do Imposto sobre o Valor Acrescentado (Alemanha)",
|
||||||
|
|||||||
@ -694,7 +694,7 @@
|
|||||||
"faq": "ЧаВо (FAQ)",
|
"faq": "ЧаВо (FAQ)",
|
||||||
"germany": "Германия",
|
"germany": "Германия",
|
||||||
"imprint": "Импрессум",
|
"imprint": "Импрессум",
|
||||||
"made": "Сделано с ❤",
|
"made": "Сделано с ❤️",
|
||||||
"register": "Регистрационный номер",
|
"register": "Регистрационный номер",
|
||||||
"responsible": "ответственный за содержание этой страницы (§ 55 Abs. 2 RStV)",
|
"responsible": "ответственный за содержание этой страницы (§ 55 Abs. 2 RStV)",
|
||||||
"taxident": "UST-ID. в соответствии с §27a Закона о налоге с продаж Германии:",
|
"taxident": "UST-ID. в соответствии с §27a Закона о налоге с продаж Германии:",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<ds-space>
|
<ds-space margin="small">
|
||||||
<ds-heading tag="h2">{{ $t('site.code-of-conduct') }}</ds-heading>
|
<ds-heading tag="h2">{{ $t('site.code-of-conduct') }}</ds-heading>
|
||||||
</ds-space>
|
</ds-space>
|
||||||
<ds-container>
|
<ds-container>
|
||||||
|
|||||||
@ -1,9 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<ds-space>
|
<ds-space margin="small">
|
||||||
<ds-heading tag="h2">{{ $t('site.data-privacy') }}</ds-heading>
|
<ds-heading tag="h2">{{ $t('site.data-privacy') }}</ds-heading>
|
||||||
</ds-space>
|
</ds-space>
|
||||||
|
|
||||||
<ds-container>
|
<ds-container>
|
||||||
<div v-html="$t('html.dataPrivacy')" />
|
<div v-html="$t('html.dataPrivacy')" />
|
||||||
</ds-container>
|
</ds-container>
|
||||||
|
|||||||
38
webapp/pages/faq.spec.js
Normal file
38
webapp/pages/faq.spec.js
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
import { mount } from '@vue/test-utils'
|
||||||
|
import Faq from './faq.vue'
|
||||||
|
import VueMeta from 'vue-meta'
|
||||||
|
|
||||||
|
const localVue = global.localVue
|
||||||
|
localVue.use(VueMeta, { keyName: 'head' })
|
||||||
|
|
||||||
|
describe('faq.vue', () => {
|
||||||
|
let wrapper
|
||||||
|
let mocks
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
mocks = {
|
||||||
|
$t: (t) => t,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('mount', () => {
|
||||||
|
const Wrapper = () => {
|
||||||
|
return mount(Faq, {
|
||||||
|
mocks,
|
||||||
|
localVue,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
wrapper = Wrapper()
|
||||||
|
})
|
||||||
|
|
||||||
|
it('renders', () => {
|
||||||
|
expect(wrapper.is('div')).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('has correct <head> content', () => {
|
||||||
|
expect(wrapper.vm.$metaInfo.title).toBe('site.faq')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
21
webapp/pages/faq.vue
Normal file
21
webapp/pages/faq.vue
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<ds-space margin="small">
|
||||||
|
<ds-heading tag="h2">{{ $t('site.faq') }}</ds-heading>
|
||||||
|
</ds-space>
|
||||||
|
<ds-container>
|
||||||
|
<div v-html="$t('html.faq')" />
|
||||||
|
</ds-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
layout: 'basic',
|
||||||
|
head() {
|
||||||
|
return {
|
||||||
|
title: this.$t('site.faq'),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -1,9 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<ds-space>
|
<ds-space margin="small">
|
||||||
<ds-heading tag="h2">{{ $t('site.imprint') }}</ds-heading>
|
<ds-heading tag="h2">{{ $t('site.imprint') }}</ds-heading>
|
||||||
</ds-space>
|
</ds-space>
|
||||||
|
|
||||||
<ds-container>
|
<ds-container>
|
||||||
<div v-html="$t('html.imprint')" />
|
<div v-html="$t('html.imprint')" />
|
||||||
</ds-container>
|
</ds-container>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<ds-space>
|
<ds-space margin="small">
|
||||||
<ds-heading tag="h2">{{ $t('site.termsAndConditions') }}</ds-heading>
|
<ds-heading tag="h2">{{ $t('site.termsAndConditions') }}</ds-heading>
|
||||||
</ds-space>
|
</ds-space>
|
||||||
<ds-container>
|
<ds-container>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user