Date: Thu, 26 Aug 2021 11:49:21 +1200
Subject: [PATCH 10/69] Rearrange BrewItem metadata items - put `authors` first
on it's own line
---
client/homebrew/pages/userPage/brewItem/brewItem.jsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/client/homebrew/pages/userPage/brewItem/brewItem.jsx b/client/homebrew/pages/userPage/brewItem/brewItem.jsx
index be0583f88..88eb2217c 100644
--- a/client/homebrew/pages/userPage/brewItem/brewItem.jsx
+++ b/client/homebrew/pages/userPage/brewItem/brewItem.jsx
@@ -110,6 +110,10 @@ const BrewItem = createClass({
+
+ {brew.authors.join(', ')}
+
+
{brew.views}
@@ -122,10 +126,6 @@ const BrewItem = createClass({
{moment(brew.updatedAt).fromNow()}
{this.renderGoogleDriveIcon()}
-
-
- {brew.authors.join(', ')}
-
From 755d8591aa540e4de1af1c3a4e7f65f87009f2bc Mon Sep 17 00:00:00 2001
From: "G.Ambatte"
Date: Thu, 26 Aug 2021 12:48:02 +1200
Subject: [PATCH 11/69] Add small gap to keep Google Drive icon clear of
characters in brew author's name. Remove unnecessary/incorrect `display`
line.
---
client/homebrew/pages/userPage/brewItem/brewItem.less | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/client/homebrew/pages/userPage/brewItem/brewItem.less b/client/homebrew/pages/userPage/brewItem/brewItem.less
index b5250ae8c..d323874f5 100644
--- a/client/homebrew/pages/userPage/brewItem/brewItem.less
+++ b/client/homebrew/pages/userPage/brewItem/brewItem.less
@@ -27,12 +27,11 @@
.info{
position: initial;
bottom: 2px;
- margin-bottom: 4px;
font-family : ScalySans;
font-size : 1.2em;
&>span{
- display : float;
margin-right : 12px;
+ line-height : 1.5em;
}
}
&:hover{
From 2b89efc923d19ba0e640f9e9ef2dbf051d38d0f1 Mon Sep 17 00:00:00 2001
From: blitzher
Date: Sun, 29 Aug 2021 00:49:13 +0200
Subject: [PATCH 12/69] Moved server start log to `app.listen` callback
---
server.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/server.js b/server.js
index fbf741ec0..07d8a1bbe 100644
--- a/server.js
+++ b/server.js
@@ -280,5 +280,6 @@ app.use((err, req, res, next)=>{
//^=====--------------------------------------=====^//
const PORT = process.env.PORT || config.get('web_port') || 8000;
-app.listen(PORT);
-console.log(`server on port:${PORT}`);
+app.listen(PORT, () => {
+ console.log(`server on port:${PORT}`);
+});
From c541fd551ef6b52553c8d32f713c55201f11345c Mon Sep 17 00:00:00 2001
From: blitzher
Date: Sun, 29 Aug 2021 00:54:51 +0200
Subject: [PATCH 13/69] Removed spaces before and after arrow in callback
function
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 07d8a1bbe..e89edaa7e 100644
--- a/server.js
+++ b/server.js
@@ -280,6 +280,6 @@ app.use((err, req, res, next)=>{
//^=====--------------------------------------=====^//
const PORT = process.env.PORT || config.get('web_port') || 8000;
-app.listen(PORT, () => {
+app.listen(PORT, ()=>{
console.log(`server on port:${PORT}`);
});
From 3063337eb211a4e83d3db65edeb3cd4297783183 Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Sun, 5 Sep 2021 15:40:08 -0500
Subject: [PATCH 14/69] update v3 drop cap tweak to match new styling
and change v3 drop cap to use only `background` rather than `background-image` so that the tweak snippet can easily change between gradient and just a regular color.
and re-order table menu so that the regular table snippet is at top.
---
.../editor/snippetbar/snippets/snippets.js | 65 +++++++++----------
.../snippetbar/snippetsLegacy/snippets.js | 20 +++---
themes/5ePhb.style.less | 2 +-
3 files changed, 43 insertions(+), 44 deletions(-)
diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js
index 37f37e2b6..b965e59a2 100644
--- a/client/homebrew/editor/snippetbar/snippets/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippets/snippets.js
@@ -106,11 +106,10 @@ module.exports = [
icon : 'fas fa-sliders-h',
gen : '/* Drop Cap settings */\n' +
'.phb3 h1 + p::first-letter {\n' +
- ' float: left;\n' +
' font-family: SolberaImitationRemake;\n' +
' font-size: 3.5cm;\n' +
- ' color: #222;\n' +
- ' line-height: .8em;\n' +
+ ' background: linear-gradient(-45deg, #322814, #998250, #322814);\n' +
+ ' line-height: 1em;\n' +
'}\n'
},
{
@@ -265,36 +264,6 @@ module.exports = [
icon : 'fas fa-table',
view : 'text',
snippets : [
- {
- name : 'Class Table',
- icon : 'fas fa-table',
- gen : ClassTableGen.full('classTable,frame,decoration,wide'),
- },
- {
- name : 'Class Table (unframed)',
- icon : 'fas fa-border-none',
- gen : ClassTableGen.full('classTable,wide'),
- },
- {
- name : '1/2 Class Table',
- icon : 'fas fa-list-alt',
- gen : ClassTableGen.half('classTable,decoration,frame'),
- },
- {
- name : '1/2 Class Table (unframed)',
- icon : 'fas fa-border-none',
- gen : ClassTableGen.half('classTable'),
- },
- {
- name : '1/3 Class Table',
- icon : 'fas fa-border-all',
- gen : ClassTableGen.third('classTable,frame'),
- },
- {
- name : '1/3 Class Table (unframed)',
- icon : 'fas fa-border-none',
- gen : ClassTableGen.third('classTable'),
- },
{
name : 'Table',
icon : 'fas fa-th-list',
@@ -354,6 +323,36 @@ module.exports = [
}}
\n`;
}
+ },
+ {
+ name : 'Class Table',
+ icon : 'fas fa-table',
+ gen : ClassTableGen.full('classTable,frame,decoration,wide'),
+ },
+ {
+ name : 'Class Table (unframed)',
+ icon : 'fas fa-border-none',
+ gen : ClassTableGen.full('classTable,wide'),
+ },
+ {
+ name : '1/2 Class Table',
+ icon : 'fas fa-list-alt',
+ gen : ClassTableGen.half('classTable,decoration,frame'),
+ },
+ {
+ name : '1/2 Class Table (unframed)',
+ icon : 'fas fa-border-none',
+ gen : ClassTableGen.half('classTable'),
+ },
+ {
+ name : '1/3 Class Table',
+ icon : 'fas fa-border-all',
+ gen : ClassTableGen.third('classTable,frame'),
+ },
+ {
+ name : '1/3 Class Table (unframed)',
+ icon : 'fas fa-border-none',
+ gen : ClassTableGen.third('classTable'),
}
]
},
diff --git a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
index b7caaa82e..fbf5cd359 100644
--- a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
@@ -204,16 +204,6 @@ module.exports = [
icon : 'fas fa-table',
view : 'text',
snippets : [
- {
- name : 'Class Table',
- icon : 'fas fa-table',
- gen : ClassTableGen.full,
- },
- {
- name : 'Half Class Table',
- icon : 'fas fa-list-alt',
- gen : ClassTableGen.half,
- },
{
name : 'Table',
icon : 'fas fa-th-list',
@@ -275,6 +265,16 @@ module.exports = [
'
\n\n',
].join('\n');
},
+ },
+ {
+ name : 'Class Table',
+ icon : 'fas fa-table',
+ gen : ClassTableGen.full,
+ },
+ {
+ name : 'Half Class Table',
+ icon : 'fas fa-list-alt',
+ gen : ClassTableGen.half,
}
]
},
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less
index e17a9038e..74ec8d8d1 100644
--- a/themes/5ePhb.style.less
+++ b/themes/5ePhb.style.less
@@ -145,7 +145,7 @@ body {
margin-top :-0.3cm;
padding-bottom :2px;
margin-bottom :-20px;
- background-image : linear-gradient(-45deg, #322814, #998250, #322814);
+ background : linear-gradient(-45deg, #322814, #998250, #322814);
background-clip : text;
-webkit-background-clip : text;
color : rgba(0, 0, 0, 0);
From ad5d7d20979db64f1a73f4933f57063848af0c7a Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Sun, 5 Sep 2021 16:21:23 -0500
Subject: [PATCH 15/69] added dedents
---
.../editor/snippetbar/snippets/snippets.js | 60 ++++++++-----------
.../snippetbar/snippetsLegacy/snippets.js | 28 ++++-----
2 files changed, 40 insertions(+), 48 deletions(-)
diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js
index b965e59a2..91260f396 100644
--- a/client/homebrew/editor/snippetbar/snippets/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippets/snippets.js
@@ -82,9 +82,7 @@ module.exports = [
{
name : 'Add Comment',
icon : 'fas fa-code',
- gen : dedent`\n
-
- `
+ gen : ''
},
]
},
@@ -96,28 +94,26 @@ module.exports = [
{
name : 'Remove Drop Cap',
icon : 'fas fa-remove-format',
- gen : '/* Removes Drop Caps */\n' +
- '.phb3 h1+p:first-letter {\n' +
- ' all: unset;\n' +
- '}\n'
+ gen : dedent`/* Removes Drop Caps */
+ .phb3 h1+p:first-letter {
+ all: unset;
+ }\n\n`
},
{
name : 'Tweak Drop Cap',
icon : 'fas fa-sliders-h',
- gen : '/* Drop Cap settings */\n' +
- '.phb3 h1 + p::first-letter {\n' +
- ' font-family: SolberaImitationRemake;\n' +
- ' font-size: 3.5cm;\n' +
- ' background: linear-gradient(-45deg, #322814, #998250, #322814);\n' +
- ' line-height: 1em;\n' +
- '}\n'
+ gen : dedent`/* Drop Cap settings */
+ .phb3 h1 + p::first-letter {
+ font-family: SolberaImitationRemake;
+ font-size: 3.5cm;
+ background: linear-gradient(-45deg, #322814, #998250, #322814);
+ line-height: 1em;
+ }\n\n`
},
{
name : 'Add Comment',
icon : 'fas fa-code',
- gen : dedent`\n
- /* This is a comment that will not be rendered into your brew. */
- `
+ gen : '/* This is a comment that will not be rendered into your brew. */'
},
]
},
@@ -370,26 +366,22 @@ module.exports = [
{
name : 'A4 Page Size',
icon : 'far fa-file',
- gen : ['/* A4 Page Size */',
- '.page{',
- ' width : 210mm;',
- ' height : 296.8mm;',
- '}',
- ''
- ].join('\n')
+ gen : dedent`/* A4 Page Size */
+ .page{
+ width : 210mm;
+ height : 296.8mm;
+ }\n\n`
},
{
name : 'Square Page Size',
icon : 'far fa-file',
- gen : ['/* Square Page Size */',
- '.page {',
- ' width : 125mm;',
- ' height : 125mm;',
- ' padding : 12.5mm;',
- ' columns : unset;',
- '}',
- ''
- ].join('\n')
+ gen : dedent`/* Square Page Size */
+ .page {
+ width : 125mm;
+ height : 125mm;
+ padding : 12.5mm;
+ columns : unset;
+ }\n\n`
},
{
name : 'Ink Friendly',
@@ -407,7 +399,7 @@ module.exports = [
.page img {
visibility : hidden;
- }`
+ }\n\n`
},
]
},
diff --git a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
index fbf5cd359..b47c68831 100644
--- a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
@@ -81,7 +81,7 @@ module.exports = [
{
name : 'Add Comment',
icon : 'fas fa-code',
- gen : `\n\n\n`
+ gen : ''
}
]
},
@@ -95,27 +95,27 @@ module.exports = [
{
name : 'Remove Drop Cap',
icon : 'fas fa-remove-format',
- gen : '/* Removes Drop Caps */\n' +
- '.phb h1+p:first-letter {\n' +
- ' all: unset;\n' +
- '}\n'
+ gen : dedent`/* Removes Drop Caps */
+ .phb h1+p:first-letter {
+ all: unset;
+ }\n\n`
},
{
name : 'Tweak Drop Cap',
icon : 'fas fa-sliders-h',
- gen : '/* Drop Cap Settings */\n' +
- '.phb h1 + p::first-letter {\n' +
- ' float: left;\n' +
- ' font-family: Solberry;\n' +
- ' font-size: 10em;\n' +
- ' color: #222;\n' +
- ' line-height: .8em;\n' +
- '}\n'
+ gen : dedent`/* Drop Cap Settings */
+ .phb h1 + p::first-letter {
+ float: left;
+ font-family: Solberry;
+ font-size: 10em;
+ color: #222;
+ line-height: .8em;
+ }\n\n`
},
{
name : 'Add Comment',
icon : 'fas fa-code',
- gen : `\n/* This is a comment that will not be rendered into your brew. */\n\n`
+ gen : '/* This is a comment that will not be rendered into your brew. */'
}
]
},
From 6d6beb23b13d9fc1e3e65ade1c05727c33a6d0e6 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 6 Sep 2021 03:01:02 +0000
Subject: [PATCH 16/69] Bump dedent-tabs from 0.9.0 to 0.10.0
Bumps [dedent-tabs](https://github.com/adrianjost/dedent-tabs) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/adrianjost/dedent-tabs/releases)
- [Commits](https://github.com/adrianjost/dedent-tabs/compare/v0.9.0...v0.10.0)
---
updated-dependencies:
- dependency-name: dedent-tabs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index fa82c7e54..5916f052d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -18,7 +18,7 @@
"codemirror": "^5.62.3",
"cookie-parser": "^1.4.5",
"create-react-class": "^15.7.0",
- "dedent-tabs": "^0.9.0",
+ "dedent-tabs": "^0.10.0",
"express": "^4.17.1",
"express-async-handler": "^1.1.4",
"express-static-gzip": "2.1.1",
@@ -3458,9 +3458,9 @@
}
},
"node_modules/dedent-tabs": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/dedent-tabs/-/dedent-tabs-0.9.0.tgz",
- "integrity": "sha512-XpJr3b3pX6XHK0MDE9/hF2AxAIqzeBhBWqQ22PlzEZFqR31N8x44+e/iML76cwVvhjVqk1BqZeTBS9BrccMJlA=="
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/dedent-tabs/-/dedent-tabs-0.10.0.tgz",
+ "integrity": "sha512-meGhMg4ieQIw/kssncvurnfuDJlMz05Q10EfE/m73Nos8KBU8UUJoMiCf5/ZAzsNmqgf0zan+/i145t2z+9A+Q=="
},
"node_modules/deep-extend": {
"version": "0.6.0",
@@ -12092,9 +12092,9 @@
}
},
"dedent-tabs": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/dedent-tabs/-/dedent-tabs-0.9.0.tgz",
- "integrity": "sha512-XpJr3b3pX6XHK0MDE9/hF2AxAIqzeBhBWqQ22PlzEZFqR31N8x44+e/iML76cwVvhjVqk1BqZeTBS9BrccMJlA=="
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/dedent-tabs/-/dedent-tabs-0.10.0.tgz",
+ "integrity": "sha512-meGhMg4ieQIw/kssncvurnfuDJlMz05Q10EfE/m73Nos8KBU8UUJoMiCf5/ZAzsNmqgf0zan+/i145t2z+9A+Q=="
},
"deep-extend": {
"version": "0.6.0",
diff --git a/package.json b/package.json
index 0f2f2762a..463ada908 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,7 @@
"codemirror": "^5.62.3",
"cookie-parser": "^1.4.5",
"create-react-class": "^15.7.0",
- "dedent-tabs": "^0.9.0",
+ "dedent-tabs": "^0.10.0",
"express": "^4.17.1",
"express-async-handler": "^1.1.4",
"express-static-gzip": "2.1.1",
From 85447e0b6ae9b068a6de1e6bf651e7e0e49705f6 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 6 Sep 2021 04:41:08 +0000
Subject: [PATCH 17/69] Bump @babel/core from 7.15.0 to 7.15.5
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.15.0 to 7.15.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.15.5/packages/babel-core)
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 82 +++++++++++++++++++++++------------------------
package.json | 2 +-
2 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index f82677eee..93fdab388 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,7 @@
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
- "@babel/core": "^7.15.0",
+ "@babel/core": "^7.15.5",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.4",
"@babel/preset-react": "^7.14.5",
@@ -72,19 +72,19 @@
}
},
"node_modules/@babel/core": {
- "version": "7.15.0",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.0.tgz",
- "integrity": "sha512-tXtmTminrze5HEUPn/a0JtOzzfp0nk+UEXQ/tqIJo3WDGypl/2OFQEMll/zSFU8f/lfmfLXvTaORHF3cfXIQMw==",
+ "version": "7.15.5",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.5.tgz",
+ "integrity": "sha512-pYgXxiwAgQpgM1bNkZsDEq85f0ggXMA5L7c+o3tskGMh2BunCI9QUwB9Z4jpvXUOuMdyGKiGKQiRe11VS6Jzvg==",
"dependencies": {
"@babel/code-frame": "^7.14.5",
- "@babel/generator": "^7.15.0",
- "@babel/helper-compilation-targets": "^7.15.0",
- "@babel/helper-module-transforms": "^7.15.0",
- "@babel/helpers": "^7.14.8",
- "@babel/parser": "^7.15.0",
- "@babel/template": "^7.14.5",
- "@babel/traverse": "^7.15.0",
- "@babel/types": "^7.15.0",
+ "@babel/generator": "^7.15.4",
+ "@babel/helper-compilation-targets": "^7.15.4",
+ "@babel/helper-module-transforms": "^7.15.4",
+ "@babel/helpers": "^7.15.4",
+ "@babel/parser": "^7.15.5",
+ "@babel/template": "^7.15.4",
+ "@babel/traverse": "^7.15.4",
+ "@babel/types": "^7.15.4",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
@@ -483,13 +483,13 @@
}
},
"node_modules/@babel/helpers": {
- "version": "7.14.8",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.14.8.tgz",
- "integrity": "sha512-ZRDmI56pnV+p1dH6d+UN6GINGz7Krps3+270qqI9UJ4wxYThfAIcI5i7j5vXC4FJ3Wap+S9qcebxeYiqn87DZw==",
+ "version": "7.15.4",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz",
+ "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==",
"dependencies": {
- "@babel/template": "^7.14.5",
- "@babel/traverse": "^7.14.8",
- "@babel/types": "^7.14.8"
+ "@babel/template": "^7.15.4",
+ "@babel/traverse": "^7.15.4",
+ "@babel/types": "^7.15.4"
},
"engines": {
"node": ">=6.9.0"
@@ -538,9 +538,9 @@
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
},
"node_modules/@babel/parser": {
- "version": "7.15.4",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.4.tgz",
- "integrity": "sha512-xmzz+7fRpjrvDUj+GV7zfz/R3gSK2cOxGlazaXooxspCr539cbTXJKvBJzSVI2pPhcRGquoOtaIkKCsHQUiO3w==",
+ "version": "7.15.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.5.tgz",
+ "integrity": "sha512-2hQstc6I7T6tQsWzlboMh3SgMRPaS4H6H7cPQsJkdzTzEGqQrpLDsE2BGASU5sBPoEQyHzeqU6C8uKbFeEk6sg==",
"bin": {
"parser": "bin/babel-parser.js"
},
@@ -9510,19 +9510,19 @@
"integrity": "sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA=="
},
"@babel/core": {
- "version": "7.15.0",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.0.tgz",
- "integrity": "sha512-tXtmTminrze5HEUPn/a0JtOzzfp0nk+UEXQ/tqIJo3WDGypl/2OFQEMll/zSFU8f/lfmfLXvTaORHF3cfXIQMw==",
+ "version": "7.15.5",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.5.tgz",
+ "integrity": "sha512-pYgXxiwAgQpgM1bNkZsDEq85f0ggXMA5L7c+o3tskGMh2BunCI9QUwB9Z4jpvXUOuMdyGKiGKQiRe11VS6Jzvg==",
"requires": {
"@babel/code-frame": "^7.14.5",
- "@babel/generator": "^7.15.0",
- "@babel/helper-compilation-targets": "^7.15.0",
- "@babel/helper-module-transforms": "^7.15.0",
- "@babel/helpers": "^7.14.8",
- "@babel/parser": "^7.15.0",
- "@babel/template": "^7.14.5",
- "@babel/traverse": "^7.15.0",
- "@babel/types": "^7.15.0",
+ "@babel/generator": "^7.15.4",
+ "@babel/helper-compilation-targets": "^7.15.4",
+ "@babel/helper-module-transforms": "^7.15.4",
+ "@babel/helpers": "^7.15.4",
+ "@babel/parser": "^7.15.5",
+ "@babel/template": "^7.15.4",
+ "@babel/traverse": "^7.15.4",
+ "@babel/types": "^7.15.4",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
@@ -9818,13 +9818,13 @@
}
},
"@babel/helpers": {
- "version": "7.14.8",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.14.8.tgz",
- "integrity": "sha512-ZRDmI56pnV+p1dH6d+UN6GINGz7Krps3+270qqI9UJ4wxYThfAIcI5i7j5vXC4FJ3Wap+S9qcebxeYiqn87DZw==",
+ "version": "7.15.4",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz",
+ "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==",
"requires": {
- "@babel/template": "^7.14.5",
- "@babel/traverse": "^7.14.8",
- "@babel/types": "^7.14.8"
+ "@babel/template": "^7.15.4",
+ "@babel/traverse": "^7.15.4",
+ "@babel/types": "^7.15.4"
}
},
"@babel/highlight": {
@@ -9863,9 +9863,9 @@
}
},
"@babel/parser": {
- "version": "7.15.4",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.4.tgz",
- "integrity": "sha512-xmzz+7fRpjrvDUj+GV7zfz/R3gSK2cOxGlazaXooxspCr539cbTXJKvBJzSVI2pPhcRGquoOtaIkKCsHQUiO3w=="
+ "version": "7.15.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.5.tgz",
+ "integrity": "sha512-2hQstc6I7T6tQsWzlboMh3SgMRPaS4H6H7cPQsJkdzTzEGqQrpLDsE2BGASU5sBPoEQyHzeqU6C8uKbFeEk6sg=="
},
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {
"version": "7.15.4",
diff --git a/package.json b/package.json
index 84b4a81ef..4a4eecc4e 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,7 @@
]
},
"dependencies": {
- "@babel/core": "^7.15.0",
+ "@babel/core": "^7.15.5",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.4",
"@babel/preset-react": "^7.14.5",
From 3f3aa6edd14322a20aae6a693de9977ae3cc207b Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Tue, 7 Sep 2021 00:21:45 -0400
Subject: [PATCH 18/69] Remove Old Styles
---
themes/5ePhb.style.less | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less
index e17a9038e..f8dcaef08 100644
--- a/themes/5ePhb.style.less
+++ b/themes/5ePhb.style.less
@@ -537,13 +537,6 @@ body {
visibility : hidden;
margin : 0px;
}
- //Modified unorder list, used in spells
- hr+ul{
- margin-bottom : 0.5em;
- padding-left : 1em;
- text-indent : -1em;
- list-style-type : none;
- }
.columnSplit {
visibility : hidden;
-webkit-column-break-after : always;
@@ -561,10 +554,6 @@ body {
page-break-inside : avoid;
break-inside : avoid;
}
- //Better spacing for spell blocks
- h4+p+hr+ul{
- margin-top : -0.5em
- }
//Text indent right after table
table+p{
text-indent : 1em;
From 57df6aa32177a2e89ae45e1852b01143c758450a Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Tue, 7 Sep 2021 15:43:52 -0400
Subject: [PATCH 19/69] Clarify in Intro that Legacy cannot directly transfer
to V3
---
client/homebrew/pages/homePage/welcome_msg_v3.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/homebrew/pages/homePage/welcome_msg_v3.md b/client/homebrew/pages/homePage/welcome_msg_v3.md
index 553d7aa2e..a0be467ed 100644
--- a/client/homebrew/pages/homePage/welcome_msg_v3.md
+++ b/client/homebrew/pages/homePage/welcome_msg_v3.md
@@ -47,7 +47,7 @@ If you want to save ink or have a monochrome printer, add the {{fas,fa-tint}} **
## New in V3.0.0
With the latest major update to *The Homebrewery* we've implemented an extended Markdown-like syntax for block and span elements, plus a few other changes, eliminating the need for HTML tags like `div` and `span` in most cases. No raw HTML tags should be needed in a brew, and going forward, raw HTML will no longer receive debugging support (*but can still be used if you insist*).
-All brews made prior to the release of v3.0.0 will still render normally, and you may switch between the "legacy" brew renderer and the newer "V3" renderer via the {{fa,fa-info-circle}} **Properties** button on your brew. Much of the syntax and styling has changed in V3, so code in one version may be broken in the other.
+Much of the syntax and styling has changed in V3. Code in one version may be broken in the other, and updating an older brew to V3 will require more than just a copy and paste. *However*, all brews made prior to the release of v3.0.0 will still render normally, and you may switch between the "Legacy" brew renderer and the newer "V3" renderer via the {{fa,fa-info-circle}} **Properties** button on your brew at any time.
Scroll down to the next page for a brief summary of the changes and new features available in V3!
From 7a44e37970fc4f3a89f6c1b6b78b92266f166609 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Tue, 7 Sep 2021 23:52:38 -0400
Subject: [PATCH 20/69] Fix "block"s to be inline-block, width 100%
* Use border-image-width to allow border to encroach into text area without using ::before element for the border.
* Rearrange things so .wide is last; makes sure wide is always displayed as `block` with priority over mustache divs default `inline-block`
* Fix main page column-gap
* adjust font size inside .note and .descriptive
---
themes/5ePhb.style.less | 96 +++++++++++++++++++----------------------
1 file changed, 45 insertions(+), 51 deletions(-)
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less
index f8dcaef08..58880c5a9 100644
--- a/themes/5ePhb.style.less
+++ b/themes/5ePhb.style.less
@@ -19,7 +19,7 @@ body {
}
.useSansSerif(){
font-family : ScalySansRemake;
- font-size : 0.325cm;
+ font-size : 0.318cm;
line-height : 1.2em;
p,dl,ul,ol {
line-height : 1.2em;
@@ -51,6 +51,7 @@ body {
max-height : 100%;
column-span : all;
columns : inherit;
+ column-gap : inherit;
}
.page{
.useColumns();
@@ -209,29 +210,21 @@ body {
// * NOTE
// *****************************/
.note{
- &::before{
- content : "";
- box-sizing : border-box;
- border-style : solid;
- border-width : 11px;
- border-image : @noteBorderImage 12;
- border-image-outset : 9px 0px;
- position : absolute;
- width : 100%;
- height : 100%;
- top : 0;
- left : 0;
- }
.useSansSerif();
- position : relative;
- margin-top : 1.3em;
- margin-left : -0.1em;
- margin-right : -0.1em;
background-color : @noteGreen;
+ border-style : solid;
+ border-width : 1px;
+ border-image : @noteBorderImage 12 stretch;
+ border-image-outset : 9px 0px;
+ border-image-width : 11px;
+ margin-top : 9px; //Prevent top border getting cut off on colbreak
+ padding : 0.13cm 0.16cm;
filter : drop-shadow(1px 4px 6px #888);
- padding : 0.5em 0.6em;
& + * {
- margin-top : 1.3em;
+ margin-top : 0.45cm;
+ }
+ h5 {
+ font-size : 0.375cm;
}
p{
display : block;
@@ -241,7 +234,7 @@ body {
padding-top : .8em;
}
:last-child {
- margin-bottom : 0em;
+ margin-bottom : 0;
}
}
//************************************
@@ -249,18 +242,19 @@ body {
// ************************************/
.descriptive{
.useSansSerif();
- display : inline-block;
- margin-top : 1.4em;
background-color : #faf7ea;
- font-family : ScalySansRemake;
border-style : solid;
border-width : 7px;
border-image : @descriptiveBoxImage 12 stretch;
border-image-outset : 4px;
- filter : drop-shadow(0 0 3px #faf7ea);
+ margin-top : 4px; //Prevent top border getting cut off on colbreak
padding : 0.1em;
+ filter : drop-shadow(0 0 3px #faf7ea);
& + * {
- margin-top : 1.4em;
+ margin-top : 0.45cm;
+ }
+ h5 {
+ font-size : 0.375cm;
}
p{
display : block;
@@ -271,7 +265,7 @@ body {
padding-top : .8em;
}
:last-child {
- margin-bottom : 0em;
+ margin-bottom : 0;
}
}
//*****************************
@@ -380,7 +374,6 @@ body {
margin : 0px -6px 1em;
}
- //-webkit-transform : translateZ(0); //Prevents shadows from breaking across columns, but breaks internal columns...
position : relative;
padding : 0px;
margin-bottom : 1em;
@@ -520,12 +513,15 @@ body {
pre code{
width : 100%;
- display : block;
- border : 4px solid;
+ display : inline-block;
+ border-style : solid;
+ border-width : 1px;
border-image : @codeBorderImage 26 stretch;
border-image-width : 10px;
border-image-outset : 2px;
border-radius : 12px;
+ margin-top : 2px; //Prevent top border getting cut off on colbreak
+ margin-bottom : 2px;
& + * {
margin-top : 1em;
}
@@ -543,9 +539,6 @@ body {
break-after : always;
-moz-column-break-after : always;
break-before : column;
- &+* {
- margin-top: 0;
- }
}
//Avoid breaking up
blockquote,table{
@@ -595,19 +588,7 @@ body {
break-inside : auto;
}
}
-//*****************************
-// * WIDE
-// *****************************/
-.page .wide{
- column-span : all;
- -webkit-column-span : all;
- -moz-column-span : all;
- display : block;
- margin-bottom : 0.34cm;
- &+* {
- margin-top : 0;
- }
-}
+
//*****************************
// * CLASS TABLE
// *****************************/
@@ -733,16 +714,15 @@ body {
// *****************************/
.page {
.block {
- break-inside : avoid;
- -webkit-transform : translateZ(0); //Prevents shadows from breaking across columns
+ break-inside : avoid;
+ display : inline-block;
+ min-width : 100%;
+ -webkit-transform : translateZ(0); //Prevents shadows from breaking across columns
}
.inline-block {
display : inline-block;
text-indent : initial;
}
- div {
- column-gap : 0.5cm; //Default spacing if a div uses multicolumns
- }
}
//*****************************
@@ -788,3 +768,17 @@ body {
margin-top: -1em;
}
}
+
+//*****************************
+// * WIDE
+// *****************************/
+.page .wide{
+ column-span : all;
+ -webkit-column-span : all;
+ -moz-column-span : all;
+ display : block;
+ margin-bottom : 0.34cm;
+ &+* {
+ margin-top : 0;
+ }
+}
From f118e9425761cc106eae87d07692b4caf849be4b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 9 Sep 2021 03:00:51 +0000
Subject: [PATCH 21/69] Bump marked from 3.0.2 to 3.0.3
Bumps [marked](https://github.com/markedjs/marked) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v3.0.2...v3.0.3)
---
updated-dependencies:
- dependency-name: marked
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index f82677eee..c82e7f3ff 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -27,7 +27,7 @@
"jwt-simple": "^0.5.6",
"less": "^3.13.1",
"lodash": "^4.17.21",
- "marked": "3.0.2",
+ "marked": "3.0.3",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
"mongoose": "^5.13.7",
@@ -5974,9 +5974,9 @@
}
},
"node_modules/marked": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/marked/-/marked-3.0.2.tgz",
- "integrity": "sha512-TMJQQ79Z0e3rJYazY0tIoMsFzteUGw9fB3FD+gzuIT3zLuG9L9ckIvUfF51apdJkcqc208jJN2KbtPbOvXtbjA==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-3.0.3.tgz",
+ "integrity": "sha512-4oIDhVSQ2s+xNCfek9OnZgCQR/WykGCom02JzIIvi4Pme+MIwPYqvGVW8CQWOXeoZu0TtVB6pTxIuoLm+dKqDA==",
"bin": {
"marked": "bin/marked"
},
@@ -14059,9 +14059,9 @@
}
},
"marked": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/marked/-/marked-3.0.2.tgz",
- "integrity": "sha512-TMJQQ79Z0e3rJYazY0tIoMsFzteUGw9fB3FD+gzuIT3zLuG9L9ckIvUfF51apdJkcqc208jJN2KbtPbOvXtbjA=="
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-3.0.3.tgz",
+ "integrity": "sha512-4oIDhVSQ2s+xNCfek9OnZgCQR/WykGCom02JzIIvi4Pme+MIwPYqvGVW8CQWOXeoZu0TtVB6pTxIuoLm+dKqDA=="
},
"markedLegacy": {
"version": "npm:marked@0.3.19",
diff --git a/package.json b/package.json
index 84b4a81ef..ec408fdd7 100644
--- a/package.json
+++ b/package.json
@@ -58,7 +58,7 @@
"jwt-simple": "^0.5.6",
"less": "^3.13.1",
"lodash": "^4.17.21",
- "marked": "3.0.2",
+ "marked": "3.0.3",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
"mongoose": "^5.13.7",
From 4fae5332fc59158e89c23ec085793a2a9f007765 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Thu, 9 Sep 2021 00:25:52 -0400
Subject: [PATCH 22/69] Change margin spacings between blocks from em to cm
---
themes/5ePhb.style.less | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less
index 58880c5a9..f30adb21e 100644
--- a/themes/5ePhb.style.less
+++ b/themes/5ePhb.style.less
@@ -185,7 +185,7 @@ body {
.useSansSerif();
width : 100%;
& + * {
- margin-top : 1em;
+ margin-top : 0.27cm;
}
thead{
display: table-row-group;
@@ -523,7 +523,7 @@ body {
margin-top : 2px; //Prevent top border getting cut off on colbreak
margin-bottom : 2px;
& + * {
- margin-top : 1em;
+ margin-top : 0.27cm;
}
}
//*****************************
From 5d42196297c9afa9232a1867d66b17e4df29a0ae Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Thu, 9 Sep 2021 09:14:16 -0400
Subject: [PATCH 23/69] Give spellList "wide" class for consistency
---
client/homebrew/brewRenderer/brewRenderer.jsx | 2 +-
.../homebrew/editor/snippetbar/snippets/magic.gen.js | 4 ++--
client/homebrew/pages/printPage/printPage.jsx | 2 +-
themes/5ePhb.style.less | 10 +++++-----
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/client/homebrew/brewRenderer/brewRenderer.jsx b/client/homebrew/brewRenderer/brewRenderer.jsx
index 2b8019f73..771abdfaf 100644
--- a/client/homebrew/brewRenderer/brewRenderer.jsx
+++ b/client/homebrew/brewRenderer/brewRenderer.jsx
@@ -131,7 +131,7 @@ const BrewRenderer = createClass({
if(this.props.renderer == 'legacy')
return ;
else {
- pageText += `\n\\column\n `; //Artificial column break at page end to emulate column-fill:auto (until `wide` is used, when column-fill:balance will reappear)
+ pageText += `\n \n\\column\n `; //Artificial column break at page end to emulate column-fill:auto (until `wide` is used, when column-fill:balance will reappear)
return (
diff --git a/client/homebrew/editor/snippetbar/snippets/magic.gen.js b/client/homebrew/editor/snippetbar/snippets/magic.gen.js
index 43bc5843b..33ce8406d 100644
--- a/client/homebrew/editor/snippetbar/snippets/magic.gen.js
+++ b/client/homebrew/editor/snippetbar/snippets/magic.gen.js
@@ -60,13 +60,13 @@ module.exports = {
const levels = ['Cantrips (0 Level)', '1st Level', '2nd Level', '3rd Level', '4th Level', '5th Level', '6th Level', '7th Level', '8th Level', '9th Level'];
const content = _.map(levels, (level)=>{
- const spells = _.map(_.sampleSize(spellNames, _.random(5, 15)), (spell)=>{
+ const spells = _.map(_.sampleSize(spellNames, _.random(4, 10)), (spell)=>{
return `- ${spell}`;
}).join('\n');
return `##### ${level} \n${spells} \n`;
}).join('\n');
- return `{{spellList\n${content}\n}}`;
+ return `{{spellList,wide\n${content}\n}}`;
},
spell : function(){
diff --git a/client/homebrew/pages/printPage/printPage.jsx b/client/homebrew/pages/printPage/printPage.jsx
index b77fbb8f7..1f4d2f12e 100644
--- a/client/homebrew/pages/printPage/printPage.jsx
+++ b/client/homebrew/pages/printPage/printPage.jsx
@@ -46,7 +46,7 @@ const PrintPage = createClass({
});
} else {
return _.map(this.state.brewText.split(/^\\page$/gm), (pageText, index)=>{
- pageText += `\n\\column\n `; //Artificial column break at page end to emulate column-fill:auto (until `wide` is used, when column-fill:balance will reappear)
+ pageText += `\n \n\\column\n `; //Artificial column break at page end to emulate column-fill:auto (until `wide` is used, when column-fill:balance will reappear)
return (
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less
index f30adb21e..81d596a5d 100644
--- a/themes/5ePhb.style.less
+++ b/themes/5ePhb.style.less
@@ -567,10 +567,7 @@ body {
// *****************************/
.page .spellList{
.useSansSerif();
- column-count : 4;
- column-span : all;
- -webkit-column-span : all;
- -moz-column-span : all;
+ column-count : 2;
ul+h5{
margin-top : 15px;
}
@@ -587,6 +584,9 @@ body {
page-break-inside : auto;
break-inside : auto;
}
+ &.wide{
+ column-count : 4;
+ }
}
//*****************************
@@ -717,7 +717,7 @@ body {
break-inside : avoid;
display : inline-block;
min-width : 100%;
- -webkit-transform : translateZ(0); //Prevents shadows from breaking across columns
+ //-webkit-transform : translateZ(0); //Prevents shadows from breaking across columns
}
.inline-block {
display : inline-block;
From d4ff87395f7f77e5264c60ce10fded03ef0fde02 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Thu, 9 Sep 2021 10:31:04 -0400
Subject: [PATCH 24/69] Fix all images having drop shadows
---
themes/5ePhb.style.less | 6 ------
1 file changed, 6 deletions(-)
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less
index 81d596a5d..ddd9d2288 100644
--- a/themes/5ePhb.style.less
+++ b/themes/5ePhb.style.less
@@ -349,12 +349,6 @@ body {
.watercolor11 { --wc : @watercolor11; }
.watercolor12 { --wc : @watercolor12; }
- img {
- z-index: 2 !important;
- filter : drop-shadow(0px 6px 6px rgba(0,0,0,.4));
- position: absolute;
- }
-
//*****************************
// * MONSTER STAT BLOCK
// *****************************/
From f435d65db7f1c05ba49bbfe7ee4d0a21b3454238 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Thu, 9 Sep 2021 10:35:08 -0400
Subject: [PATCH 25/69] Fix block-curly injector leaving behind an empty
``
---
client/homebrew/brewRenderer/brewRenderer.jsx | 2 +-
client/homebrew/pages/printPage/printPage.jsx | 2 +-
shared/naturalcrit/markdown.js | 7 +++++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/client/homebrew/brewRenderer/brewRenderer.jsx b/client/homebrew/brewRenderer/brewRenderer.jsx
index 771abdfaf..9ea4632c4 100644
--- a/client/homebrew/brewRenderer/brewRenderer.jsx
+++ b/client/homebrew/brewRenderer/brewRenderer.jsx
@@ -131,7 +131,7 @@ const BrewRenderer = createClass({
if(this.props.renderer == 'legacy')
return ;
else {
- pageText += `\n \n\\column\n `; //Artificial column break at page end to emulate column-fill:auto (until `wide` is used, when column-fill:balance will reappear)
+ pageText += `\n\n \n\\column\n `; //Artificial column break at page end to emulate column-fill:auto (until `wide` is used, when column-fill:balance will reappear)
return (
diff --git a/client/homebrew/pages/printPage/printPage.jsx b/client/homebrew/pages/printPage/printPage.jsx
index 1f4d2f12e..6b3274de6 100644
--- a/client/homebrew/pages/printPage/printPage.jsx
+++ b/client/homebrew/pages/printPage/printPage.jsx
@@ -46,7 +46,7 @@ const PrintPage = createClass({
});
} else {
return _.map(this.state.brewText.split(/^\\page$/gm), (pageText, index)=>{
- pageText += `\n \n\\column\n `; //Artificial column break at page end to emulate column-fill:auto (until `wide` is used, when column-fill:balance will reappear)
+ pageText += `\n\n \n\\column\n `; //Artificial column break at page end to emulate column-fill:auto (until `wide` is used, when column-fill:balance will reappear)
return (
diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js
index 8f01f0147..250d67850 100644
--- a/shared/naturalcrit/markdown.js
+++ b/shared/naturalcrit/markdown.js
@@ -174,13 +174,16 @@ const mustacheInjectBlock = {
lastToken.originalType = 'mustacheInjectBlock';
lastToken.tags = ` ${processStyleTags(match[1])}`;
return {
- type : 'text', // Should match "name" above
- raw : match[0], // Text to consume from the source
+ type : 'mustacheInjectBlock', // Should match "name" above
+ raw : match[0], // Text to consume from the source
text : ''
};
}
},
renderer(token) {
+ if(!token.originalType){
+ return;
+ }
token.type = token.originalType;
const text = this.parser.parse([token]);
const openingTag = /(<[^\s<>]+)([^\n<>]*>.*)/s.exec(text);
From 56aa2a9104ba711aef1f8f99637bb45f25f42f48 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Thu, 9 Sep 2021 22:40:05 -0400
Subject: [PATCH 26/69] Up version number and changelog
---
changelog.md | 76 ++++++++++++++++++++++++++++++++++++++---------
package-lock.json | 4 +--
package.json | 2 +-
3 files changed, 65 insertions(+), 17 deletions(-)
diff --git a/changelog.md b/changelog.md
index b72024e3a..cde71bb57 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,13 +1,53 @@
-
+
+.taskList li {
+ list-style-type : none;
+}
+
+.taskList li input {
+ margin-left : -0.52cm;
+ transform: translateY(.05cm);
+ filter: brightness(1.1) drop-shadow(1px 2px 1px #222);
+}
+
+.taskList li input[checked] {
+ filter: sepia(100%) hue-rotate(60deg) saturate(3.5) contrast(4) brightness(1.1) drop-shadow(1px 2px 1px #222);
+}
+
+pre + * {
+ margin-top: 0.17cm;
+}
+
+pre {
+ margin-top: 0.17cm;
+}
+
+.page {
+ padding-bottom:.5cm;
+}
+```
# changelog
+### Thursday, 09/09/2021 - v2.13.5
+- Slightly better error logging and messages for users.
+
+##### G-Ambatte :
+- Added a search bar to the User page to help find your brews.
+- Added page counts to brews in the User page; page count will be updated the next time a brew is edited.
+- Fixed edge case where view counts could get reset.
+- Fixed edge case where last-modified time was not accurate for Google Doc brews.
+
+##### Gazook89 :
+- Fixed typo in the **PRINT → Ink-Friendly** snippet.
+
+
+
### Tuesday, 17/08/2021 - v2.13.4
-- Fixed user page crashing when user has untitled brew
+- Fixed User page crashing when user has an untitled brew
##### G-Ambatte:
- Tweaks to user page tool tips
@@ -43,6 +83,10 @@ h5 {
- Fixed the issue with new brews not saving!
+
+
+\page
+
### Saturday, 26/6/2021 - v2.13.0
- "Share to Reddit" button now works with Google brews
@@ -59,9 +103,6 @@ myStyle {color: black}
- Pasting your brew into a "New" page and saving will transfer any CSS in the code fence to the Style tab.
- Unsaved work in the New page Style tab is now cached to your browser storage if you navigate away.
-\page
-
-
### Thursday, 10/6/2021 - v2.12.0
- New "style" tab to better organize custom CSS in preparation for new themes and sharable styles.
@@ -98,6 +139,8 @@ myStyle {color: black}
- Fix for box-shadows breaking across columns.
(Thanks G-Ambatte for all of these!)
- Small user interface tweaks (Thanks Ericsheid)
+\column
+
### Friday, 02/1/2021 - v2.10.6
- Fixed punctuation for usernames ending with 's' on the user page. (Thanks AlexeySachkov)
- Fixed server crashes due to excessive long lines in brews
@@ -122,8 +165,6 @@ myStyle {color: black}
- Fixed issue with users unable to create new brews
- Fixing brews being lost when loaded via back button
-\page
-
### Wednesday, 07/10/2020 - v2.10.0
- Google Drive integration -- Sign in with your Google account to link it with your Homebrewery profile. A new button in the Edit page will let you transfer your file to your personal Google Drive storage, and Google will keep a backup of each version! No more lost work surprises!
@@ -141,6 +182,8 @@ myStyle {color: black}
- Fixed delete button removing everyone's copy for brews with multiple authors
- Compressed homebrew text in database
+\page
+
### Monday, 26/11/2018 - v2.8.1
- Fixed some SSL issues with images in the example page so they appear now
- Fixed duplicate scrollbars in Edit Page
@@ -154,7 +197,7 @@ myStyle {color: black}
- Refactored background code
### Sunday, 04/06/2017 - v2.7.5
-- Fixed the class feature snippet duplicating the entire brew
+- Fixed Class Feature snippet duplicating entire brew
- Fixed headers in tables being duplicated
- Fixed border-image being scrambled on class tables and descriptive text boxes
- Fixed pages going out of sync in large brews, causing them to be rendered off-page
@@ -180,9 +223,12 @@ myStyle {color: black}
### Sunday, 25/12/2016 - v2.7.0
- Switching over to using Vitreum v4
- - Removed gulp, all tasks are run through npm scripts
+- Removed gulp, all tasks are run through npm scripts
- Updating docs for local dev
- Removing support for Docker. I have never used it, nor will I ever test for it, so I don't want to continue to explictly support it on this repo. Feel free to make a fork and make it docker-able though :)
+
+\column
+
- Changed icon for the metadata
- Made links useable in footer (thanks u/Dustfinger1 re:249)
- Added print media queries to remove box shadow on print (thanks u/dmmagic re: 246)
@@ -210,8 +256,6 @@ myStyle {color: black}
- Added a hover tooltip to fully read the brew description
- Made the brew items take up only 25% allowing you to view more per row.
-\page
-
### Wednesday, 23/11/2016 - v2.5.0
- Metadata can now be added to brews
- Added a metadata editor onto the edit and new pages
@@ -227,6 +271,8 @@ myStyle {color: black}
- You can now print from a new page without saving
- Added the ability to use ctrl+p and ctrl+s to print and save respectively.
+\page
+
### Monday, 07/11/2016
- Added final touches to the html validator and updating the rest of the branch
- If anyone finds issues with the new HTML validator, please let me know. I hope this will bring a more consistent feel to Homebrewery rendering.
@@ -258,7 +304,7 @@ myStyle {color: black}
- Even works after you print to pdf!
### Tuesday, 07/06/2016 - v2.2.2
-- Fixed bug with new markdown lexer and aprser not working on print page
+- Fixed bug with new markdown lexer and parser not working on print page
### Sunday, 05/06/2016 - v2.2.1
- Adding in a new Class table div block. The old Class table block used weird stacking of HTML elements, resulting is difficult to control behaviour and poor interactiosn with the rest of the page. This new block is much easier to style and work with.
@@ -266,8 +312,10 @@ myStyle {color: black}
- Added in a new auto-incremeting page number snippet (thakns u/Ryrok!)
- Lists in monster stat blocks should be fixed now
+\column
+
### Saturday, 04/06/2016 - v2.2.0
-- MIgrating The Homebrewery over to hombrewery.naturalcrit.com. It know runs on it's own server, with it's own repo separate from the other tools I'm working on. Makes updating and deploying much easier.
+- Migrating The Homebrewery over to hombrewery.naturalcrit.com. It now runs on it's own server, with it's own repo separate from the other tools I'm working on. Makes updating and deploying much easier.
### Sunday, 29/05/2016 - v2.1.0
- Finally added a syntax for doing spell lists. A bit in-depth about why this took so long. Essentially I'm running out of syntax to use in stardard Markdown. There are too many unique elements in the PHB-style to be mapped. I solved this earlier by stacking certain elements together (eg. an `
` before a `blockquote` turns it into moster state block), but those are getting unweildly. I would like to simply wrap these in `div`s with classes, but unfortunately Markdown stops processing when within HTML blocks. To get around this I wrote my own override to the Markdown parser and lexer to process Markdown within a simple div class wrapper. This should open the door for more unique syntaxes in the future. Big step!
diff --git a/package-lock.json b/package-lock.json
index c82e7f3ff..dda8f56a5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,11 +1,11 @@
{
"name": "homebrewery",
- "version": "2.13.4",
+ "version": "2.13.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
- "version": "2.13.4",
+ "version": "2.13.5",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index ec408fdd7..0eabd1953 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "homebrewery",
"description": "Create authentic looking D&D homebrews using only markdown",
- "version": "2.13.4",
+ "version": "2.13.5",
"engines": {
"node": "14.15.x"
},
From e070601b2863b725c342a8dd5754edcef66afd1d Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Thu, 9 Sep 2021 23:17:46 -0400
Subject: [PATCH 27/69] Make Changelog split text and style
---
server.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/server.js b/server.js
index 2f1564b20..6bf98d200 100644
--- a/server.js
+++ b/server.js
@@ -138,6 +138,7 @@ app.get('/changelog', async (req, res, next)=>{
text : changelogText,
renderer : 'V3'
};
+ splitTextAndStyle(brew);
req.brew = brew;
return next();
});
From 494311aee3079106a46311dc0cf41f190c443ea9 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Fri, 10 Sep 2021 00:13:48 -0400
Subject: [PATCH 28/69] Popup notification
Update the popup notification on the home page.
---
.../notificationPopup/notificationPopup.jsx | 41 ++++++++++++++-----
.../notificationPopup/notificationPopup.less | 16 ++++----
2 files changed, 39 insertions(+), 18 deletions(-)
diff --git a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx
index f561298a3..9bfea7ff0 100644
--- a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx
+++ b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx
@@ -4,7 +4,7 @@ const createClass = require('create-react-class');
const _ = require('lodash');
const cx = require('classnames'); //Unused variable
-const DISMISS_KEY = 'dismiss_notification7-10-20';
+const DISMISS_KEY = 'dismiss_notification09-9-21';
const NotificationPopup = createClass({
getInitialState : function() {
@@ -22,16 +22,33 @@ const NotificationPopup = createClass({
notifications : {
psa : function(){
return
- Google Drive Integration!
- We have added Google Drive integration to the Homebrewery! Sign in with
- your Google account to link it with your Homebrewery profile. A new button in the Edit page will let you transfer your file to your personal
- Google Drive storage, and Google will keep a backup of each version! No more lost work surprises!
+ V3.0.0 Released!
+ After a long and bumpy road, we decided it was high time we finally release version 3 of the homebrewery into the wild. You can check out a
+ brief overview and see how to opt-in to the new features here:
+ V3 Welcome Page
+ and the Changelog.
- However, we are aware that there may be uncaught bugs. We encourage you to copy your brew into a text document before transferring to Google
- Drive just in case any issues arise as this update is rolled out.
+ BE WARNED: As we continue to develop V3, expect small tweaks in the styling, fonts, and snippets; your brews may look slightly
+ different from day-to-day. All of your old documents will continue to work as normal; we are not touching them. If you don't want to deal
+ with the possibility of slight formatting changes, you may choose to stick with the Legacy renderer on any of your brews for as long as you like.
- Note: Transferring an existing brew to Google Drive will change the edit and share links of your document. If you have shared your
- document online, remember to update the links there as well.
+ With this in mind, if you still wish to try out V3, you can opt-in any of your brews to the the V3 renderer.
+ This will likely break much of your formatting as a lot of the Markdown code has been updated, and starting from scratch may be cleaner.
+ (Don't worry, you can always change the renderer back to legacy for any brew at any time).
+ ;
+ },
+ refreshGoogle : function (){
+ return
+ Refresh your Google Drive Credentials!
+ Currently a lot of people are striking issues with their Google credentials expiring, which happens one year after the last sign in via
+ Google. This can cause errors when trying to save your brews. If this happens, simply visit the
+
+ logout page
+
+ , sign out, and then sign back in "with Google" to refresh your credentials. See
+
+ this discussion on Github
+ for more details.
;
},
faq : function(){
@@ -62,8 +79,10 @@ const NotificationPopup = createClass({
return
- Notice
- This website is always improving and we are still adding new features and squashing bugs. Keep the following in mind:
+
+
Notice
+ This website is always improving and we are still adding new features and squashing bugs. Keep the following in mind:
+
{_.values(this.state.notifications)}
;
}
diff --git a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.less b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.less
index 69bffd583..dfd3c6c63 100644
--- a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.less
+++ b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.less
@@ -1,23 +1,22 @@
.popups{
position : fixed;
- top : @navbarHeight;
+ top : @navbarHeight;
right : 15px;
z-index : 10001;
- width : 350px;
+ width : 450px;
}
.notificationPopup{
- position : relative;
- float : right;
+ position : relative;
display : inline-block;
- width : 350px;
+ width : 100%;
padding : 15px;
padding-bottom : 10px;
- padding-left : 55px;
+ padding-left : 25px;
background-color : @blue;
color : white;
a{
- color : @steel;
+ color : #e0e5c1;
font-weight : 800;
}
i.info{
@@ -37,6 +36,9 @@
opacity : 1;
}
}
+ .header {
+ padding-left : 50px;
+ }
small{
opacity : 0.7;
font-size : 0.6em;
From fbf1bbbf99dfc9c63e67665c7bab4d8c85312882 Mon Sep 17 00:00:00 2001
From: "G.Ambatte"
Date: Sat, 11 Sep 2021 09:41:23 +1200
Subject: [PATCH 29/69] Add Page Count to the Google brew update function
---
server/googleActions.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/server/googleActions.js b/server/googleActions.js
index aca84daa3..72059cb2d 100644
--- a/server/googleActions.js
+++ b/server/googleActions.js
@@ -163,6 +163,7 @@ GoogleActions = {
version : brew.version,
renderer : brew.renderer,
tags : brew.tags,
+ pageCount : brew.pageCount,
systems : brew.systems.join()
}
},
From 673dc5805130cc8fccde6af2214900e4bb1887f5 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Fri, 10 Sep 2021 22:18:33 -0400
Subject: [PATCH 30/69] Update 5ePhbLegacy.style.less
---
themes/5ePhbLegacy.style.less | 3 ---
1 file changed, 3 deletions(-)
diff --git a/themes/5ePhbLegacy.style.less b/themes/5ePhbLegacy.style.less
index 254e612c3..fb2d6a829 100644
--- a/themes/5ePhbLegacy.style.less
+++ b/themes/5ePhbLegacy.style.less
@@ -231,11 +231,9 @@ body {
// Monster Ability table
hr+table{
margin : 0;
- column-span : none;
background-color : transparent;
border-style : none;
border-image : none;
- -webkit-column-span : none;
tbody{
tr:nth-child(odd), tr:nth-child(even){
background-color : transparent;
@@ -416,7 +414,6 @@ body {
// * DESCRIPTIVE TEXT BOX
// ************************************/
.phb .descriptive{
- display : inline-block;
margin-bottom : 1em;
background-color : #faf7ea;
font-family : ScalySans;
From 2497fbbc7405b861fe368567389fdd9b254b6947 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Fri, 10 Sep 2021 23:22:52 -0400
Subject: [PATCH 31/69] Tweaks to popup notification.
---
.../notificationPopup/notificationPopup.jsx | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx
index 9bfea7ff0..819bf53d3 100644
--- a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx
+++ b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx
@@ -24,9 +24,9 @@ const NotificationPopup = createClass({
return
V3.0.0 Released!
After a long and bumpy road, we decided it was high time we finally release version 3 of the homebrewery into the wild. You can check out a
- brief overview and see how to opt-in to the new features here:
- V3 Welcome Page
- and the Changelog.
+ brief overview and see how to opt-in to the new features here:
+ V3 Welcome Page and
+ the Changelog.
BE WARNED: As we continue to develop V3, expect small tweaks in the styling, fonts, and snippets; your brews may look slightly
different from day-to-day. All of your old documents will continue to work as normal; we are not touching them. If you don't want to deal
@@ -34,18 +34,18 @@ const NotificationPopup = createClass({
With this in mind, if you still wish to try out V3, you can opt-in any of your brews to the the V3 renderer.
This will likely break much of your formatting as a lot of the Markdown code has been updated, and starting from scratch may be cleaner.
- (Don't worry, you can always change the renderer back to legacy for any brew at any time).
+ (Don't worry, you can always change the renderer back to Legacy for any brew at any time).
;
},
refreshGoogle : function (){
return
Refresh your Google Drive Credentials!
Currently a lot of people are striking issues with their Google credentials expiring, which happens one year after the last sign in via
- Google. This can cause errors when trying to save your brews. If this happens, simply visit the
+ Google. This can cause errors when trying to save your brews. If this happens, simply visit the
logout page
- , sign out, and then sign back in "with Google" to refresh your credentials. See
+ , sign out, and then sign back in "with Google" to refresh your credentials. See
this discussion on Github
for more details.
@@ -54,7 +54,7 @@ const NotificationPopup = createClass({
faq : function(){
return
Protect your work!
- If you opt not to use your Google Drive, keep in mind that we do not save a history of your projects. Please make frequent backups of your brews!
+ If you opt not to use your Google Drive, keep in mind that we do not save a history of your projects. Please make frequent backups of your brews!
See the FAQ
to learn how to avoid losing your work!
From 6237df953ef396308752c5f8700813202fc2701d Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Fri, 10 Sep 2021 23:34:20 -0400
Subject: [PATCH 32/69] Update changelog and welcome pages
---
changelog.md | 181 ++++++++++++++++++
client/homebrew/pages/homePage/welcome_msg.md | 12 +-
.../homebrew/pages/homePage/welcome_msg_v3.md | 18 +-
3 files changed, 191 insertions(+), 20 deletions(-)
diff --git a/changelog.md b/changelog.md
index cde71bb57..fb1d3c538 100644
--- a/changelog.md
+++ b/changelog.md
@@ -32,6 +32,187 @@ pre {
# changelog
+### Saturday, 28/08/2021 - v3.0.0
+
+We have been working on v3 for a *very* long time. We want to thank everyone for being paitent.
+
+
+Some features planned for V3 have actually been released over the recent months as part of V2, and some are still on the way. But at its core, V3 provides brand new Markdown-to-Brew rendering system, which was no simple task. This has opened up access to all sorts of bugfixes, tweaks, and potential for new features that just wouldn't be possible on the old system.
+
+***BE WARNED:*** As we continue to develop V3, expect small tweaks in the styling, fonts, and snippets; your brews may look slightly different from day-to-day; some things might break completely while we tackle any bugs in this early stage. All of your old documents will continue to work as normal. We are not touching them. If you don't want to deal With the possibility of slight formatting changes, you may choose to stick with the Legacy renderer on any of your brews for as long as you like. However, most new features added from now on will only be available for brews using the V3 renderer.
+
+Massive changelog incoming:
+
+#### Markdown+
+With the latest major update to *The Homebrewery*, we've implemented an extended Markdown-like syntax for block and span elements, plus a few other changes, eliminating the need for HTML tags like `div`, and `span` in most cases. This should hopefully aid non-coders with readability, and also allows us a few tricks in the background to fix some old issues. No raw HTML tags should be needed in a brew, and going forward, raw HTML will no longer receive debugging support (*but can still be used if you insist*).
+
+All brews made prior to the release of v3.0.0 will still render normally, and you may switch between the "Legacy" brew renderer and the newer "V3" renderer via the {{fa,fa-info-circle}} **Properties** button on your brew. Much of the syntax and styling has changed in V3, so code in one version may be broken in the other.
+
+Visit [this page](/v3_preview) for brief examples of the new syntax!
+
+#### Extended Markdown Syntax:
+
+{{taskList
+* [x] Add Divs and Spans for all your custom styling needs, via a simplified Markdown-like syntax:
+ ```
+ {{myDivClass,#myId,color:red
+ My Div content
+ }}
+
+ Hello {{mySpan,color:blue World}} !
+ ```
+ Fixes issues: [#348](https://github.com/naturalcrit/homebrewery/issues/348)
+
+* [x] Add inline CSS to Markdown objects via "curly injection" syntax:
+ ```
+ Hello *world*{myClass,#id,color:red}
+ ```
+ Fixes issues: [#403](https://github.com/naturalcrit/homebrewery/issues/403)
+}}
+
+\column
+
+{{taskList
+* [x] Rowspan, Colspan, and multiple header rows with extended table syntax:
+```
+| Header 1a | Header 1b | Header 1c |
+| Header 2a | Header 2b | Header 2c |
+|:---------:|:----------|:---------:|
+| Span 2 columns || Span 2 |
+| one col | one col | rows ^|
+```
+ Fixes issues: [#773](https://github.com/naturalcrit/homebrewery/issues/773), [#191](https://github.com/naturalcrit/homebrewery/issues/191)
+
+* [x] Hanging indents via `` tags, as seen in the **PHB → Spell** snippet. Add via "double-colon" syntax:
+```
+Term :: big long definition that bleeds onto multiple lines
+```
+ Fixes issues: [#182](https://github.com/naturalcrit/homebrewery/issues/182), [#149](https://github.com/naturalcrit/homebrewery/issues/149)
+
+* [x] Easier vertical spacing via colons alone on a line:
+ ```
+ :::
+ ```
+ Fixes issues: [#374](https://github.com/naturalcrit/homebrewery/issues/374)
+
+* [x] Avoid paragraph indendation by ending the previous paragraph with a backslash `\` or two spaces ` `
+ ```
+ Paragraph one\
+ Paragraph two
+ ```
+ Fixes issues: [#636](https://github.com/naturalcrit/homebrewery/issues/636)
+
+* [x] Code blocks can be inserted by surrounding it with rows of three backticks ` ``` `, for demonstration purposes or to share custom styles. Inline-code can be inserted with single backticks `code`
+ ```
+ Here is some code!
+```
+
+
+ Fixes issues: [#465](https://github.com/naturalcrit/homebrewery/issues/465)
+
+#### New and Fixed Snippets
+
+* [x] Column breaks now use `\column` instead of ` ``` ` backticks.
+
+ Fixes issues: [#607](https://github.com/naturalcrit/homebrewery/issues/607)
+
+* [x] Page breaks using `\page` now only trigger when placed alone at the start of a line.
+
+ Fixes issues: [#1147](https://github.com/naturalcrit/homebrewery/issues/1147)
+
+* [x] New **EDITOR → QR Code** snippet.
+
+ Fixes issues: [#538](https://github.com/naturalcrit/homebrewery/issues/538)
+
+* [x] New **IMAGES → Watercolor Splatter** snippet, which adds one of a range of stylish stains to your brew.
+
+* [x] New **IMAGES → Watermark** snippet, which adds transparent text diagonally across the page.
+
+* [x] New **PHB → Magic Item** snippet.
+
+ Fixes issues: [#671](https://github.com/naturalcrit/homebrewery/issues/671)
+
+* [x] New **TABLES → 1/3 Class Table** snippet for 1/3 casters.
+
+ Fixes issues: [#191](https://github.com/naturalcrit/homebrewery/issues/191)
+}}
+
+\page
+{{taskList
+* [x] Improved **EDITOR → Table of Contents** snippet to actually look like the PHB style. Will auto-generate based on the headers in your brew.
+
+ Fixes issues: [#304](https://github.com/naturalcrit/homebrewery/issues/304)
+
+* [x] Improved **PHB → Monster Stat Block** snippet with textures, and an option to remove the frame entirely.
+
+* [x] Improved **PHB → Spell List** snippet can now be made single-column.
+
+ Fixes issues: [#509](https://github.com/naturalcrit/homebrewery/issues/509), [#914](https://github.com/naturalcrit/homebrewery/issues/914)
+
+* [x] Improved **TABLES → Class Table** snippet is now cleaned up, has an option to remove the frame entirely, and includes additional boundary decorations.
+
+ Fixes issues: [#773](https://github.com/naturalcrit/homebrewery/issues/773), [#302](https://github.com/naturalcrit/homebrewery/issues/302)
+
+#### Miscellaneous Formatting Fixes
+
+* [x] Paragraphs are now able to split across columns.
+
+ Fixes issues: [#239](https://github.com/naturalcrit/homebrewery/issues/239)
+
+* [x] Multiple fixes for bold/italicize using asterisks `* *`
+
+ Fixes issues: [#1321](https://github.com/naturalcrit/homebrewery/issues/1321), [#852](https://github.com/naturalcrit/homebrewery/issues/852)
+
+* [x] Multiple for list items not displaying correctly.
+
+ Fixes issues: [#1085](https://github.com/naturalcrit/homebrewery/issues/1085), [#588](https://github.com/naturalcrit/homebrewery/issues/588)
+
+* [x] "Smart quotes", so left and right quotes are different.
+
+ Fixes issues: [#849](https://github.com/naturalcrit/homebrewery/issues/849)
+
+* [x] Long URLs in links now wrap properly.
+
+ Fixes issues: [#1136](https://github.com/naturalcrit/homebrewery/issues/1136)
+
+* [x] Better support for `wide` blocks that span across the whole page! No more problems with contents getting shunted off the edge, and each new wide element in a page will restart the next item back at column one. Manual `\column` breaks will help organize subsequent content between the columns as needed.
+
+ Fixes issues: [#144](https://github.com/naturalcrit/homebrewery/issues/144), [#1024](https://github.com/naturalcrit/homebrewery/issues/1024)
+
+* [x] Fonts now support a wider range of latin characters for non-English brews, including áéíóúñ¡¿, etc...
+
+ Fixes issues: [#116](https://github.com/naturalcrit/homebrewery/issues/116)
+
+* [x] Drop-caps (fancy first letters) have been re-styled and re-aligned to correct the ugly overlapping and cut-off on some characters like K and Y.
+
+ Fixes issues: [#848](https://github.com/naturalcrit/homebrewery/issues/848)
+}}
+
+\column
+
+### Under-the-Hood Stuff
+We had to make a whole lot of background upgrades and changes to get all of this working, and now that the framework is in place, there's a lot more planned and upcoming *"sometime"* :
+
+{{taskList
+* [ ] New Themes to style your brews. DMG, MM, a custom Homebrewery theme, and others.
+* [ ] The ability to build your own custom themes using CSS, apply it to other brews, and share it with others!
+* [ ] Easy control of item colors. Change your monster blocks, tables, and notes from yellow to green to red!
+* [ ] New image-based snippets, including handwritten notes, title illustrations, and alternative decorations.
+* [ ] New fun fonts like Elvish, Draconic, Orcish, etc.
+* [ ] Better organization of personal brews using tags.
+* [ ] ....a log-out button...?
+* [ ] AND MORE.
+}}
+
+### Interface
+::
+#### Style Editor Panel
+
+{{fa,fa-paint-brush}} Technically released prior to v3 but still new to many users, check out the new **Style Editor** located on the right side of the Snippet bar. This editor accepts CSS for styling without requiring `` and paste the copied information there. You can then use `font-family: fontname`, where *fontname* is the part after `font-family: ` in the `@font-face` segment, to add that font to your brew.
+
+***Example:*** You want to have a different font for all elements with the `testFontClass` class. This is how you would go about that:
+
+1. Upload your font to [fontsquirrel.com](https://www.fontsquirrel.com/tools/webfont-generator) and have it base64 encoded.
+
+2. In the resulting .zip file, look for the .css file, open it, and copy its contents, which will look something like this (Your `url()` parts will be much longer, I removed most of it for the sake of readability):
+
+ @font-face {
+ font-family: 'testFont';
+ src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAA[...]+wEAAA=) format('woff2'),
+ url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAHTcABI[...]+wAAAADYwmAT) format('woff');
+ font-weight: normal;
+ font-style: normal;
+ }
+
+3. In your homebrew, either add a `` section at the top or, if you already have one, add the copied `@font-face{ [...] }` to it.
+
+4. In that same `` tags to this file!). Upload said file to a place that is accessible to the homebrewery. Go to your brew, remove everything within your `` tags, and add this: `@import "https://my.website.com/MyHomebrewStyle.css";`
+
+Be aware that, should you change something in that css file, your homebrew will have to be reloaded for these changes to take effect.
+
+**Q:** How do I use different colors in my brews?
+**A:** [Described here](https://old.reddit.com/r/homebrewery/comments/9kesk1/changing_text_colour_to_white/)
+
+**Q:** How do I get a line break without indentation?
+**A:** [Described here](https://old.reddit.com/r/homebrewery/comments/8hmr50/getting_line_breaks_without_getting_a_new/)
+
+**Q:** How do I fix line indentations in monster statblocks?
+**A:** [Described here](https://old.reddit.com/r/homebrewery/comments/ag46i1/indentation_problem/)
+
+**Q:** When I write more text than fits into the two columns on the page, the text overflows into a third column and goes off-page. Why isn't a new page generated for the text?
+**A:** Auto-generating a new page via code lies between tricky and impossible. Use `\page` to create a new page manually. If you have an idea about how to implement auto-new-page-ing, head over to [GitHub](https://github.com/naturalcrit/homebrewery) and let us know.
+
+**Q:** Typing `#### Adhesion` in the formatting doesn't show the titling at all in the completed page?
+**A:** Whitelist homebrewery.naturalcrit.com in your ad-blocking software.
+
+## Paper Size
+**Q:** I have white borders on the bottom/sides of the print preview.
+**A:** The homebrewery paper size and your print paper size do not match.
+
+The default homebrewery paper size is “Letter.”
+
+If you are in the US (and you did not add the A4 snippet), in the "Print to PDF" window, click "More settings" and change "Paper size" to "Letter".
+
+If you are anywhere else, your default "Paper size" setting is most likely "A4" and you need to change it to "Letter" (as described above). You can also add the A4 snippet to the top of your brew to make it A4-sized.
+
+## Get PDF
+**Q:** Whenever I click on the "Get PDF" button, instead of getting a download, it opens Print Preview in another tab.
+**A:** Yes, this is by design. In the print preview, select "Save as PDF" as the Destination, and then click "Save". There will be a normal download dialog where you can save your brew as a PDF.
+
+---
+
+# PSAs
+
+## Back Up Your Stuff!
+
+By that I mean, when you brew, occasionally hit CTRL + A, CTRL + C, open a texteditor (on your local machine), CTRL + V your brew in there, and save that file.
+
+You can go as crazy as you want to be with that. Create one file per brew, that's fine. Create one file per brew per day you edit it, that's even better. Create one file per brew per day you edit it, save it in two or more separate (remote) locations? That's even more better (I do it that way ;) ).
+
+Whatever method you prefer, just do it.
+
+Also, see the "Backing Up Brews with a Bookmarklet", "Backing Up Brews with Linux" section, and the comments below.
+
+## Brewmasters
+
+
+We recently started the "Brewmasters" program, where we give out a special flair to users that have proven that they know what they are talking about when it comes to using the [Homebrewery](https://homebrewery.naturalcrit.com).
+
+The first member to earn this special flair is u/VexbaneAramori, who is a pillar of this community.
+
+Brewmasters can nominate other active users to become Brewmasters via ModMail as well.
+
+Thanks to all who help to make this community more helpful and welcoming. :)
+
+**18.05.2020 - Update:** We're happy to announce that u/Jintonix has joined the ranks of our Brewmasters. Welcome!
+
+---
+
+# Miscellaneous
+
+## Backing Up Brews with a Bookmarklet
+
+This solution was provided by u/garumoo in the [comments](https://www.reddit.com/r/homebrewery/comments/adh6lh/faqs_psas_announcements/edrvz8o/) of the old [PSA](https://www.reddit.com/r/homebrewery/comments/adh6lh/faqs_psas_announcements/).
+
+> Here is a handy bookmarklet for saving your brew
+>
+> Just create a new bookmark, put it onto your browser button bar, and edit it, changing the URL to:
+
+ javascript:(function() {var nav=document.getElementsByClassName('navContent')[0];var share=nav.querySelector('.navItem[icon="fa-share-alt"');var code=nav.querySelector('.navItem[icon="fa-code"');if(share||code){let brewtitle=document.getElementsByClassName('brewTitle')[0].innerText;let date=new Date();let dd=date.getDate();let mm=date.getMonth()+1;let yyyy=date.getFullYear();let hour=date.getHours();let mins=date.getMinutes();dd=dd<10?'0'+dd:dd;mm=mm<10?'0'+mm:mm;hour=hour<10?'0'+hour:hour;mins=mins<10?'0'+mins:mins;let dateString=`${yyyy}-${mm}-${dd}-${hour}${mins}`;let filename=brewtitle+'-'+dateString+'.md';var sourceuri=share?share.href.replace('share','source'):code.href;fetch(sourceuri).then((response)=>{if(response.ok){return response.text()}}).then((payload)=>{var div=document.createElement('div');div.innerHTML=payload;var brewtext=div.innerText;delete div;let data_uri='data:text/markdown; charset=UTF-8,'+encodeURIComponent(brewtext);var link=document.createElement("a");link.download=filename;link.href=data_uri;document.body.appendChild(link);link.click();document.body.removeChild(link);delete link})}})();
+
+> Then, while viewing either the edit or the share versions, just click the bookmarklet. It should then download as a text file named as Brewtitle-yyyy-mm-dd-hhmm.md
+>
+> The code doesn't sanitise the brewtitle so if you have a funky brewtitle and things blow up that's on you.
+
+## Backing Up Brews with Linux
+
+This following script was written by myself, u/Thurse. For an easier to use script, check out u/-Hydrargyros-'s [comment](https://www.reddit.com/r/homebrewery/comments/adh6lh/faqs_psas_announcements/ee9xtsw/) on the old [PSA](https://www.reddit.com/r/homebrewery/comments/adh6lh/faqs_psas_announcements/).
+
+Hello everyone,
+as of now, I'm pretty sure everyone has read our [PSA on Backing Up Your Stuff](https://old.reddit.com/r/homebrewery/comments/a0ubx1/psa_back_up_your_stuff/), as you should... :)
+
+In the PSA thread, u/sonaplayer offered a way to automatically back up your stuff via Google Docs. Although a good method, it can't handle larger brews, so it wasn't for me. I actually corresponded with u/sonaplayer on the topic, and said at one point "maybe someday I will write something in bash...". Well, "someday" was during the christmas holidays, so I present to you:
+
+A bash script to backup your brews!
+
+### How does this work?
+
+1. Go to https://pastebin.com/hkx0NXid and click "download".
+1a. You can actually look at the source code there to see how it works.
+2. Save the file as `backupBrews.sh` (this should be the default name already).
+2a. If it isn't already on a Linux system, transfer the file to one. Or use "[git bash for Windows](https://gitforwindows.org/)" or whatever tickles your fancy.
+3. Make sure you put it to a place where you have sufficient permissions to read, write, and create folders.
+4. The script should run on any Linux, I tested it on Raspbian and with "git bash for Windows".
+5. The simplest way to use this is `./backupBrews.sh -b BrewId` where the `BrewId` is the last part of the SHARE link: https://homebrewery.naturalcrit.com/share/*HereIsTheBrewId*. You don't need the whole link, just the `BrewId` part! Also, don't use the EDIT id, because that won't work.
+5a. There will be several checks, if they pass, your brew will be downloaded and "cleaned up". What does that mean? When you get the source of your brew, all the `<` will be replaced with `<` and all the `>` will be replaced with `>`. The clean up process turns all the `<` and `>` back into `<` and `>`, so that you can theoretically take the text from the .md file and paste it into the homebrewery, ready to go. **Be aware:** Clean up can take quite a while. My Raspberry Pi 3 B+ needs about 10 minutes to clean up my largest brew at ~1,000,000 characters.
+5b. A folder will be created in the current location of the script, named as follows: `./backup/BrewId/`
+5c. Inside that folder, a file named BrewId_YYYYMMDD_HHMMSS.md will be created.
+6. That's it. For advanced usage, see `--help` or the info below.
+
+### Advanced Usage
+
+Apparently, you are not content with the tool's basic function. That's cool, I wasn't either. :)
+
+There are some more options you can use, described in detail below.
+
+
+
+#### Mandatory Options
+
+* `-b BrewId`
+
+At least one `-b BrewId` is mandatory, else the program will exit. You can do however many brews at once as you like. Just make sure to use `-b BrewId`, and all's good.
+
+***Example.*** `./backupBrews.sh -b BrewId1 -b BrewId2 -b BrewId3`
+
+Instead of using the BrewId as the name for the folder and the file, you can give your brew a (short) name. You should avoid spaces and special characters. If you must, you can use quotes to have spaces in the name. BrewName and BrewId have to be separated via `::`.
+
+***Example.*** `./backupBrews.sh -b BrewName1::BrewId1`
+
+You can of course combine these options:
+
+***Example.*** `./backupBrews.sh -b BrewName1::BrewId1 -b BrewId2 -b "Dont use spaces"::BrewId3`
+
+
+
+#### Optional options
+
+* `--help`
+
+Show the help. This is the only option you can use without the `-b` option.
+
+
+
+* `-s`
+
+The tool is verbose by default. The `-s` option turns off all output. You are still able to get an exit status via `echo $?`.
+
+***Example.*** `./backupBrews.sh -s -b BrewId`
+
+
+
+* `-d dateformat`
+
+This changes the date format at the end of the backup file. Standard is `%Y%m%d_%H%M%S`. You can enter whatever is accepted by `date`. See `date --help` for more information. The example below gives you the current unix timestamp, so your filename would look something like this: `BrewId_1546297200.md`
+
+***Example.*** `./backupBrews.sh -d %s -b BrewId`
+
+
+
+* `-l location`
+
+This changes the savelocation of your backups. The example below puts the brew folders into a folder called "backup" in the home of the current user, like so: `~/backup/BrewId/BrewId_20190101_000000.md`. Be aware that this script will only create a folder for the brew, not folders above that. To use the example, if the folder `~/backup/` doesn't exist, this tool will not create that folder and simply exit.
+
+***Example.*** `./backupBrews.sh -l "~/backup/" -b BrewId`
+
+
+
+You can of course combine all of the options mentioned above:
+
+***Example.*** `./backupBrews.sh -s -d %s -l "~/backup/" -b BrewName1::BrewId1 -b BrewId2 -b "Dont use spaces"::BrewId3`
+
+---
+
+If you have any questions, feel free to ask.
\ No newline at end of file
diff --git a/server.js b/server.js
index 6bf98d200..9aa74179d 100644
--- a/server.js
+++ b/server.js
@@ -103,6 +103,7 @@ const HomebrewModel = require('./server/homebrew.model.js').model;
const welcomeText = require('fs').readFileSync('./client/homebrew/pages/homePage/welcome_msg.md', 'utf8');
const welcomeTextV3 = require('fs').readFileSync('./client/homebrew/pages/homePage/welcome_msg_v3.md', 'utf8');
const changelogText = require('fs').readFileSync('./changelog.md', 'utf8');
+const faqText = require('fs').readFileSync('./faq.md', 'utf8');
String.prototype.replaceAll = function(s, r){return this.split(s).join(r);};
@@ -143,6 +144,18 @@ app.get('/changelog', async (req, res, next)=>{
return next();
});
+//FAQ page
+app.get('/faq', async (req, res, next)=>{
+ const brew = {
+ title : 'FAQ',
+ text : faqText,
+ renderer : 'V3'
+ };
+ splitTextAndStyle(brew);
+ req.brew = brew;
+ return next();
+});
+
//Source page
app.get('/source/:id', asyncHandler(async (req, res)=>{
const brew = await getBrewFromId(req.params.id, 'raw');
From 22e54636d421812b0a0095eeeee79dd52886fccc Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Wed, 15 Sep 2021 14:02:19 -0400
Subject: [PATCH 47/69] Fix partial page rendering on v3
"dummy pages" on v3 were unstyled, giving them very small height which led to a cycle of pages changing size, which shifted other pages into view, which changed their sizes, etc.
---
client/homebrew/brewRenderer/brewRenderer.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/homebrew/brewRenderer/brewRenderer.jsx b/client/homebrew/brewRenderer/brewRenderer.jsx
index 9ea4632c4..260dbdf13 100644
--- a/client/homebrew/brewRenderer/brewRenderer.jsx
+++ b/client/homebrew/brewRenderer/brewRenderer.jsx
@@ -117,7 +117,7 @@ const BrewRenderer = createClass({
},
renderDummyPage : function(index){
- return
+ return
;
},
From 0e4c83043514bffc2d72112cb3dde8b84717c76b Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Wed, 15 Sep 2021 14:15:44 -0400
Subject: [PATCH 48/69] Migrate Mongoose to v6
---
package-lock.json | 447 +++++++++++++++++++++++++---------------------
package.json | 2 +-
server.js | 5 +-
3 files changed, 248 insertions(+), 206 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index dae627090..34a980e00 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -30,7 +30,7 @@
"marked": "3.0.4",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
- "mongoose": "^5.13.7",
+ "mongoose": "^6.0.5",
"nanoid": "3.1.25",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
@@ -1865,32 +1865,29 @@
"node": ">=6"
}
},
- "node_modules/@types/bson": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/@types/bson/-/bson-4.0.3.tgz",
- "integrity": "sha512-mVRvYnTOZJz3ccpxhr3wgxVmSeiYinW+zlzQz3SXWaJmD1DuL05Jeq7nKw3SnbKmbleW5qrLG5vdyWe/A9sXhw==",
- "dependencies": {
- "@types/node": "*"
- }
- },
"node_modules/@types/color-name": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
"integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ=="
},
- "node_modules/@types/mongodb": {
- "version": "3.6.17",
- "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.17.tgz",
- "integrity": "sha512-9hhgvYPdC5iHyyksPcKCu45gfaAIPQHKHGdvNXu4582DmOZX3wrUJIJPT40o4G1oTKPgpMMFqZglOTjhnYoF+A==",
- "dependencies": {
- "@types/bson": "*",
- "@types/node": "*"
- }
- },
"node_modules/@types/node": {
- "version": "15.6.1",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-15.6.1.tgz",
- "integrity": "sha512-7EIraBEyRHEe7CH+Fm1XvgqU6uwZN8Q7jppJGcqjROMT29qhAuuOxYB1uEY5UMYQKEmA5D+5tBnhdaPXSsLONA=="
+ "version": "16.9.1",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.1.tgz",
+ "integrity": "sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g=="
+ },
+ "node_modules/@types/webidl-conversions": {
+ "version": "6.1.1",
+ "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz",
+ "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q=="
+ },
+ "node_modules/@types/whatwg-url": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz",
+ "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/webidl-conversions": "*"
+ }
},
"node_modules/abbrev": {
"version": "1.1.1",
@@ -2410,20 +2407,6 @@
"file-uri-to-path": "1.0.0"
}
},
- "node_modules/bl": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz",
- "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==",
- "dependencies": {
- "readable-stream": "^2.3.5",
- "safe-buffer": "^5.1.1"
- }
- },
- "node_modules/bluebird": {
- "version": "3.5.1",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz",
- "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA=="
- },
"node_modules/bn.js": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
@@ -2806,11 +2789,37 @@
"integrity": "sha512-4i3T0cwnHo1O4Mnp9JniEco8bZiXoqbm3PhW5hv7uu8YLg35iajYrRnNyKFaN8/8SSTskU2hYqVTeYVPceSpUA=="
},
"node_modules/bson": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz",
- "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==",
+ "version": "4.5.2",
+ "resolved": "https://registry.npmjs.org/bson/-/bson-4.5.2.tgz",
+ "integrity": "sha512-8CEMJpwc7qlQtrn2rney38jQSEeMar847lz0LyitwRmVknAW8iHXrzW4fTjHfyWm0E3sukyD/zppdH+QU1QefA==",
+ "dependencies": {
+ "buffer": "^5.6.0"
+ },
"engines": {
- "node": ">=0.6.19"
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/bson/node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
}
},
"node_modules/buffer": {
@@ -3518,9 +3527,9 @@
}
},
"node_modules/denque": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz",
- "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ==",
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz",
+ "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==",
"engines": {
"node": ">=0.10"
}
@@ -6287,116 +6296,100 @@
}
},
"node_modules/mongodb": {
- "version": "3.6.11",
- "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.11.tgz",
- "integrity": "sha512-4Y4lTFHDHZZdgMaHmojtNAlqkvddX2QQBEN0K//GzxhGwlI9tZ9R0vhbjr1Decw+TF7qK0ZLjQT292XgHRRQgw==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.1.1.tgz",
+ "integrity": "sha512-fbACrWEyvr6yl0sSiCGV0sqEiBwTtDJ8iSojmkDjAfw9JnOZSAkUyv9seFSPYhPPKwxp1PDtyjvBNfMDz0WBLQ==",
"dependencies": {
- "bl": "^2.2.1",
- "bson": "^1.1.4",
- "denque": "^1.4.1",
- "optional-require": "^1.0.3",
- "safe-buffer": "^5.1.2"
+ "bson": "^4.5.1",
+ "denque": "^1.5.0",
+ "mongodb-connection-string-url": "^2.0.0"
},
"engines": {
- "node": ">=4"
+ "node": ">=12.9.0"
},
"optionalDependencies": {
"saslprep": "^1.0.0"
- },
- "peerDependenciesMeta": {
- "aws4": {
- "optional": true
- },
- "bson-ext": {
- "optional": true
- },
- "kerberos": {
- "optional": true
- },
- "mongodb-client-encryption": {
- "optional": true
- },
- "mongodb-extjson": {
- "optional": true
- },
- "snappy": {
- "optional": true
- }
+ }
+ },
+ "node_modules/mongodb-connection-string-url": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.0.0.tgz",
+ "integrity": "sha512-M0I1vyLoq5+HQTuPSJWbt+hIXsMCfE8sS1fS5mvP9R2DOMoi2ZD32yWqgBIITyu0dFu4qtS50erxKjvUeBiyog==",
+ "dependencies": {
+ "@types/whatwg-url": "^8.2.1",
+ "whatwg-url": "^9.1.0"
}
},
"node_modules/mongoose": {
- "version": "5.13.7",
- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.13.7.tgz",
- "integrity": "sha512-ADIvftZ+KfoTALMZ0n8HvBlezFhcUd73hQaHQDwQ+3X+JZlqE47fUy9yhFZ2SjT+qzmuaCcIXCfhewIc38t2fQ==",
+ "version": "6.0.5",
+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.5.tgz",
+ "integrity": "sha512-1MoG52oosjEK8z45DHQVbakP6DJG1sbQI/ZASBW8sZRV+rCaG/pC3L3wWjrsiped/2+uhvanWM9C89F2n6bQ3w==",
"dependencies": {
- "@types/mongodb": "^3.5.27",
- "bson": "^1.1.4",
+ "bson": "^4.2.2",
"kareem": "2.3.2",
- "mongodb": "3.6.11",
- "mongoose-legacy-pluralize": "1.0.2",
- "mpath": "0.8.3",
- "mquery": "3.2.5",
+ "mongodb": "4.1.1",
+ "mpath": "0.8.4",
+ "mquery": "4.0.0",
"ms": "2.1.2",
- "optional-require": "1.0.x",
"regexp-clone": "1.0.0",
- "safe-buffer": "5.2.1",
"sift": "13.5.2",
"sliced": "1.0.1"
},
"engines": {
- "node": ">=4.0.0"
+ "node": ">=12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/mongoose"
}
},
- "node_modules/mongoose-legacy-pluralize": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz",
- "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ=="
- },
"node_modules/mongoose/node_modules/ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
- "node_modules/mongoose/node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
- },
"node_modules/mpath": {
- "version": "0.8.3",
- "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.3.tgz",
- "integrity": "sha512-eb9rRvhDltXVNL6Fxd2zM9D4vKBxjVVQNLNijlj7uoXUy19zNDsIif5zR+pWmPCWNKwAtqyo4JveQm4nfD5+eA==",
+ "version": "0.8.4",
+ "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.4.tgz",
+ "integrity": "sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g==",
"engines": {
"node": ">=4.0.0"
}
},
"node_modules/mquery": {
- "version": "3.2.5",
- "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.5.tgz",
- "integrity": "sha512-VjOKHHgU84wij7IUoZzFRU07IAxd5kWJaDmyUzQlbjHjyoeK5TNeeo8ZsFDtTYnSgpW6n/nMNIHvE3u8Lbrf4A==",
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.0.tgz",
+ "integrity": "sha512-nGjm89lHja+T/b8cybAby6H0YgA4qYC/lx6UlwvHGqvTq8bDaNeCwl1sY8uRELrNbVWJzIihxVd+vphGGn1vBw==",
"dependencies": {
- "bluebird": "3.5.1",
- "debug": "3.1.0",
+ "debug": "4.x",
"regexp-clone": "^1.0.0",
- "safe-buffer": "5.1.2",
"sliced": "1.0.1"
},
"engines": {
- "node": ">=4.0.0"
+ "node": ">=12.0.0"
}
},
"node_modules/mquery/node_modules/debug": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
- "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
+ "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
"dependencies": {
- "ms": "2.0.0"
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
}
},
+ "node_modules/mquery/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ },
"node_modules/ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
@@ -6778,14 +6771,6 @@
"wrappy": "1"
}
},
- "node_modules/optional-require": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.0.3.tgz",
- "integrity": "sha512-RV2Zp2MY2aeYK5G+B/Sps8lW5NHAzE5QClbFP15j+PWmP+T9PxlJXBOOLoSAdgwFvS4t0aMR4vpedMkbHfh0nA==",
- "engines": {
- "node": ">=4"
- }
- },
"node_modules/optionator": {
"version": "0.9.1",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
@@ -8674,6 +8659,25 @@
"nodetouch": "bin/nodetouch.js"
}
},
+ "node_modules/tr46": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz",
+ "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==",
+ "dependencies": {
+ "punycode": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tr46/node_modules/punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/truncate-utf8-bytes": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
@@ -9343,6 +9347,26 @@
"node": ">=0.10.0"
}
},
+ "node_modules/webidl-conversions": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz",
+ "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==",
+ "engines": {
+ "node": ">=10.4"
+ }
+ },
+ "node_modules/whatwg-url": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-9.1.0.tgz",
+ "integrity": "sha512-CQ0UcrPHyomtlOCot1TL77WyMIm/bCwrJ2D6AOKGwEczU9EpyoqAokfqrf/MioU9kHcMsmJZcg1egXix2KYEsA==",
+ "dependencies": {
+ "tr46": "^2.1.0",
+ "webidl-conversions": "^6.1.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
@@ -10753,32 +10777,29 @@
"defer-to-connect": "^1.0.1"
}
},
- "@types/bson": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/@types/bson/-/bson-4.0.3.tgz",
- "integrity": "sha512-mVRvYnTOZJz3ccpxhr3wgxVmSeiYinW+zlzQz3SXWaJmD1DuL05Jeq7nKw3SnbKmbleW5qrLG5vdyWe/A9sXhw==",
- "requires": {
- "@types/node": "*"
- }
- },
"@types/color-name": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
"integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ=="
},
- "@types/mongodb": {
- "version": "3.6.17",
- "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.17.tgz",
- "integrity": "sha512-9hhgvYPdC5iHyyksPcKCu45gfaAIPQHKHGdvNXu4582DmOZX3wrUJIJPT40o4G1oTKPgpMMFqZglOTjhnYoF+A==",
- "requires": {
- "@types/bson": "*",
- "@types/node": "*"
- }
- },
"@types/node": {
- "version": "15.6.1",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-15.6.1.tgz",
- "integrity": "sha512-7EIraBEyRHEe7CH+Fm1XvgqU6uwZN8Q7jppJGcqjROMT29qhAuuOxYB1uEY5UMYQKEmA5D+5tBnhdaPXSsLONA=="
+ "version": "16.9.1",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.1.tgz",
+ "integrity": "sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g=="
+ },
+ "@types/webidl-conversions": {
+ "version": "6.1.1",
+ "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz",
+ "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q=="
+ },
+ "@types/whatwg-url": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz",
+ "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==",
+ "requires": {
+ "@types/node": "*",
+ "@types/webidl-conversions": "*"
+ }
},
"abbrev": {
"version": "1.1.1",
@@ -11203,20 +11224,6 @@
"file-uri-to-path": "1.0.0"
}
},
- "bl": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz",
- "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==",
- "requires": {
- "readable-stream": "^2.3.5",
- "safe-buffer": "^5.1.1"
- }
- },
- "bluebird": {
- "version": "3.5.1",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz",
- "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA=="
- },
"bn.js": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
@@ -11547,9 +11554,23 @@
}
},
"bson": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz",
- "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg=="
+ "version": "4.5.2",
+ "resolved": "https://registry.npmjs.org/bson/-/bson-4.5.2.tgz",
+ "integrity": "sha512-8CEMJpwc7qlQtrn2rney38jQSEeMar847lz0LyitwRmVknAW8iHXrzW4fTjHfyWm0E3sukyD/zppdH+QU1QefA==",
+ "requires": {
+ "buffer": "^5.6.0"
+ },
+ "dependencies": {
+ "buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "requires": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ }
+ }
},
"buffer": {
"version": "5.2.1",
@@ -12140,9 +12161,9 @@
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
},
"denque": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz",
- "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ=="
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz",
+ "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw=="
},
"depd": {
"version": "1.1.2",
@@ -14311,34 +14332,37 @@
"integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ=="
},
"mongodb": {
- "version": "3.6.11",
- "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.11.tgz",
- "integrity": "sha512-4Y4lTFHDHZZdgMaHmojtNAlqkvddX2QQBEN0K//GzxhGwlI9tZ9R0vhbjr1Decw+TF7qK0ZLjQT292XgHRRQgw==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.1.1.tgz",
+ "integrity": "sha512-fbACrWEyvr6yl0sSiCGV0sqEiBwTtDJ8iSojmkDjAfw9JnOZSAkUyv9seFSPYhPPKwxp1PDtyjvBNfMDz0WBLQ==",
"requires": {
- "bl": "^2.2.1",
- "bson": "^1.1.4",
- "denque": "^1.4.1",
- "optional-require": "^1.0.3",
- "safe-buffer": "^5.1.2",
+ "bson": "^4.5.1",
+ "denque": "^1.5.0",
+ "mongodb-connection-string-url": "^2.0.0",
"saslprep": "^1.0.0"
}
},
- "mongoose": {
- "version": "5.13.7",
- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.13.7.tgz",
- "integrity": "sha512-ADIvftZ+KfoTALMZ0n8HvBlezFhcUd73hQaHQDwQ+3X+JZlqE47fUy9yhFZ2SjT+qzmuaCcIXCfhewIc38t2fQ==",
+ "mongodb-connection-string-url": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.0.0.tgz",
+ "integrity": "sha512-M0I1vyLoq5+HQTuPSJWbt+hIXsMCfE8sS1fS5mvP9R2DOMoi2ZD32yWqgBIITyu0dFu4qtS50erxKjvUeBiyog==",
"requires": {
- "@types/mongodb": "^3.5.27",
- "bson": "^1.1.4",
+ "@types/whatwg-url": "^8.2.1",
+ "whatwg-url": "^9.1.0"
+ }
+ },
+ "mongoose": {
+ "version": "6.0.5",
+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.5.tgz",
+ "integrity": "sha512-1MoG52oosjEK8z45DHQVbakP6DJG1sbQI/ZASBW8sZRV+rCaG/pC3L3wWjrsiped/2+uhvanWM9C89F2n6bQ3w==",
+ "requires": {
+ "bson": "^4.2.2",
"kareem": "2.3.2",
- "mongodb": "3.6.11",
- "mongoose-legacy-pluralize": "1.0.2",
- "mpath": "0.8.3",
- "mquery": "3.2.5",
+ "mongodb": "4.1.1",
+ "mpath": "0.8.4",
+ "mquery": "4.0.0",
"ms": "2.1.2",
- "optional-require": "1.0.x",
"regexp-clone": "1.0.0",
- "safe-buffer": "5.2.1",
"sift": "13.5.2",
"sliced": "1.0.1"
},
@@ -14347,43 +14371,36 @@
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- },
- "safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
}
}
},
- "mongoose-legacy-pluralize": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz",
- "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ=="
- },
"mpath": {
- "version": "0.8.3",
- "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.3.tgz",
- "integrity": "sha512-eb9rRvhDltXVNL6Fxd2zM9D4vKBxjVVQNLNijlj7uoXUy19zNDsIif5zR+pWmPCWNKwAtqyo4JveQm4nfD5+eA=="
+ "version": "0.8.4",
+ "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.4.tgz",
+ "integrity": "sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g=="
},
"mquery": {
- "version": "3.2.5",
- "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.5.tgz",
- "integrity": "sha512-VjOKHHgU84wij7IUoZzFRU07IAxd5kWJaDmyUzQlbjHjyoeK5TNeeo8ZsFDtTYnSgpW6n/nMNIHvE3u8Lbrf4A==",
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.0.tgz",
+ "integrity": "sha512-nGjm89lHja+T/b8cybAby6H0YgA4qYC/lx6UlwvHGqvTq8bDaNeCwl1sY8uRELrNbVWJzIihxVd+vphGGn1vBw==",
"requires": {
- "bluebird": "3.5.1",
- "debug": "3.1.0",
+ "debug": "4.x",
"regexp-clone": "^1.0.0",
- "safe-buffer": "5.1.2",
"sliced": "1.0.1"
},
"dependencies": {
"debug": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
- "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
+ "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
"requires": {
- "ms": "2.0.0"
+ "ms": "2.1.2"
}
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}
}
},
@@ -14675,11 +14692,6 @@
"wrappy": "1"
}
},
- "optional-require": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.0.3.tgz",
- "integrity": "sha512-RV2Zp2MY2aeYK5G+B/Sps8lW5NHAzE5QClbFP15j+PWmP+T9PxlJXBOOLoSAdgwFvS4t0aMR4vpedMkbHfh0nA=="
- },
"optionator": {
"version": "0.9.1",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
@@ -16223,6 +16235,21 @@
"nopt": "~1.0.10"
}
},
+ "tr46": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz",
+ "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==",
+ "requires": {
+ "punycode": "^2.1.1"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
+ }
+ }
+ },
"truncate-utf8-bytes": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
@@ -16762,6 +16789,20 @@
}
}
},
+ "webidl-conversions": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz",
+ "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w=="
+ },
+ "whatwg-url": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-9.1.0.tgz",
+ "integrity": "sha512-CQ0UcrPHyomtlOCot1TL77WyMIm/bCwrJ2D6AOKGwEczU9EpyoqAokfqrf/MioU9kHcMsmJZcg1egXix2KYEsA==",
+ "requires": {
+ "tr46": "^2.1.0",
+ "webidl-conversions": "^6.1.0"
+ }
+ },
"which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
diff --git a/package.json b/package.json
index e50c54c8e..34da45abf 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"marked": "3.0.4",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
- "mongoose": "^5.13.7",
+ "mongoose": "^6.0.5",
"nanoid": "3.1.25",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
diff --git a/server.js b/server.js
index e6e191ab5..a13be320b 100644
--- a/server.js
+++ b/server.js
@@ -72,10 +72,11 @@ const config = require('nconf')
//DB
const mongoose = require('mongoose');
mongoose.connect(config.get('mongodb_uri') || config.get('mongolab_uri') || 'mongodb://localhost/naturalcrit',
- { retryWrites: false, useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true });
-mongoose.connection.on('error', ()=>{
+ { retryWrites: false });
+mongoose.connection.on('error', (err)=>{
console.log('Error : Could not connect to a Mongo Database.');
console.log(' If you are running locally, make sure mongodb.exe is running.');
+ console.log(err);
throw 'Can not connect to Mongo';
});
From ca491067f1810c592be70bb12e9096589978fc52 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Wed, 15 Sep 2021 14:36:34 -0400
Subject: [PATCH 49/69] linting
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 9aa74179d..89f0b828c 100644
--- a/server.js
+++ b/server.js
@@ -103,7 +103,7 @@ const HomebrewModel = require('./server/homebrew.model.js').model;
const welcomeText = require('fs').readFileSync('./client/homebrew/pages/homePage/welcome_msg.md', 'utf8');
const welcomeTextV3 = require('fs').readFileSync('./client/homebrew/pages/homePage/welcome_msg_v3.md', 'utf8');
const changelogText = require('fs').readFileSync('./changelog.md', 'utf8');
-const faqText = require('fs').readFileSync('./faq.md', 'utf8');
+const faqText = require('fs').readFileSync('./faq.md', 'utf8');
String.prototype.replaceAll = function(s, r){return this.split(s).join(r);};
From 74e746ace9d9d4e46b7c35ec0f844f715804e9da Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 15 Sep 2021 18:40:18 +0000
Subject: [PATCH 50/69] Bump dedent-tabs from 0.10.0 to 0.10.1
Bumps [dedent-tabs](https://github.com/adrianjost/dedent-tabs) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/adrianjost/dedent-tabs/releases)
- [Commits](https://github.com/adrianjost/dedent-tabs/compare/v0.10.0...v0.10.1)
---
updated-dependencies:
- dependency-name: dedent-tabs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 34a980e00..d0eeabbf3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -18,7 +18,7 @@
"codemirror": "^5.62.3",
"cookie-parser": "^1.4.5",
"create-react-class": "^15.7.0",
- "dedent-tabs": "^0.10.0",
+ "dedent-tabs": "^0.10.1",
"express": "^4.17.1",
"express-async-handler": "^1.1.4",
"express-static-gzip": "2.1.1",
@@ -3467,9 +3467,9 @@
}
},
"node_modules/dedent-tabs": {
- "version": "0.10.0",
- "resolved": "https://registry.npmjs.org/dedent-tabs/-/dedent-tabs-0.10.0.tgz",
- "integrity": "sha512-meGhMg4ieQIw/kssncvurnfuDJlMz05Q10EfE/m73Nos8KBU8UUJoMiCf5/ZAzsNmqgf0zan+/i145t2z+9A+Q=="
+ "version": "0.10.1",
+ "resolved": "https://registry.npmjs.org/dedent-tabs/-/dedent-tabs-0.10.1.tgz",
+ "integrity": "sha512-BLwWIXQnJAxhCL+kDN4g/KItzG9glaw1cFglr+pql8W4lTADsZxC0QpolcRXO2M4+bI2/MXCGeg0WPuzeM3SYQ=="
},
"node_modules/deep-extend": {
"version": "0.6.0",
@@ -12113,9 +12113,9 @@
}
},
"dedent-tabs": {
- "version": "0.10.0",
- "resolved": "https://registry.npmjs.org/dedent-tabs/-/dedent-tabs-0.10.0.tgz",
- "integrity": "sha512-meGhMg4ieQIw/kssncvurnfuDJlMz05Q10EfE/m73Nos8KBU8UUJoMiCf5/ZAzsNmqgf0zan+/i145t2z+9A+Q=="
+ "version": "0.10.1",
+ "resolved": "https://registry.npmjs.org/dedent-tabs/-/dedent-tabs-0.10.1.tgz",
+ "integrity": "sha512-BLwWIXQnJAxhCL+kDN4g/KItzG9glaw1cFglr+pql8W4lTADsZxC0QpolcRXO2M4+bI2/MXCGeg0WPuzeM3SYQ=="
},
"deep-extend": {
"version": "0.6.0",
diff --git a/package.json b/package.json
index 34da45abf..d0c2434a4 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,7 @@
"codemirror": "^5.62.3",
"cookie-parser": "^1.4.5",
"create-react-class": "^15.7.0",
- "dedent-tabs": "^0.10.0",
+ "dedent-tabs": "^0.10.1",
"express": "^4.17.1",
"express-async-handler": "^1.1.4",
"express-static-gzip": "2.1.1",
From f7b5cfc623e9b64ae4410b6b91c741556352ff5a Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 15 Sep 2021 18:40:37 +0000
Subject: [PATCH 51/69] Bump googleapis from 85.0.0 to 86.1.0
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 85.0.0 to 86.1.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v85.0.0...googleapis-v86.1.0)
---
updated-dependencies:
- dependency-name: googleapis
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 34a980e00..431db0ded 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,7 +23,7 @@
"express-async-handler": "^1.1.4",
"express-static-gzip": "2.1.1",
"fs-extra": "10.0.0",
- "googleapis": "85.0.0",
+ "googleapis": "86.1.0",
"jwt-simple": "^0.5.6",
"less": "^3.13.1",
"lodash": "^4.17.21",
@@ -4803,9 +4803,9 @@
}
},
"node_modules/googleapis": {
- "version": "85.0.0",
- "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-85.0.0.tgz",
- "integrity": "sha512-9zFsCbxz/642PROcYJsg/CCm89U1qe15c0Wtv7bmZ8cWYLD1Jszc5z+xTNoXZxnomLbvQaHeKBCPh7RdAccYOA==",
+ "version": "86.1.0",
+ "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-86.1.0.tgz",
+ "integrity": "sha512-gcYXoH5/xXBLDyLYPZHtxw89DKqxtRhFOF907ph8HYpUeKDQARIhjOauYkX8Pp8fwhUvCFtydx7jOkYolthbbQ==",
"dependencies": {
"google-auth-library": "^7.0.2",
"googleapis-common": "^5.0.2"
@@ -13176,9 +13176,9 @@
}
},
"googleapis": {
- "version": "85.0.0",
- "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-85.0.0.tgz",
- "integrity": "sha512-9zFsCbxz/642PROcYJsg/CCm89U1qe15c0Wtv7bmZ8cWYLD1Jszc5z+xTNoXZxnomLbvQaHeKBCPh7RdAccYOA==",
+ "version": "86.1.0",
+ "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-86.1.0.tgz",
+ "integrity": "sha512-gcYXoH5/xXBLDyLYPZHtxw89DKqxtRhFOF907ph8HYpUeKDQARIhjOauYkX8Pp8fwhUvCFtydx7jOkYolthbbQ==",
"requires": {
"google-auth-library": "^7.0.2",
"googleapis-common": "^5.0.2"
diff --git a/package.json b/package.json
index 34da45abf..bcf1c4a51 100644
--- a/package.json
+++ b/package.json
@@ -54,7 +54,7 @@
"express-async-handler": "^1.1.4",
"express-static-gzip": "2.1.1",
"fs-extra": "10.0.0",
- "googleapis": "85.0.0",
+ "googleapis": "86.1.0",
"jwt-simple": "^0.5.6",
"less": "^3.13.1",
"lodash": "^4.17.21",
From 1f2809a9139651591413316c19c63cb15fd50e9a Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 15 Sep 2021 18:40:48 +0000
Subject: [PATCH 52/69] Bump mongoose from 6.0.5 to 6.0.6
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.0.5 to 6.0.6.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.0.5...6.0.6)
---
updated-dependencies:
- dependency-name: mongoose
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 34a980e00..460879ac4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -30,7 +30,7 @@
"marked": "3.0.4",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
- "mongoose": "^6.0.5",
+ "mongoose": "^6.0.6",
"nanoid": "3.1.25",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
@@ -6321,9 +6321,9 @@
}
},
"node_modules/mongoose": {
- "version": "6.0.5",
- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.5.tgz",
- "integrity": "sha512-1MoG52oosjEK8z45DHQVbakP6DJG1sbQI/ZASBW8sZRV+rCaG/pC3L3wWjrsiped/2+uhvanWM9C89F2n6bQ3w==",
+ "version": "6.0.6",
+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.6.tgz",
+ "integrity": "sha512-8lHgva/q5msZT16KOKDl+26Mh7uzTrmznup0p/TMqDCt7Y41voP7rZ0sTW/6tk2nsrmmMlJzzThJ8vexq7aQtQ==",
"dependencies": {
"bson": "^4.2.2",
"kareem": "2.3.2",
@@ -14352,9 +14352,9 @@
}
},
"mongoose": {
- "version": "6.0.5",
- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.5.tgz",
- "integrity": "sha512-1MoG52oosjEK8z45DHQVbakP6DJG1sbQI/ZASBW8sZRV+rCaG/pC3L3wWjrsiped/2+uhvanWM9C89F2n6bQ3w==",
+ "version": "6.0.6",
+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.6.tgz",
+ "integrity": "sha512-8lHgva/q5msZT16KOKDl+26Mh7uzTrmznup0p/TMqDCt7Y41voP7rZ0sTW/6tk2nsrmmMlJzzThJ8vexq7aQtQ==",
"requires": {
"bson": "^4.2.2",
"kareem": "2.3.2",
diff --git a/package.json b/package.json
index 34da45abf..4c75d4199 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"marked": "3.0.4",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
- "mongoose": "^6.0.5",
+ "mongoose": "^6.0.6",
"nanoid": "3.1.25",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
From aff764d91c8406c67275f40de159b7e8545fe357 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Wed, 15 Sep 2021 14:56:58 -0400
Subject: [PATCH 53/69] Fix typo in snippet
---
.../editor/snippetbar/snippets/monsterblock.gen.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/client/homebrew/editor/snippetbar/snippets/monsterblock.gen.js b/client/homebrew/editor/snippetbar/snippets/monsterblock.gen.js
index e51249ab1..dddf9b78c 100644
--- a/client/homebrew/editor/snippetbar/snippets/monsterblock.gen.js
+++ b/client/homebrew/editor/snippetbar/snippets/monsterblock.gen.js
@@ -160,16 +160,18 @@ module.exports = {
## ${getMonsterName()}
*${getType()}, ${getAlignment()}*
___
-
+ **Armor Class** :: ${_.random(10, 20)} (chain mail, shield)
+ **Hit Points** :: ${_.random(1, 150)}(1d4 + 5)
+ **Speed** :: ${_.random(0, 50)}ft.
___
| STR | DEX | CON | INT | WIS | CHA |
|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|
${getStats()}
___
**Condition Immunities** :: ${genList(['groggy', 'swagged', 'weak-kneed', 'buzzed', 'groovy', 'melancholy', 'drunk'], 3)}
-
+ **Senses** :: darkvision 60 ft., passive Perception ${_.random(3, 20)}
**Languages** :: ${genList(['Common', 'Pottymouth', 'Gibberish', 'Latin', 'Jive'], 2)}
-
+ **Challenge** :: ${_.random(0, 15)} (${_.random(10, 10000)} XP)
___
${_.times(_.random(genLines, genLines + 2), function(){return genAbilities();}).join('\n:\n')}
:
From b8df5d083f97ff9b4282f4697519716c7381f1b5 Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Wed, 15 Sep 2021 15:45:58 -0500
Subject: [PATCH 54/69] update v3 drop cap snippets to .page
---
client/homebrew/editor/snippetbar/snippets/snippets.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js
index 91260f396..b52c7f855 100644
--- a/client/homebrew/editor/snippetbar/snippets/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippets/snippets.js
@@ -95,7 +95,7 @@ module.exports = [
name : 'Remove Drop Cap',
icon : 'fas fa-remove-format',
gen : dedent`/* Removes Drop Caps */
- .phb3 h1+p:first-letter {
+ .page h1+p:first-letter {
all: unset;
}\n\n`
},
@@ -103,7 +103,7 @@ module.exports = [
name : 'Tweak Drop Cap',
icon : 'fas fa-sliders-h',
gen : dedent`/* Drop Cap settings */
- .phb3 h1 + p::first-letter {
+ .page h1 + p::first-letter {
font-family: SolberaImitationRemake;
font-size: 3.5cm;
background: linear-gradient(-45deg, #322814, #998250, #322814);
From 0de0c22e61327940b283d69d1523266d87881882 Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Wed, 15 Sep 2021 16:14:14 -0500
Subject: [PATCH 55/69] Update v3 ink-friendly snippet to reset drop-shadow
rather than box-shadow
---
client/homebrew/editor/snippetbar/snippets/snippets.js | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js
index b52c7f855..37f9dad81 100644
--- a/client/homebrew/editor/snippetbar/snippets/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippets/snippets.js
@@ -390,11 +390,7 @@ module.exports = [
/* Ink Friendly */
.pages *:is(.page,.monster,.note,.descriptive) {
background : white !important;
- box-shadow : 0px 0px 3px !important;
- }
-
- .page .note:before {
- box-shadow : 0px 0px 3px;
+ filter : drop-shadow(0px 0px 3px #888) !important;
}
.page img {
From 1c88eb80c01579e369a448e0c55bd720c03f2a0c Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Wed, 15 Sep 2021 16:30:30 -0500
Subject: [PATCH 56/69] update v3 ink friendly again to remove `.pages` from
css selector
having `.pages` included in the selector did not match the selectivity in the base .less sheet. Oddly, it was working in the Edit Page, but not in the Print Page.
---
client/homebrew/editor/snippetbar/snippets/snippets.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js
index 37f9dad81..6183594f4 100644
--- a/client/homebrew/editor/snippetbar/snippets/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippets/snippets.js
@@ -388,7 +388,7 @@ module.exports = [
icon : 'fas fa-tint',
gen : dedent`
/* Ink Friendly */
- .pages *:is(.page,.monster,.note,.descriptive) {
+ *:is(.page,.monster,.note,.descriptive) {
background : white !important;
filter : drop-shadow(0px 0px 3px #888) !important;
}
From 837cacc992a4973ac6d0bb54b4582d1ec39d212c Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Thu, 16 Sep 2021 09:51:16 -0500
Subject: [PATCH 57/69] add `.page` container div to printPage.jsx
---
client/homebrew/pages/printPage/printPage.jsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/client/homebrew/pages/printPage/printPage.jsx b/client/homebrew/pages/printPage/printPage.jsx
index 6b3274de6..e083bd98d 100644
--- a/client/homebrew/pages/printPage/printPage.jsx
+++ b/client/homebrew/pages/printPage/printPage.jsx
@@ -63,7 +63,9 @@ const PrintPage = createClass({
{/* Apply CSS from Style tab */}
${this.props.brew.style} ` }} />
- {this.renderPages()}
+
+ {this.renderPages()}
+
;
}
});
From 80ea598ec298f9d14a06afc20964b8afd187ee19 Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Thu, 16 Sep 2021 19:59:54 -0500
Subject: [PATCH 58/69] match brewRenderer.jsx output to printPage.jsx output
---
client/homebrew/brewRenderer/brewRenderer.jsx | 21 +++++++++----------
client/homebrew/pages/printPage/printPage.jsx | 9 ++++++--
2 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/client/homebrew/brewRenderer/brewRenderer.jsx b/client/homebrew/brewRenderer/brewRenderer.jsx
index 260dbdf13..ad767ad9f 100644
--- a/client/homebrew/brewRenderer/brewRenderer.jsx
+++ b/client/homebrew/brewRenderer/brewRenderer.jsx
@@ -188,7 +188,6 @@ const BrewRenderer = createClass({
: null}
style={{ width: '100%', height: '100%', visibility: this.state.visibility }}
contentDidMount={this.frameDidMount}>
-
-
- {/* Apply CSS from Style tab and render pages from Markdown tab */}
- {this.state.isMounted
- &&
- <>
- {this.renderStyle()}
+
+ {/* Apply CSS from Style tab and render pages from Markdown tab */}
+ {this.state.isMounted
+ &&
+ <>
+ {this.renderStyle()}
+
{this.renderPages()}
- >
- }
-
+
+ >
+ }
{this.renderPageInfo()}
diff --git a/client/homebrew/pages/printPage/printPage.jsx b/client/homebrew/pages/printPage/printPage.jsx
index e083bd98d..909adc1a9 100644
--- a/client/homebrew/pages/printPage/printPage.jsx
+++ b/client/homebrew/pages/printPage/printPage.jsx
@@ -35,6 +35,11 @@ const PrintPage = createClass({
if(this.props.query.dialog) window.print();
},
+ renderStyle : function() {
+ if(!this.props.brew.style) return;
+ return
${this.props.brew.style} ` }} />;
+ },
+
renderPages : function(){
if(this.props.brew.renderer == 'legacy') {
return _.map(this.state.brewText.split('\\page'), (pageText, index)=>{
@@ -62,8 +67,8 @@ const PrintPage = createClass({
{/* Apply CSS from Style tab */}
-
${this.props.brew.style} ` }} />
-
+ {this.renderStyle()}
+
{this.renderPages()}
;
From 356c062ce5708780dfaa3b302f605b88a4252395 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 17 Sep 2021 03:01:16 +0000
Subject: [PATCH 59/69] Bump googleapis from 86.1.0 to 87.0.0
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 86.1.0 to 87.0.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v86.1.0...googleapis-v87.0.0)
---
updated-dependencies:
- dependency-name: googleapis
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 77085140f..ba00f8a9c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,7 +23,7 @@
"express-async-handler": "^1.1.4",
"express-static-gzip": "2.1.1",
"fs-extra": "10.0.0",
- "googleapis": "86.1.0",
+ "googleapis": "87.0.0",
"jwt-simple": "^0.5.6",
"less": "^3.13.1",
"lodash": "^4.17.21",
@@ -4803,9 +4803,9 @@
}
},
"node_modules/googleapis": {
- "version": "86.1.0",
- "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-86.1.0.tgz",
- "integrity": "sha512-gcYXoH5/xXBLDyLYPZHtxw89DKqxtRhFOF907ph8HYpUeKDQARIhjOauYkX8Pp8fwhUvCFtydx7jOkYolthbbQ==",
+ "version": "87.0.0",
+ "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-87.0.0.tgz",
+ "integrity": "sha512-/SfRpfshQoluC309qRkNWUiTkUN5uQtP/TuPvYbw/7khiJJnxrhP632zPZPKT+8zEPe5/j5hYzMnJKywJNeFvw==",
"dependencies": {
"google-auth-library": "^7.0.2",
"googleapis-common": "^5.0.2"
@@ -13176,9 +13176,9 @@
}
},
"googleapis": {
- "version": "86.1.0",
- "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-86.1.0.tgz",
- "integrity": "sha512-gcYXoH5/xXBLDyLYPZHtxw89DKqxtRhFOF907ph8HYpUeKDQARIhjOauYkX8Pp8fwhUvCFtydx7jOkYolthbbQ==",
+ "version": "87.0.0",
+ "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-87.0.0.tgz",
+ "integrity": "sha512-/SfRpfshQoluC309qRkNWUiTkUN5uQtP/TuPvYbw/7khiJJnxrhP632zPZPKT+8zEPe5/j5hYzMnJKywJNeFvw==",
"requires": {
"google-auth-library": "^7.0.2",
"googleapis-common": "^5.0.2"
diff --git a/package.json b/package.json
index 5ac8290b9..e2d4f9ebe 100644
--- a/package.json
+++ b/package.json
@@ -54,7 +54,7 @@
"express-async-handler": "^1.1.4",
"express-static-gzip": "2.1.1",
"fs-extra": "10.0.0",
- "googleapis": "86.1.0",
+ "googleapis": "87.0.0",
"jwt-simple": "^0.5.6",
"less": "^3.13.1",
"lodash": "^4.17.21",
From 875e8b59a692378dee68e40b97cce95833b4286e Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Fri, 17 Sep 2021 13:57:07 -0400
Subject: [PATCH 60/69] Update changelog and version to 3.0.1
---
changelog.md | 35 +++++++++++++++++++++++++++++++++++
package-lock.json | 4 ++--
package.json | 2 +-
3 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/changelog.md b/changelog.md
index e36cbb82a..8ee6d33d2 100644
--- a/changelog.md
+++ b/changelog.md
@@ -32,6 +32,41 @@ pre {
# changelog
+### Friday, 17/09/2021 - v3.0.1
+
+{{taskList
+* [x] Updated V3 **PHB → Class Feature** snippet to use V3 syntax.
+
+ Fixes issues: [Reported on Reddit](https://www.reddit.com/r/homebrewery/comments/pm6ki7/two_version_of_class_features_making_it_look_more/)
+
+* [x] Improved V3 **PHB → Monster Stat Block** snippet and styling to allow for easier control of paragraph indentation in the Abilities text.
+
+ Fixes issues: [#181](https://github.com/naturalcrit/homebrewery/issues/181)
+
+* [x] Improved Legacy **TABLES → Split Table** snippet by removing unneeded column-break backticks.
+
+ Fixes issues: [#844](https://github.com/naturalcrit/homebrewery/issues/844)
+
+* [x] Changed block elements to use CSS `width` instead of `min-width`. This should make custom styles behave more predictably when trying to resize items.
+
+ Fixes issues: [Reported on Reddit](https://www.reddit.com/r/homebrewery/comments/pohoy3/looking_for_help_with_basic_stuff_in_v3/)
+
+* [x] Fixed Partial Page Rendering in V3 for large brews
+
+ Fixes issues: [Reported on Reddit](https://www.reddit.com/r/homebrewery/comments/pori3a/weird_behaviour_of_the_brew_after_page_50/)
+
+* [x] Fixed HTML validation to handle tags starting with 'a', as in `<aside>`.
+
+ Fixes issues: [#230](https://github.com/naturalcrit/homebrewery/issues/230)
+
+* [x] Fixed page footers switching side when printing.
+
+ Fixes issues: [#1612](https://github.com/naturalcrit/homebrewery/issues/1612)
+}}
+
+
+\page
+
### Saturday, 11/09/2021 - v3.0.0
We have been working on v3 for a *very* long time. We want to thank everyone for being paitent.
diff --git a/package-lock.json b/package-lock.json
index 77085140f..112c29e1c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,11 +1,11 @@
{
"name": "homebrewery",
- "version": "3.0.0",
+ "version": "3.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
- "version": "3.0.0",
+ "version": "3.0.1",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index 5ac8290b9..9b09ac976 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "homebrewery",
"description": "Create authentic looking D&D homebrews using only markdown",
- "version": "3.0.0",
+ "version": "3.0.1",
"engines": {
"node": "14.15.x"
},
From b4a658cac57466d594a26aaa46a16193ee276d54 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 20 Sep 2021 03:00:37 +0000
Subject: [PATCH 61/69] Bump eslint-plugin-react from 7.25.1 to 7.25.3
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.25.1 to 7.25.3.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.25.1...v7.25.3)
---
updated-dependencies:
- dependency-name: eslint-plugin-react
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 41 ++++++++++++++++++++++++++++++++---------
package.json | 2 +-
2 files changed, 33 insertions(+), 10 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 8b6337ccb..a3e7c26f0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,7 +45,7 @@
},
"devDependencies": {
"eslint": "^7.32.0",
- "eslint-plugin-react": "^7.25.1",
+ "eslint-plugin-react": "^7.25.3",
"pico-check": "^2.1.3"
},
"engines": {
@@ -3868,20 +3868,20 @@
}
},
"node_modules/eslint-plugin-react": {
- "version": "7.25.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.25.1.tgz",
- "integrity": "sha512-P4j9K1dHoFXxDNP05AtixcJEvIT6ht8FhYKsrkY0MPCPaUMYijhpWwNiRDZVtA8KFuZOkGSeft6QwH8KuVpJug==",
+ "version": "7.25.3",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.25.3.tgz",
+ "integrity": "sha512-ZMbFvZ1WAYSZKY662MBVEWR45VaBT6KSJCiupjrNlcdakB90juaZeDCbJq19e73JZQubqFtgETohwgAt8u5P6w==",
"dev": true,
"dependencies": {
"array-includes": "^3.1.3",
"array.prototype.flatmap": "^1.2.4",
"doctrine": "^2.1.0",
"estraverse": "^5.2.0",
- "has": "^1.0.3",
"jsx-ast-utils": "^2.4.1 || ^3.0.0",
"minimatch": "^3.0.4",
"object.entries": "^1.1.4",
"object.fromentries": "^2.0.4",
+ "object.hasown": "^1.0.0",
"object.values": "^1.1.4",
"prop-types": "^15.7.2",
"resolve": "^2.0.0-next.3",
@@ -6724,6 +6724,19 @@
"node": ">= 0.4"
}
},
+ "node_modules/object.hasown": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.0.0.tgz",
+ "integrity": "sha512-qYMF2CLIjxxLGleeM0jrcB4kiv3loGVAjKQKvH8pSU/i2VcRRvUNmxbD+nEMmrXRfORhuVJuH8OtSYCZoue3zA==",
+ "dev": true,
+ "dependencies": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.18.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/object.pick": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz",
@@ -12519,20 +12532,20 @@
}
},
"eslint-plugin-react": {
- "version": "7.25.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.25.1.tgz",
- "integrity": "sha512-P4j9K1dHoFXxDNP05AtixcJEvIT6ht8FhYKsrkY0MPCPaUMYijhpWwNiRDZVtA8KFuZOkGSeft6QwH8KuVpJug==",
+ "version": "7.25.3",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.25.3.tgz",
+ "integrity": "sha512-ZMbFvZ1WAYSZKY662MBVEWR45VaBT6KSJCiupjrNlcdakB90juaZeDCbJq19e73JZQubqFtgETohwgAt8u5P6w==",
"dev": true,
"requires": {
"array-includes": "^3.1.3",
"array.prototype.flatmap": "^1.2.4",
"doctrine": "^2.1.0",
"estraverse": "^5.2.0",
- "has": "^1.0.3",
"jsx-ast-utils": "^2.4.1 || ^3.0.0",
"minimatch": "^3.0.4",
"object.entries": "^1.1.4",
"object.fromentries": "^2.0.4",
+ "object.hasown": "^1.0.0",
"object.values": "^1.1.4",
"prop-types": "^15.7.2",
"resolve": "^2.0.0-next.3",
@@ -14657,6 +14670,16 @@
"has": "^1.0.3"
}
},
+ "object.hasown": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.0.0.tgz",
+ "integrity": "sha512-qYMF2CLIjxxLGleeM0jrcB4kiv3loGVAjKQKvH8pSU/i2VcRRvUNmxbD+nEMmrXRfORhuVJuH8OtSYCZoue3zA==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.18.1"
+ }
+ },
"object.pick": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz",
diff --git a/package.json b/package.json
index 2474ab086..5c3f9e803 100644
--- a/package.json
+++ b/package.json
@@ -76,7 +76,7 @@
},
"devDependencies": {
"eslint": "^7.32.0",
- "eslint-plugin-react": "^7.25.1",
+ "eslint-plugin-react": "^7.25.3",
"pico-check": "^2.1.3"
}
}
From 2ab010acadedc9b8fcfe96d9fbd9662c62797207 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 21 Sep 2021 03:01:04 +0000
Subject: [PATCH 62/69] Bump mongoose from 6.0.6 to 6.0.7
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.0.6 to 6.0.7.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.0.6...6.0.7)
---
updated-dependencies:
- dependency-name: mongoose
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index a3e7c26f0..178302061 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -30,7 +30,7 @@
"marked": "3.0.4",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
- "mongoose": "^6.0.6",
+ "mongoose": "^6.0.7",
"nanoid": "3.1.25",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
@@ -6321,9 +6321,9 @@
}
},
"node_modules/mongoose": {
- "version": "6.0.6",
- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.6.tgz",
- "integrity": "sha512-8lHgva/q5msZT16KOKDl+26Mh7uzTrmznup0p/TMqDCt7Y41voP7rZ0sTW/6tk2nsrmmMlJzzThJ8vexq7aQtQ==",
+ "version": "6.0.7",
+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.7.tgz",
+ "integrity": "sha512-44STDcV6awu0zfo1Z3NyKPHZwfVrGU93/QgR0gYbt4bik/nEa7lI1RRGcq5oyGM0YE7l63i2j80v1OhvrlFvYw==",
"dependencies": {
"bson": "^4.2.2",
"kareem": "2.3.2",
@@ -14365,9 +14365,9 @@
}
},
"mongoose": {
- "version": "6.0.6",
- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.6.tgz",
- "integrity": "sha512-8lHgva/q5msZT16KOKDl+26Mh7uzTrmznup0p/TMqDCt7Y41voP7rZ0sTW/6tk2nsrmmMlJzzThJ8vexq7aQtQ==",
+ "version": "6.0.7",
+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.7.tgz",
+ "integrity": "sha512-44STDcV6awu0zfo1Z3NyKPHZwfVrGU93/QgR0gYbt4bik/nEa7lI1RRGcq5oyGM0YE7l63i2j80v1OhvrlFvYw==",
"requires": {
"bson": "^4.2.2",
"kareem": "2.3.2",
diff --git a/package.json b/package.json
index 5c3f9e803..a04679af7 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"marked": "3.0.4",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
- "mongoose": "^6.0.6",
+ "mongoose": "^6.0.7",
"nanoid": "3.1.25",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
From 808478671808f38a6ab3acaf48eb1c84365f0f67 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 21 Sep 2021 03:01:28 +0000
Subject: [PATCH 63/69] Bump eslint-plugin-react from 7.25.3 to 7.26.0
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.25.3 to 7.26.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.25.3...v7.26.0)
---
updated-dependencies:
- dependency-name: eslint-plugin-react
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 31 ++++++++++++++++++++++++-------
package.json | 2 +-
2 files changed, 25 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index a3e7c26f0..040367b89 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,7 +45,7 @@
},
"devDependencies": {
"eslint": "^7.32.0",
- "eslint-plugin-react": "^7.25.3",
+ "eslint-plugin-react": "^7.26.0",
"pico-check": "^2.1.3"
},
"engines": {
@@ -3868,9 +3868,9 @@
}
},
"node_modules/eslint-plugin-react": {
- "version": "7.25.3",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.25.3.tgz",
- "integrity": "sha512-ZMbFvZ1WAYSZKY662MBVEWR45VaBT6KSJCiupjrNlcdakB90juaZeDCbJq19e73JZQubqFtgETohwgAt8u5P6w==",
+ "version": "7.26.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.26.0.tgz",
+ "integrity": "sha512-dceliS5itjk4EZdQYtLMz6GulcsasguIs+VTXuiC7Q5IPIdGTkyfXVdmsQOqEhlD9MciofH4cMcT1bw1WWNxCQ==",
"dev": true,
"dependencies": {
"array-includes": "^3.1.3",
@@ -3885,6 +3885,7 @@
"object.values": "^1.1.4",
"prop-types": "^15.7.2",
"resolve": "^2.0.0-next.3",
+ "semver": "^6.3.0",
"string.prototype.matchall": "^4.0.5"
},
"engines": {
@@ -3925,6 +3926,15 @@
"path-parse": "^1.0.6"
}
},
+ "node_modules/eslint-plugin-react/node_modules/semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true,
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
"node_modules/eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
@@ -12532,9 +12542,9 @@
}
},
"eslint-plugin-react": {
- "version": "7.25.3",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.25.3.tgz",
- "integrity": "sha512-ZMbFvZ1WAYSZKY662MBVEWR45VaBT6KSJCiupjrNlcdakB90juaZeDCbJq19e73JZQubqFtgETohwgAt8u5P6w==",
+ "version": "7.26.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.26.0.tgz",
+ "integrity": "sha512-dceliS5itjk4EZdQYtLMz6GulcsasguIs+VTXuiC7Q5IPIdGTkyfXVdmsQOqEhlD9MciofH4cMcT1bw1WWNxCQ==",
"dev": true,
"requires": {
"array-includes": "^3.1.3",
@@ -12549,6 +12559,7 @@
"object.values": "^1.1.4",
"prop-types": "^15.7.2",
"resolve": "^2.0.0-next.3",
+ "semver": "^6.3.0",
"string.prototype.matchall": "^4.0.5"
},
"dependencies": {
@@ -12576,6 +12587,12 @@
"is-core-module": "^2.2.0",
"path-parse": "^1.0.6"
}
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
}
}
},
diff --git a/package.json b/package.json
index 5c3f9e803..131835f2d 100644
--- a/package.json
+++ b/package.json
@@ -76,7 +76,7 @@
},
"devDependencies": {
"eslint": "^7.32.0",
- "eslint-plugin-react": "^7.25.3",
+ "eslint-plugin-react": "^7.26.0",
"pico-check": "^2.1.3"
}
}
From 2ea5148c4a4688f8256f896a5ed86eeec3b3da25 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 21 Sep 2021 03:01:53 +0000
Subject: [PATCH 64/69] Bump codemirror from 5.62.3 to 5.63.0
Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.62.3 to 5.63.0.
- [Release notes](https://github.com/codemirror/CodeMirror/releases)
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codemirror/CodeMirror/compare/5.62.3...5.63.0)
---
updated-dependencies:
- dependency-name: codemirror
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index a3e7c26f0..7be58f8c0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,7 +15,7 @@
"@babel/preset-react": "^7.14.5",
"body-parser": "^1.19.0",
"classnames": "^2.3.1",
- "codemirror": "^5.62.3",
+ "codemirror": "^5.63.0",
"cookie-parser": "^1.4.5",
"create-react-class": "^15.7.0",
"dedent-tabs": "^0.10.1",
@@ -3138,9 +3138,9 @@
}
},
"node_modules/codemirror": {
- "version": "5.62.3",
- "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.62.3.tgz",
- "integrity": "sha512-zZAyOfN8TU67ngqrxhOgtkSAGV9jSpN1snbl8elPtnh9Z5A11daR405+dhLzLnuXrwX0WCShWlybxPN3QC/9Pg=="
+ "version": "5.63.0",
+ "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.63.0.tgz",
+ "integrity": "sha512-KlLWRPggDg2rBD1Mx7/EqEhaBdy+ybBCVh/efgjBDsPpMeEu6MbTAJzIT4TuCzvmbTEgvKOGzVT6wdBTNusqrg=="
},
"node_modules/collection-visit": {
"version": "1.0.0",
@@ -11843,9 +11843,9 @@
}
},
"codemirror": {
- "version": "5.62.3",
- "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.62.3.tgz",
- "integrity": "sha512-zZAyOfN8TU67ngqrxhOgtkSAGV9jSpN1snbl8elPtnh9Z5A11daR405+dhLzLnuXrwX0WCShWlybxPN3QC/9Pg=="
+ "version": "5.63.0",
+ "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.63.0.tgz",
+ "integrity": "sha512-KlLWRPggDg2rBD1Mx7/EqEhaBdy+ybBCVh/efgjBDsPpMeEu6MbTAJzIT4TuCzvmbTEgvKOGzVT6wdBTNusqrg=="
},
"collection-visit": {
"version": "1.0.0",
diff --git a/package.json b/package.json
index 5c3f9e803..29c6964fc 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
"@babel/preset-react": "^7.14.5",
"body-parser": "^1.19.0",
"classnames": "^2.3.1",
- "codemirror": "^5.62.3",
+ "codemirror": "^5.63.0",
"cookie-parser": "^1.4.5",
"create-react-class": "^15.7.0",
"dedent-tabs": "^0.10.1",
From 3c1ecf1292fa5b55649fb9e8322a2188e81eab5c Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Tue, 21 Sep 2021 22:59:25 -0400
Subject: [PATCH 65/69] Fix merge
---
.../editor/snippetbar/snippetsLegacy/snippets.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
index efae5c9e8..40c8405ac 100644
--- a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js
@@ -204,6 +204,16 @@ module.exports = [
icon : 'fas fa-table',
view : 'text',
snippets : [
+ {
+ name : 'Class Table',
+ icon : 'fas fa-table',
+ gen : ClassTableGen.full,
+ },
+ {
+ name : 'Half Class Table',
+ icon : 'fas fa-list-alt',
+ gen : ClassTableGen.half,
+ },
{
name : 'Table',
icon : 'fas fa-th-list',
From eb7340434e7b17aedf28e993005fe9cdf8d2060e Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Tue, 21 Sep 2021 23:31:08 -0400
Subject: [PATCH 66/69] Revert dropcap `background` to `background-image`
Changing to just `background` undoes `background-clip` as well. This is more explicit.
---
client/homebrew/editor/snippetbar/snippets/snippets.js | 2 +-
themes/5ePhb.style.less | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js
index 4eeac4e00..15fc5ba14 100644
--- a/client/homebrew/editor/snippetbar/snippets/snippets.js
+++ b/client/homebrew/editor/snippetbar/snippets/snippets.js
@@ -106,7 +106,7 @@ module.exports = [
.page h1 + p::first-letter {
font-family: SolberaImitationRemake;
font-size: 3.5cm;
- background: linear-gradient(-45deg, #322814, #998250, #322814);
+ background-image: linear-gradient(-45deg, #322814, #998250, #322814);
line-height: 1em;
}\n\n`
},
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less
index 69c952659..607a13cca 100644
--- a/themes/5ePhb.style.less
+++ b/themes/5ePhb.style.less
@@ -146,10 +146,10 @@ body {
font-size : 3.5cm;
padding-left : 40px; //Allow background color to extend into margins
margin-left : -40px;
- margin-top :-0.3cm;
- padding-bottom :2px;
- margin-bottom :-20px;
- background : linear-gradient(-45deg, #322814, #998250, #322814);
+ margin-top : -0.3cm;
+ padding-bottom : 2px;
+ margin-bottom : -20px;
+ background-image : linear-gradient(-45deg, #322814, #998250, #322814);
background-clip : text;
-webkit-background-clip : text;
color : rgba(0, 0, 0, 0);
From f78a9f91122f9b312eb381cd2ff360a3141b96ef Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 28 Sep 2021 03:00:56 +0000
Subject: [PATCH 67/69] Bump mongoose from 6.0.7 to 6.0.8
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.0.7 to 6.0.8.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.0.7...6.0.8)
---
updated-dependencies:
- dependency-name: mongoose
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 114bb9366..40d6dcb83 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -30,7 +30,7 @@
"marked": "3.0.4",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
- "mongoose": "^6.0.7",
+ "mongoose": "^6.0.8",
"nanoid": "3.1.25",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
@@ -6331,9 +6331,9 @@
}
},
"node_modules/mongoose": {
- "version": "6.0.7",
- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.7.tgz",
- "integrity": "sha512-44STDcV6awu0zfo1Z3NyKPHZwfVrGU93/QgR0gYbt4bik/nEa7lI1RRGcq5oyGM0YE7l63i2j80v1OhvrlFvYw==",
+ "version": "6.0.8",
+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.8.tgz",
+ "integrity": "sha512-7XZ5TUoDtF8af7+mKfL58s8dN2BKmldQPTlmkb41PaRAleBVGeAck7Mj6JlIh9SOCi+64GT+afebiJaeyXe1Lw==",
"dependencies": {
"bson": "^4.2.2",
"kareem": "2.3.2",
@@ -14382,9 +14382,9 @@
}
},
"mongoose": {
- "version": "6.0.7",
- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.7.tgz",
- "integrity": "sha512-44STDcV6awu0zfo1Z3NyKPHZwfVrGU93/QgR0gYbt4bik/nEa7lI1RRGcq5oyGM0YE7l63i2j80v1OhvrlFvYw==",
+ "version": "6.0.8",
+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.8.tgz",
+ "integrity": "sha512-7XZ5TUoDtF8af7+mKfL58s8dN2BKmldQPTlmkb41PaRAleBVGeAck7Mj6JlIh9SOCi+64GT+afebiJaeyXe1Lw==",
"requires": {
"bson": "^4.2.2",
"kareem": "2.3.2",
diff --git a/package.json b/package.json
index 0f86d3583..b2c8c3f6d 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"marked": "3.0.4",
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
- "mongoose": "^6.0.7",
+ "mongoose": "^6.0.8",
"nanoid": "3.1.25",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
From 39f745639f5aaefae226e93b72e6f9f1dd62edaf Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Tue, 28 Sep 2021 20:06:29 -0500
Subject: [PATCH 68/69] remove gradient, set counter to start at '2'
---
client/homebrew/editor/editor.less | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/client/homebrew/editor/editor.less b/client/homebrew/editor/editor.less
index 5ad1d3ffb..0097ddbf6 100644
--- a/client/homebrew/editor/editor.less
+++ b/client/homebrew/editor/editor.less
@@ -4,10 +4,12 @@
width : 100%;
.codeEditor{
- height : 100%;
- counter-reset : page;
+ height : 100%;
+ counter-reset : page;
+ counter-increment : page;
.pageLine{
- background : linear-gradient(to bottom, white 80%, lightgray);
+ background : #33333328;
+ border-top : #339 solid 1px;
&:after{
content : counter(page);
counter-increment : page;
From fc60ac3fb0a6825fc12a6812f8ebdaa6555f678d Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 29 Sep 2021 19:30:41 +0000
Subject: [PATCH 69/69] Bump nanoid from 3.1.25 to 3.1.28
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.25 to 3.1.28.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.25...3.1.28)
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 40d6dcb83..443bbed53 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -31,7 +31,7 @@
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
"mongoose": "^6.0.8",
- "nanoid": "3.1.25",
+ "nanoid": "3.1.28",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
"query-string": "7.0.1",
@@ -6412,9 +6412,9 @@
"optional": true
},
"node_modules/nanoid": {
- "version": "3.1.25",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.25.tgz",
- "integrity": "sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q==",
+ "version": "3.1.28",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.28.tgz",
+ "integrity": "sha512-gSu9VZ2HtmoKYe/lmyPFES5nknFrHa+/DT9muUFWFMi6Jh9E1I7bkvlQ8xxf1Kos9pi9o8lBnIOkatMhKX/YUw==",
"bin": {
"nanoid": "bin/nanoid.cjs"
},
@@ -14446,9 +14446,9 @@
"optional": true
},
"nanoid": {
- "version": "3.1.25",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.25.tgz",
- "integrity": "sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q=="
+ "version": "3.1.28",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.28.tgz",
+ "integrity": "sha512-gSu9VZ2HtmoKYe/lmyPFES5nknFrHa+/DT9muUFWFMi6Jh9E1I7bkvlQ8xxf1Kos9pi9o8lBnIOkatMhKX/YUw=="
},
"nanomatch": {
"version": "1.2.13",
diff --git a/package.json b/package.json
index b2c8c3f6d..411ce2b82 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"markedLegacy": "npm:marked@^0.3.19",
"moment": "^2.29.1",
"mongoose": "^6.0.8",
- "nanoid": "3.1.25",
+ "nanoid": "3.1.28",
"nconf": "^0.11.3",
"prop-types": "15.7.2",
"query-string": "7.0.1",