The great refactor (#82)
This commit is contained in:
19
source/templates/terminal/README.md
Normal file
19
source/templates/terminal/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
### 📙 Terminal
|
||||
|
||||
Terminal template, mimicking a SSH session.
|
||||
|
||||
<table>
|
||||
<td align="center">
|
||||
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.terminal.svg">
|
||||
<img width="900" height="1" alt="">
|
||||
</td>
|
||||
</table>
|
||||
|
||||
#### ℹ️ Examples workflows
|
||||
|
||||
```yaml
|
||||
- uses: lowlighter/metrics@latest
|
||||
with:
|
||||
# ... other options
|
||||
template: terminal
|
||||
```
|
||||
1
source/templates/terminal/partials/lines.ejs
Normal file
1
source/templates/terminal/partials/lines.ejs
Normal file
@@ -0,0 +1 @@
|
||||
<%# Included in base.repositories.ejs %>
|
||||
1
source/templates/terminal/partials/traffic.ejs
Normal file
1
source/templates/terminal/partials/traffic.ejs
Normal file
@@ -0,0 +1 @@
|
||||
<%# Included in base.repositories.ejs %>
|
||||
@@ -1,10 +1,7 @@
|
||||
//Imports
|
||||
import common from "./../common.mjs"
|
||||
|
||||
/** Template processor */
|
||||
export default async function ({login, q}, {conf, data, rest, graphql, plugins, queries}, {s, pending, imports}) {
|
||||
//Common
|
||||
await common(...arguments)
|
||||
//Core
|
||||
await imports.plugins.core(...arguments)
|
||||
//Disable optimization to keep white-spaces
|
||||
q.raw = true
|
||||
}
|
||||
Reference in New Issue
Block a user