-
Notifications
You must be signed in to change notification settings - Fork 9.7k
viewer: add option for loading from the PSI API #9546
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
59fe77e
merge viewer changes
connorjclark 62cc1b1
categories query param
connorjclark 02a4800
viewer: psi api
connorjclark 47227d8
undo accidental changes to drop test
connorjclark 2fa37c9
lock
connorjclark 4c33bb6
redo lock
connorjclark 2e8fbee
psi-api.js, ?category
connorjclark 621ede6
allow gist
connorjclark c0513b3
fix logic
connorjclark 4e911d0
make tests less of a joke
connorjclark 70a3b23
array param setting for query
connorjclark 550a0ea
use all psi api
connorjclark 01af9cb
rename
connorjclark 04ed696
readme
connorjclark a680af4
psi errors
connorjclark 56840af
Merge remote-tracking branch 'origin/master' into viewer-psi
connorjclark fcf914b
Merge remote-tracking branch 'origin/master' into viewer-psi
connorjclark 3ec6127
readme
connorjclark e3d212f
load from deep link
connorjclark 6934f19
comment
connorjclark 552b03f
test url doesnt change
connorjclark 4fef787
put that code back
connorjclark 6ca5ad0
cat test meoooow
connorjclark 82ad774
for of
connorjclark 943df67
fetch psi refactor
connorjclark 67b5180
name
connorjclark 2de9b62
provider
connorjclark 97ddc98
use logger
connorjclark 143f3bd
provider param
connorjclark fc91765
Merge remote-tracking branch 'origin/master' into viewer-psi
connorjclark 8cab861
defer main
connorjclark 547549f
readme
connorjclark 48f9e46
source
connorjclark 69f3dd2
for
connorjclark c104604
load blur for gist too
connorjclark fb8f814
psiurl
connorjclark fd05a06
remove extra blue. rename to fetchFromPSI
connorjclark e849af1
Update lighthouse-viewer/app/src/main.js
connorjclark 0c8bb28
paul promise refactor. eslint ignore.
connorjclark 04f4e6b
better main init
connorjclark 6185a8a
eslint
connorjclark 3b12386
booleans
connorjclark 7d23359
comment
connorjclark bbd7396
restore
connorjclark a120dd1
readme, promise ret
connorjclark 0fcc878
Merge branch 'viewer-psi' of github.com:GoogleChrome/lighthouse into …
connorjclark 6fae521
refactor interception in test
connorjclark 18c74cf
test error
connorjclark 80ec9ca
move default cat test
connorjclark 80f895c
rm extra
connorjclark ceb95fc
types and teests
connorjclark 8369d85
test more params
connorjclark 4b6ade7
last changes
connorjclark 1469211
params
connorjclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
array param setting for query
- Loading branch information
commit 70a3b233551d278cf04b074f308c51b100ec01fc
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a little confusing and throws tsc for a loop (
keyisn't supposed to be onparams), so what about just specific lines below ofapiUrl.searchParams.append('key', PSI_KEY);and in the loop
if (key === 'strategy') value = value || 'mobile';or whatever.
(Ideally, if we ever upgrade off of
uglifyEs, we could just doconst {strategy, category, ...restParams} = params;and set those separately (and get a sweetrestParamsjoke))Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I had that at first. This marks the third time during this refactor that lack of a modern build system has caused some pain.