]> git.ardis.lu - ardislu.dev/log
ardislu.dev
3 years agoMake search input bigger
Ardis Lu [Wed, 26 Oct 2022 03:19:39 +0000 (20:19 -0700)]
Make search input bigger

Fixes auto zoom on iOS Safari

4 years agoAdd hyperlink directly in the article summary
Ardis Lu [Wed, 17 Aug 2022 03:57:28 +0000 (20:57 -0700)]
Add hyperlink directly in the article summary

4 years agoAdd self link to <feed>
Ardis Lu [Wed, 17 Aug 2022 03:56:55 +0000 (20:56 -0700)]
Add self link to <feed>

This is recommended ("SHOULD") in RFC 4287

4 years agoBuild home component regardless of path
Ardis Lu [Wed, 17 Aug 2022 03:43:03 +0000 (20:43 -0700)]
Build home component regardless of path

Fixes bug where home is undefined when users search after opening an article direct link

4 years agoReverse metadata order so newest is first
Ardis Lu [Mon, 15 Aug 2022 05:41:10 +0000 (22:41 -0700)]
Reverse metadata order so newest is first

4 years agoAdd search
Ardis Lu [Mon, 15 Aug 2022 05:37:24 +0000 (22:37 -0700)]
Add search

4 years agoSimplify querySelector on edit button
Ardis Lu [Sun, 14 Aug 2022 06:08:54 +0000 (23:08 -0700)]
Simplify querySelector on edit button

4 years agoUse ID on refresh button to clarify event listener
Ardis Lu [Sun, 14 Aug 2022 06:07:23 +0000 (23:07 -0700)]
Use ID on refresh button to clarify event listener

4 years agoDo not preventDefault on non-anchor clicks
Ardis Lu [Sun, 14 Aug 2022 06:01:13 +0000 (23:01 -0700)]
Do not preventDefault on non-anchor clicks

Otherwise form submit and button click will not behave as expected

4 years agoFix global reference to toast
Ardis Lu [Wed, 10 Aug 2022 04:00:47 +0000 (21:00 -0700)]
Fix global reference to toast

4 years agoUse inline @layer for all styles
Ardis Lu [Tue, 9 Aug 2022 06:19:27 +0000 (23:19 -0700)]
Use inline @layer for all styles

@layer allows removal of !important and inline allows concurrent loading

4 years agoUpdate headers to match index.html
Ardis Lu [Tue, 9 Aug 2022 06:11:42 +0000 (23:11 -0700)]
Update headers to match index.html

Except Open Graph metadata which is not needed for a 404 page

4 years agoSimplify background CSS
Ardis Lu [Tue, 9 Aug 2022 05:40:28 +0000 (22:40 -0700)]
Simplify background CSS

4 years agoRefactor script
Ardis Lu [Sun, 7 Aug 2022 05:18:16 +0000 (22:18 -0700)]
Refactor script

Split functions to reduce side effects, make use of globals explicit, re-organize code, remove useless templates, add more comments

4 years agoUpdate dependencies
Ardis Lu [Fri, 5 Aug 2022 04:51:09 +0000 (21:51 -0700)]
Update dependencies

4 years agoMake routing logic explicit
Ardis Lu [Fri, 5 Aug 2022 04:34:09 +0000 (21:34 -0700)]
Make routing logic explicit

4 years agoMove feed redirect to route()
Ardis Lu [Fri, 5 Aug 2022 04:33:02 +0000 (21:33 -0700)]
Move feed redirect to route()

Otherwise back button will not work as expected

4 years agoSimplify steps for local dev
Ardis Lu [Tue, 2 Aug 2022 07:16:38 +0000 (00:16 -0700)]
Simplify steps for local dev

.dev.vars is no longer a beta feature

4 years agoSimplify string
Ardis Lu [Tue, 2 Aug 2022 07:15:57 +0000 (00:15 -0700)]
Simplify string

4 years agoProperly redirect /atom.xml instead of 404
Ardis Lu [Tue, 2 Aug 2022 07:15:34 +0000 (00:15 -0700)]
Properly redirect /atom.xml instead of 404

4 years agoAdd Atom feed icon
Ardis Lu [Mon, 1 Aug 2022 04:22:46 +0000 (21:22 -0700)]
Add Atom feed icon

4 years agoMove <noscript>to main and update message
Ardis Lu [Mon, 1 Aug 2022 04:09:40 +0000 (21:09 -0700)]
Move <noscript>to main and update message

4 years agoDon't register service worker if not supported
Ardis Lu [Mon, 1 Aug 2022 03:39:46 +0000 (20:39 -0700)]
Don't register service worker if not supported

Firefox Private Browsing disables service workers by default

4 years agoOnly use templates for <main>
Ardis Lu [Mon, 1 Aug 2022 03:36:58 +0000 (20:36 -0700)]
Only use templates for <main>

Header and dialog are the same on every page so keep loaded without JS

4 years agoRemove edge caching logic
Ardis Lu [Thu, 21 Jul 2022 03:01:07 +0000 (20:01 -0700)]
Remove edge caching logic

After manual tests, these options don't appear to have any effect

4 years agoRemove Cache-Control response header
Ardis Lu [Thu, 21 Jul 2022 03:00:00 +0000 (20:00 -0700)]
Remove Cache-Control response header

This logic is handled by the client-side service worker

4 years agoBlock API calls to non-Google domains
Ardis Lu [Thu, 21 Jul 2022 02:49:37 +0000 (19:49 -0700)]
Block API calls to non-Google domains

4 years agoSimplify variables
Ardis Lu [Thu, 21 Jul 2022 02:40:01 +0000 (19:40 -0700)]
Simplify variables

4 years agoAdjust whitespace so the output is human-readable
Ardis Lu [Thu, 21 Jul 2022 02:38:50 +0000 (19:38 -0700)]
Adjust whitespace so the output is human-readable

4 years agoAdd Atom feed
Ardis Lu [Wed, 20 Jul 2022 06:23:47 +0000 (23:23 -0700)]
Add Atom feed

4 years agoSimplify logic to insert header
Ardis Lu [Sun, 17 Jul 2022 03:53:28 +0000 (20:53 -0700)]
Simplify logic to insert header

4 years agoRemove unused <head> elements
Ardis Lu [Sun, 17 Jul 2022 03:48:15 +0000 (20:48 -0700)]
Remove unused <head> elements

4 years agoImplement stale-while-revalidate with notification
Ardis Lu [Sun, 17 Jul 2022 01:43:24 +0000 (18:43 -0700)]
Implement stale-while-revalidate with notification

4 years agoUse globalThis and drop window from known globals
Ardis Lu [Sat, 16 Jul 2022 23:34:46 +0000 (16:34 -0700)]
Use globalThis and drop window from known globals

4 years agoCombine header components
Ardis Lu [Sat, 16 Jul 2022 23:06:28 +0000 (16:06 -0700)]
Combine header components

4 years agoRemove logic to dynamically update og image
Ardis Lu [Sat, 16 Jul 2022 22:08:51 +0000 (15:08 -0700)]
Remove logic to dynamically update og image

Scrapers which use this information do not run JavaScript

4 years agoImprove logos and PWA metadata
Ardis Lu [Fri, 15 Jul 2022 04:53:45 +0000 (21:53 -0700)]
Improve logos and PWA metadata

4 years agoMove wrangler bindings to .dev.vars
Ardis Lu [Mon, 11 Jul 2022 01:43:30 +0000 (18:43 -0700)]
Move wrangler bindings to .dev.vars

Currently this is an undocumented feature only available in the beta

4 years agoUpdate dependencies
Ardis Lu [Fri, 24 Jun 2022 04:15:31 +0000 (21:15 -0700)]
Update dependencies

4 years agoDelete check for service worker support
Ardis Lu [Mon, 25 Apr 2022 01:31:05 +0000 (18:31 -0700)]
Delete check for service worker support

Service workers are supported in all modern browsers

4 years agoAdd text-underline-offset
Ardis Lu [Tue, 19 Apr 2022 05:45:31 +0000 (22:45 -0700)]
Add text-underline-offset

4 years agoUpdate text-decoration so transitions work
Ardis Lu [Wed, 13 Apr 2022 04:52:33 +0000 (21:52 -0700)]
Update text-decoration so transitions work

Transitions apply to text-decoration-color, not text-decoration-line

4 years agoUpdate theme color to match body background
Ardis Lu [Thu, 7 Apr 2022 04:47:40 +0000 (21:47 -0700)]
Update theme color to match body background

Theme color is used for the PWA icon background on Android

4 years agoUpdate 404 favicon
Ardis Lu [Sat, 2 Apr 2022 23:08:12 +0000 (16:08 -0700)]
Update 404 favicon

4 years agoIncrease line-height for post paragraphs
Ardis Lu [Tue, 29 Mar 2022 04:57:36 +0000 (21:57 -0700)]
Increase line-height for post paragraphs

4 years agoUpdate service worker cache for new favicons
Ardis Lu [Mon, 28 Mar 2022 04:57:39 +0000 (21:57 -0700)]
Update service worker cache for new favicons

4 years agoConfigure cache rule on fetch from origin
Ardis Lu [Sun, 27 Mar 2022 19:39:16 +0000 (12:39 -0700)]
Configure cache rule on fetch from origin

4 years agoUpdate Cache-Control header
Ardis Lu [Sun, 27 Mar 2022 10:06:25 +0000 (03:06 -0700)]
Update Cache-Control header

4 years agoUpdate README to reflect new proxy
Ardis Lu [Sun, 27 Mar 2022 09:46:46 +0000 (02:46 -0700)]
Update README to reflect new proxy

4 years agoRedeploy Worker auth proxy
Ardis Lu [Sun, 27 Mar 2022 09:16:24 +0000 (02:16 -0700)]
Redeploy Worker auth proxy

4 years agoEncode message
Ardis Lu [Sun, 27 Mar 2022 09:14:00 +0000 (02:14 -0700)]
Encode message

See: https://github.com/cloudflare/wrangler2/issues/710

4 years agoRevert proxy to google-api-proxy
Ardis Lu [Sun, 27 Mar 2022 00:38:12 +0000 (17:38 -0700)]
Revert proxy to google-api-proxy

4 years agoRemove unncessary backslashes
Ardis Lu [Sun, 27 Mar 2022 00:33:30 +0000 (17:33 -0700)]
Remove unncessary backslashes

4 years agoDelete environment variable substring
Ardis Lu [Fri, 25 Mar 2022 07:18:56 +0000 (00:18 -0700)]
Delete environment variable substring

4 years agoUpdate README to use wrangler for development
Ardis Lu [Fri, 25 Mar 2022 07:13:08 +0000 (00:13 -0700)]
Update README to use wrangler for development

4 years agoReplace google-api-proxy with Cloudflare Function
Ardis Lu [Fri, 25 Mar 2022 07:12:02 +0000 (00:12 -0700)]
Replace google-api-proxy with Cloudflare Function

4 years agoDeploy Function for Google auth proxy
Ardis Lu [Fri, 25 Mar 2022 07:06:32 +0000 (00:06 -0700)]
Deploy Function for Google auth proxy

Need to update env variables on the web UI before updating the frontend

4 years agoDelete unnecessary web manifest properties
Ardis Lu [Thu, 24 Mar 2022 04:24:40 +0000 (21:24 -0700)]
Delete unnecessary web manifest properties

4 years agoPut a border around code in print.css
Ardis Lu [Mon, 21 Mar 2022 04:52:24 +0000 (21:52 -0700)]
Put a border around code in print.css

4 years agoUse SVG favicon with PNG fallback for Apple
Ardis Lu [Mon, 21 Mar 2022 04:17:26 +0000 (21:17 -0700)]
Use SVG favicon with PNG fallback for Apple

4 years agoAdd web manifest
Ardis Lu [Mon, 21 Mar 2022 04:16:31 +0000 (21:16 -0700)]
Add web manifest

4 years agoAdd Twitter Card header
Ardis Lu [Sun, 20 Mar 2022 22:57:35 +0000 (15:57 -0700)]
Add Twitter Card header

4 years agoAdd Open Graph headers
Ardis Lu [Sun, 20 Mar 2022 22:53:37 +0000 (15:53 -0700)]
Add Open Graph headers

4 years agoUpdate ascii
Ardis Lu [Sun, 6 Mar 2022 07:16:09 +0000 (23:16 -0800)]
Update ascii

4 years agoUpdate meta tags on home
Ardis Lu [Sun, 6 Mar 2022 07:05:25 +0000 (23:05 -0800)]
Update meta tags on home

4 years agoUpdate meta tags on page change
Ardis Lu [Sun, 6 Mar 2022 07:01:12 +0000 (23:01 -0800)]
Update meta tags on page change

4 years agoAdd canonical URL
Ardis Lu [Sun, 6 Mar 2022 06:59:48 +0000 (22:59 -0800)]
Add canonical URL

4 years agoInclude forward slash in path names
Ardis Lu [Sun, 6 Mar 2022 06:58:05 +0000 (22:58 -0800)]
Include forward slash in path names

Backend is also updated to include forward slash to match

4 years agoInline home.svg
Ardis Lu [Sun, 6 Mar 2022 06:19:03 +0000 (22:19 -0800)]
Inline home.svg

4 years agoUpdate home meta description
Ardis Lu [Sun, 6 Mar 2022 06:01:44 +0000 (22:01 -0800)]
Update home meta description

4 years agoDelete svg files from service worker cache
Ardis Lu [Thu, 3 Mar 2022 06:11:44 +0000 (22:11 -0800)]
Delete svg files from service worker cache

4 years agoInline svg width and height
Ardis Lu [Thu, 3 Mar 2022 06:09:45 +0000 (22:09 -0800)]
Inline svg width and height

Reduces CLS when CSS fails or is slow to load

4 years agoFix linting issues
Ardis Lu [Thu, 3 Mar 2022 06:03:39 +0000 (22:03 -0800)]
Fix linting issues

Self-closing tags should have a space before the closing slash

4 years agoRename script.mjs back to script.js
Ardis Lu [Sun, 27 Feb 2022 08:54:31 +0000 (00:54 -0800)]
Rename script.mjs back to script.js

CDN does not auto-minify .mjs files, only .js

4 years agoAdd a placeholder href
Ardis Lu [Sun, 27 Feb 2022 08:42:25 +0000 (00:42 -0800)]
Add a placeholder href

Otherwise accessibility will show this anchor as generic instead of link

4 years agoInline SVGs
Ardis Lu [Sun, 27 Feb 2022 08:41:42 +0000 (00:41 -0800)]
Inline SVGs

4 years agoRename script.js to script.mjs
Ardis Lu [Sun, 27 Feb 2022 08:03:48 +0000 (00:03 -0800)]
Rename script.js to script.mjs

4 years agoAdd DevTools help message
Ardis Lu [Sun, 27 Feb 2022 08:03:24 +0000 (00:03 -0800)]
Add DevTools help message

4 years agoUse module script
Ardis Lu [Sun, 27 Feb 2022 07:22:49 +0000 (23:22 -0800)]
Use module script

4 years agoUse location.replace for 404 redirect
Ardis Lu [Sun, 27 Feb 2022 05:16:10 +0000 (21:16 -0800)]
Use location.replace for 404 redirect

This prevents adding an extra page in history, so users can press back once to go to the original page as expected.

4 years agoUpdate document title on home page
Ardis Lu [Sun, 27 Feb 2022 05:06:30 +0000 (21:06 -0800)]
Update document title on home page

4 years agoRefactor site to be a SPA
Ardis Lu [Sun, 27 Feb 2022 04:57:51 +0000 (20:57 -0800)]
Refactor site to be a SPA

Using 404.html as a router is very bad for SEO. As a SPA I can also take advantage of in-memory state for better caching and storing metadata for posts.

4 years agoDelete unnecessary default grid-row-end
Ardis Lu [Sun, 27 Feb 2022 04:43:36 +0000 (20:43 -0800)]
Delete unnecessary default grid-row-end

4 years agoSimplify cache strategy to cache first
Ardis Lu [Sun, 27 Feb 2022 04:33:39 +0000 (20:33 -0800)]
Simplify cache strategy to cache first

staleWhileRevalidate produces too much load on origin

4 years agoSimplify main selectors
Ardis Lu [Tue, 22 Feb 2022 06:27:57 +0000 (22:27 -0800)]
Simplify main selectors

4 years agoAdd print styling for h3 and li
Ardis Lu [Mon, 21 Feb 2022 05:17:09 +0000 (21:17 -0800)]
Add print styling for h3 and li

4 years agoReplace gutenberg with custom print.css
Ardis Lu [Mon, 21 Feb 2022 05:10:37 +0000 (21:10 -0800)]
Replace gutenberg with custom print.css

To fix issues with printing the homepage grid

4 years agoUpdate anchor styling for icon buttons
Ardis Lu [Sun, 20 Feb 2022 06:46:37 +0000 (22:46 -0800)]
Update anchor styling for icon buttons

4 years agoReplace min-width media rule with inline-size
Ardis Lu [Fri, 26 Nov 2021 05:34:01 +0000 (21:34 -0800)]
Replace min-width media rule with inline-size

Using inline-size will work for vertical writing modes while the media rule will not.

4 years agoBreak and hyphenate long words
Ardis Lu [Fri, 26 Nov 2021 03:50:55 +0000 (19:50 -0800)]
Break and hyphenate long words

4 years agoTweak kbd styling
Ardis Lu [Fri, 26 Nov 2021 03:27:33 +0000 (19:27 -0800)]
Tweak kbd styling

4 years agoUse logical CSS for skeleton-line size
Ardis Lu [Fri, 26 Nov 2021 03:12:05 +0000 (19:12 -0800)]
Use logical CSS for skeleton-line size

This change makes skeleton lines render as expected on vertical writing modes.

4 years agoSet minimum 1rem margin, or auto for large screens
Ardis Lu [Tue, 23 Nov 2021 07:18:47 +0000 (23:18 -0800)]
Set minimum 1rem margin, or auto for large screens

4 years agoResolve linting issue
Ardis Lu [Tue, 23 Nov 2021 07:17:36 +0000 (23:17 -0800)]
Resolve linting issue

Fractional numbers less than 1 must have a leading 0

4 years agoFix regression on skeleton-line margin
Ardis Lu [Tue, 23 Nov 2021 07:16:21 +0000 (23:16 -0800)]
Fix regression on skeleton-line margin

This margin is needed for the skeleton-lines appearing before each article, even if they are redundant on the homepage cards.

4 years agoFix regression on grid-template-columns
Ardis Lu [Tue, 23 Nov 2021 07:14:30 +0000 (23:14 -0800)]
Fix regression on grid-template-columns

The "simplification" causes overflow when the screen width is smaller than card-container.  Putting the inner min() inside minmax() ensures that card-container will never be larger than the screen width.

4 years agoReorder CSS
Ardis Lu [Tue, 23 Nov 2021 06:37:54 +0000 (22:37 -0800)]
Reorder CSS

4 years agoRemove accidental console.log call
Ardis Lu [Sun, 21 Nov 2021 23:10:20 +0000 (15:10 -0800)]
Remove accidental console.log call

4 years agoUse consistent whitespace in style.css
Ardis Lu [Sun, 21 Nov 2021 23:06:55 +0000 (15:06 -0800)]
Use consistent whitespace in style.css

4 years agoRemove column container
Ardis Lu [Sun, 21 Nov 2021 23:04:00 +0000 (15:04 -0800)]
Remove column container

Instead of using a flexbox column container, dynamically set each card element's row span on the grid. This change makes the tab order more logical and keeps the HTML simpler.

This page took 0.07659 seconds and 4 git commands to generate.