Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma-fe
Merge requests
!2073
Create an app only when needed
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Create an app only when needed
tusooa/1362-no-create-app-on-first-visit
into
develop
Overview
0
Commits
1
Pipelines
3
Changes
12
Merged
tusooa
requested to merge
tusooa/1362-no-create-app-on-first-visit
into
develop
3 weeks ago
Overview
0
Commits
1
Pipelines
3
Changes
12
Expand
Changes
App is not created upon first visit, and is only created when needed
Test Plan
No auto-registering of apps upon first visit:
Open private window
Open devtools
Open pleroma-fe
Verify no request to POST /api/v1/apps is made
Auth functionalities:
In private window and normal window, verify registration and login still works
Refresh, verify we are still logged in, and can access authenticated APIs
Edited
3 weeks ago
by
tusooa
0
0
Merge request reports
Compare
develop
version 1
c3d0d8c8
3 weeks ago
develop (base)
and
latest version
latest version
3a4cdbef
1 commit,
3 weeks ago
version 1
c3d0d8c8
1 commit,
3 weeks ago
12 files
+
449
−
34
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
build/msw_plugin.js
0 → 100644
+
28
−
0
Options
import
{
resolve
}
from
'
node:path
'
import
{
readFile
}
from
'
node:fs/promises
'
const
target
=
'
node_modules/msw/lib/mockServiceWorker.js
'
const
mswPlugin
=
()
=>
{
let
projectRoot
return
{
name
:
'
msw-plugin
'
,
apply
:
'
serve
'
,
configResolved
(
conf
)
{
projectRoot
=
conf
.
root
},
configureServer
(
server
)
{
server
.
middlewares
.
use
(
async
(
req
,
res
,
next
)
=>
{
if
(
req
.
path
===
'
/mockServiceWorker.js
'
)
{
const
file
=
await
readFile
(
resolve
(
projectRoot
,
target
))
res
.
set
(
'
Content-Type
'
,
'
text/javascript
'
)
res
.
send
(
file
)
}
else
{
next
()
}
})
}
}
}
export
default
mswPlugin
Loading