diff --git a/bin/build-sass.js b/bin/build-sass.js index 1d0d357..a4fcb16 100755 --- a/bin/build-sass.js +++ b/bin/build-sass.js @@ -15,6 +15,7 @@ const now = require('performance-now') const globalScss = path.join(__dirname, '../scss/global.scss') const defaultThemeScss = path.join(__dirname, '../scss/themes/_default.scss') +const offlineThemeScss = path.join(__dirname, '../scss/themes/_offline.scss') const html2xxFile = path.join(__dirname, '../templates/2xx.html') const scssDir = path.join(__dirname, '../scss') const themesScssDir = path.join(__dirname, '../scss/themes') @@ -37,7 +38,8 @@ function doWatch() { async function compileGlobalSass() { let results = await Promise.all([ render({file: defaultThemeScss, outputStyle: 'compressed'}), - render({file: globalScss, outputStyle: 'compressed'}) + render({file: globalScss, outputStyle: 'compressed'}), + render({file: offlineThemeScss, outputStyle: 'compressed'}) ]) let css = results.map(_ => _.css).join('') diff --git a/package-lock.json b/package-lock.json index f5a8522..c0863a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3310,6 +3310,11 @@ "repeating": "2.0.1" } }, + "indexeddb-getall-shim": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/indexeddb-getall-shim/-/indexeddb-getall-shim-1.3.1.tgz", + "integrity": "sha1-aOUV06zspHd+/9DP+ZGS248KXoY=" + }, "indexes-of": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", diff --git a/package.json b/package.json index 3a3d94d..bab23e2 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "fg-loadcss": "^2.0.1", "font-awesome-svg-png": "^1.2.2", "glob": "^7.1.2", + "indexeddb-getall-shim": "^1.3.1", "intersection-observer": "^0.5.0", "intl-relativeformat": "^2.1.0", "lodash": "^4.17.4", diff --git a/routes/_components/Layout.html b/routes/_components/Layout.html index def3f34..87c2dbd 100644 --- a/routes/_components/Layout.html +++ b/routes/_components/Layout.html @@ -1,4 +1,4 @@ -<:Window bind:innerHeight='innerHeight'/> +<:Window bind:innerHeight bind:online />