-
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
124 changed files
with
3,494 additions
and
1,113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[ | ||
import_deps: [:ecto, :phoenix], | ||
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"], | ||
subdirectories: ["priv/*/migrations"] | ||
import_deps: [:ecto, :ecto_sql, :phoenix], | ||
subdirectories: ["priv/*/migrations"], | ||
plugins: [Phoenix.LiveView.HTMLFormatter], | ||
inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
img { | ||
height: 20px; | ||
margin-right: 0.7rem; | ||
border-radius: 2px; | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
span.icon svg { | ||
height: 1em; | ||
margin-right: 0.2em; | ||
margin-top: -0.15em; | ||
} | ||
|
||
span.icon-live { | ||
font-weight: bold; | ||
color: white; | ||
background-color: #d40000; | ||
padding: 0.1em 0.3em; | ||
border-radius: 3px; | ||
} | ||
|
||
span.icon-offline { | ||
font-weight: bold; | ||
color: white; | ||
background-color: #666; | ||
padding: 0.1em 0.3em; | ||
border-radius: 3px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,7 @@ div.asciicast-card { | |
img { | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 2px; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,5 @@ | |
.c-login { | ||
h2 { | ||
margin-top: 30px; | ||
|
||
span.glyphicon { | ||
top: 4px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
img { | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 3px; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
import css from '../css/iframe.scss'; | ||
import { createPlayer } from './player'; | ||
|
||
import { create } from 'asciinema-player'; | ||
|
||
const [id, props] = window.players.entries().next().value; | ||
const player = create(props.src, document.getElementById(id), props); | ||
|
||
if (window.parent !== window) { | ||
player.el.addEventListener('resize', e => { | ||
const w = e.detail.el.offsetWidth; | ||
const h = Math.max(document.body.scrollHeight, document.body.offsetHeight); | ||
window.parent.postMessage(['resize', { width: w, height: h }], '*'); | ||
}); | ||
} | ||
window.createPlayer = createPlayer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { create } from 'asciinema-player'; | ||
|
||
export function createPlayer(src, container, opts) { | ||
if (opts.customTerminalFontFamily) { | ||
opts.terminalFontFamily = `${opts.customTerminalFontFamily},Consolas,Menlo,'Bitstream Vera Sans Mono',monospace,'Powerline Symbols'`; | ||
|
||
document.fonts.load(`1em ${opts.customTerminalFontFamily}`).then(() => { | ||
console.log(`loaded font ${opts.customTerminalFontFamily}`); | ||
create(src, container, opts); | ||
}).catch(error => { | ||
console.log(`failed to load font ${opts.customTerminalFontFamily}`, error); | ||
return create(src, container, opts); | ||
}); | ||
} else { | ||
return create(src, container, opts); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.