mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 22:44:21 +01:00
import pear -> global.Pear, font
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
<style>
|
||||
@font-face {
|
||||
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-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
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-style: normal;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
/* eslint-env browser */
|
||||
|
||||
import { config } from 'pear'
|
||||
|
||||
customElements.define('app-router', class AppRouter extends HTMLElement {
|
||||
constructor () {
|
||||
super()
|
||||
@@ -50,8 +47,8 @@ customElements.define('app-router', class AppRouter extends HTMLElement {
|
||||
})
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
if (config.link.indexOf('pear://pulse') === 0) {
|
||||
this.load(config.link.slice(12)).catch(console.error)
|
||||
if (Pear.config.link.indexOf('pear://pulse') === 0) {
|
||||
this.load(Pear.config.link.slice(12)).catch(console.error)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import os from 'os'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { spawn } from 'child_process'
|
||||
import { config, versions } from 'pear'
|
||||
const { config, versions } = Pear
|
||||
|
||||
const BIN = path.join(config.pearDir, 'bin')
|
||||
const isWin = process.platform === 'win32'
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"bare-path": "^2.1.0",
|
||||
"overpass": "github:RedHatOfficial/Overpass#71f18db"
|
||||
"redhat-overpass-font": "^1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user