1100 Commits

Author SHA1 Message Date
dependabot-preview[bot]
295c7bcb39
Bump vue-sweetalert-icons from 4.1.0 to 4.2.0 in /webapp
Bumps [vue-sweetalert-icons](https://github.com/JorgenVatle/vue-sweetalert-icons) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/JorgenVatle/vue-sweetalert-icons/releases)
- [Commits](https://github.com/JorgenVatle/vue-sweetalert-icons/compare/v4.1.0...v4.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-09 04:29:02 +00:00
Robert Schäfer
2eaf66378a
Merge pull request #1133 from Human-Connection/384-emotions-on-posts
Emotions on posts
2019-08-09 00:37:38 +02:00
Robert Schäfer
963cbbef32 RemovePostEmotions should return deleted object
@mattwr18 I prefer (I believe it's even best practice) that a delete
mutation should return the deleted object. If you run the delete
mutation again, it should return `null` because there is no object like
that anymore. That way the client knows if a delete mutation has changed
any state in the database.

Also I fixed another bug in the resolver. If your graphql mutation looks
like this:

```gql
mutation {
  RemovePostEmotions(to:{ id:"p15"}, data:{emotion: angry}) {
    from {
      id
      name
    }
    to {
      id
      title
    }
    emotion
  }
}
```

Then you get errors because your resolver does not return the name for
the user or the title for the post anymore. Just use spread operator...
and it's fixed.
2019-08-08 23:51:26 +02:00
Robert Schäfer
f3e545a913 Fix bug: Only add emotions for authenticated user 2019-08-08 23:10:01 +02:00
Robert Schäfer
ee6dcf3877
Merge pull request #1212 from Human-Connection/dependabot/npm_and_yarn/webapp/vue-sweetalert-icons-4.1.0
Bump vue-sweetalert-icons from 4.0.0 to 4.1.0 in /webapp
2019-08-08 20:03:22 +02:00
Robert Schäfer
1231010ba9
Merge pull request #1215 from Human-Connection/dependabot/npm_and_yarn/webapp/eslint-plugin-jest-22.15.0
Bump eslint-plugin-jest from 22.14.1 to 22.15.0 in /webapp
2019-08-08 20:02:54 +02:00
Robert Schäfer
276b4a3a29
Merge pull request #1210 from Human-Connection/dependabot/npm_and_yarn/webapp/tiptap-extensions-1.26.1
Bump tiptap-extensions from 1.26.0 to 1.26.1 in /webapp
2019-08-08 11:20:34 +02:00
Robert Schäfer
566651fea9
Merge pull request #1217 from Human-Connection/fix-vue-console-errors-sweetalert-icons
Stub sweetalert-icon in tests which use
2019-08-08 11:16:29 +02:00
dependabot-preview[bot]
0c1bf45968
Bump eslint-plugin-jest from 22.14.1 to 22.15.0 in /webapp
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 22.14.1 to 22.15.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v22.14.1...v22.15.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-08 08:29:30 +00:00
dependabot-preview[bot]
49fa0844f9
Bump @nuxtjs/style-resources from 0.1.2 to 1.0.0 in /webapp
Bumps [@nuxtjs/style-resources](https://github.com/nuxt-community/style-resources-module) from 0.1.2 to 1.0.0.
- [Release notes](https://github.com/nuxt-community/style-resources-module/releases)
- [Changelog](https://github.com/nuxt-community/style-resources-module/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nuxt-community/style-resources-module/compare/v0.1.2...v1.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-08 04:29:26 +00:00
dependabot-preview[bot]
ffa3901d97
Bump vue-sweetalert-icons from 4.0.0 to 4.1.0 in /webapp
Bumps [vue-sweetalert-icons](https://github.com/JorgenVatle/vue-sweetalert-icons) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/JorgenVatle/vue-sweetalert-icons/releases)
- [Commits](https://github.com/JorgenVatle/vue-sweetalert-icons/compare/4.0.0...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-08 04:28:00 +00:00
dependabot-preview[bot]
49c8fdb74e
Bump tiptap-extensions from 1.26.0 to 1.26.1 in /webapp
Bumps [tiptap-extensions](https://github.com/scrumpy/tiptap) from 1.26.0 to 1.26.1.
- [Release notes](https://github.com/scrumpy/tiptap/releases)
- [Commits](https://github.com/scrumpy/tiptap/compare/tiptap-extensions@1.26.0...tiptap-extensions@1.26.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-08 04:26:48 +00:00
Matt Rider
faa4148858 Stub sweetalert-icon in tests which use 2019-08-07 15:20:36 +02:00
Matt Rider
39a94a8aac Refactor
- follow PR review by @roschaefer
2019-08-07 14:55:32 +02:00
Matt Rider
fa033e69bd Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts 2019-08-07 06:53:37 +02:00
Robert Schäfer
3eab519760 Reduce the size of the emotion buttons
In my browser, the icons are so large that they overlap with the texts
below. I think a less intrusive size does the job equally well.
2019-08-06 22:37:36 +02:00
Robert Schäfer
1a21884081 Merge remote-tracking branch 'fatherJS/polish-locales' 2019-08-06 22:01:25 +02:00
Matt Rider
1c0112e9d8 Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts 2019-08-06 19:00:14 +02:00
Robert Schäfer
b2771a2708
Merge pull request #1171 from Human-Connection/deprecation-warning
Fix depreciation warnings
2019-08-06 16:39:29 +02:00
Alexander Friedland
9b74fd2480
Merge pull request #1174 from Human-Connection/A-1001-Page-for-Data-Privacy
Add static page for data privacy
2019-08-06 15:56:45 +02:00
Robert Schäfer
9b6d4deef5
Merge pull request #1194 from Human-Connection/dependabot/npm_and_yarn/webapp/date-fns-2.0.0-beta.4
Bump date-fns from 2.0.0-beta.3 to 2.0.0-beta.4 in /webapp
2019-08-06 15:40:46 +02:00
Piotr Kowalski
f64a8cd96f polish locales
pl.json file corrected
2019-08-06 15:37:04 +02:00
Robert Schäfer
1574fc0f56
Merge pull request #791 from Human-Connection/dependabot/npm_and_yarn/webapp/vue-sweetalert-icons-3.2.1
Bump vue-sweetalert-icons from 3.2.0 to 3.2.1 in /webapp
2019-08-06 14:37:36 +02:00
Robert Schäfer
27163b8d79 Install vue-sweetalert-icon globally
Updating the package to `v4.0.0` still gives me this warning:
```
 WARN  Compiled with 1 warnings
 WARN  in ./components/PasswordReset/ChangePassword.vue?vue&type=script&lang=js&
"export 'SweetalertIcon' was not found in 'vue-sweetalert-icons'
```

According to this thread https://github.com/JorgenVatle/vue-sweetalert-icons/issues/3
I copy+pasted the example configuration:
https://github.com/JorgenVatle/vue-sweetalert-icons-preview/blob/master/nuxt.config.js
https://github.com/JorgenVatle/vue-sweetalert-icons-preview/blob/master/plugins/vue-sweetalert-icons.js

And now the compile warnings are gone. I'm going to ask the maintainer if the
local import is not possible with `v4.0.0` anymore.
2019-08-06 11:03:12 +02:00
dependabot-preview[bot]
b43f1cdc92 Bump vue-sweetalert-icons from 3.2.0 to 3.2.1 in /webapp
Bumps [vue-sweetalert-icons](https://github.com/JorgenVatle/vue-sweetalert-icons) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/JorgenVatle/vue-sweetalert-icons/releases)
- [Commits](https://github.com/JorgenVatle/vue-sweetalert-icons/compare/v3.2.0...v3.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-06 11:01:03 +02:00
Matt Rider
f7152703bc Upgrade node-fetch, use pageTransition 2019-08-06 08:23:32 +02:00
Matt Rider
9613250710 Fix German translation, mobile responsive tweak
- follow @Tirokk's PR review suggestions
2019-08-06 08:13:02 +02:00
Matt Rider
1593eab9cf Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts 2019-08-06 08:07:39 +02:00
Matt Rider
cb7217f5a7 Fix bug
- apollo query fetchPolicy set to no-cache so that it will refetch a post's emotions count on page transition
2019-08-06 08:05:35 +02:00
dependabot-preview[bot]
a87616b2b1
Bump @nuxtjs/dotenv from 1.3.0 to 1.4.0 in /webapp
Bumps [@nuxtjs/dotenv](https://github.com/nuxt-community/dotenv-module) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/nuxt-community/dotenv-module/releases)
- [Changelog](https://github.com/nuxt-community/dotenv-module/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nuxt-community/dotenv-module/compare/v1.3.0...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-06 05:52:40 +00:00
Wolfgang Huß
e8d5bed901
Merge pull request #952 from Human-Connection/storybook
Storybook
2019-08-06 07:50:09 +02:00
dependabot-preview[bot]
3e3617bb92
Bump date-fns from 2.0.0-beta.3 to 2.0.0-beta.4 in /webapp
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.0.0-beta.3 to 2.0.0-beta.4.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md)
- [Commits](https://github.com/date-fns/date-fns/compare/v2.0.0-beta.3...v2.0.0-beta.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-06 04:23:27 +00:00
dependabot-preview[bot]
4e8b59466b
Bump vuex-i18n from 1.13.0 to 1.13.1 in /webapp
Bumps [vuex-i18n](https://github.com/dkfbasel/vuex-i18n) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/dkfbasel/vuex-i18n/releases)
- [Commits](https://github.com/dkfbasel/vuex-i18n/compare/v1.13.0...v1.13.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-06 04:22:49 +00:00
Robert Schäfer
a67cfa88be Refactor terms-and-conditions
* DRY template
* avoid numeric translations keys - if you can, use telling translations
keys
* fix links! @ogerly so many hrefs pointing to http://localhost:3000/...
how is that possible?
2019-08-06 00:50:58 +02:00
ogerly
550bf2cf69 language file adapted 2019-08-06 00:37:17 +02:00
ogerly
8757402564 add v-html on element, fixed lint 2019-08-06 00:37:17 +02:00
ogerly
8f67c60f73 Fix terms and conditions template, english and german 2019-08-06 00:30:18 +02:00
Robert Schäfer
71707dc940 Implement a German-only static data-privacy page
Okay, so the data privacy section needs to be updated @datenbrei:
We have two sections mentioning the Vimeo and Youtube plugins. After we
have the Embeds in place, we have many many more embedded code of 3rd
parties. Can we simply remove the two sections?

Also regarding the translations: I would wait until we have functional
components and we can write translations enriched by markup. Until then
I think it's sufficient to have German-only data privacy page.
2019-08-06 00:14:41 +02:00
ogerly
1d130f32c2 Make static pages in footer publicly accessible 2019-08-05 23:25:01 +02:00
Robert Schäfer
18c066d17d The home button brings us to /login already
@ogerly by the way: Prefer `v-else` instaed of double `if-clauses` -
less errors.
2019-08-05 23:22:13 +02:00
Robert Schäfer
a6f5fe8ea3 Rename privacy->data-privacy 2019-08-05 23:19:20 +02:00
ogerly
330b2fb590 edit layout default for gasts 2019-08-05 23:19:20 +02:00
Robert Schäfer
4b2a1d93f5 Refactor code-of-conduct
* Add link in footer
* DRY template
* Structure translations into sections with a telling name
* Fix typos and links
2019-08-05 22:56:36 +02:00
Robert Schäfer
56100010ec DRY template, restructure translations 2019-08-05 22:56:36 +02:00
ogerly
80d80f9c61 change add v-html, fixed lint 2019-08-05 22:56:36 +02:00
ogerly
29dc306187 add page code-of-conduct, english and german 2019-08-05 22:56:36 +02:00
Robert Schäfer
dc132c28be
Merge pull request #1184 from Human-Connection/A-1004-Page-to-display-Changelog
changes and history template, english, german
2019-08-05 22:00:14 +02:00
Robert Schäfer
49acea9767 Improve changelog and translations
* remove unnecessary markup
* remove manual translations of dates (we have a helper for that)
* fix typos and English translations
2019-08-05 20:45:40 +02:00
Robert Schäfer
52e0361087 Fixing pasteRules for Embeds
Apparently the default pasteRules of tiptap interfere with the
pasteRules of a Link (in our case an Embed node). Consider this example:

https://de.wikipedia.org/wiki/Yin_und_Yang

Depending on some random conditions, tiptap might parse the `_und_` to be
italic because it's wrapped with underscores (markdown syntax). The
result is:

https://de.wikipedia.org/wiki/Yin # link
_und_                             # italic
Yang                              # plain text

So let's remove the default pasteRules of `Bold`, `Strike` and `Italic`
marks respectively to prefer our Embeds. Who is copy+pasting from one
tiptap editor to another tiptap editor anyways?
2019-08-05 17:26:50 +02:00
Robert Schäfer
8093fece00 Update URL regex taking e.g. "?" into account 2019-08-05 13:25:50 +02:00