mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-27 05:15:56 +03:00
[PR #1143] [MERGED] Mock backend #1173
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#1173
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/1143
Author: @Rokt33r
Created: 9/6/2021
Status: ✅ Merged
Merged: 9/13/2021
Merged by: @Rokt33r
Base:
master← Head:mock-backend📝 Commits (10+)
bdf7bdaAdd MOCK_BACKEND env var0ed6c11Fix dueDate prop of SerializedDoc interface6bc0722Disable tracking when mock backend is enabled4183047Upgrade path-to-regexp04ecd8aExport response interface of editRequests apiacdc18dImplement mockHandler to callApi3b57175Remove unnecessary null check of workspace prop in Workspacepage4d1dbeeDiscard unnecessary type assertion in EventSource4aaacf9Mock api/teams/:teamId/open-invitesca35299Disable SSE and websocket when mock backend is enabled📊 Changes
34 files changed (+1299 additions, -47 deletions)
View changed files
📝
package-lock.json(+22 -10)📝
package.json(+3 -2)📝
readme.md(+61 -2)📝
src/cloud/api/editRequests/index.ts(+3 -3)📝
src/cloud/api/global.ts(+4 -2)➕
src/cloud/api/mock/db/init.ts(+111 -0)➕
src/cloud/api/mock/db/mockEntities/docs.ts(+82 -0)➕
src/cloud/api/mock/db/mockEntities/folders.ts(+114 -0)➕
src/cloud/api/mock/db/mockEntities/permissions.ts(+97 -0)➕
src/cloud/api/mock/db/mockEntities/tags.ts(+0 -0)➕
src/cloud/api/mock/db/mockEntities/teams.ts(+58 -0)➕
src/cloud/api/mock/db/mockEntities/users.ts(+41 -0)➕
src/cloud/api/mock/db/mockEntities/workspaces.ts(+83 -0)➕
src/cloud/api/mock/db/populate.ts(+74 -0)➕
src/cloud/api/mock/db/utils.ts(+150 -0)➕
src/cloud/api/mock/mockHandler.ts(+280 -0)📝
src/cloud/api/teams/index.ts(+6 -3)📝
src/cloud/api/track/index.ts(+4 -0)📝
src/cloud/components/Editor/index.tsx(+5 -0)📝
src/cloud/components/EventSource.tsx(+5 -3)...and 14 more files
📄 Description
MOCK_BACKENDenv varsrc/cloud/api/mock/db/**) which saving and loading data via localStoragesrc/cloud/api/mock/mockHandler)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.