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

Revert document is not defined #2616

Closed
wants to merge 1,259 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1259 commits
Select commit Hold shift + click to select a range
77d1778
Add puppeteer video recorder helper (#2463)
mstrofbass Oct 19, 2024
0be5d94
Revert "ColorPicker: Move shouldRemoveStyle to formatSelectionActionC…
raineorshine Oct 19, 2024
2521855
300.30.20
raineorshine Oct 19, 2024
7a8ec65
minor
raineorshine Oct 19, 2024
cd20a52
join: Combine thoughts in rank order.
raineorshine Oct 19, 2024
173b88c
join: Ignore metaprogramming attributes.
raineorshine Oct 19, 2024
d065943
join: minor refactor
raineorshine Oct 19, 2024
81b935f
executeShortcut: Use proper dispatch.
raineorshine Oct 19, 2024
3bb9913
executeShortcut: Only alert string.
raineorshine Oct 19, 2024
89272e7
join: Add multicursor support.
raineorshine Oct 19, 2024
52df568
300.30.21
raineorshine Oct 19, 2024
b6e15e5
Disable spellCheck when running in Puppeteer.
raineorshine Oct 19, 2024
4767e10
ColorPicker: minor
raineorshine Oct 19, 2024
fcaf1fc
Move shouldRemoveStyle to formatSelection.
raineorshine Oct 19, 2024
509cfa5
makeSelectorEffect: Pass slice to effect.
raineorshine Oct 20, 2024
b4200b6
Re-measure thought size when the screen is resized.
raineorshine Oct 20, 2024
b45ac98
300.30.22
raineorshine Oct 20, 2024
1850676
thoughtspace: Log doclog block errors to console instead of alert.
raineorshine Oct 20, 2024
2df39fc
300.30.23
raineorshine Oct 20, 2024
cc92862
Limit line width for easier reading.
raineorshine Oct 20, 2024
0748bb5
300.30.24
raineorshine Oct 20, 2024
3f89671
add top-level duration config
mstrofbass Oct 20, 2024
973dda6
add durations helpers
mstrofbass Oct 20, 2024
805cc40
update duration helpers
mstrofbass Oct 20, 2024
a54c5b1
pandacss config fix
mstrofbass Oct 20, 2024
fcb4453
remove unused code
mstrofbass Oct 20, 2024
b91741e
tutorial button transition duration
mstrofbass Oct 13, 2024
ba5f796
tutorial navigation durations
mstrofbass Oct 13, 2024
42fc3ad
tip transition duratino
mstrofbass Oct 13, 2024
b3b648c
advanced settings link opacity duration
mstrofbass Oct 13, 2024
13cc311
signature pad opacity duration
mstrofbass Oct 13, 2024
9400c3b
note color transition duration
mstrofbass Oct 13, 2024
12f130e
add signature pad opacity and note color durations to config
mstrofbass Oct 20, 2024
1f614ee
new thought transition duration
mstrofbass Oct 13, 2024
0049a04
add newthoughtransitionduration
mstrofbass Oct 20, 2024
591c8c9
drop end duration
mstrofbass Oct 13, 2024
5ebfad9
update css transition for latest shortcuts
mstrofbass Oct 13, 2024
9cd36c3
favorites market duration
mstrofbass Oct 13, 2024
008dd97
error boundary triangle toggle duration
mstrofbass Oct 13, 2024
2c4d8ad
add durations to config
mstrofbass Oct 20, 2024
eda89f8
bullet durations
mstrofbass Oct 13, 2024
91628b3
add device durations
mstrofbass Oct 20, 2024
32a46cf
share details durations
mstrofbass Oct 20, 2024
cab0464
Alert durations
mstrofbass Oct 20, 2024
4025aa7
command pallete durations
mstrofbass Oct 20, 2024
0f282a9
context breadcrumbs duration
mstrofbass Oct 20, 2024
44cdbfd
error messages durations
mstrofbass Oct 20, 2024
974905d
favorites duration
mstrofbass Oct 20, 2024
05d02de
latest shortcuts durations
mstrofbass Oct 20, 2024
560027a
navbar durations
mstrofbass Oct 20, 2024
cc4042e
quick drop panel durations
mstrofbass Oct 20, 2024
e14d9d7
sidebar durations
mstrofbass Oct 20, 2024
5b61346
trace gesture durations
mstrofbass Oct 20, 2024
1e4daa2
customize toolbar durations
mstrofbass Oct 20, 2024
511ecca
color picker durations
mstrofbass Oct 20, 2024
54fb229
rename default import in durations.ts
mstrofbass Oct 20, 2024
54f23ec
Use duration config diractly in pandacss
mstrofbass Oct 20, 2024
70e4794
update durationHelper name
mstrofbass Oct 20, 2024
e90d076
update duration helper name
mstrofbass Oct 20, 2024
f00cdf4
update duration helper name
mstrofbass Oct 20, 2024
ad1360b
move style into DropDownMenu component
yangchristina Oct 21, 2024
59d3f30
Update src/components/Thought.tsx
yangchristina Oct 21, 2024
44efec8
Merge branch 'remove-classnames' of https://github.com/yangchristina/…
yangchristina Oct 21, 2024
4cbfa59
Merge pull request #20 from cybersemics/main
yangchristina Oct 21, 2024
3ed040f
Merge branch 'main' into remove-classnames
yangchristina Oct 21, 2024
31a1541
Merge pull request #2449 from yangchristina/remove-classnames
raineorshine Oct 21, 2024
fa1b3ff
Tip: Disable pointer revents when hidden.
raineorshine Oct 21, 2024
5921bee
Tip: Convert to PandaCSS.
raineorshine Oct 21, 2024
584e8e2
Disable the single line url test until #2452 is fixed.
raineorshine Oct 21, 2024
dbc8719
Merge branch 'main' into remove-puppeteer-test-delays3-2-#2110
raineorshine Oct 21, 2024
2159f10
Merge pull request #21 from cybersemics/main
yangchristina Oct 22, 2024
0c22897
general style prop to css conversions
yangchristina Oct 22, 2024
2582afd
loader to pandacss
yangchristina Oct 22, 2024
8418fb2
LatestShortcutsDiagram to pandacss
yangchristina Oct 22, 2024
19b0077
style prop to css()
yangchristina Oct 22, 2024
5952f31
1901: [Safari] Table: Col1 cursor bullet incorrectly rendered on the …
kevinstubbs Oct 22, 2024
c8e8b5b
Merge branch 'cybersemics:main' into remove-puppeteer-test-delays3-2-…
mstrofbass Oct 22, 2024
5c5cbb5
type duration config as constant
mstrofbass Oct 22, 2024
c970cba
update token usage
mstrofbass Oct 22, 2024
75183c1
Merge pull request #2482 from mstrofbass/remove-puppeteer-test-delays…
raineorshine Oct 22, 2024
614922c
Merge branch 'main' of https://github.com/yangchristina/em
yangchristina Oct 22, 2024
271131b
modals to pandacss
yangchristina Oct 22, 2024
30f4de9
tutorial to pandacss
yangchristina Oct 22, 2024
df35cec
remove unused classes
yangchristina Oct 22, 2024
43f32df
Merge branch 'main' into panda-css-general
yangchristina Oct 22, 2024
7debf68
style prop to css()
yangchristina Oct 22, 2024
cc88f49
.note to aria-label
yangchristina Oct 22, 2024
1dc6dab
Simplify semantic animation durations.
raineorshine Oct 22, 2024
2e05ba1
Merge branch 'main' into panda-css-general
raineorshine Oct 22, 2024
9bd19cc
Toolbar: Do not unmount during distractionFreeTyping.
raineorshine Oct 22, 2024
e185afd
minor
raineorshine Oct 22, 2024
ea31e30
Simplify semantic animation durations.
raineorshine Oct 22, 2024
75a2a77
Merge branch 'cybersemics:main' into main
yangchristina Oct 22, 2024
170334f
Merge branch 'main' into panda-css-general
yangchristina Oct 22, 2024
a3df834
Convert removeHUD to hideHUD.
raineorshine Oct 22, 2024
50e596e
Merge branch 'main' into panda-css-general
raineorshine Oct 22, 2024
e376d06
Note to pandacss
yangchristina Oct 22, 2024
47d6ef3
clean up App.css
yangchristina Oct 22, 2024
9c3a2d3
remove render thoughts > initial load sleep
mstrofbass Oct 20, 2024
6edbf40
remove sleep from render thoughts > one thought
mstrofbass Oct 20, 2024
7caad47
remove sleep from render thoughts > subthought
mstrofbass Oct 20, 2024
d40c3d0
remove sleeps from skipped tests in render thoughts
mstrofbass Oct 20, 2024
8548d5e
remove sleep from render thoughts > superscript tests
mstrofbass Oct 20, 2024
d70d3f9
remove sleeps from font size 13 beforeEach in render thoughts tests
mstrofbass Oct 20, 2024
dabab2f
remove initial sleep from font size change render thought tests
mstrofbass Oct 20, 2024
527c271
remove sleep from drop > DropUncle tests
mstrofbass Oct 20, 2024
55ed516
remove sleep from drop > DnDThought and DropChild tests
mstrofbass Oct 20, 2024
2242a09
remove sleep from drag > drop hover after column two thought tests
mstrofbass Oct 20, 2024
0dd721c
remove sleep from drag > drop hover after table tests
mstrofbass Oct 20, 2024
7cbcbee
remove sleep from drag > DropUncle tests
mstrofbass Oct 20, 2024
98daab6
Remove sleep from cursor test
mstrofbass Oct 20, 2024
4fcb92e
remove sleep from cursor test
mstrofbass Oct 20, 2024
7a3d95f
remove sleep from gesture diagram test
mstrofbass Oct 20, 2024
8f72f42
remove sleeps from url tests
mstrofbass Oct 20, 2024
cb03359
remove sleep from escape-html
mstrofbass Oct 21, 2024
2428be9
remove sleep from ContextView
mstrofbass Oct 21, 2024
9fc4c43
remove sleep from ContextView
mstrofbass Oct 21, 2024
24f16e9
export to pandacss
yangchristina Oct 22, 2024
3251a96
remove .bullet-cursor-overlay (has no styles)
yangchristina Oct 22, 2024
7e017a2
style prop to css()
yangchristina Oct 22, 2024
3d25cca
color picker to pandacss + remove unused styles
yangchristina Oct 22, 2024
a9e45ff
Fix URL icon sometimes not appearing, by ignoring HTML tags when chec…
kevinstubbs Oct 23, 2024
e89685f
300.30.25
raineorshine Oct 23, 2024
af1e8fb
Revert "remove sleep from escape-html"
mstrofbass Oct 23, 2024
fba71ea
await async browser methods
mstrofbass Oct 23, 2024
7e05341
await async browser methods
mstrofbass Oct 23, 2024
85b6a87
fix thought trim error (#2488)
RED-ROSE515 Oct 23, 2024
b0be7ef
implement lettercase feature (#2461)
RED-ROSE515 Oct 23, 2024
df5639c
fix: loader margin
yangchristina Oct 23, 2024
d59c087
remove unused style prop on ColorPicker
yangchristina Oct 23, 2024
2a3339f
Merge pull request #2491 from mstrofbass/remove-puppeteer-test-delays…
raineorshine Oct 23, 2024
6e291db
Toolbar: Restore CSSTransition unmountOnExit.
raineorshine Oct 23, 2024
e35751c
Merge pull request #2489 from yangchristina/panda-css-general
raineorshine Oct 23, 2024
d90368b
Fix sort logic which doesn't work on fragmentary bibliography (#2495)
RED-ROSE515 Oct 25, 2024
f110397
minor
raineorshine Oct 25, 2024
40f1a7c
Disable undo/redo until persistence is fixed.
raineorshine Oct 25, 2024
adea52c
300.30.26
raineorshine Oct 25, 2024
257cc2f
Update snapshots with undo/redo toolbar icons removed.
raineorshine Oct 25, 2024
79815dc
Toggle table view from col1 instead of parent.
raineorshine Oct 26, 2024
06e2648
Add toolbarPointerEvents recipe for typesafe pointer-events override …
raineorshine Oct 27, 2024
9630bb5
300.30.27
raineorshine Oct 27, 2024
b7cfeff
Add indicator arrow on top/bottom of viewport for drop positions outs…
Zubair286 Oct 27, 2024
fd66a28
Autogenerate zIndexes.
raineorshine Oct 27, 2024
152babb
300.30.28
raineorshine Oct 27, 2024
a554241
Limit line width for easier reading.
raineorshine Oct 27, 2024
b640c4f
300.30.29
raineorshine Oct 27, 2024
2f2df8a
comment
raineorshine Oct 27, 2024
1cedf05
Bump eslint-plugin-jsdoc.
raineorshine Oct 27, 2024
12cd8d8
Disable jsdoc/no-undefined-types until performance issue is solved.
raineorshine Oct 27, 2024
393bff0
prettier
raineorshine Oct 27, 2024
54df4f6
eslint: Restrict window.getSelection() usage.
raineorshine Oct 27, 2024
1335e27
Bump dependencies and tsconfig target to es2018 (#2502)
raineorshine Oct 27, 2024
80fea2c
NewThoughtTip: useDispatch instead of global store.
raineorshine Oct 27, 2024
f54607a
Fix @pandacss/dev patch.
raineorshine Oct 28, 2024
6ce35ef
Move eslint-plugin-n to devDependencies.
raineorshine Oct 28, 2024
05c98f2
Editable: Flush the last edit on paste.
raineorshine Oct 28, 2024
a96fb12
Rename isURL -> containsURL.
raineorshine Oct 28, 2024
5f46f50
Split containsURL and isURL.
raineorshine Oct 28, 2024
6e55be0
Toolbar: Only set pointer-events: none when dropdown is open.
raineorshine Oct 28, 2024
4cbf6fe
remove unused classes
yangchristina Oct 23, 2024
fd44963
separate out dynamic + static in styleThought
yangchristina Oct 23, 2024
2c7fd51
.active-underline to css()
yangchristina Oct 23, 2024
92a107a
remove unused .icon
yangchristina Oct 23, 2024
c7d110f
pulse-light to pulseLight in panda.config
yangchristina Oct 23, 2024
8e4d351
remove unused .arrow-* classes
yangchristina Oct 23, 2024
6ff6a61
remove .animate-fadeout
yangchristina Oct 23, 2024
3d3189b
remove unused .dragging
yangchristina Oct 23, 2024
b06ddaa
move react-split-pane classes out of App.css
yangchristina Oct 23, 2024
e8bbf6f
remove unused .code-block
yangchristina Oct 25, 2024
b65232a
move mui style inline
yangchristina Oct 25, 2024
9c472ba
remove unused classNames, add native to data-attribute
yangchristina Oct 25, 2024
6d8369c
.editable to [data-editable]
yangchristina Oct 25, 2024
7a64f83
remove adding .leaf class, since there are no styles attached in search
yangchristina Oct 25, 2024
494857d
extract out colors.config
yangchristina Oct 25, 2024
cc16525
fix: not statically analyzable style moved out of css() to style prop…
yangchristina Oct 25, 2024
87118dc
to panda css
yangchristina Oct 25, 2024
7c76588
remove themeColors
yangchristina Oct 25, 2024
e6c2f67
fix: z-index-stack already removed
yangchristina Oct 25, 2024
d58828f
style prop to css()
yangchristina Oct 25, 2024
5d46fad
remove unused css variables
yangchristina Oct 25, 2024
8115de5
remove themeColors from ColorPicker when possible, extract out colors…
yangchristina Oct 25, 2024
8a94051
remove .mobile.drag-in-progress
yangchristina Oct 25, 2024
c8ae21b
remove theme selector where possible
yangchristina Oct 26, 2024
6664f9c
remove .dark
yangchristina Oct 26, 2024
d35a891
remove default and inverse handling on color and backgroundColor
yangchristina Oct 26, 2024
bf8140e
ColorPicker: Temporarily remove border that crashes the mobile Safari…
raineorshine Oct 28, 2024
b798f20
Bump vitest from 2.1.3 to 2.1.4 (#2506)
dependabot[bot] Oct 28, 2024
5659be7
300.30.30
raineorshine Oct 28, 2024
de3d2a0
Remove executable permissions.
raineorshine Oct 28, 2024
e75cc36
ToolbarButton: Fix button press duration.
raineorshine Oct 28, 2024
69353b7
comment
raineorshine Oct 28, 2024
d082314
Content: Remove unneeded short circuit.
raineorshine Oct 29, 2024
6c374d0
Content: Restore the selection on clickEmptySpace.
raineorshine Oct 29, 2024
4a03d7a
Content: Move clickOnEmptySpace handler to content-wrapper.
raineorshine Oct 29, 2024
361801f
Parallax scroll zone background image.
raineorshine Oct 29, 2024
ffab5d1
Factor out ScrollZone component.
raineorshine Oct 29, 2024
5206391
NavBar: Test that thought values are stripped of formatting in Contex…
raineorshine Oct 29, 2024
c0cc20e
delete: Test that thought value is stripped of formatting in Alert.
raineorshine Oct 29, 2024
6c9bef1
300.30.31
raineorshine Oct 29, 2024
7eb6b16
feat: synchronously update the body background color according to the…
trevinhofmann Oct 31, 2024
4646664
fix: update the storageCache according to the newState, not the old s…
trevinhofmann Oct 31, 2024
83d8b32
redux-middleware/clearSelection: Add case for home thought in context…
raineorshine Oct 31, 2024
c08526f
storageCache: minor refactor
raineorshine Oct 31, 2024
0d2d408
storageCache: Fix valueOld.
raineorshine Oct 31, 2024
fbb554c
Merge pull request #2494 from yangchristina/remove-theme-colors
raineorshine Oct 31, 2024
0ff56fd
Remove bash dependency from install-hooks.
raineorshine Oct 31, 2024
c9b3f0b
README
raineorshine Oct 31, 2024
5faabc0
fix Strip colors internal (#2499)
RED-ROSE515 Oct 31, 2024
0971ad0
Remove puppeteer test delays #2110 (#2515)
mstrofbass Nov 1, 2024
5ae1f60
Fix TraceGesture. Closes #2511.
raineorshine Nov 1, 2024
16d30d6
TraceGesture: Temporarily fix glow.
raineorshine Nov 1, 2024
fb8b915
TraceGesture: Change gesture glow color to highlight.
raineorshine Nov 1, 2024
d05fbfa
300.30.32
raineorshine Nov 1, 2024
caca1b1
fix Tutorial Step II (#2523)
RED-ROSE515 Nov 2, 2024
c0e0557
minor
raineorshine Nov 2, 2024
97b8d64
TutorialStepAutoExpand: Get cursor with useSelector instead of prop.
raineorshine Nov 2, 2024
4d9d5c7
TutorialStepAutoExpand: Convert isCursorLeaf and cursorChildValue to …
raineorshine Nov 2, 2024
67d49e0
TutorialStepAutoExpand: Convert ancestorThoughtChildren to a selector.
raineorshine Nov 2, 2024
ab295c0
TutorialStepAutoExpand: Convert subThoughtNotCursorValue to a selector.
raineorshine Nov 2, 2024
f8073ea
minor
raineorshine Nov 2, 2024
44e3867
TutorialStepAutoExpand: Convert cursorValue to a selector.
raineorshine Nov 2, 2024
a798f3b
TutorialStepAutoExpand: Convert isNoThoughts to a selector.
raineorshine Nov 2, 2024
88abfe6
TutorialStepAutoExpand: Add tutorialStep to useEffect dependencies.
raineorshine Nov 2, 2024
68f528f
TutorialStepAutoExpandExpand: Convert rootChildren to selector.
raineorshine Nov 2, 2024
27bbf3d
Tutorial2StepContext1Parent: Convert rootChildren to selector.
raineorshine Nov 2, 2024
4a7c5d6
Tutorial2StepContext1Parent: Convert cursor to selector.
raineorshine Nov 2, 2024
40c02a6
minor
raineorshine Nov 2, 2024
6002149
TutorialStepAutoExpandExpand: Consolidate uncle selector.
raineorshine Nov 2, 2024
13e0338
Tutorial2StepContext1: Convert rootChildren to selector.
raineorshine Nov 2, 2024
3a0ba5f
minor
raineorshine Nov 2, 2024
ab83ae5
Tutorial2StepContext1: Convert noCursor to selector.
raineorshine Nov 2, 2024
927e080
Tutorial2StepContext1SubThought: Convert rootChildren to selector.
raineorshine Nov 2, 2024
de9afec
Tutorial2StepContext2: Convert rootChildren to selector.
raineorshine Nov 2, 2024
876fbb1
Tutorial2StepContext2: Convert cursor to selector.
raineorshine Nov 2, 2024
f42e7ec
Tutorial2StepContext2Subthought: Convert rootChildren to selector.
raineorshine Nov 2, 2024
b99f0a2
Tutorial: Remove unused tutorialStepProps.
raineorshine Nov 2, 2024
014b438
Tutorial: Access tutorialChoice through useSelector.
raineorshine Nov 2, 2024
bb7686a
Tutorial: Remove tutorialStepProps.
raineorshine Nov 2, 2024
192ed91
Tutorial: Tweak text.
raineorshine Nov 2, 2024
b47e48b
Tutorial2StepContext2Subthought: numeralToWord.
raineorshine Nov 2, 2024
e20dde1
Bump yarn to v4.5.1.
raineorshine Nov 2, 2024
f98bdbb
scrollCursorIntoView: Get durations from config so they are zero in t…
raineorshine Nov 2, 2024
d571541
fix single line url ellipsized (#2537)
RED-ROSE515 Nov 4, 2024
fe50724
ScrollZone: Use transform rather than backgroundPositionY for perform…
raineorshine Nov 4, 2024
c2eaf88
300.30.33
raineorshine Nov 4, 2024
0cf330e
Update tests to import `act` from `react` (#2545)
mstrofbass Nov 5, 2024
6e4fa53
DRAFT: Upgrade @testing-library/user-event to v14.5.2 (#2547)
mstrofbass Nov 5, 2024
2f074c6
toggleTableView: Show active toolbar button on col1 instead of parent.
raineorshine Nov 5, 2024
990d070
Lottie icons 2408 (Milestone 2) (#2462)
ohrytskov Nov 6, 2024
dd1893d
Wait for drag state to settle in puppeteer tests (#2553)
mstrofbass Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 1 addition & 10 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"ignores": [
"@types/jest",
"babel-eslint",
"em-typedoc-theme",
"eslint-config-react-app",
"eslint-plugin-flowtype",
"react-native",
"react-native-web",
"typedoc-*"
]
"ignores": ["@types/jest", "babel-eslint", "eslint-config-react-app", "eslint-plugin-flowtype", "react-native-web"]
}
20 changes: 10 additions & 10 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
EXTEND_ESLINT=true

# ALGOLIA CONFIG
REACT_APP_ALGOLIA_SEARCH_KEY_ENDPOINT=https://us-central1-em-search-test.cloudfunctions.net/getSearchKey
REACT_APP_ALGOLIA_APPPLICATION_ID=AJCS0S8FVN
REACT_APP_ALGOLIA_INDEX=SEARCH_EM
VITE_ALGOLIA_SEARCH_KEY_ENDPOINT=https://us-central1-em-search-test.cloudfunctions.net/getSearchKey
VITE_ALGOLIA_APPPLICATION_ID=AJCS0S8FVN
VITE_ALGOLIA_INDEX=SEARCH_EM

# FIREBASE CONFIG
# Firebase API Key is safe to expose
# See: https://stackoverflow.com/questions/37482366/is-it-safe-to-expose-firebase-apikey-to-the-public
REACT_APP_FIREBASE_API_KEY=AIzaSyB7sj38woH-oJ7hcSwpq0lB7hUteyZMxNo
REACT_APP_FIREBASE_AUTH_DOMAIN=em-proto.firebaseapp.com
REACT_APP_FIREBASE_DATABASE_URL=https://em-proto.firebaseio.com
REACT_APP_FIREBASE_PROJECT_ID=em-proto
REACT_APP_FIREBASE_STORAGE_BUCKET=gs://em-proto.appspot.com/
REACT_APP_FIREBASE_MESSAGE_SENDER_ID=91947960488
VITE_FIREBASE_API_KEY=AIzaSyB7sj38woH-oJ7hcSwpq0lB7hUteyZMxNo
VITE_FIREBASE_AUTH_DOMAIN=em-proto.firebaseapp.com
VITE_FIREBASE_DATABASE_URL=https://em-proto.firebaseio.com
VITE_FIREBASE_PROJECT_ID=em-proto
VITE_FIREBASE_STORAGE_BUCKET=gs://em-proto.appspot.com/
VITE_FIREBASE_MESSAGE_SENDER_ID=91947960488

# Demo mode
# REACT_APP_DEMO=1
# VITE_DEMO=1
10 changes: 5 additions & 5 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Environment Variables used by npm start (development)
# Environment Variables used by yarn start (development)
# Development server must be manually restarted on change.
# This file is included in version control. Use .env.development.local to store secrets.
# See: https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used

# FEEDBACK CONFIG
REACT_APP_FEEDBACK_URL=https://us-central1-em-search-test.cloudfunctions.net/sendFeedbackEmail
VITE_FEEDBACK_URL=https://us-central1-em-search-test.cloudfunctions.net/sendFeedbackEmail

# WEBSOCKET
REACT_APP_WEBSOCKET_HOST=localhost
REACT_APP_WEBSOCKET_PORT=3001
VITE_WEBSOCKET_HOST=localhost
VITE_WEBSOCKET_PORT=3001

# CAPACITOR
# Local IP addresses should only be defined in .env.development.local so that they are not checked into version control.
CAPACITOR_SERVER_URL=

# AI SERVER
REACT_APP_AI_URL=http://localhost:3001/ai
VITE_AI_URL=http://localhost:3001/ai
10 changes: 5 additions & 5 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Environment Variables used by npm run build (production)
# Environment Variables used by yarn build (production)
# This file is included in version control. Use .env.production.local to store secrets.
# See: https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used

# FEEDBACK CONFIG
REACT_APP_FEEDBACK_URL=https://us-central1-em-proto.cloudfunctions.net/sendFeedbackEmail
VITE_FEEDBACK_URL=https://us-central1-em-proto.cloudfunctions.net/sendFeedbackEmail

# WEBSOCKET
REACT_APP_WEBSOCKET_HOST=em-staging-sa2jm.ondigitalocean.app
REACT_APP_WEBSOCKET_PORT=
VITE_WEBSOCKET_HOST=em-staging-sa2jm.ondigitalocean.app
VITE_WEBSOCKET_PORT=

# AI SERVER
REACT_APP_AI_URL=https://em-staging-sa2jm.ondigitalocean.app/ai
VITE_AI_URL=https://em-staging-sa2jm.ondigitalocean.app/ai
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Environment Variables used by npm test
# Environment Variables used by yarn test
# This file is included in version control. Use .env.test.local to store secrets.
# See: https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used

Expand Down
182 changes: 109 additions & 73 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,94 +1,38 @@
/*
ESLINT CONFIG

Tip: Run `TIMING=1 eslint .` to output the ten slowest rules.
*/

module.exports = {
env: {
browser: true,
es6: true,
mocha: true,
jest: true,
'react-native/react-native': true,
},
extends: ['standard', 'react-app', 'plugin:react/recommended', 'plugin:import/typescript', 'raine', 'prettier'],
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
plugins: ['@typescript-eslint'],
rules: {
semi: ['error', 'never'],
'import/prefer-default-export': 0,
// temporary fix from 'typescript-eslint' docs
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
'no-extra-parens': 0,
'no-unused-vars': 0,
'no-use-before-define': 0,
'@typescript-eslint/member-delimiter-style': [
2,
{
multiline: {
delimiter: 'none',
},
},
],
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-use-before-define': 2,
'@typescript-eslint/no-unused-vars': 2,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/array-type': [
2,
{
'array-type': 'array',
},
],
// jsx
'jsx-quotes': [2, 'prefer-single'],
},
settings: { react: { version: 'detect' } },
overrides: [
{
files: ['./src/**/*.ts', './src/**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: { jsx: true },
ecmaVersion: 2018,
sourceType: 'module',
project: './tsconfig.json',
},
},
{
files: ['./src/e2e/**/*.ts'],
rules: {
'jsdoc/check-tag-names': 0,
},
},
],
},
],
extends: ['react-app', 'plugin:react/recommended', 'plugin:import/typescript', 'prettier'],
// to be removed later
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
plugins: ['export-default-identifier', 'jsdoc', 'react', 'react-native', 'prettier'],
plugins: ['export-default-identifier', 'jsdoc', 'react', 'react-refresh', 'prettier'],
settings: {
react: {
version: 'detect',
},
},
rules: {
'no-restricted-properties': [
2,
{
object: 'window',
property: 'getSelection',
message:
'Please import the appropriate helper function from /src/device/selection.ts to access the browser selection. This is done to abstract the browser selection API from the rest of the codebase.',
},
],
// export-default-identifier
'export-default-identifier/export-default-identifier': [
2,
Expand All @@ -97,7 +41,26 @@ module.exports = {
},
],

// import/prefer-default-export
'import/prefer-default-export': [
2,
{
// any: Any exporting file must contain a default export.
// single: When there is only a single export from a module, prefer using default export over named export.
target: 'any',
},
],

// jsdoc
'jsdoc/check-alignment': 2,
'jsdoc/check-indentation': 2,
'jsdoc/check-syntax': 2,
'jsdoc/check-types': 2,
'jsdoc/implements-on-classes': 2,
'jsdoc/no-types': 2,
// Disable until performance issue is solved.
// https://github.com/gajus/eslint-plugin-jsdoc/issues/1334
// 'jsdoc/no-undefined-types': 2,
'jsdoc/check-tag-names': [
2,
{
Expand All @@ -114,6 +77,7 @@ module.exports = {
2,
{
contexts: ['VariableDeclarator > ArrowFunctionExpression'],
enableFixer: false,
require: {
ClassDeclaration: true,
ClassExpression: true,
Expand Down Expand Up @@ -146,4 +110,76 @@ module.exports = {
'arrow-body-style': 0,
'prefer-arrow-callback': 0,
},
overrides: [
{
files: ['src/e2e/**', '**/__tests__/*'],
rules: {
'no-restricted-properties': 0,
},
},
{
files: ['**/*.ts', '**/*.tsx'],
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
plugins: ['@typescript-eslint'],
settings: { react: { version: 'detect' } },
rules: {
semi: ['error', 'never'],
// temporary fix from 'typescript-eslint' docs
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
'no-extra-parens': 0,
'no-unused-vars': 0,
'no-use-before-define': 0,
'@typescript-eslint/member-delimiter-style': [
2,
{
multiline: {
delimiter: 'none',
},
},
],
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-use-before-define': 2,
'@typescript-eslint/no-unused-vars': 2,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/array-type': 2,
// jsx
'jsx-quotes': [2, 'prefer-single'],
// react-refresh
'react-refresh/only-export-components': 2,
},
overrides: [
{
files: ['./src/**/*.ts', './src/**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: { jsx: true },
ecmaVersion: 2018,
sourceType: 'module',
project: './tsconfig.json',
},
},
{
files: ['./src/e2e/**/*.ts'],
rules: {
'jsdoc/check-tag-names': 0,
},
},
],
},
],
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.yarn/releases/** binary
/.yarn/plugins/** binary
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: 'npm'
directory: '/' # Location of package file
schedule:
interval: 'weekly'
open-pull-requests-limit: 10
14 changes: 9 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: Docs

on:
push:
branches:
- dev
# Temporarily disable the workflow except when manually triggered
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
on: workflow_dispatch

# on:
# push:
# branches:
# - main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
persist-credentials: false
Expand Down
Loading
Loading