Skip to content

Conversation

daveverwer
Copy link
Member

In preparation for final testing before merging #3078, I wanted a way to check canonical URLs against the current browser window URL quickly and efficiently, without needing to locate the canonical in the web inspector manually each time.

While I was building this console, I thought it’d be a good place for some of the other data we currently hide in HTML comments, like package ID and score.

This console is hidden from end-users completely and must be switched on manually from the JavaScript console:

localStorage.setItem('spiDebug', 'true');

Once shown, it can be temporarily hidden with the “Hide” button, if it’s blocking something at the bottom of the page, or completely disabled with the “Disable” button. After disabling it would need switching back on with the console command above.

This PR also introduces shared styling and JavaScript between the main site and the Vue DocC renderer through new shared.css and shared.js files.

Screenshot 2024-07-18 at 10 31 11@2x

@daveverwer daveverwer requested a review from finestructure July 18, 2024 09:33
@cla-bot cla-bot bot added the cla-signed label Jul 18, 2024
@daveverwer
Copy link
Member Author

Dark mode:
Screenshot 2024-07-18 at 10 34 07@2x

@daveverwer daveverwer force-pushed the javascript-debug-console branch from e84149e to d6531e4 Compare July 18, 2024 10:20
@daveverwer daveverwer enabled auto-merge July 18, 2024 12:00
@daveverwer daveverwer merged commit f5fb5b9 into main Jul 18, 2024
@daveverwer daveverwer deleted the javascript-debug-console branch July 18, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants