Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

outpatient

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outpatient - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

32

es2015/block.js

@@ -10,3 +10,5 @@ 'use strict';

var document = this.document,
content = this.content;
content = this.content,
_text = this.text,
text = _text === undefined ? {} : _text;
var _opts$permalink = opts.permalink,

@@ -17,3 +19,3 @@ permalink = _opts$permalink === undefined ? document.url : _opts$permalink,

_opts$subheading = opts.subheading,
subheading = _opts$subheading === undefined ? document.subheading : _opts$subheading,
subheading = _opts$subheading === undefined ? document.subheading || document.description : _opts$subheading,
_opts$author = opts.author,

@@ -35,25 +37,5 @@ author = _opts$author === undefined ? document.author : _opts$author,

var classes = ['block'].concat(cssClasses);
return h('article', {
class: classes.join(' ')
}, [h('header', { class: 'block-header' }, [parents.length ? h('nav', { class: 'parentcrumbs' }, [h('ul', parents.map(function (parent) {
return h('li', [h('a', {
class: 'permalink',
href: parent.url
}, [h('h3', parent.title)])]);
}))]) : null, permalink ? h('a', {
class: 'permalink hover-link',
href: permalink
}, [h('h1', heading)]) : h('h1', heading), subheading ? h('h2', subheading) : '', date ? h('span', { class: 'date' }, date) : '', author ? h('a', {
class: 'author',
href: '/people/' + author
}, author) : '']), h('section', { class: 'block-content', innerHTML: content }), h('footer', { class: 'block-footer' }, [prev || up || next ? h('nav', { class: 'prev-next' }, [prev ? h('a', {
class: 'prev',
href: prev.url
}, [h('span', { class: 'icon' }), h('span', { class: 'title' }, prev.title)]) : '', up ? h('a', {
class: 'up',
href: up.url
}, [h('span', { class: 'icon' }), h('span', { class: 'title' }, up.title)]) : '', next ? h('a', {
class: 'next',
href: next.url
}, [h('span', { class: 'icon' }), h('span', { class: 'title' }, next.title)]) : '']) : '']), editUrl ? h('aside', { class: 'block-edit' }, [h('a', { href: editUrl }, 'Edit and improve this page!')]) : '']);
return h('article', { class: classes.join(' ') }, h('header.block-header', (parents.length || null) && h('nav.parentcrumbs', h('ul', parents.map(function (parent) {
return h('li', h('a.permalink', { href: parent.url }, h('h3', parent.title)));
}))), (permalink || h('h1', heading)) && h('a.permalink.hover-link', { href: permalink }, h('h1', heading)), (subheading || null) && h('h2', subheading), (date || null) && h('span.date', date), (author || null) && h('a.author', { href: '/people/' + author }, author)), h('section.block-content', { innerHTML: content }), h('footer.block-footer', (prev || up || next || null) && h('nav.prev-next', (prev || null) && h('a.prev', { href: prev.url }, h('span.icon'), h('span.title', prev.title)), (up || null) && h('a.up', { href: up.url }, h('span.icon'), h('span.title', up.title)), (next || null) && h('a.next', { href: next.url }, h('span.icon'), h('span.title', next.title)))), (editUrl || null) && h('aside.block-edit', h('a', { href: editUrl }, text.edit || 'Edit and improve this page!')));
};

@@ -101,3 +101,3 @@ 'use strict';

if (!this.services || !this.services.googleSearch) return '';
return '<script async src="//www.google.com/cse/cse.js?cx=' + this.services.googleSearch + '"></script>' + '<div class="search"><gcse:search></gcse:search></div>';
return '<script async src="//cse.google.com/cse/cse.js?cx=' + this.services.googleSearch + '"></script>' + '<div class="search"><gcse:search></gcse:search></div>';
}

@@ -104,0 +104,0 @@

# History
## v3.1.0 2017 April 15
- Ability to customise the edit link text via `text.edit` template data
## v3.0.0 2017 March 22

@@ -4,0 +7,0 @@ - `src/learn/organisation/project` -> `src/learn/organisation-repo/project`

{
"name": "outpatient",
"version": "3.0.0",
"version": "3.1.0",
"description": "helpers for bevry websites",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/bevry/outpatient",

@@ -7,7 +7,7 @@ 'use strict'

// Prepare
const { document, content } = this
const { document, content, text = {} } = this
const {
permalink = document.url,
heading = document.title,
subheading = document.subheading,
subheading = document.subheading || document.description,
author = document.author,

@@ -25,60 +25,37 @@ cssClasses = (document.cssClasses || []),

const classes = ['block'].concat(cssClasses)
return h('article', {
class: classes.join(' ')
}, [
h('header', {class: 'block-header'}, [
parents.length ? h('nav', { class: 'parentcrumbs' }, [
h('ul', parents.map((parent) => h('li', [
h('a', {
class: 'permalink',
href: parent.url
}, [
h('h3', parent.title)
])
])
return h('article', { class: classes.join(' ') },
h('header.block-header',
(parents.length || null) && h('nav.parentcrumbs',
h('ul', parents.map((parent) =>
h('li',
h('a.permalink', { href: parent.url },
h('h3', parent.title)
)
)
))
]) : null,
permalink ? h('a', {
class: 'permalink hover-link',
href: permalink
}, [
h('h1', heading)
]) : h('h1', heading),
subheading ? h('h2', subheading) : '',
date ? h('span', { class: 'date' }, date) : '',
author ? h('a', {
class: 'author',
href: `/people/${author}`
}, author) : ''
]),
h('section', { class: 'block-content', innerHTML: content }),
h('footer', { class: 'block-footer' }, [
(prev || up || next) ? h('nav', { class: 'prev-next' }, [
prev ? h('a', {
class: 'prev',
href: prev.url
}, [
h('span', { class: 'icon' }),
h('span', { class: 'title' }, prev.title)
]) : '',
up ? h('a', {
class: 'up',
href: up.url
}, [
h('span', { class: 'icon' }),
h('span', { class: 'title' }, up.title)
]) : '',
next ? h('a', {
class: 'next',
href: next.url
}, [
h('span', { class: 'icon' }),
h('span', { class: 'title' }, next.title)
]) : ''
]) : ''
]),
editUrl ? h('aside', { class: 'block-edit' }, [
h('a', { href: editUrl }, 'Edit and improve this page!')
]) : ''
])
),
(permalink || h('h1', heading)) && h('a.permalink.hover-link', { href: permalink }, h('h1', heading)),
(subheading || null) && h('h2', subheading),
(date || null) && h('span.date', date),
(author || null) && h('a.author', { href: `/people/${author}` }, author)
),
h('section.block-content', { innerHTML: content }),
h('footer.block-footer', ((prev || up || next) || null) && h('nav.prev-next',
(prev || null) && h('a.prev', { href: prev.url },
h('span.icon'),
h('span.title', prev.title)
),
(up || null) && h('a.up', { href: up.url },
h('span.icon'),
h('span.title', up.title)
),
(next || null) && h('a.next', { href: next.url },
h('span.icon'),
h('span.title', next.title)
)
)),
(editUrl || null) && h('aside.block-edit',
h('a', { href: editUrl }, text.edit || 'Edit and improve this page!')
)
)
}

@@ -90,3 +90,3 @@ 'use strict'

return (
`<script async src="//www.google.com/cse/cse.js?cx=${this.services.googleSearch}"></script>` +
`<script async src="//cse.google.com/cse/cse.js?cx=${this.services.googleSearch}"></script>` +
'<div class="search"><gcse:search></gcse:search></div>'

@@ -93,0 +93,0 @@ )

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc