@cu-mkp/editioncrafter 1.0.4-beta.3 → 1.0.4-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,9 +19,9 @@ const isLocalhost = Boolean(
19
19
  )
20
20
 
21
21
  export default function register() {
22
- if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
22
+ if (import.meta.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
23
23
  // The URL constructor is available in all browsers that support SW.
24
- const publicUrl = new URL(process.env.PUBLIC_URL, window.location)
24
+ const publicUrl = new URL(import.meta.env.PUBLIC_URL, window.location)
25
25
  if (publicUrl.origin !== window.location.origin) {
26
26
  // Our service worker won't work if PUBLIC_URL is on a different origin
27
27
  // from what our page is served on. This might happen if a CDN is used to
@@ -30,7 +30,7 @@ export default function register() {
30
30
  }
31
31
 
32
32
  window.addEventListener('load', () => {
33
- const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`
33
+ const swUrl = `${import.meta.env.PUBLIC_URL}/service-worker.js`
34
34
 
35
35
  if (isLocalhost) {
36
36
  // This is running on localhost. Lets check if a service worker still exists or not.
@@ -1,18 +1,7 @@
1
- $header-height: 72px;
2
- $sm-header-height: 88px;
3
- $md-header-height: 104px;
4
- $footer-height: 120px;
5
- $chrome-height: $header-height + $footer-height;
6
- $sm-chrome-height: $sm-header-height + $footer-height;
7
- $md-chrome-height: $md-header-height + $footer-height;
8
-
9
1
  // COLORS
10
- $cream: #EBE3DD;
11
2
  $dark-cream: #CBA374;
12
3
  $maroon: #792421;
13
4
  $dark-maroon: #460C0A;
14
- $light-maroon: #96332f;
15
- $grey: #858585;
16
5
 
17
6
  .editioncrafter {
18
7
 
@@ -301,17 +301,9 @@
301
301
 
302
302
  #diplomatic.editioncrafter {
303
303
  background: white;
304
- // position: fixed;
305
304
  width: auto;
306
305
  height: min(100%, 100dvh);
307
306
  overflow-y: hidden;
308
- // height: calc(100% - $chrome-height);
309
- // @include sm {
310
- // height: calc(100% - $sm-chrome-height);
311
- // }
312
- // @include md {
313
- // height: calc(100% - $md-chrome-height);
314
- // }
315
307
  -webkit-user-select: none;
316
308
  -moz-user-select: none;
317
309
  -ms-user-select: none;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cu-mkp/editioncrafter",
3
3
  "type": "module",
4
- "version": "1.0.4-beta.3",
4
+ "version": "1.0.4-beta.4",
5
5
  "private": false,
6
6
  "description": "A simple digital critical edition publication tool",
7
7
  "license": "MIT",