mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-18 06:54:22 +01:00
import pear -> global.Pear, font
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user