Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/19 serendibite #1747

Merged
merged 185 commits into from
May 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
d96d0fd
Add color-text button
vutoan1245 Aug 3, 2020
80ee607
Add color picker for text
vutoan1245 Aug 4, 2020
f0eb702
Update color text json/xml structure
vutoan1245 Aug 4, 2020
7623fe1
adds viewer:initialView event and fixes opening in a new tab
iturgeon Aug 5, 2020
ebad662
Update color text icon
vutoan1245 Aug 10, 2020
fe7bb8a
Add tests for color text picker
vutoan1245 Aug 10, 2020
a2d6465
Added check for figure node
ctcuff Aug 18, 2020
4121e0b
Merge branch 'dev/12-ammolite' of https://github.com/ucfopen/Obojobo …
ctcuff Aug 19, 2020
d4e0391
Added tests
ctcuff Aug 20, 2020
15313aa
Merge branch 'dev/12-ammolite' of https://github.com/ucfopen/Obojobo …
ctcuff Aug 20, 2020
ea4b2de
Merge with dev/14-garnet
vutoan1245 Sep 21, 2020
b702d91
Updated implementation
ctcuff Sep 24, 2020
8c8133b
Merge branch 'dev/14-garnet' of https://github.com/ucfopen/Obojobo in…
ctcuff Sep 24, 2020
cf3c2b7
Update color picker icon and color options
vutoan1245 Sep 28, 2020
7e575f1
Add eye-dropper icon to color picker
vutoan1245 Sep 29, 2020
70a1036
Add tests for color picker
vutoan1245 Sep 29, 2020
d0e9c91
Merge branch 'dev/14-garnet' of https://github.com/ucfopen/Obojobo in…
ctcuff Sep 29, 2020
a92a407
Update input border
vutoan1245 Sep 29, 2020
e2d58dd
Fixed issues with figure duplication inside a question
ctcuff Sep 29, 2020
7cc45b3
* Color Picker now allows you to input any type of valid CSS color st…
zachberry Sep 30, 2020
d2d172d
Merge branch 'dev/14-garnet' of https://github.com/ucfopen/Obojobo in…
ctcuff Sep 30, 2020
c718e71
Updates the color cells to be buttons, which allows them to be tabble…
zachberry Oct 1, 2020
572a1e4
add cache to gh action for tests
iturgeon Oct 2, 2020
c2c7e5c
adds npm publish github action
iturgeon Oct 2, 2020
17d8944
adds prettier github action
iturgeon Oct 2, 2020
b514a72
prettier action - restrict events and use frozen lockfile for yarn in…
iturgeon Oct 3, 2020
85f3c06
prettier action adds verbose git logging
iturgeon Oct 3, 2020
8b32e43
change prettier action to pull_request_target
iturgeon Oct 3, 2020
f8ab619
testing changing back to pull_request
iturgeon Oct 3, 2020
75a68a7
switch back to target mode, change job name
iturgeon Oct 3, 2020
2260402
polish prettier action
iturgeon Oct 3, 2020
b0e9d19
npmpublish action
iturgeon Oct 3, 2020
5762708
Merge branch 'dev/15-magnetite' into issue/1162-color-text
vutoan1245 Oct 19, 2020
f202f97
Fix crashing problem when openning color picker for non-text
vutoan1245 Oct 19, 2020
7f85132
Merge branch 'dev/15-magnetite' of https://github.com/ucfopen/Obojobo…
vutoan1245 Nov 9, 2020
2f8217a
Prevent formatted text in navigation heading
vutoan1245 Nov 9, 2020
8ba1722
add feature/* branches to prettier action
iturgeon Jan 28, 2021
e909da4
Merge remote-tracking branch 'upstream/dev/17-peridot' into issue/116…
zachberry Feb 23, 2021
f3ad74a
WIP: Fixing color with latex equations
zachberry Feb 23, 2021
5faf84b
Adds a stress test document with lots of formatting
zachberry Feb 25, 2021
e2f035f
* In Visual Editor’s TextUtil.slateToOboText method, the conversion f…
zachberry Feb 25, 2021
4f340e0
Merge branch 'issue/1694-use-styleable-text-for-xml-to-json-and-slate…
zachberry Feb 25, 2021
27e1bd6
Updated snapshots
zachberry Feb 25, 2021
ed6a361
Revert yarn.lock
zachberry Feb 25, 2021
b5226a4
Merge branch 'issue/1694-use-styleable-text-for-xml-to-json-and-slate…
zachberry Feb 25, 2021
3e84bf1
adds link to obojobo classic in readme
iturgeon Feb 28, 2021
fb7a6e2
add link to research wiki in readme
iturgeon Mar 3, 2021
77db4f9
switches from geopattern to trianglify
iturgeon Feb 26, 2020
3e73413
changed module image route to build the whole svg
iturgeon Feb 27, 2020
a32d359
add stroke width to triangle icons
iturgeon Feb 28, 2020
1422fc9
revert yarn.lock
iturgeon Mar 17, 2021
355c4ba
upgrade to current version of trianglify
iturgeon Mar 17, 2021
2e942bf
fix tests after merging new icons into current master
iturgeon Mar 17, 2021
f8fafdc
Updates trianglify output to use new toSVG api, fixing icons
zachberry Mar 18, 2021
10d6e05
fixes tests after gem icon update
iturgeon Mar 19, 2021
64845e1
upgrades katex from 0.12.0 to 0.13.0
iturgeon Mar 23, 2021
ce45494
upgrade sharp from 0.26.1 to 0.27.2
iturgeon Mar 23, 2021
45ee8e5
upgrades @babel/* to current versions
iturgeon Mar 23, 2021
3691323
updates @svgr/webpack from 5.4.0 to 5.5.0
iturgeon Mar 23, 2021
09249b2
update jest from 26.4.2 to 26.6.3
iturgeon Mar 23, 2021
cbeb68d
upgrade babel-loader from 8.1.0 to 8.2.2
iturgeon Mar 23, 2021
51ca329
upgrade camelcase from 6.0.0 to 6.2.0
iturgeon Mar 23, 2021
c8e8ffa
upgrade codemirror from 5.58.1 to 5.60.0
iturgeon Mar 24, 2021
b3988f1
update date-fns dayjs and moment
iturgeon Mar 24, 2021
9b11c95
db-migrate upgrade from 0.11.11 to 0.11.12
iturgeon Mar 24, 2021
40b8743
upgrade debug from 4.2.0 to 4.3.1
iturgeon Mar 24, 2021
72da2df
upgrade ejs 3.1.5 to 3.1.6
iturgeon Mar 24, 2021
01c0a56
upgrade husky from 4.3.0 to 5.2.0
iturgeon Mar 24, 2021
4a78ca0
upgrade lerna from 3.22.1 to 4.0.0
iturgeon Mar 24, 2021
fddd5d2
upgrade is-svg from 4.2.1 to 4.3.1
iturgeon Mar 24, 2021
b4ae67a
upgraded lint-staged from 10.2.6 to 10.5.4
iturgeon Mar 24, 2021
5cd5586
upgrade fs-extra from 9.0.1 to 9.1.0
iturgeon Mar 24, 2021
beadeab
upgrade uuid from 8.1.0 to 8.3.2
iturgeon Mar 24, 2021
982b789
upgrade react-redux from 7.2.1 to 7.2.3
iturgeon Mar 24, 2021
2122f13
upgrade pg-promise from 10.6.2 to 10.9.5
iturgeon Mar 24, 2021
ab8e7bc
upgrade webpack 4.44.2 -> 4.46.0, webpack-manifest-plugin 2.2.0 -> 3.1.0
iturgeon Mar 24, 2021
6e151cd
upgrade url-parse 1.4.7 -> 1.5.1
iturgeon Mar 24, 2021
63955ca
upgrade underscore from 1.11.0 to 1.12.1
iturgeon Mar 24, 2021
8647c20
supertest upgraded from 5.0.0 to 6.1.3
iturgeon Mar 24, 2021
3807989
upgrade styleling 13.7.2 -> 13.12.0
iturgeon Mar 24, 2021
0d29dca
update unit-blacklist to unit-disallowed-list
iturgeon Mar 24, 2021
9011206
upgrade responsive-loader 1.2.0 -> 2.3.0
iturgeon Mar 24, 2021
ba490d8
upgrade stylelint-config-standard 20.0.0 -> 21.0.0
iturgeon Mar 24, 2021
d640d0c
nodegyp upgraded 6.1.0 -> 7.1.2
iturgeon Mar 24, 2021
5618b9b
adds max-width option for figure captions
jpeterson976 Mar 24, 2021
223d297
updated tests
jpeterson976 Mar 24, 2021
777a8c6
upgrades webpack from 4.46.0 to 5.28.0
iturgeon Mar 24, 2021
b81dfde
upgrades none-sass 4.14.1 -> 5.0.0 and css-loader
iturgeon Mar 24, 2021
cd452dc
sysend upgraded 1.3.4 -> 1.3.5
iturgeon Mar 24, 2021
d274677
upgrade react-modal 3.11.2 -> 3.12.1
iturgeon Mar 24, 2021
4198aa6
upgraded xml-formatter 2.0.1 -> 2.4.0
iturgeon Mar 24, 2021
7e31144
upgrade react-idle-timer 4.2.12 -> 4.5.6
iturgeon Mar 24, 2021
6fd49d9
updates react-compount-slider 2.5.0 -> 3.3.1
iturgeon Mar 24, 2021
9dab206
update eslint rules to accomidate previous changes
iturgeon Mar 24, 2021
b9f2cbe
updated figure empty node
jpeterson976 Mar 24, 2021
6b7d235
updates eslint 6.8.0 -> 7.22.0 and eslint-plugin-react
iturgeon Mar 24, 2021
dd4ff82
css tweak so old figures display properly
jpeterson976 Mar 24, 2021
b93073a
upgrades express-validator 5.2.0 -> 6.10.0
iturgeon Mar 24, 2021
7f85c5c
upgrades file-type 12.4.2 -> 16.3.0 and makes media more async
iturgeon Mar 24, 2021
ea7eab6
fresh yarn.lock
iturgeon Mar 24, 2021
7e52f8f
updated tutorial to reflect recent additions
jpeterson976 Mar 25, 2021
b27b833
Merge branch 'dev/19-serendibite' into issue/package-upgrades-for-dev-19
iturgeon Mar 29, 2021
3552d7c
remove console.log output from pg-promse in test
iturgeon Mar 29, 2021
bee88ea
fix test coverage after console fix
iturgeon Mar 29, 2021
aec3e08
Merge pull request #1746 from iturgeon/issue/package-upgrades-for-dev-19
iturgeon Mar 29, 2021
74a70eb
upgrades to node 14.16.0
iturgeon Mar 29, 2021
e235854
docker stage names & deps for sharp
iturgeon Mar 29, 2021
b91facd
removes node 12 from github actions
iturgeon Mar 23, 2021
312f3f0
Merge pull request #1740 from iturgeon/issue/upgrade-to-node-14
iturgeon Mar 29, 2021
7bbf257
Fixed iframe zoom property not being updated when switching pages in …
maufcost Mar 30, 2021
e1a91f5
Removes a paragraph in the YouTube page of the visual editor tutorial…
zachberry Mar 30, 2021
2fbd579
Merge pull request #1751 from jpeterson976/issue/1743-tutorial-updates
zachberry Mar 30, 2021
6b96ce8
Added zoom check using mediaState and created new mediautil method
maufcost Mar 31, 2021
22d4712
disable yarn ignore-engines
iturgeon Apr 1, 2021
ea1abef
fixed viewer and custom size behavior
jpeterson976 Apr 1, 2021
8b5ece9
adds menu dropdown hide on mouseout when selected
iturgeon Apr 2, 2021
687d53b
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 4, 2021
7ff07d0
rename viewer-app var for viewerHideDate
iturgeon Apr 4, 2021
77d41a1
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 5, 2021
9d028fe
enables all optional nodes when running dev server
iturgeon Apr 5, 2021
954f859
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 5, 2021
e02ffc5
fixes assessment-store unit test warnings
jpeterson976 Apr 5, 2021
8087fd8
expand use of image properties modal constants
iturgeon Apr 5, 2021
6e6aac7
Merge pull request #1699 from ucfopen/add-link-to-research-wiki-in-re…
iturgeon Apr 5, 2021
74ae4a0
Merge pull request #1698 from ucfopen/issue/add-readme-link-to-obojob…
iturgeon Apr 5, 2021
d96071d
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 5, 2021
4f809b5
undo changes added to fix iframe zoom
iturgeon Apr 5, 2021
20be917
updates Page child component key to use child's uuid
iturgeon Apr 5, 2021
1ca978b
updates and simplifies assets for webpack 5
iturgeon Apr 6, 2021
300d60f
Merge pull request #1756 from iturgeon/issue/enable-optional-nodes-in…
iturgeon Apr 6, 2021
15b7654
Merge pull request #1695 from zachberry/issue/1694-use-styleable-text…
zachberry Apr 6, 2021
d6820ca
Merge pull request #1545 from vutoan1245/issue/1162-color-text
zachberry Apr 6, 2021
1e4a1e7
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 6, 2021
3c37a6a
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 6, 2021
861e464
removes commented out css
iturgeon Apr 6, 2021
f389bc2
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 6, 2021
81bbcfe
updates node version on prettier action
iturgeon Apr 6, 2021
d8534e5
updates materia converter snapshot after xml/json/slate conversion up…
iturgeon Apr 6, 2021
3860f8e
Merge pull request #1753 from maufcost/issue/1737-iframe-zoom-not-upd…
zachberry Apr 6, 2021
507891a
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 6, 2021
a5192c6
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 6, 2021
0ac2043
Updates color-picker.scss stylelint-disable-line rules
zachberry Apr 6, 2021
ef12f0e
outdated dependency update - multiple
iturgeon Apr 6, 2021
d54340c
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
zachberry Apr 6, 2021
fc8306b
Updates the color picker to embed the eye dropper icon in CSS
zachberry Apr 6, 2021
4c99790
Merge pull request #1717 from iturgeon/issue/triangle-icon-patterns
zachberry Apr 6, 2021
7f12e57
Merge pull request #1757 from jpeterson976/issue/1667-fix-nonfailing-…
zachberry Apr 6, 2021
e3854ef
Merge pull request #1755 from iturgeon/issue/1291-toolbar-hide-on-mou…
zachberry Apr 6, 2021
fda7935
removes undefined in editor component + minor code tweaks
jpeterson976 Apr 6, 2021
d6189d1
Merge pull request #1745 from jpeterson976/issue/1707-figure-caption-…
zachberry Apr 6, 2021
69dd8c4
fixes svgs in react being picked up by webpack assets
iturgeon Apr 6, 2021
82b26e3
fail tests on unhandled promise rejections
iturgeon Apr 6, 2021
cf8ccd0
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 6, 2021
6ffd92a
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 6, 2021
860d817
moves npm publish workflow into main action pipeline
iturgeon Apr 6, 2021
cd408c4
Merge pull request #1567 from iturgeon/issue/action-prettier
iturgeon Apr 6, 2021
073d571
Merge pull request #1566 from iturgeon/issue/action-build-tag
iturgeon Apr 6, 2021
3b5387a
Merge pull request #1761 from iturgeon/issue/package-updates-for-dev-19
iturgeon Apr 6, 2021
7910dea
Merge pull request #1760 from iturgeon/issue/fix-webpack-asset-resolu…
iturgeon Apr 6, 2021
9a4dc8b
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 6, 2021
4544316
* Fixes typo in “not available”
zachberry Apr 6, 2021
272b4f3
adds insertItemInto to Figure node plugins and..
iturgeon Apr 7, 2021
75e469a
converts prettier action to a test
iturgeon Apr 7, 2021
ede785b
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 7, 2021
a4be2b0
fixes syntax error in gh action test yaml
iturgeon Apr 7, 2021
635d41b
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 7, 2021
c1d22c2
prettier run
iturgeon Apr 7, 2021
f395671
Merge remote-tracking branch 'upstream/dev/19-serendibite' into issue…
iturgeon Apr 7, 2021
d162ca0
changed max-width to text-width
jpeterson976 Apr 7, 2021
f4bf3e1
added caption width to tutorial
jpeterson976 Apr 7, 2021
1825ef1
Merge pull request #1450 from iturgeon/issue/1449-first-visit-and-ret…
iturgeon Apr 7, 2021
a198573
Merge pull request #1479 from ctcuff/issue/1275-duplicate-figures
iturgeon Apr 7, 2021
201be00
* Updates text-color-picker-icon to only call editor.toggleEditable(t…
zachberry Apr 7, 2021
828d1b5
Merge pull request #1767 from zachberry/issue/1764-math-equation-edit…
zachberry Apr 8, 2021
8a929f1
* Disables caption width input when size is set to large or medium
zachberry Apr 8, 2021
4ac8b13
Adds note in the visual editor tutorial about how caption width doesn…
zachberry Apr 8, 2021
627b6ff
Merge pull request #1766 from jpeterson976/issue/1762-figure-tutorial…
zachberry Apr 8, 2021
458c85c
v12.0.0-alpha.0
iturgeon Apr 8, 2021
baf880a
adds docker libs needed for new triangle icons
iturgeon Apr 9, 2021
3d7be87
v12.0.0-alpha.1
iturgeon Apr 9, 2021
af72466
deps to peerDeps for materia chunk and docker build
iturgeon Apr 9, 2021
8fb737d
v12.0.0-alpha.2
iturgeon Apr 9, 2021
f12b3ec
update docker build to support npm trianglify
iturgeon Apr 9, 2021
d2c907f
v12.0.0-alpha.3
iturgeon Apr 9, 2021
8bf5b97
v12.0.0
iturgeon Apr 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.11.1, 12.x]
node-version: [14.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -26,6 +26,15 @@ jobs:
# frozen lockfile should make the cache more effective
# and our tests more predictable
- run: yarn install --frozen-lockfile

# run prettier against all the code
- name: Run Prettier
run: yarn prettier:run

# verify that running prettier didn't cause any changes
# will fail the PRs that need prettier run on them
- name: Does Prettier Need to Be Run
run: git --no-pager diff --exit-code -- .

- run: yarn test:ci

Expand Down Expand Up @@ -64,3 +73,28 @@ jobs:
docker push ghcr.io/${{ github.repository_owner }}/obojobo:nginx-${{ github.sha }}
docker push ghcr.io/${{ github.repository_owner }}/obojobo:nginx-${{ steps.tag_name.outputs.GIT_TAG }}

deploy_npm_packages:
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: NPM - Test, Build, Deploy
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/

- name: Cache Yarn Deps
uses: c-hive/gha-yarn-cache@v1

# frozen lockfile should make the cache more effective
# and our tests more predictable
- run: yarn install --frozen-lockfile

- run: yarn build

- run: yarn release:publish --yes
env:
NODE_AUTH_TOKEN: ${{secrets.TR_NPM_PASSWORD}}
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# .husky/pre-commit (v5)
# ...
yarn precommit
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.11.1
14.16.0
2 changes: 1 addition & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
workspaces-experimental true
workspaces-experimental true
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ View the [Obojobo Next Documentation](https://ucfopen.github.io/Obojobo-Docs/).

[Join UCF Open Slack Discussions](https://ucf-open-slackin.herokuapp.com/) [![Join UCF Open Slack Discussions](https://ucf-open-slackin.herokuapp.com/badge.svg)](https://ucf-open-slackin.herokuapp.com/)

The previous version of Obojobo, renamed to Obojobo Classic, is located here: https://github.com/ucfopen/Obojobo-Classic

## The Obojobo Mission

To keep our collective efforts aimed in the same direction, we've outlined what we want Obojobo to be:

1. UI/UX focused design that ensures a satisfying & enjoyable student experience.
2. Low barrier of entry for content creators. Creating content is as easy as writing a document in Word.
3. Research centric design. Obojobo aims to be the premiere research-enabling learning platform by providing high resolution data, partnering with researchers, and including proven research outcomes back into the platform.
3. Research centric design. Obojobo aims to be the premiere [research-enabling learning platform](https://github.com/ucfopen/Obojobo/wiki/Published-Research-Using-Obojobo-Next) by providing high resolution data, partnering with researchers, and including proven research outcomes back into the platform.
4. Extraordinary practice and assessment tools that enable emerging teaching and learning models.
5. Provide innovative new capabilities in online, blended, and mixed mode courses.
6. Architecturally extensible and modular. Obojobo Next is easy to customize and extend.
Expand Down
9 changes: 7 additions & 2 deletions docker/dockerfiles/obojobo-node-debian.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================================================================================
# Base stage used for build and final stages
# =====================================================================================================
FROM node:12.11.1-alpine AS base_stage
FROM node:14.16.0-alpine AS base_stage

# ======== PUT NEW NODE BIN DIR IN PATH
RUN npm config set prefix '/home/node/.npm-global'
Expand All @@ -12,7 +12,9 @@ ENV PATH=/home/node/.npm-global/bin:${PATH}
# =====================================================================================================
FROM base_stage as build_stage

RUN apk add --no-cache git
# build-base needed for node building binaries
# pkgconfig pixman-dev cairo-dev pango-dev jpeg-dev giflib-dev needed for npm trianglify
RUN apk add --no-cache build-base git pkgconfig pixman-dev cairo-dev pango-dev jpeg-dev giflib-dev python3

# ======== INSTALL PM2 Globally
RUN npm install --global pm2@^4.5.1
Expand Down Expand Up @@ -48,6 +50,9 @@ RUN yarn --production=true
# =====================================================================================================
FROM base_stage as final_stage

# cairo pango jpeg giflib are needed for npm trianglify
RUN apk add --no-cache cairo pango jpeg giflib

# ======== COPY GLOBAL NODE STUFF
COPY --chown=node:node --from=build_stage /home/node/.npm-global /home/node/.npm-global

Expand Down
2 changes: 1 addition & 1 deletion docker/obojobo-pm2-server-src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obojobo-pm2-server-app",
"version": "11.4.0",
"version": "12.0.0",
"description": "Reference project for deploying and customizing an Obojobo Next server",
"main": "./index.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/**/*"
],
"version": "11.4.0",
"version": "12.0.0",
"command": {
"command": {
"run": {
Expand Down
21 changes: 9 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"lint": "lerna run lint",
"lint:css": "lerna run lint:css",
"lint:js": "lerna run lint:js",
"precommit": "lerna run precommit --concurrency 1 && yarn test:ci --bail",
"precommit": "lerna run precommit --concurrency 1 && yarn test:ci --bail",
"prettier:run": "lerna run prettier:run",
"release:publish": "lerna publish from-package",
"release:tag": "lerna version --no-push --sign-git-commit --sign-git-tag --no-commit-hooks --force-publish",
"version": "yarn update-project-version && yarn update-docker-app-version",
Expand All @@ -22,21 +23,17 @@
"start": "start_obojobo_server",
"test": "TZ='America/New_York' jest --verbose",
"test:ci": "TZ='America/New_York' CI=true jest --ci --useStderr --coverage --coverageReporters text-summary cobertura",
"test:ci:each": "lerna run test:ci"
"test:ci:each": "lerna run test:ci",
"postinstall": "husky install"
},
"devDependencies": {
"husky": "^4.3.0",
"husky": "^6.0.0",
"jest-runner-eslint": "^0.10.0",
"lerna": "^3.22.1",
"lerna": "^4.0.0",
"nodemon": "^2.0.4"
},
"resolutions": {
"node-gyp": "^6.1.0"
},
"husky": {
"hooks": {
"pre-commit": "yarn precommit"
}
"node-gyp": "^8.0.0"
},
"jest": {
"projects": [
Expand Down Expand Up @@ -101,7 +98,7 @@
],
"engines": {
"yarn": "^1.15.2",
"node": "^12.11.1"
"node": "^14.16.0"
},
"version": "11.4.0"
"version": "12.0.0"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// searching for the viewer scripts is expensive, this will cache them
if(!global.__viewerScriptCache){
if (!global.__viewerScriptCache) {
const { gatherClientScriptsFromModules } = require('obojobo-lib-utils')
const entriesFromObojoboModules = gatherClientScriptsFromModules()
const chunkViewerScripts = entriesFromObojoboModules.viewer.filter(item => !item.includes('obojobo-document-engine'))
const chunkViewerScripts = entriesFromObojoboModules.viewer.filter(
item => !item.includes('obojobo-document-engine')
)
// skip viewer scripts from the doc-engine
global.__viewerScriptCache = chunkViewerScripts.filter(script => !script.includes('obojobo-document-engine'))
global.__viewerScriptCache = chunkViewerScripts.filter(
script => !script.includes('obojobo-document-engine')
)
}

global.__viewerScriptCache.forEach(script => require(script))
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@ import React from 'react'
const getCircularReplacer = () => {
const seen = new WeakSet()
return (key, value) => {
if (typeof value === "object" && value !== null) {
if (typeof value === 'object' && value !== null) {
if (seen.has(value)) {
return
}
seen.add(value)
}
return value;
return value
}
}

export default class MockClassComponent extends React.Component {
render() {
return (
<div>
MockClassComponent
Props: {JSON.stringify(this.props, getCircularReplacer(), 2)}
</div>
<div>MockClassComponent Props: {JSON.stringify(this.props, getCircularReplacer(), 2)}</div>
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,7 @@ exports[`Nav renders all list item types (locked=false) 1`] = `
aria-disabled={true}
aria-label="Go to mockMe"
>
<div
className="mockStylableText"
text={
MockStylableText {
"value": "mockMe",
}
}
/>
mockMe
</button>
</li>
<li
Expand Down Expand Up @@ -212,14 +205,7 @@ exports[`Nav renders all list item types (locked=true) 1`] = `
aria-disabled={true}
aria-label="Go to mockMe"
>
<div
className="mockStylableText"
text={
MockStylableText {
"value": "mockMe",
}
}
/>
mockMe
</button>
<div
className="lock-icon"
Expand Down
Loading