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

docsify-corner

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docsify-corner - npm Package Compare versions

Comparing version 1.0.3 to 1.0.5

SECURITY.md

7

dist/docsify-corner.js

@@ -52,2 +52,4 @@ 'use strict';

icon: '',
// the text of the title attribute is displayed as a tooltip
title: '',
// the corner background color, default false to use default color

@@ -67,4 +69,7 @@ background: false,

const a = document.querySelector('a.github-corner');
a.href = cornerOptions.url || ' ';
a.innerHTML = getIcon(cornerOptions);
cornerOptions.url && (a.href = cornerOptions.href);
cornerOptions.title && (a.title = cornerOptions.title);
// icon color config

@@ -71,0 +76,0 @@ const cl = document.querySelector('.github-corner svg');

2

package.json
{
"name": "docsify-corner",
"version": "1.0.3",
"version": "1.0.5",
"description": "A plugin for setting corner of docsify.",

@@ -5,0 +5,0 @@ "main": "dist/docsify-corner.js",

@@ -7,4 +7,5 @@ # docsify-corner

- [x] support more icon. ( `Gitlab`...etc)
- [x] support more icon ( `Gitlab`...).
- [x] support customized image(`png`、`jpg`、`gif`).
- [x] support more settings(`tooltip`、`color`).

@@ -45,4 +46,5 @@ [![](https://data.jsdelivr.com/v1/package/npm/docsify-corner/badge)](https://www.jsdelivr.com/package/npm/docsify-corner)

| height | the height of the customized image. |
| color | the color of the icon.(Optional) |
| background | the background color of the customized icon.(Optional) |
| color | the color of the icon. |
| background | the background color of the customized icon. |
| title | the text of the title attribute is displayed as a tooltip. |

@@ -81,3 +83,3 @@

You can set your own image in the corner.
You can set your own image in the corner.

@@ -106,3 +108,3 @@ ```html

This the current [svg icon resources](https://gitlab.com/gitlab-org/gitlab-svgs) I m working on.
This the current [svg icon resources](https://gitlab.com/gitlab-org/gitlab-svgs) I' m working on.

@@ -112,3 +114,3 @@ Steps :

- Folk it !
- Install dependencies `npm run install`.
- Install dependencies `npm install`.
- Create your feature branch: `git checkout -b my-new-feature`.

@@ -115,0 +117,0 @@ - Commit your changes: `git commit -am 'Add some feature'.`

@@ -12,2 +12,4 @@ import { getIcon } from './icon'

icon: '',
// the text of the title attribute is displayed as a tooltip
title: '',
// the corner background color, default false to use default color

@@ -27,4 +29,7 @@ background: false,

const a = document.querySelector('a.github-corner')
a.href = cornerOptions.url || ' '
a.innerHTML = getIcon(cornerOptions)
cornerOptions.url && (a.href = cornerOptions.url)
cornerOptions.title && (a.title = cornerOptions.title)
// icon color config

@@ -31,0 +36,0 @@ const cl = document.querySelector('.github-corner svg')

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