* perf: use a separate icons.svg file
This splits icons into inline and non-inline. The inline ones are high
priority; the rest go in an icons.svg file.
* create SvgIcon.html
* determine inlined svgs at build time
* chore: switch to yarn
BREAKING CHANGE: Pinafore is now using yarn rather than npm, so those
who self-host will need to stop running e.g. `npm install` and run `yarn
install` instead.
* install latest yarn
This gets rid of the awkward checking-in of `template.html` to git (when
it's a built file) and also makes the rebuilds faster and more
consistent by running everything through the same pipeline. So inline
CSS, SVG, and JS are all partially built on-the-fly.
I've basically reinvented gulp, but it's pretty lightweight and
zero-dep, so I'm happy with it.
* fix: update to latest sapper
fixes#416
* fix error and debug pages
* requestIdleCallback makes column switching feel way nicer than double rAF
* add export feature
* add better csp info
* workaround for sapper sub-page issue
* clarify in readme about exporting
* fix now config
* switch from rIC to triple raf
* style-loader is no longer used
* update theming guide
* Revert "fix(icons): fix icons.svg url (#769)"
This reverts commit 1d34d45da7.
* Revert "perf: use prefetch instead of preload for svgs (#765)"
This reverts commit b73dd548ae.
* Revert "perf: build separate icons.svg file (#762)"
This reverts commit ee45c07314.
* move svg to end of 2xx.html
* fix: build inline script using Rollup
This reduces code duplication and allows the theme engine to work the
same without modifying the code in two places. It does extra extra deps,
but I tried to keep them to a minimum.
* change code comment
* remove unnecessary constant
The point of this PR is to make it easier to implement scrollbars (#683).
With this PR, the themes move from a body tag-based system (e.g. `body.theme-scarlet`) to a system where they simply declare global CSS and we use CSS specificity order to give us the right theme.
* chore(travis): update to mastodon v2.6.1
* check if mastodon v2.6.1 has a race condition
* apparently in 2.6.1 direct messages no longer appear in home timeline
* Revert "check if mastodon v2.6.1 has a race condition"
This reverts commit dde8ef8be58eda0563170e6b73165fdcbea54f6b.
* try to fix tests
* fix more tests