Charlie Humphreys
ea68e4778e
Merge branch 'code-folding' into codemirror-tweaks
2021-11-11 21:16:40 -06:00
Charlie Humphreys
2d30ac21a7
Update code based on PR feedback
...
#692
2021-11-11 17:08:05 -06:00
Charlie Humphreys
da6b00918d
Add addons for code search, auto-closing code, active line highlight, and trailing whitespace
...
#1201 #1202
2021-11-10 17:11:00 -06:00
Charlie Humphreys
52d7e6892b
Adjust comment to better describe the require section
...
#629
2021-11-10 11:37:18 -06:00
Charlie Humphreys
cac9e208df
Update editor.jsx to only clear marks that are not folds
...
#629
2021-11-10 10:27:32 -06:00
Charlie Humphreys
c86e8c51cb
Remove code added for debugging purposes
...
#629
2021-11-10 10:26:55 -06:00
Charlie Humphreys
3abb399045
Update homebrewery fold helper to allow folding the last page to the end of the document
...
#629
2021-11-09 10:08:48 -06:00
Charlie Humphreys
b06dedfa4a
Fix linting issues
...
#629
2021-11-08 17:24:33 -06:00
Charlie Humphreys
f3d0d3e2c9
Add new library files to the browserify lib array
...
#629
2021-11-08 17:24:22 -06:00
Charlie Humphreys
eec6e66543
Replace copied code with require methods to import the CodeMirror helpers
...
Put back the correct require notation for importing the foldcode and foldgutter helpers
#629
2021-11-07 21:35:35 -06:00
Charlie Humphreys
c0b9f4488f
Add code folding feature for all content within a single page
...
Added the gutter definitions and css for code folding. Enabling code folding in the editor was
tricky due to how CodeMirror loads its files. At the moment, the CodeMirror code-folding code has
been copied into the fold-code.js file. Additionally, that file contains the helper registration
for the Homebrewery-specific code folding function.
#629
2021-11-02 22:40:17 -05:00
Trevor Buckner
09ca2a4fd9
Merge pull request #1779 from naturalcrit/v3.0.3
...
Update Changelog to v3.0.3
2021-10-27 21:53:42 -04:00
Trevor Buckner
a4b2fe2b91
Update Changelog
2021-10-27 21:52:52 -04:00
Trevor Buckner
8b219ba38a
Merge pull request #1773 from naturalcrit/dependabot/npm_and_yarn/marked-3.0.8
...
Bump marked from 3.0.7 to 3.0.8
2021-10-27 21:41:22 -04:00
Trevor Buckner
8722791419
Merge pull request #1772 from naturalcrit/dependabot/npm_and_yarn/eslint-8.1.0
...
Bump eslint from 8.0.1 to 8.1.0
2021-10-26 23:11:45 -04:00
Trevor Buckner
55c175d9dd
Merge pull request #1775 from G-Ambatte/fixDockerNodeConfig-#1767
...
[Docker] Shift to Alpine base image
2021-10-26 23:10:25 -04:00
G.Ambatte
da2dfd3736
Shift from 16.11 to 16.11-alpine with git added
2021-10-26 19:15:58 +13:00
dependabot[bot]
bf489513dc
Bump marked from 3.0.7 to 3.0.8
...
Bumps [marked](https://github.com/markedjs/marked ) from 3.0.7 to 3.0.8.
- [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.7...v3.0.8 )
---
updated-dependencies:
- dependency-name: marked
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-25 03:00:59 +00:00
dependabot[bot]
56054e2607
Bump eslint from 8.0.1 to 8.1.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.0.1 to 8.1.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.0.1...v8.1.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-25 03:00:36 +00:00
Trevor Buckner
732021f5a5
Merge pull request #1769 from naturalcrit/FixStartingUndoOnNewPage
...
Fix starting undo on new page
2021-10-24 19:10:58 -04:00
Trevor Buckner
34293bcc1d
Merge pull request #1763 from naturalcrit/keepHistoryOnTabSwitch
...
use CodeMirror Documents
2021-10-24 19:04:14 -04:00
Trevor Buckner
ddb12ffbe2
Make sure initial tab loads with language for code highlighting
2021-10-24 18:03:10 -04:00
Trevor Buckner
47b99a24fb
Clear out unneeded style when editor is hidden in Metadata panel
2021-10-24 16:46:46 -04:00
Trevor Buckner
a4e0768105
Move Localstorage load to GetInitialState
...
Prevents the extra change to the CodeMirror document which was creating a starting "undo" history point that would blank out the page.
2021-10-24 16:42:39 -04:00
Trevor Buckner
11f7e3b8fc
Merge pull request #1768 from G-Ambatte/fixDockerNodeConfig-#1767
...
Up Dockerfile Node version
2021-10-24 11:26:22 -04:00
G.Ambatte
e42c346ebc
Up Dockerfile Node version
2021-10-23 14:21:06 +13:00
Trevor Buckner
23799b8d41
Merge pull request #1765 from naturalcrit/dependabot/npm_and_yarn/mongoose-6.0.12
...
Bump mongoose from 6.0.11 to 6.0.12
2021-10-21 23:47:14 -04:00
dependabot[bot]
9515e13ce5
Bump mongoose from 6.0.11 to 6.0.12
...
Bumps [mongoose](https://github.com/Automattic/mongoose ) from 6.0.11 to 6.0.12.
- [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.11...6.0.12 )
---
updated-dependencies:
- dependency-name: mongoose
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-22 03:01:17 +00:00
Trevor Buckner
e1d7a363ef
Merge pull request #1760 from G-Ambatte/fixDivider-#1674
...
Limit divider position
2021-10-20 10:55:28 -04:00
Trevor Buckner
63d659ff49
use CodeMirror Documents
...
Instead of re-building the whole editor box with every tab switch, we just swap in and out CodeMirror "documents".
Maintains undo history, scroll position, highlight coloring, etc.
2021-10-19 23:49:11 -04:00
G.Ambatte
dbf6020194
Darken divider on hover
2021-10-19 23:19:26 +13:00
Trevor Buckner
b5ad75bcf2
Merge pull request #1761 from naturalcrit/dependabot/npm_and_yarn/googleapis-89.0.0
...
Bump googleapis from 88.2.0 to 89.0.0
2021-10-18 23:33:17 -04:00
dependabot[bot]
67d3c44017
Bump googleapis from 88.2.0 to 89.0.0
...
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client ) from 88.2.0 to 89.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-v88.2.0...googleapis-v89.0.0 )
---
updated-dependencies:
- dependency-name: googleapis
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-19 03:00:46 +00:00
G.Ambatte
3b37cacea2
Limit position to min/max window limits
2021-10-19 15:04:53 +13:00
G.Ambatte
a2a6a3d3f6
Add limits to central divider position
2021-10-19 14:39:51 +13:00
Trevor Buckner
e9b9c87188
Merge pull request #1701 from G-Ambatte/addEditorBar
...
Editor Toolbar - Undo and Redo.
2021-10-18 15:18:20 -04:00
G.Ambatte
941159425b
Merge branch 'addEditorBar' of https://github.com/G-Ambatte/homebrewery into addEditorBar
2021-10-18 22:30:55 +13:00
G.Ambatte
f33cd39300
Add conditional highlighting to Undo/Redo
2021-10-18 22:29:27 +13:00
G.Ambatte
8983960ca8
Add divider and tool active class
2021-10-18 22:29:27 +13:00
G.Ambatte
9dd885e7eb
Move Undo/Redo to SnippetBar
2021-10-18 22:29:26 +13:00
G.Ambatte
ab2900cadf
Expose CodeMirror functions in codeEditor.jsx
2021-10-18 22:29:25 +13:00
Sean Robertson
bfcb29ff9c
Reduce CodeMirror codeEditor historyEventDelay to 250
2021-10-18 22:29:25 +13:00
G.Ambatte
9bc52b412c
Initial pass at Editor Toolbar - Undo and Redo.
2021-10-18 22:29:25 +13:00
G.Ambatte
606a3c843d
Add conditional highlighting to Undo/Redo
2021-10-18 22:26:34 +13:00
G.Ambatte
5b3953094e
Add divider and tool active class
2021-10-18 21:39:01 +13:00
Trevor Buckner
aec8133046
Merge pull request #1755 from naturalcrit/dependabot/npm_and_yarn/mongoose-6.0.11
...
Bump mongoose from 6.0.10 to 6.0.11
2021-10-14 23:06:52 -04:00
dependabot[bot]
97cad9f52c
Bump mongoose from 6.0.10 to 6.0.11
...
Bumps [mongoose](https://github.com/Automattic/mongoose ) from 6.0.10 to 6.0.11.
- [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.10...6.0.11 )
---
updated-dependencies:
- dependency-name: mongoose
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-15 03:01:06 +00:00
Trevor Buckner
44d4198f69
Merge pull request #1754 from naturalcrit/dependabot/npm_and_yarn/eslint-8.0.1
...
Bump eslint from 8.0.0 to 8.0.1
2021-10-14 00:46:14 -04:00
Trevor Buckner
432cce4ccf
Merge pull request #1753 from naturalcrit/dependabot/npm_and_yarn/nanoid-3.1.30
...
Bump nanoid from 3.1.29 to 3.1.30
2021-10-14 00:45:59 -04:00
Trevor Buckner
7eb43b7c61
Merge pull request #1752 from naturalcrit/DropdownButtonComponent
...
Working dropdown component
2021-10-14 00:45:42 -04:00