Commit Graph

272 Commits

Author SHA1 Message Date
NGPixel 5ffa189383 fix: add v-pre to pre tags at render time 2021-03-11 19:23:24 -05:00
Kevyn Bruyere b106018029 fix: LDAP - avoid reading empty tls cert file (#2980)
Co-authored-by: Kevyn Bruyere <kevyn@inovasi.fr>
2021-01-31 01:03:24 -05:00
Adrián Martínez Interactiv4 52304a8149 fix: update storage.js to match pageHelper.injectPageMetadata (#2832)
* Update storage.js to match pageHelper.injectPageMetadata

At pageHelper.injectPageMetadata references editorKey and tags to build metadata, but this data seems not to be supplied to this function, since page object is only built from specified columns.

As a result, tags are always empty when exporting pages, and editor key appears as undefined.

It happens also with git storage, but may happen with another storage providers.

I run into this issue running Wiki.js 2.5.170 with the following Docker stack:

CONTAINER ID        IMAGE                                   COMMAND                  CREATED             STATUS              PORTS                                         NAMES
39373979b693        requarks/wiki:2                         "docker-entrypoint.s…"   44 minutes ago      Up 9 minutes        0.0.0.0:80->3000/tcp, 0.0.0.0:443->3443/tcp   wiki
608de6278aaa        requarks/wiki-update-companion:latest   "dotnet wiki-update-…"   5 months ago        Up 6 hours          80/tcp                                        wiki-update-companion
12c7b35ba295        postgres:11                             "docker-entrypoint.s…"   5 months ago        Up 6 hours          5432/tcp                                      db

* Provide id to allow to query for tags

* Update git storage to provide editorKey and tags
2021-01-29 14:15:22 -05:00
scienceasdf d89224405c feat: set analyzer for elasticsearch (#2793)
* Feature: Custom configuration for elasticsearch

For better search results especially in Chinese, which the standard token analyzer may not work well.

* Set default analyzer in settings when building index

* Remove dangling comma
2020-12-08 21:41:45 -05:00
avioral 089b7850d9 fix: broken draw io diagram on rtl mode, improve elasticsearch config (#2647)
* - Modify elastic settings
- Add tags field to index
- Modify elastic search query
- Remove empty entities from build suggests list

* Fix map parser error

* - Fix broken drawio svg diagram (rtl issue)

* - Restore the spaces in objects to respect the project formatting rules.
- Omit explanation line
2020-11-02 11:59:34 -05:00
YAEGASHI Takeshi a3513b1bdf fix: enable passport-azure-ad workaround for SameSite cookies (#2567)
This adds cookieEncryptionKeyString configuration in the Azure AD
authentication module.  It represents an array of cookie encryption
strings and enables workaround for SameSite cookies.
2020-11-01 13:10:50 -05:00
Chris a6bf2412d7 fix: superscript typo in module definition.yml (#2577)
Fix spelling of "superscript"
***NO_CI***
2020-11-01 13:08:04 -05:00
Nicolas Giard 04a1896811 fix: revert refactor in markdown-kroki and plantuml modules (#2619) 2020-10-25 23:26:55 -04:00
Jafar Akhondali 5ba36ee421 refactor: server code (#2545)
+ Remove duplicated await
+ Replace some legacy codes with ES6
+ Fix some of eslint problems
2020-10-14 11:16:27 -04:00
Aaron 23e3403054 fix: update Matomo integration client code (#2526)
Signed-off-by: Aaron <admin@datahoarder.dev>
2020-10-03 16:22:02 -04:00
NGPixel b0f61d6605 feat: rocket.chat auth module 2020-09-20 20:15:51 -04:00
Иван 79c5b8fac2 fix: security html module removes allow attribute from iframes (#2354)
* fix: secure html module removes allowfullscreen, allow and frameborder attributes from iframes
* Apply suggestions from code review
fix: remove deprecated attributes for iframe in secure html module

Co-authored-by: Nicolas Giard <github@ngpixel.com>
2020-09-13 13:55:32 -04:00
Riccardo Re 660b78d9e2 fix: support permissions by tags for basic db search engine (#2416)
This code will allow the "search" component to correctly filter pages by usergroup permissions based on tags instead of paths

Co-authored-by: Riccardo Re <riccardo.re@clevermind.cloud>
2020-09-13 13:53:31 -04:00
NGPixel 8f6cba262f fix: draw.io svgs are no longer removed with linebreaks (#2415) 2020-09-12 14:05:24 -04:00
NGPixel f988c5f811 fix: logout URL endpoint option for oauth2 module 2020-09-09 20:20:55 -04:00
NGPixel aa96e97028 fix: force lowercase for email on local auth 2020-09-09 19:59:46 -04:00
Rus 68d31af7af fix: discord auth module new URL. (#2390)
Change "discordapp.com" to "discord.com"
2020-09-07 20:04:19 -04:00
NGPixel 78417524b3 feat: ldap avatar support 2020-09-07 20:02:33 -04:00
NGPixel 9f1ba0a32f fix: elastic apm rum client script 2020-09-06 16:57:45 -04:00
NGPixel 17f8071abe fix: LDAP missing reqToCallback 2020-09-05 15:19:18 -04:00
NGPixel 062a0b7979 feat: logout by auth strategy + keycloak implementation 2020-09-01 20:01:39 -04:00
jaljo cda1f1e805 feat: export creation date in dumped content (#2345)
* Export creation date in dumped content

* date_creation -> dateCreated

Co-authored-by: Joris Langlois <joris.langlois@knplabs.com>
2020-08-31 11:28:55 -04:00
NGPixel 4dcf664040 fix: handle removed auth strategies 2020-08-30 16:33:52 -04:00
NGPixel 32d67adee1 feat: social login providers with dynamic instances 2020-08-30 01:36:37 -04:00
Dan Nicholson d5d368cd33 feat: fix + enable OIDC auth method (#2282)
* fix: pass userinfo URL in oidc strategy

The userinfo URL from the definition was not being provided to the
passport strategy, which resulted in a type error trying to resolve the
user's profile. Furthermore, the name of the defined URL was
inconsistent with all other authentication method URLs.

* fix: pass all necessary scopes to oidc auth method

When no scopes are provided, passport-openidconnect uses only `openid`,
which does not contain the username or email address. Include `profile`
and `email` to ensure the necessary claims are included.

* fix: update oidc method to call processProfile correctly

Now the profile object and providerKey are passed to processProfile. The
usernameClaim no longer has any use as the email address is the
username.

* fix: mark oidc authentication method as available
2020-08-15 13:32:58 -04:00
NGPixel 26af63a80b fix: login input hints 2020-07-20 00:22:29 -04:00
NGPixel be499e5795 fix: auth strategy dependent username label 2020-07-19 13:20:43 -04:00
NGPixel 52d0af19b4 feat: diagram rendering + post-processor (wip) 2020-07-12 15:58:45 -04:00
Regev Brody b2ff064d34 fix: stream assets from storage local locations (#2087) 2020-07-12 12:19:01 -04:00
Nicolas Giard c009cc1392 feat: new login experience (#2139)
* feat: multiple auth instances

* fix: auth setup + strategy initialization

* feat: admin auth - add strategy

* feat: redirect on login - group setting

* feat: oauth2 generic - props definitions

* feat: new login UI (wip)

* feat: new login UI (wip)

* feat: admin security login settings

* feat: tabset editor indicators + print view improvements

* fix: code styling
2020-07-03 19:36:33 -04:00
Regev Brody 41327dd1e8 feat: support MultiMarkdown tables (#2126) 2020-07-03 17:46:07 -04:00
TakeruDMC cf3a48a6fa fix: "undefined" error on deletePage by git storage (#2132) 2020-07-03 17:44:42 -04:00
Maho Hiyajo ea3962d143 fix: change discord module ‘discordapp.com’ to ‘discord.com’ (#2117) 2020-06-27 17:01:00 -04:00
Nicolas Giard 2409b286da fix: matomo module siteId 2020-06-26 15:34:53 -04:00
NGPixel b723d7d626 fix: markdown core props + styles/scripts permissions 2020-06-18 22:49:26 -04:00
Regev Brody 77086a6e0a feat: optional kroki/plantuml svg caching (#2047)
* feat: Caching kroki svgs #2020
2020-06-18 18:39:25 -04:00
Regev Brody e03a80dccc feat: underline markdown support (#2073)
* fix: no markdown support for underline #2072
2020-06-18 18:37:24 -04:00
jonasjoest 3b055f2ed5 fix: use first email address when retrieving multiple from LDAP (#2051)
Signed-off-by: Jonas Jöst <jonas@gpplanet.de>
2020-06-16 00:11:38 -04:00
Nicolas Giard 9e08718ee9 Merge pull request from GHSA-9jgg-4xj2-vjjj 2020-06-13 21:43:21 -04:00
Regev Brody 037822b994 fix: secure html module removes target attribute from links (#2012) 2020-06-07 19:23:33 -04:00
NGPixel ca0708ea75 feat: extra options for generic S3 module 2020-06-07 18:28:16 -04:00
NGPixel e45145986a feat: generic S3 module 2020-06-07 18:08:33 -04:00
NGPixel 7a946ec0f5 feat: edit comment 2020-05-31 18:15:15 -04:00
NGPixel e74605501f feat: comments post min delay 2020-05-31 15:54:20 -04:00
NGPixel 8a74904731 feat: comments delete + refresh on post + formatting 2020-05-31 02:13:41 -04:00
NGPixel 1f9e5b3fd0 feat: delete user with replace target 2020-05-30 16:34:09 -04:00
NGPixel 1222355046 feat: comments - default provider create (wip) + permissions 2020-05-26 22:56:24 -04:00
NGPixel e1382771cf feat: extensions check + resolver 2020-05-21 00:20:57 -04:00
NGPixel 887e8a0f5a feat: comments disqus + commento 2020-05-21 00:20:57 -04:00
NGPixel f6bad765a2 feat: assets move + comments migration + admin users UI 2020-05-21 00:20:57 -04:00