Commit Graph
4857 Commits
Author SHA1 Message Date
Hans Pagel f24ef965cf remove vite-plugin-pwa 2023-01-27 12:40:38 +01:00
Hans Pagel 9ceb68920a use rollup 3, instead of 2 and 3 2023-01-27 12:26:55 +01:00
Hans Pagel 120132b01f disable type checks for the webpack stats plugin 2023-01-26 17:21:05 +01:00
Hans Pagel aa6d3a2081 refactor how the index file is read 2023-01-26 17:06:22 +01:00
Hans Pagel 9841e6d243 remove unused parameter from function 2023-01-26 16:57:23 +01:00
Hans Pagel 3974674871 remove the webpack config from the build script 2023-01-24 17:59:06 +01:00
Hans Pagel 245d91998f use vite instead of webpack in circle ci 2023-01-24 17:58:50 +01:00
Hans Pagel 10516e8d25 Merge branch 'main' into feat/replace-webpack-with-vite
# Conflicts:
#	package.json
#	yarn.lock
2023-01-24 17:19:49 +01:00
Tom Moor 6ab428a498 fix: Link toolbar does not allow doc search, closes #4757 2023-01-24 09:08:02 -05:00
Apoorv Mishra 88a1f72b59 fix: collections order in publish modal should match with the order in sidebar (#4762) 2023-01-24 04:23:58 -08:00
dependabot[bot] 2021f192bd chore(deps): bump cookiejar from 2.1.3 to 2.1.4 (#4758)
Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/bmeck/node-cookiejar/releases)
- [Commits](https://github.com/bmeck/node-cookiejar/commits)

---
updated-dependencies:
- dependency-name: cookiejar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 17:48:14 -08:00
dependabot[bot] 1b6496dff4 chore(deps): bump koa-sslify from 5.0.0 to 5.0.1 (#4753)
Bumps [koa-sslify](https://github.com/turboMaCk/koa-sslify) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/turboMaCk/koa-sslify/releases)
- [Changelog](https://github.com/turboMaCk/koa-sslify/blob/master/CHANGELOG.md)
- [Commits](https://github.com/turboMaCk/koa-sslify/commits)

---
updated-dependencies:
- dependency-name: koa-sslify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 17:41:07 -08:00
dependabot[bot] 6c5dadff8c chore(deps-dev): bump lint-staged from 12.3.8 to 13.1.0 (#4754)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.8 to 13.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.3.8...v13.1.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 17:38:52 -08:00
Apoorv MishraandTom Moor 6b286d82b8 Ability to choose publish location for a document (#4582)
* feat: initial base structure

* feat: utils for constructing and flattening collection tree

* feat: basic demo to display tree-like structure with virtualization

* feat: make it searchable

* feat: row component

* fix: handle row selection

* fix: scroll jitter

* fix: popover max-height to eliminate extra scroll

* fix: position scrollbar correctly

* fix: do not sort to maintain correct tree-like view

* feat: footer

* fix: scroll to selected item

* fix: deselect item

* fix: display selected location in footer

* fix: deselect item if any upon search trigger

* fix: create draft without collection

* fix: pass down collectionId to all the nodes

* feat: publish document under selected location

* fix: move the doc post publish in case it is supposed to be a nested doc

* fix: wrap text for selected location

* fix: footer background in dark mode and unused css

* fix: popover height in small devices

* fix: no need to spread

* refactor: remove outline

* refactor: border-radius is common

* refactor: remove active and focus

* fix: do not shrink spacer

* fix: scroll list padding with correctly adjusted scrolling

* refactor: use constants

* fix: use padding in favor of spacer

* refactor: border attrs not needed

* refactor: control title padding and icon size centrally

* fix: rename param

* fix: import path

* fix: refactor styles, avoid magic numbers

* fix: type err

* feat: make rows collapsible

* fix: fully expanded without disclosure upon search

* fix: use modal in place of popover

* fix: collapse descendants

* fix: rename PublishPopover to PublishModal

* fix: adjust collapse icon as part of tree view

* fix: enable keyboard navigation

* not sure why collapse and expand shortcuts are not working

* fix: row expansion and search box focus and blur

* fix: remove css hover, handle it via active prop

* fix: discard tree like view for search results

* fix: minor tweaks

* refactor: no need to pass onPublish

* refactor: remove unnecessary attrs from search component

* fix: publish button text

* fix: reset intial scroll offset to 0 on search

* fix: remove search highlights

* fix: clean up search component

* refactor: search and row collapse

* refactor: PublishLocation

* fix: show emoji or star icon if present

* fix: shift focus only from top item

* fix: leading emoji

* fix: baseline text

* fix: make path tertiary

* fix: do not show path for collections

* fix: path text color upon selection

* fix: deleted collection case

* fix: no results found

* fix: space around slash

* Refinement, some small refactors

* fix: Publish shortcut, use Button action

* Allow new document creation from command menu without active collection

* fix: duplicate

* fix: Unneccessary truncation

* fix: Scroll on expand/collapse
Remove wraparound

* fix: tsc

* fix: Horizontal overflow on PublishLocation
Remove pointless moveTo method

* fix: Missing translation

* Remove method indirection
Show expanded collection icon in tree when expanded

* Shrink font size a point

* Remove feature flag

* fix: Path color contrast in light mode
Remove unused expanded/show attributes

* shrink -> collapse, fix expanded disclosure without items after searching

* Mobile styles

* fix: scroll just into view

Co-authored-by: Tom Moor <tom.moor@gmail.com>
2023-01-23 17:38:24 -08:00
Hans Pagel fd89ad5155 add service worker register script 2023-01-23 18:25:46 +01:00
Hans Pagel 96af0f779f add CDN URL to script tags 2023-01-23 18:11:30 +01:00
Hans Pagel 005bab23cf reinstall rollup webpack stats plugin 2023-01-23 18:10:06 +01:00
Hans Pagel 0e3e699c82 fix prefetch tags 2023-01-23 18:09:51 +01:00
Hans Pagel b008898aad Merge branch 'main' into feat/replace-webpack-with-vite
# Conflicts:
#	package.json
#	yarn.lock
2023-01-23 17:49:03 +01:00
Hans Pagel be916380fa remove unused aliasses 2023-01-23 17:07:46 +01:00
Hans Pagel 83c97a1be7 remove webpack 2023-01-23 17:03:24 +01:00
Hans Pagel 50a7e600c7 remove numbers from mangled class names (wip) 2023-01-23 16:53:11 +01:00
Hans Pagel 31f596685a improve types for the manifest util 2023-01-23 16:51:04 +01:00
Hans Pagel cfb089dec9 add vite module preload polyfill 2023-01-23 16:50:48 +01:00
Hans Pagel d9779890fe add TODO 2023-01-23 16:41:11 +01:00
Hans Pagel 834c46a095 read out entry file path from manifest file 2023-01-23 16:36:40 +01:00
Hans Pagel 5d743ff018 global shim works for dependencies, let’s use window in our code 2023-01-23 16:07:42 +01:00
Hans Pagel 59e6f3f22f improve global shim 2023-01-23 16:06:08 +01:00
Tom Moor da4a0189dc Update rateLimiter.ts 2023-01-22 14:37:52 -08:00
Tom Moor 312e11e7c1 fix: Any error from rate limiter results in 'Rate limit exceeded' screen 2023-01-22 11:31:48 -05:00
Tom Moor d3dbf53d0b chore: Add insurance rate limiter for when Redis is down/reconnecting 2023-01-22 11:04:30 -05:00
Tom Moor 5b561e98f7 chore: Add configurable per-document connection limit extension (#4717)
* chore: Add configurable per-document connection limit extension

* docs
2023-01-22 07:50:32 -08:00
Tom Moor aa88bb2a7b fix: Check browser has print ability before showing Print option 2023-01-22 10:32:31 -05:00
Tom Moor f83b0ab5e3 fix: Remove :is selector (bad compatibility) 2023-01-22 10:22:41 -05:00
Tom Moor 095028541d fix: Missing translations 2023-01-22 10:14:17 -05:00
Tom Moor c1aa4c8dde fix: Alignment of caption on fullwidth images 2023-01-22 10:13:15 -05:00
Tom Moor 049f49ebe8 fix: Fallback to initials instead of placeholder when offline 2023-01-22 09:46:52 -05:00
Tom Moor f1406577b7 Color transition on icon picker 2023-01-21 23:37:08 -05:00
dependabot[bot] 1da6847e68 chore(deps-dev): bump @typescript-eslint/parser from 5.40.0 to 5.48.1 (#4725)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.40.0 to 5.48.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.48.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 09:38:14 -08:00
Hans Pagel cb475abc69 fix issue with missing global variable 2023-01-19 15:23:30 +01:00
Hans Pagel 20b8bb6a31 fix entrypoint 2023-01-19 15:18:46 +01:00
Hans Pagel 82dbe8b6b7 add old aliasses as a TODO 2023-01-19 15:16:55 +01:00
Hans Pagel 68e30b4974 add vite react plugin docs link 2023-01-19 15:16:46 +01:00
Hans Pagel 0960f8d07b remove optimizeDeps, the package is patched anyway 2023-01-19 15:16:37 +01:00
Hans Pagel 22008db2ac configure PWA 2023-01-19 15:16:17 +01:00
Hans Pagel c23ca5d3b9 copy static files 2023-01-19 15:16:00 +01:00
Hans Pagel bd472ab5b0 don’t output gzipped size, can help speed up the build process and makes the output cleaner 2023-01-19 15:05:03 +01:00
Hans Pagel a41f35d289 copy babel config to vite config, to separate the frontend from the backend config 2023-01-19 14:59:14 +01:00
Hans Pagel 50973b7408 fix concurrently task name 2023-01-19 14:54:53 +01:00
Hans Pagel fb15ab90a1 patch prosemirror-math to fix the build issues 2023-01-19 13:36:32 +01:00