Browse Source

fix(theme/default): Fix asset compilation.

jackyalcine 2 months ago
parent
commit
a3694dfc3c
Signed by: Jacky Alciné <yo@jacky.wtf> GPG Key ID: 537A4F904B15268D

+ 1
- 1
package.json View File

@@ -8,7 +8,7 @@
8 8
     "parcel:watch": "scripts/dev-watch.sh",
9 9
     "parcel:build": "scripts/prod-build.sh",
10 10
     "test": "jest",
11
-    "lint": "eslint --fix"
11
+    "lint": "eslint --fix web/static/**/*.ts"
12 12
   },
13 13
   "repository": {
14 14
     "type": "git",

+ 1
- 1
priv/themes/default/assets/src/css/main.scss View File

@@ -2,7 +2,7 @@
2 2
 
3 3
 $sans-serif: "Merriweather", $sans-serif;
4 4
 $serif: "Merriweather", $serif;
5
-$monospace: "Droid Sans", $monospace;
5
+$monospace: "Droid Sans", monospace;
6 6
 
7 7
 @import "tachyons-sass/tachyons";
8 8
 

+ 2
- 0
web/static/js/internal.ts View File

@@ -89,6 +89,8 @@ function pageLoad () {
89 89
       image.classList.add('o-0')
90 90
     })
91 91
   })
92
+
93
+  document.querySelectorAll('a[data-confirm]').forEach(handleLinkClick)
92 94
 }
93 95
 
94 96
 function loadFonts () {

+ 1
- 1
web/static/js/page.ts View File

@@ -22,7 +22,7 @@
22 22
  * @todo Remove leaflet from here.
23 23
  */
24 24
 
25
-import { Socket } from 'phoenix'
25
+// import { Socket } from 'phoenix'
26 26
 import * as PhoenixHTML from 'phoenix_html'
27 27
 
28 28
 window.addEventListener(

+ 7
- 2
web/static/js/settings.ts View File

@@ -25,8 +25,13 @@ import renderQRCode from './lib/qrcode'
25 25
 window.addEventListener('load', function startSettingsPage () {
26 26
   const componentElem: HTMLInputElement = document.querySelector('input[name=component]')
27 27
   switch (componentElem.getAttribute('value')) {
28
-    case 'endpoints': setupEndpointPage()
29
-    case 'totp': renderQrCode()
28
+    case 'endpoints':
29
+      setupEndpointPage()
30
+      break
31
+    case 'totp':
32
+      renderQrCode()
33
+      break
34
+    default: break
30 35
   }
31 36
 
32 37
   function renderQrCode () {

+ 1
- 1
web/static/js/setup.ts View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 
23 23
 import Quill from 'quill'
24
-import { slugify, snakeCase } from 'voca'
24
+import { snakeCase } from 'voca'
25 25
 import renderQRCode from './lib/qrcode'
26 26
 
27 27
 const placeHolderText = 'Koype is a self-hostable IndieWeb engine for everyone.'

Loading…
Cancel
Save