import pear -> global.Pear, font

This commit is contained in:
dmc
2024-01-29 15:49:21 +01:00
parent a2dbb32d51
commit 3fda3df05d
4 changed files with 6 additions and 9 deletions

View File

@@ -3,13 +3,13 @@
<style> <style>
@font-face { @font-face {
font-family: 'overpass-mono'; font-family: 'overpass-mono';
src: url('~overpass/webfonts/overpass-mono-webfont/overpass-mono-regular.woff2') format('woff2'); src: url('~redhat-overpass-font/webfonts/overpass-mono-webfont/overpass-mono-regular.woff2') format('woff2');
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'overpass-mono'; font-family: 'overpass-mono';
src: url('~overpass/webfonts/overpass-mono-webfont/overpass-mono-bold.woff2') format('woff2'); src: url('~redhat-overpass-font/webfonts/overpass-mono-webfont/overpass-mono-bold.woff2') format('woff2');
font-weight: 600; font-weight: 600;
font-style: normal; font-style: normal;
} }

View File

@@ -1,7 +1,4 @@
/* eslint-env browser */ /* eslint-env browser */
import { config } from 'pear'
customElements.define('app-router', class AppRouter extends HTMLElement { customElements.define('app-router', class AppRouter extends HTMLElement {
constructor () { constructor () {
super() super()
@@ -50,8 +47,8 @@ customElements.define('app-router', class AppRouter extends HTMLElement {
}) })
window.addEventListener('load', () => { window.addEventListener('load', () => {
if (config.link.indexOf('pear://pulse') === 0) { if (Pear.config.link.indexOf('pear://pulse') === 0) {
this.load(config.link.slice(12)).catch(console.error) this.load(Pear.config.link.slice(12)).catch(console.error)
} }
}) })
} }

View File

@@ -3,7 +3,7 @@ import os from 'os'
import fs from 'fs' import fs from 'fs'
import path from 'path' import path from 'path'
import { spawn } from 'child_process' import { spawn } from 'child_process'
import { config, versions } from 'pear' const { config, versions } = Pear
const BIN = path.join(config.pearDir, 'bin') const BIN = path.join(config.pearDir, 'bin')
const isWin = process.platform === 'win32' const isWin = process.platform === 'win32'

View File

@@ -11,6 +11,6 @@
}, },
"dependencies": { "dependencies": {
"bare-path": "^2.1.0", "bare-path": "^2.1.0",
"overpass": "github:RedHatOfficial/Overpass#71f18db" "redhat-overpass-font": "^1.0.0"
} }
} }