From 89e95b3f143682ed9a006991bacf45c9dcba4818 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:43:05 +0800 Subject: remove node_modules --- node_modules/select/.editorconfig | 22 ------- node_modules/select/.npmignore | 1 - node_modules/select/.travis.yml | 3 - node_modules/select/bower.json | 13 ---- node_modules/select/demo/contenteditable.html | 26 -------- node_modules/select/demo/dropdown.html | 30 --------- node_modules/select/demo/editable.html | 26 -------- node_modules/select/demo/multiple.html | 28 -------- node_modules/select/demo/nested.html | 34 ---------- node_modules/select/demo/non-editable.html | 26 -------- node_modules/select/dist/select.js | 47 -------------- node_modules/select/karma.conf.js | 23 ------- node_modules/select/package.json | 29 --------- node_modules/select/readme.md | 49 -------------- node_modules/select/src/select.js | 43 ------------- node_modules/select/test/select.js | 93 --------------------------- 16 files changed, 493 deletions(-) delete mode 100644 node_modules/select/.editorconfig delete mode 100644 node_modules/select/.npmignore delete mode 100644 node_modules/select/.travis.yml delete mode 100644 node_modules/select/bower.json delete mode 100644 node_modules/select/demo/contenteditable.html delete mode 100644 node_modules/select/demo/dropdown.html delete mode 100644 node_modules/select/demo/editable.html delete mode 100644 node_modules/select/demo/multiple.html delete mode 100644 node_modules/select/demo/nested.html delete mode 100644 node_modules/select/demo/non-editable.html delete mode 100644 node_modules/select/dist/select.js delete mode 100644 node_modules/select/karma.conf.js delete mode 100644 node_modules/select/package.json delete mode 100644 node_modules/select/readme.md delete mode 100644 node_modules/select/src/select.js delete mode 100644 node_modules/select/test/select.js (limited to 'node_modules/select') diff --git a/node_modules/select/.editorconfig b/node_modules/select/.editorconfig deleted file mode 100644 index 0f1d01bd..00000000 --- a/node_modules/select/.editorconfig +++ /dev/null @@ -1,22 +0,0 @@ -# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs -# http://editorconfig.org - -root = true - -[*] -# Change these settings to your own preference -indent_style = space -indent_size = 4 - -# We recommend you to keep these unchanged -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[{package.json,bower.json}] -indent_size = 2 diff --git a/node_modules/select/.npmignore b/node_modules/select/.npmignore deleted file mode 100644 index b512c09d..00000000 --- a/node_modules/select/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules \ No newline at end of file diff --git a/node_modules/select/.travis.yml b/node_modules/select/.travis.yml deleted file mode 100644 index 833d09d1..00000000 --- a/node_modules/select/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - stable diff --git a/node_modules/select/bower.json b/node_modules/select/bower.json deleted file mode 100644 index 281b34ca..00000000 --- a/node_modules/select/bower.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "select", - "version": "1.1.0", - "description": "Programmatically select the text of a HTML element", - "license": "MIT", - "main": "dist/select.js", - "keywords": [ - "range", - "select", - "selecting", - "selection" - ] -} diff --git a/node_modules/select/demo/contenteditable.html b/node_modules/select/demo/contenteditable.html deleted file mode 100644 index 47f9b993..00000000 --- a/node_modules/select/demo/contenteditable.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - contenteditable - - - - -

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio totam adipisci, saepe ad vero dignissimos laborum non eum eveniet aperiam, consequuntur repellendus architecto inventore iusto blanditiis quasi commodi voluptatum vitae!

- - - - - - - - diff --git a/node_modules/select/demo/dropdown.html b/node_modules/select/demo/dropdown.html deleted file mode 100644 index aa739d58..00000000 --- a/node_modules/select/demo/dropdown.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - dropdown - - - - - - - - - - - - - diff --git a/node_modules/select/demo/editable.html b/node_modules/select/demo/editable.html deleted file mode 100644 index f51d9c29..00000000 --- a/node_modules/select/demo/editable.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - editable - - - - - - - - - - - - - diff --git a/node_modules/select/demo/multiple.html b/node_modules/select/demo/multiple.html deleted file mode 100644 index a19ae7df..00000000 --- a/node_modules/select/demo/multiple.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - multiple - - - - - - - - - - - - - - diff --git a/node_modules/select/demo/nested.html b/node_modules/select/demo/nested.html deleted file mode 100644 index 11e11f3b..00000000 --- a/node_modules/select/demo/nested.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - non-editable - - - - -
-

Item 1

-

Item 2

- -
- - - - - - - - diff --git a/node_modules/select/demo/non-editable.html b/node_modules/select/demo/non-editable.html deleted file mode 100644 index 2c34be93..00000000 --- a/node_modules/select/demo/non-editable.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - non-editable - - - - -

Lorem ipsum

- - - - - - - - diff --git a/node_modules/select/dist/select.js b/node_modules/select/dist/select.js deleted file mode 100644 index c3bdfe27..00000000 --- a/node_modules/select/dist/select.js +++ /dev/null @@ -1,47 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.select = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o -``` - -```js -var input = document.querySelector('input'); -var result = select(input); -``` - -### Browserify - -```js -var select = require('select'); -``` - -```js -var input = document.querySelector('input'); -var result = select(input); -``` - -## License - -[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha diff --git a/node_modules/select/src/select.js b/node_modules/select/src/select.js deleted file mode 100644 index 3e36485a..00000000 --- a/node_modules/select/src/select.js +++ /dev/null @@ -1,43 +0,0 @@ -function select(element) { - var selectedText; - - if (element.nodeName === 'SELECT') { - element.focus(); - - selectedText = element.value; - } - else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') { - var isReadOnly = element.hasAttribute('readonly'); - - if (!isReadOnly) { - element.setAttribute('readonly', ''); - } - - element.select(); - element.setSelectionRange(0, element.value.length); - - if (!isReadOnly) { - element.removeAttribute('readonly'); - } - - selectedText = element.value; - } - else { - if (element.hasAttribute('contenteditable')) { - element.focus(); - } - - var selection = window.getSelection(); - var range = document.createRange(); - - range.selectNodeContents(element); - selection.removeAllRanges(); - selection.addRange(range); - - selectedText = selection.toString(); - } - - return selectedText; -} - -module.exports = select; diff --git a/node_modules/select/test/select.js b/node_modules/select/test/select.js deleted file mode 100644 index 604dc945..00000000 --- a/node_modules/select/test/select.js +++ /dev/null @@ -1,93 +0,0 @@ -var select = require('../src/select'); - -describe('select editable elements', function() { - before(function() { - global.input = document.createElement('input'); - global.input.value = 'lorem ipsum'; - - global.textarea = document.createElement('textarea'); - global.textarea.value = 'lorem ipsum'; - - document.body.appendChild(global.input); - document.body.appendChild(global.textarea); - }); - - after(function() { - document.body.innerHTML = ''; - }); - - it('should return the selected text on input', function() { - var result = select(global.input); - assert.equal(result, global.input.value); - }); - - it('should return the selected text on textarea', function() { - var result = select(global.textarea); - assert.equal(result, global.textarea.value); - }); -}); - -describe('select non-editable element with no children', function() { - before(function() { - global.paragraph = document.createElement('p'); - global.paragraph.textContent = 'lorem ipsum'; - - document.body.appendChild(global.paragraph); - }); - - after(function() { - document.body.innerHTML = ''; - }); - - it('should return the selected text', function() { - var result = select(global.paragraph); - assert.equal(result, global.paragraph.textContent); - }); -}); - -describe('select non-editable element with child node', function() { - before(function() { - global.li = document.createElement('li'); - global.li.textContent = 'lorem ipsum'; - - global.ul = document.createElement('ul'); - global.ul.appendChild(global.li); - - document.body.appendChild(global.ul); - }); - - after(function() { - document.body.innerHTML = ''; - }); - - it('should return the selected text', function() { - var result = select(global.ul); - assert.equal(result, global.ul.textContent); - }); -}); - -describe('select non-editable svg element w/ multiple text children', function() { - before(function() { - global.text1 = document.createElement('text'); - global.text1.textContent = 'lorem ipsum'; - - global.text2 = document.createElement('text'); - global.text2.textContent = 'dolor zet'; - - global.svg = document.createElement('svg'); - global.svg.appendChild(global.text1); - global.svg.appendChild(global.text2); - - document.body.appendChild(global.svg); - }); - - after(function() { - document.body.innerHTML = ''; - }); - - it('should return the selected text', function() { - var result = select(global.svg); - assert.equal(result, global.text1.textContent + - global.text2.textContent); - }); -}); -- cgit v1.2.3