diff --git a/index.html b/index.html index f57521042b13359a2bbd64254b94f921516fe970..91c31053ab781fe1b4e79b7d825f0d1a2ae13530 100644 --- a/index.html +++ b/index.html @@ -235,7 +235,7 @@

SiickRSS

-

SiickRSS est un agrégateur de flux RSS. Vous consultez ainsi toutes les dernières infos de vos sites préférés dans la même interface. Compte gratuit sur demande.

+

SiickRSS est un agrégateur de flux RSS. Vous consultez ainsi toutes les dernières infos de vos sites préférés dans la même interface. Compte accessible sur donation en faisant la demande.

diff --git a/ko-veed/css/style.css b/ko-veed/css/style.css deleted file mode 100644 index 9c9693116728e61dfa09d9de6eecd0128e6ae970..0000000000000000000000000000000000000000 --- a/ko-veed/css/style.css +++ /dev/null @@ -1,17 +0,0 @@ -body { - font-family: sans-serif; -} - -html, -.fullscreen { - display: flex; - height: 100%; - margin: 0; - padding: 0; - width: 100%; -} - -.container { - margin: auto; - text-align: center; -} \ No newline at end of file diff --git a/ko-veed/images/favicon-120x120.png b/ko-veed/images/favicon-120x120.png deleted file mode 100644 index d1fa2052296a4277260387b4ae5f0152b37f9fcf..0000000000000000000000000000000000000000 Binary files a/ko-veed/images/favicon-120x120.png and /dev/null differ diff --git a/ko-veed/images/favicon-152x152.png b/ko-veed/images/favicon-152x152.png deleted file mode 100644 index b5cb383564724a6dc9b6c0ea666124a97c9a0143..0000000000000000000000000000000000000000 Binary files a/ko-veed/images/favicon-152x152.png and /dev/null differ diff --git a/ko-veed/images/favicon-167x167.png b/ko-veed/images/favicon-167x167.png deleted file mode 100644 index 6c52bdd90e5689e3c77beb2cbc37d03e4b26d28c..0000000000000000000000000000000000000000 Binary files a/ko-veed/images/favicon-167x167.png and /dev/null differ diff --git a/ko-veed/images/favicon-16x16.png b/ko-veed/images/favicon-16x16.png deleted file mode 100644 index e7415be1b2b54e321390998c61bd5b19bcc4c907..0000000000000000000000000000000000000000 Binary files a/ko-veed/images/favicon-16x16.png and /dev/null differ diff --git a/ko-veed/images/favicon-180x180.png b/ko-veed/images/favicon-180x180.png deleted file mode 100644 index 211c829e6f260b55bab030b4d176fc4277f2409d..0000000000000000000000000000000000000000 Binary files a/ko-veed/images/favicon-180x180.png and /dev/null differ diff --git a/ko-veed/images/favicon-32x32.png b/ko-veed/images/favicon-32x32.png deleted file mode 100644 index 6e2fe009303e1d991623b82e8aa63e5f57c3286b..0000000000000000000000000000000000000000 Binary files a/ko-veed/images/favicon-32x32.png and /dev/null differ diff --git a/ko-veed/images/favicon-96x96.png b/ko-veed/images/favicon-96x96.png deleted file mode 100644 index b4a6c2f28cbfe5e7ebaaa1d6d64bf85ba867815f..0000000000000000000000000000000000000000 Binary files a/ko-veed/images/favicon-96x96.png and /dev/null differ diff --git a/ko-veed/images/thumbnail.png b/ko-veed/images/thumbnail.png deleted file mode 100644 index d566ab1764b6461839541dcba7584276aadece47..0000000000000000000000000000000000000000 Binary files a/ko-veed/images/thumbnail.png and /dev/null differ diff --git a/ko-veed/index.html b/ko-veed/index.html deleted file mode 100644 index 10856fdc00f634848e6c656dc4b53e92b9ef6677..0000000000000000000000000000000000000000 --- a/ko-veed/index.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - TousAntiCovid - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -

- - - -

- - - - - - - \ No newline at end of file diff --git a/ko-veed/js/main.js b/ko-veed/js/main.js deleted file mode 100644 index 77ab82da0eaa663c4afcd73173a54b5dfa6500bc..0000000000000000000000000000000000000000 --- a/ko-veed/js/main.js +++ /dev/null @@ -1,8 +0,0 @@ -window.onload = () => { - 'use strict'; - - if ('serviceWorker' in navigator) { - navigator.serviceWorker - .register('./sw.js'); - } -} \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/.gitignore b/ko-veed/js/qrcode-svg/.gitignore deleted file mode 100644 index 4b313706219c90dc2c238938a021a94963a6072c..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/.gitignore +++ /dev/null @@ -1,39 +0,0 @@ -# Test -samples/ - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directory -node_modules - -# npm -package-lock.json - -# Optional npm cache directory -.npm - -# Optional REPL history -.node_repl_history diff --git a/ko-veed/js/qrcode-svg/LICENSE b/ko-veed/js/qrcode-svg/LICENSE deleted file mode 100644 index 03792a344c5ebf302988d60d7ffd653833d65e04..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 papnkukn - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/ko-veed/js/qrcode-svg/README.md b/ko-veed/js/qrcode-svg/README.md deleted file mode 100644 index 4721d7f2ef7bed81c770acb445f08ab75c513c13..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/README.md +++ /dev/null @@ -1,280 +0,0 @@ -## Introduction - -This library has been written to generate a SVG image of QR Code in Node.js, goals: -* pure JavaScript -* no browser requirement -* no external dependencies -* generate SVG output - -## Getting Started - -Install the package: -```bash -npm install qrcode-svg -``` - -Inline example: -```javascript -var QRCode = require("qrcode-svg"); -var svg = new QRCode("Hello World!").svg(); -``` - -More options: -```javascript -var qrcode = new QRCode({ - content: "http://github.com/", - padding: 4, - width: 256, - height: 256, - color: "#000000", - background: "#ffffff", - ecl: "M", -}); -qrcode.save("sample.svg", function(error) { - if (error) throw error; - console.log("Done!"); -}); -``` - -## Options - -**List of options:** -* **content** - QR Code content, the only **required** parameter -* **padding** - white space padding, `4` modules by default, `0` for no border -* **width** - QR Code width in pixels -* **height** - QR Code height in pixels -* **color** - color of modules (squares), color name or hex string, e.g. `#000000` -* **background** - color of background, color name or hex string, e.g. `white` -* **ecl** - error correction level: `L`, `M`, `H`, `Q` -* **join** - join modules (squares) into one shape, into the SVG `path` element, **recommended** for web and responsive use, default: `false` -* **predefined** - to create a squares as pattern, then populate the canvas, default: `false`, see the output examples below -* **pretty** - apply indents and new lines, default: `true` -* **swap** - swap X and Y modules, only if you have issues with some QR readers, default: `false` -* **xmlDeclaration** - prepend XML declaration to the SVG document, i.e. ``, default: `true` -* **container** - wrapping element, default: `svg`, see below - -**Container options:** -* **svg** - populate squares in a SVG document with `width` and `height` attriute, recommended for converting to raster images or PDF where QR Code is being static (exact size) -* **svg-viewbox** - populate squares in a SVG document with `viewBox` attriute, **recommended** for responsive web pages -* **g** - put squares in `g` element, useful when you need to put multiple QR Codes in a single SVG document -* **none** - no wrapper - -## SVG output - -### Editable squares - -This mode is useful for designers to manipulate with particular squares. -Thus, one can open the QR Code in an editor, select particular modules, move around, change color, etc. -However, some old SVG viewers may generate minor gaps between the squares - the side effect when rendering an image at certain zoom level. - -Default options -```javascript -var qrcode = new QRCode({ - content: "Pretty Fox", - join: false, - predefined: false -}); -``` - -Output with `rect` elements -```xml - - - - - - - ... - -``` - -### Responsive web page - -Squares joined into one `path` shape produce a compact file size, i.e. 4-5x reduced compared with `rect` elements. -A single `path` element will result in an optimized rendering, thus not producing any minor gaps between the squares. -Also using the container with `viewBox` attribute may contribute to the responsive scaling on the web. - -Set `join` to `true` -```javascript -var qrcode = new QRCode({ - content: "Pretty Fox", - join: true, - container: "svg-viewbox" //Useful but not required -}); -``` - -Output with `path` element -```xml - - - - - -``` - -### Predefined pattern - -Algorithm defines the square pattern once before populating a canvas. Useful if you want to generate QR Code with candies. -However, some SVG software and converters do not support `defs` or `use` elements. - -Set `predefined` to `true` -```javascript -var qrcode = new QRCode({ - content: "Pretty Fox", - predefined: true -}); -``` - -Output with `defs` and `use` elements -```xml - - - - - - - - - - ... - -``` - -## Command Line - -``` -Usage: - qrcode-svg [options] - -Options: - --help Print this message - --version, -v Print version number - --padding , -p [value] Offset in number of modules - --width, -w [px] Image width in pixels - --height, -h [px] Image height in pixels - --color, -fg [color] Foreground color, hex or name - --background [color] Background color, hex or name - --ecl [value] Error correction level: L, M, H, Q - --join Join modules into one SVG path, i.e. for crisp rendering - --predefined Use 'defs' and 'use' elements in SVG, i.e. for compact output - --no-prettify Avoid indenting and new lines in SVG, i.e. for compact output - --viewbox Use 'viewBox' instead of 'width' and 'height' attributes - --swap-fix Swap X and Y modules to fix issues with some QR readers - --output, -o [file] Output file name - --force, -f Force overwrite - -Examples: - qrcode-svg http://github.com - qrcode-svg -f -o hello.svg "Hello World" - qrcode-svg -p 4 -w 256 -h 256 --join --viewbox "Responsive..." - qrcode-svg --padding 2 --width 120 --height 120 "Little fox..." - qrcode-svg --color blue --background #ececec "...jumps over" -``` - -## Usage Scenarios - -### Convert to other formats - -Using [html-pdf](https://www.npmjs.com/package/html-pdf) to convert SVG to PDF (or PNG or JPEG) -```javascript -var QRCode = require('qrcode-svg'); -var svg = new QRCode('hello').svg(); -... -var pdf = require('html-pdf'); -pdf.create(svg, { border: 0, type: 'pdf' }).toFile('output.pdf', function(err, res) { - ... -}); -``` - -### ASCII modules - -QR Code in ASCII to output in a shell -```javascript -var QRCode = require('qrcode-svg'); - -var hello = new QRCode("Hello World!"); -var modules = hello.qrcode.modules; - -var ascii = ''; -var length = modules.length; -for (var y = 0; y < length; y++) { - for (var x = 0; x < length; x++) { - var module = modules[x][y]; - ascii += (module ? 'x' : ' '); - } - ascii += '\r\n'; -} -console.log(ascii); -``` - -``` - - - xxxxxxx xx x x xxxxxxx - x x xxxx x x x x - x xxx x xx xx x x xxx x - x xxx x xx x xxx x - x xxx x x x x x xxx x - x x x xx xx x x - xxxxxxx x x x x x xxxxxxx - xx xx - x x xx x x xx x x - x x xx x xx x xx x - x x xx x x x xx xx - x xx xxx xx x x x x x - xx xxxx xxxx x - x x x xx x xx xx x xx xx - x xx xxxx xxxx - xx xx x x x x xx x - xxxx xxxx xxxxxx x - x x x - xxxxxxx x xxx x x x x - x x xxx x xx x x - x xxx x xxxxxxxxxx - x xxx x xxxxxxxxx x xx - x xxx x xxx xx x x x - x x x x x - xxxxxxx xxx xxx x x x - - -``` - -### Web browser - -Use on a HTML page with JavaScript -```html - - - -
- - - - -``` - -## Thanks - -Thanks to [davidshimjs](https://github.com/davidshimjs/qrcodejs) for the base library. - -Thanks to [Kazuhiko Arase](http://www.d-project.com/) for the original QR Code in JavaScript algorithm. - -Thanks to all contributors on the GitHub. - -## Legal notice - -``` -Licensed under the MIT license: -http://www.opensource.org/licenses/mit-license.php - -The word "QR Code" is registered trademark of DENSO WAVE INCORPORATED -http://www.denso-wave.com/qrcode/faqpatent-e.html -``` \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/app.js b/ko-veed/js/qrcode-svg/app.js deleted file mode 100644 index 9ed0cf6526b9750e58bd91be0e41443a8602fabc..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/app.js +++ /dev/null @@ -1,156 +0,0 @@ -var os = require('os'); -var fs = require('fs'); -var path = require('path'); -var QRCode = require("./lib/qrcode.js"); - -//Default configuration -var config = { - verbose: process.env.NODE_VERBOSE == "true" || process.env.NODE_VERBOSE == "1" -}; - -//Command line interface -var args = process.argv.slice(2); -for (var i = 0; i < args.length; i++) { - switch (args[i]) { - case "--help": - help(); - process.exit(0); - break; - - //Padding in number of modules - case "-p": - case "--padding": - config.padding = parseFloat(args[++i]); - break; - - //Width in pixels - case "-w": - case "--width": - config.width = parseFloat(args[++i]); - break; - - //Height in pixels - case "-h": - case "--height": - config.height = parseFloat(args[++i]); - break; - - //Foreground color - case "-fg": - case "--color": - config.color = args[++i]; - break; - - //Background color - case "-bg": - case "--background": - config.background = args[++i]; - break; - - case "--ecl": - config.ecl = args[++i]; - break; - - case "--join": - config.join = true; - break; - - case "--predefined": - config.predefined = true; - break; - - case "--viewbox": - config.container = "svg-viewbox"; - break; - - case "--no-prettify": - config.pretty = false; - break; - - case "--swap-fix": - config.swap = true; - break; - - case "-f": - case "--force": - config.force = true; - break; - - case "-o": - case "--output": - config.outputFile = args[++i]; - break; - - case "-v": - case "--version": - console.log(require('./package.json').version); - process.exit(0); - break; - - default: - if (i == args.length - 1) { - config.content = args[i]; - } - else { - console.error("Unknown command line argument: " + args[i]); - process.exit(2); - } - break; - } -} - -//Prints help message -function help() { - console.log("Usage:"); - console.log(" qrcode-svg [options] "); - console.log(""); - console.log("Options:"); - console.log(" --help Print this message"); - console.log(" --version, -v Print version number"); - console.log(" --padding , -p [value] Offset in number of modules"); - console.log(" --width, -w [px] Image width in pixels"); - console.log(" --height, -h [px] Image height in pixels"); - console.log(" --color, -fg [color] Foreground color, hex or name"); - console.log(" --background [color] Background color, hex or name"); - console.log(" --ecl [value] Error correction level: L, M, H, Q"); - console.log(" --join Join modules into one SVG path, i.e. for crisp rendering"); - console.log(" --predefined Use 'defs' and 'use' elements in SVG, i.e. for compact output"); - console.log(" --no-prettify Avoid indenting and new lines in SVG, i.e. for compact output"); - console.log(" --viewbox Use 'viewBox' instead of 'width' and 'height' attributes"); - console.log(" --swap-fix Swap X and Y modules to fix issues with some QR readers"); - console.log(" --output, -o [file] Output file name"); - console.log(" --force, -f Force overwrite"); - console.log(""); - console.log("Examples:"); - console.log(" qrcode-svg http://github.com"); - console.log(" qrcode-svg -f -o hello.svg \"Hello World\""); - console.log(" qrcode-svg -p 4 -w 256 -h 256 --join --viewbox \"Responsive...\""); - console.log(" qrcode-svg --padding 2 --width 120 --height 120 \"Little fox...\""); - console.log(" qrcode-svg --color blue --background #ececec \"...jumps over\""); -} - -if (args.length == 0) { - help(); - process.exit(0); -} - -if (typeof config.content != "string" || config.content.length == 0) { - console.error("Content is missing!"); - process.exit(2); -} - -var qrcode = new QRCode(config); -var svg = qrcode.svg(); - -if (typeof config.outputFile == "string" && config.outputFile.length > 0) { - if (!config.force && fs.existsSync(config.outputFile)) { - console.error("File already exists: " + config.outputFile); - process.exit(2); - } - - fs.writeFileSync(config.outputFile, svg); - console.log("Done!"); -} -else { - console.log(svg); -} diff --git a/ko-veed/js/qrcode-svg/bin/qrcode-svg.js b/ko-veed/js/qrcode-svg/bin/qrcode-svg.js deleted file mode 100644 index 0a7c01686b46b48454696d5b7e23fdc680aa6dfe..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/bin/qrcode-svg.js +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -require('../app.js'); \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/dist/qrcode.min.js b/ko-veed/js/qrcode-svg/dist/qrcode.min.js deleted file mode 100644 index 569a86781ffc0e55a8ca9a194d8fe4498f8fe229..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/dist/qrcode.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! qrcode-svg v1.1.0 | https://github.com/papnkukn/qrcode-svg | MIT license */ -function QR8bitByte(t){this.mode=QRMode.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e65536?(o[0]=240|(1835008&n)>>>18,o[1]=128|(258048&n)>>>12,o[2]=128|(4032&n)>>>6,o[3]=128|63&n):n>2048?(o[0]=224|(61440&n)>>>12,o[1]=128|(4032&n)>>>6,o[2]=128|63&n):n>128?(o[0]=192|(1984&n)>>>6,o[1]=128|63&n):o[0]=n,this.parsedData.push(o)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function QRCodeModel(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}QR8bitByte.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(this.modules[t+r][e+o]=0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=QRUtil.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r);this.make();for(var n=0;n>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(r=0;r<18;r++){o=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=QRUtil.getBCHTypeInfo(r),n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(n=0;n<15;n++){i=!t&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var h=!1;i>>n&1)),QRUtil.getMask(e,o,a-s)&&(h=!h),this.modules[o][a-s]=h,-1==--n&&(i++,n=7)}if((o+=r)<0||this.moduleCount<=o){o-=r,r=-r;break}}}},QRCodeModel.PAD0=236,QRCodeModel.PAD1=17,QRCodeModel.createData=function(t,e,r){for(var o=QRRSBlock.getRSBlocks(t,e),n=new QRBitBuffer,i=0;i8*s)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+8*s+")");for(n.getLengthInBits()+4<=8*s&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*s||(n.put(QRCodeModel.PAD0,8),n.getLengthInBits()>=8*s));)n.put(QRCodeModel.PAD1,8);return QRCodeModel.createBytes(n,o)},QRCodeModel.createBytes=function(t,e){for(var r=0,o=0,n=0,i=new Array(e.length),a=new Array(e.length),s=0;s=0?d.get(f):0}}var c=0;for(u=0;u=0;)e^=QRUtil.G15<=0;)e^=QRUtil.G18<>>=1;return e},getPatternPosition:function(t){return QRUtil.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case QRMaskPattern.PATTERN000:return(e+r)%2==0;case QRMaskPattern.PATTERN001:return e%2==0;case QRMaskPattern.PATTERN010:return r%3==0;case QRMaskPattern.PATTERN011:return(e+r)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case QRMaskPattern.PATTERN101:return e*r%2+e*r%3==0;case QRMaskPattern.PATTERN110:return(e*r%2+e*r%3)%2==0;case QRMaskPattern.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new QRPolynomial([1],0),r=0;r5&&(r+=3+i-5)}for(o=0;o=256;)t-=255;return QRMath.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},i=0;i<8;i++)QRMath.EXP_TABLE[i]=1<>>7-t%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function QRCode(t){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M"},"string"==typeof t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var r=this.options.content,o=function(t,e){for(var r=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),o=1,n=0,i=0,a=QRCodeLimitLength.length;i<=a;i++){var s=QRCodeLimitLength[i];if(!s)throw new Error("Content too long: expected "+n+" but got "+r);switch(e){case"L":n=s[0];break;case"M":n=s[1];break;case"Q":n=s[2];break;case"H":n=s[3];break;default:throw new Error("Unknwon error correction level: "+e)}if(r<=n)break;o++}if(o>QRCodeLimitLength.length)throw new Error("Content too long");return o}(r,this.options.ecl),n=function(t){switch(t){case"L":return QRErrorCorrectLevel.L;case"M":return QRErrorCorrectLevel.M;case"Q":return QRErrorCorrectLevel.Q;case"H":return QRErrorCorrectLevel.H;default:throw new Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new QRCodeModel(o,n),this.qrcode.addData(r),this.qrcode.make()}QRCode.prototype.svg=function(t){var e=this.options||{},r=this.qrcode.modules;void 0===t&&(t={container:e.container||"svg"});for(var o=void 0===e.pretty||!!e.pretty,n=o?" ":"",i=o?"\r\n":"",a=e.width,s=e.height,h=r.length,l=a/(h+2*e.padding),u=s/(h+2*e.padding),g=void 0!==e.join&&!!e.join,d=void 0!==e.swap&&!!e.swap,f=void 0===e.xmlDeclaration||!!e.xmlDeclaration,c=void 0!==e.predefined&&!!e.predefined,R=c?n+''+i:"",p=n+''+i,m="",Q="",v=0;v'+i:n+''+i}}g&&(m=n+'');var T="";switch(t.container){case"svg":f&&(T+=''+i),T+=''+i,T+=R+p+m,T+="";break;case"svg-viewbox":f&&(T+=''+i),T+=''+i,T+=R+p+m,T+="";break;case"g":T+=''+i,T+=R+p+m,T+="";break;default:T+=(R+p+m).replace(/^\s+/,"")}return T},QRCode.prototype.save=function(t,e){var r=this.svg();"function"!=typeof e&&(e=function(t,e){});try{require("fs").writeFile(t,r,e)}catch(t){e(t)}},"undefined"!=typeof module&&(module.exports=QRCode); \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/examples/ascii.js b/ko-veed/js/qrcode-svg/examples/ascii.js deleted file mode 100644 index c23a2446cd9c921943c5c1e107e7e61e3743437d..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/ascii.js +++ /dev/null @@ -1,15 +0,0 @@ -var QRCode = require('../lib/qrcode.js'); - -var hello = new QRCode("Hello World!"); -var modules = hello.qrcode.modules; - -var ascii = ''; -var length = modules.length; -for (var y = 0; y < length; y++) { - for (var x = 0; x < length; x++) { - var module = modules[x][y]; - ascii += (module ? 'x' : ' '); - } - ascii += '\r\n'; -} -console.log(ascii); \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/examples/ascii.txt b/ko-veed/js/qrcode-svg/examples/ascii.txt deleted file mode 100644 index 22bbda7e444ce5e304d57640e4208e199a878e22..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/ascii.txt +++ /dev/null @@ -1,26 +0,0 @@ -xxxxxxx xx x x xxxxxxx -x x xxxx x x x x -x xxx x xx xx x x xxx x -x xxx x xx x xxx x -x xxx x x x x x xxx x -x x x xx xx x x -xxxxxxx x x x x x xxxxxxx - xx xx -x x xx x x xx x x - x x xx x xx x xx x - x x xx x x x xx xx - x xx xxx xx x x x x x - xx xxxx xxxx x -x x x xx x xx xx x xx xx -x xx xxxx xxxx -xx xx x x x x xx x - xxxx xxxx xxxxxx x - x x x -xxxxxxx x xxx x x x x -x x xxx x xx x x -x xxx x xxxxxxxxxx -x xxx x xxxxxxxxx x xx -x xxx x xxx xx x x x -x x x x x -xxxxxxx xxx xxx x x x - diff --git a/ko-veed/js/qrcode-svg/examples/convert.js b/ko-veed/js/qrcode-svg/examples/convert.js deleted file mode 100644 index 9dad586f2237869dbf95b315795872d6dd3ffd7a..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/convert.js +++ /dev/null @@ -1,25 +0,0 @@ -var QRCode = require('../lib/qrcode.js'); - -var htmlpdf; -try { - htmlpdf = require('html-pdf'); -} -catch (e) { - console.error("Please run: npm install html-pdf"); - process.exit(1); -} - -//Generate PNG image -var svg = new QRCode("Hello from PNG!").svg(); -htmlpdf.create(svg, { border: 0, type: 'png' }).toFile('convert.png', function(err, res) { - if (err) throw err; - console.log(res); -}); - -//Generate PDF document -var svg = new QRCode("Hello from PDF!").svg(); -htmlpdf.create(svg, { border: 0, type: 'pdf' }).toFile('convert.pdf', function(err, res) { - if (err) throw err; - console.log(res); -}); - diff --git a/ko-veed/js/qrcode-svg/examples/index.html b/ko-veed/js/qrcode-svg/examples/index.html deleted file mode 100644 index d8e76f977c8c7986e82fa43e5c63ede614f75fda..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - -
- - - - \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/examples/output/ascii.txt b/ko-veed/js/qrcode-svg/examples/output/ascii.txt deleted file mode 100644 index 8ad6f836a3ad3d1cd3c93fbc30641de12ae72cff..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/output/ascii.txt +++ /dev/null @@ -1,26 +0,0 @@ -xxxxxxx x xxx xxxxxxx -x x xxx x x x -x xxx x x xx x xxx x -x xxx x x x xx x xxx x -x xxx x xx xx x xxx x -x x xx xxx x x x -xxxxxxx x x x x x xxxxxxx - xxxx -x x xx x xxx xx x x x -xxx xx x x x x xx xx x - x x xx x x xx x - x xxxx xxx x x - xx xx x xx x x x - x xx x x xx xx xx x -xx x x x x x xx x - x x x x x xxx -xxx xxxx x xxx xxxxxxx x - xx x x xxx -xxxxxxx x x xxxxx x x x -x x xxxx xxx x -x xxx x xx xxxxxx -x xxx x x xx x x -x xxx x xx x x xxxxx -x x x x xxx -xxxxxxx xxxxxx xx x x x x - diff --git a/ko-veed/js/qrcode-svg/examples/output/convert.pdf b/ko-veed/js/qrcode-svg/examples/output/convert.pdf deleted file mode 100644 index 7804668e47854aec8b6a04df82be92120202a37f..0000000000000000000000000000000000000000 Binary files a/ko-veed/js/qrcode-svg/examples/output/convert.pdf and /dev/null differ diff --git a/ko-veed/js/qrcode-svg/examples/output/convert.png b/ko-veed/js/qrcode-svg/examples/output/convert.png deleted file mode 100644 index c4850a54ac57cb7640e11cfe17e9c21c865fb0ed..0000000000000000000000000000000000000000 Binary files a/ko-veed/js/qrcode-svg/examples/output/convert.png and /dev/null differ diff --git a/ko-veed/js/qrcode-svg/examples/output/sample-1.svg b/ko-veed/js/qrcode-svg/examples/output/sample-1.svg deleted file mode 100644 index c41d38c1b9573034fce29b8c55cb4fda65167281..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/output/sample-1.svg +++ /dev/null @@ -1,306 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/examples/output/sample-2.svg b/ko-veed/js/qrcode-svg/examples/output/sample-2.svg deleted file mode 100644 index 95d6b9703d3bb3071e4ecd62c7f77a42a6972130..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/output/sample-2.svg +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/examples/output/sample-3.svg b/ko-veed/js/qrcode-svg/examples/output/sample-3.svg deleted file mode 100644 index 0437d88a70baebab5edd771ed40609a2982e7b6f..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/output/sample-3.svg +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/examples/samples.js b/ko-veed/js/qrcode-svg/examples/samples.js deleted file mode 100644 index 80a78840d47bc9632c2e11f380874a6310366e14..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/examples/samples.js +++ /dev/null @@ -1,38 +0,0 @@ -var QRCode = require('../lib/qrcode.js'); - -//Sample 1 -var qrcode = new QRCode("Hello World!"); -qrcode.save("sample-1.svg"); - -//Sample 2 -var qrcode = new QRCode({ - content: "http://github.com/", - padding: 4, - width: 256, - height: 256, - color: "#000000", - background: "#ffffff", - ecl: "M" -}); - -qrcode.save("sample-2.svg", function(error) { - if (error) return console.error(error.message); -}); - -//Sample 3 -var qrcode = new QRCode({ - content: "http://github.com/", - width: 128, - height: 128, - color: "blue", - background: "beige", - ecl: "H" -}); - -var svg = qrcode.svg(); -console.log(svg); - -qrcode.save("sample-3.svg", function(error) { - if (error) return console.error(error.message); - console.log("QR Code saved!"); -}); diff --git a/ko-veed/js/qrcode-svg/lib/qrcode.js b/ko-veed/js/qrcode-svg/lib/qrcode.js deleted file mode 100644 index e5c7340b8dd2ac67cb3bbb21b441ab4747dd40a0..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/lib/qrcode.js +++ /dev/null @@ -1,424 +0,0 @@ -/** - * @fileoverview - * - modified davidshimjs/qrcodejs library for use in node.js - * - Using the 'QRCode for Javascript library' - * - Fixed dataset of 'QRCode for Javascript library' for support full-spec. - * - this library has no dependencies. - * - * @version 0.9.1 (2016-02-12) - * @author davidshimjs, papnkukn - * @see http://www.d-project.com/ - * @see http://jeromeetienne.github.com/jquery-qrcode/ - * @see https://github.com/davidshimjs/qrcodejs - */ - -//--------------------------------------------------------------------- -// QRCode for JavaScript -// -// Copyright (c) 2009 Kazuhiko Arase -// -// URL: http://www.d-project.com/ -// -// Licensed under the MIT license: -// http://www.opensource.org/licenses/mit-license.php -// -// The word "QR Code" is registered trademark of -// DENSO WAVE INCORPORATED -// http://www.denso-wave.com/qrcode/faqpatent-e.html -// -//--------------------------------------------------------------------- -function QR8bitByte(data) { - this.mode = QRMode.MODE_8BIT_BYTE; - this.data = data; - this.parsedData = []; - - // Added to support UTF-8 Characters - for (var i = 0, l = this.data.length; i < l; i++) { - var byteArray = []; - var code = this.data.charCodeAt(i); - - if (code > 0x10000) { - byteArray[0] = 0xF0 | ((code & 0x1C0000) >>> 18); - byteArray[1] = 0x80 | ((code & 0x3F000) >>> 12); - byteArray[2] = 0x80 | ((code & 0xFC0) >>> 6); - byteArray[3] = 0x80 | (code & 0x3F); - } else if (code > 0x800) { - byteArray[0] = 0xE0 | ((code & 0xF000) >>> 12); - byteArray[1] = 0x80 | ((code & 0xFC0) >>> 6); - byteArray[2] = 0x80 | (code & 0x3F); - } else if (code > 0x80) { - byteArray[0] = 0xC0 | ((code & 0x7C0) >>> 6); - byteArray[1] = 0x80 | (code & 0x3F); - } else { - byteArray[0] = code; - } - - this.parsedData.push(byteArray); - } - - this.parsedData = Array.prototype.concat.apply([], this.parsedData); - - if (this.parsedData.length != this.data.length) { - this.parsedData.unshift(191); - this.parsedData.unshift(187); - this.parsedData.unshift(239); - } -} - -QR8bitByte.prototype = { - getLength: function (buffer) { - return this.parsedData.length; - }, - write: function (buffer) { - for (var i = 0, l = this.parsedData.length; i < l; i++) { - buffer.put(this.parsedData[i], 8); - } - } -}; - -function QRCodeModel(typeNumber, errorCorrectLevel) { - this.typeNumber = typeNumber; - this.errorCorrectLevel = errorCorrectLevel; - this.modules = null; - this.moduleCount = 0; - this.dataCache = null; - this.dataList = []; -} - -QRCodeModel.prototype={addData:function(data){var newData=new QR8bitByte(data);this.dataList.push(newData);this.dataCache=null;},isDark:function(row,col){if(row<0||this.moduleCount<=row||col<0||this.moduleCount<=col){throw new Error(row+","+col);} -return this.modules[row][col];},getModuleCount:function(){return this.moduleCount;},make:function(){this.makeImpl(false,this.getBestMaskPattern());},makeImpl:function(test,maskPattern){this.moduleCount=this.typeNumber*4+17;this.modules=new Array(this.moduleCount);for(var row=0;row=7){this.setupTypeNumber(test);} -if(this.dataCache==null){this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList);} -this.mapData(this.dataCache,maskPattern);},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r)continue;for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c)continue;if((0<=r&&r<=6&&(c==0||c==6))||(0<=c&&c<=6&&(r==0||r==6))||(2<=r&&r<=4&&2<=c&&c<=4)){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}},getBestMaskPattern:function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=QRUtil.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i;}} -return pattern;},createMovieClip:function(target_mc,instance_name,depth){var qr_mc=target_mc.createEmptyMovieClip(instance_name,depth);var cs=1;this.make();for(var row=0;row>i)&1)==1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=mod;} -for(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=mod;}},setupTypeInfo:function(test,maskPattern){var data=(this.errorCorrectLevel<<3)|maskPattern;var bits=QRUtil.getBCHTypeInfo(data);for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<6){this.modules[i][8]=mod;}else if(i<8){this.modules[i+1][8]=mod;}else{this.modules[this.moduleCount-15+i][8]=mod;}} -for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<8){this.modules[8][this.moduleCount-i-1]=mod;}else if(i<9){this.modules[8][15-i-1+1]=mod;}else{this.modules[8][15-i-1]=mod;}} -this.modules[this.moduleCount-8][8]=(!test);},mapData:function(data,maskPattern){var inc=-1;var row=this.moduleCount-1;var bitIndex=7;var byteIndex=0;for(var col=this.moduleCount-1;col>0;col-=2){if(col==6)col--;while(true){for(var c=0;c<2;c++){if(this.modules[row][col-c]==null){var dark=false;if(byteIndex>>bitIndex)&1)==1);} -var mask=QRUtil.getMask(maskPattern,row,col-c);if(mask){dark=!dark;} -this.modules[row][col-c]=dark;bitIndex--;if(bitIndex==-1){byteIndex++;bitIndex=7;}}} -row+=inc;if(row<0||this.moduleCount<=row){row-=inc;inc=-inc;break;}}}}};QRCodeModel.PAD0=0xEC;QRCodeModel.PAD1=0x11;QRCodeModel.createData=function(typeNumber,errorCorrectLevel,dataList){var rsBlocks=QRRSBlock.getRSBlocks(typeNumber,errorCorrectLevel);var buffer=new QRBitBuffer();for(var i=0;itotalDataCount*8){throw new Error("code length overflow. (" -+buffer.getLengthInBits() -+">" -+totalDataCount*8 -+")");} -if(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4);} -while(buffer.getLengthInBits()%8!=0){buffer.putBit(false);} -while(true){if(buffer.getLengthInBits()>=totalDataCount*8){break;} -buffer.put(QRCodeModel.PAD0,8);if(buffer.getLengthInBits()>=totalDataCount*8){break;} -buffer.put(QRCodeModel.PAD1,8);} -return QRCodeModel.createBytes(buffer,rsBlocks);};QRCodeModel.createBytes=function(buffer,rsBlocks){var offset=0;var maxDcCount=0;var maxEcCount=0;var dcdata=new Array(rsBlocks.length);var ecdata=new Array(rsBlocks.length);for(var r=0;r=0)?modPoly.get(modIndex):0;}} -var totalCodeCount=0;for(var i=0;i=0){d^=(QRUtil.G15<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)));} -return((data<<10)|d)^QRUtil.G15_MASK;},getBCHTypeNumber:function(data){var d=data<<12;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)>=0){d^=(QRUtil.G18<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)));} -return(data<<12)|d;},getBCHDigit:function(data){var digit=0;while(data!=0){digit++;data>>>=1;} -return digit;},getPatternPosition:function(typeNumber){return QRUtil.PATTERN_POSITION_TABLE[typeNumber-1];},getMask:function(maskPattern,i,j){switch(maskPattern){case QRMaskPattern.PATTERN000:return(i+j)%2==0;case QRMaskPattern.PATTERN001:return i%2==0;case QRMaskPattern.PATTERN010:return j%3==0;case QRMaskPattern.PATTERN011:return(i+j)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(j/3))%2==0;case QRMaskPattern.PATTERN101:return(i*j)%2+(i*j)%3==0;case QRMaskPattern.PATTERN110:return((i*j)%2+(i*j)%3)%2==0;case QRMaskPattern.PATTERN111:return((i*j)%3+(i+j)%2)%2==0;default:throw new Error("bad maskPattern:"+maskPattern);}},getErrorCorrectPolynomial:function(errorCorrectLength){var a=new QRPolynomial([1],0);for(var i=0;i5){lostPoint+=(3+sameCount-5);}}} -for(var row=0;row=256){n-=255;} -return QRMath.EXP_TABLE[n];},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++){QRMath.EXP_TABLE[i]=1<>>(7-index%8))&1)==1;},put:function(num,length){for(var i=0;i>>(length-i-1))&1)==1);}},getLengthInBits:function(){return this.length;},putBit:function(bit){var bufIndex=Math.floor(this.length/8);if(this.buffer.length<=bufIndex){this.buffer.push(0);} -if(bit){this.buffer[bufIndex]|=(0x80>>>(this.length%8));} -this.length++;}};var QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]; - - -/** Constructor */ -function QRCode(options) { - var instance = this; - - //Default options - this.options = { - padding: 4, - width: 256, - height: 256, - typeNumber: 4, - color: "#000000", - background: "#ffffff", - ecl: "M" - }; - - //In case the options is string - if (typeof options === 'string') { - options = { - content: options - }; - } - - //Merge options - if (options) { - for (var i in options) { - this.options[i] = options[i]; - } - } - - if (typeof this.options.content !== 'string') { - throw new Error("Expected 'content' as string!"); - } - - if (this.options.content.length === 0 /* || this.options.content.length > 7089 */) { - throw new Error("Expected 'content' to be non-empty!"); - } - - if (!(this.options.padding >= 0)) { - throw new Error("Expected 'padding' value to be non-negative!"); - } - - if (!(this.options.width > 0) || !(this.options.height > 0)) { - throw new Error("Expected 'width' or 'height' value to be higher than zero!"); - } - - //Gets the error correction level - function _getErrorCorrectLevel(ecl) { - switch (ecl) { - case "L": - return QRErrorCorrectLevel.L; - - case "M": - return QRErrorCorrectLevel.M; - - case "Q": - return QRErrorCorrectLevel.Q; - - case "H": - return QRErrorCorrectLevel.H; - - default: - throw new Error("Unknwon error correction level: " + ecl); - } - } - - //Get type number - function _getTypeNumber(content, ecl) { - var length = _getUTF8Length(content); - - var type = 1; - var limit = 0; - for (var i = 0, len = QRCodeLimitLength.length; i <= len; i++) { - var table = QRCodeLimitLength[i]; - if (!table) { - throw new Error("Content too long: expected " + limit + " but got " + length); - } - - switch (ecl) { - case "L": - limit = table[0]; - break; - - case "M": - limit = table[1]; - break; - - case "Q": - limit = table[2]; - break; - - case "H": - limit = table[3]; - break; - - default: - throw new Error("Unknwon error correction level: " + ecl); - } - - if (length <= limit) { - break; - } - - type++; - } - - if (type > QRCodeLimitLength.length) { - throw new Error("Content too long"); - } - - return type; - } - - //Gets text length - function _getUTF8Length(content) { - var result = encodeURI(content).toString().replace(/\%[0-9a-fA-F]{2}/g, 'a'); - return result.length + (result.length != content ? 3 : 0); - } - - //Generate QR Code matrix - var content = this.options.content; - var type = _getTypeNumber(content, this.options.ecl); - var ecl = _getErrorCorrectLevel(this.options.ecl); - this.qrcode = new QRCodeModel(type, ecl); - this.qrcode.addData(content); - this.qrcode.make(); -} - -/** Generates QR Code as SVG image */ -QRCode.prototype.svg = function(opt) { - var options = this.options || { }; - var modules = this.qrcode.modules; - - if (typeof opt == "undefined") { - opt = { container: options.container || "svg" }; - } - - //Apply new lines and indents in SVG? - var pretty = typeof options.pretty != "undefined" ? !!options.pretty : true; - - var indent = pretty ? ' ' : ''; - var EOL = pretty ? '\r\n' : ''; - var width = options.width; - var height = options.height; - var length = modules.length; - var xsize = width / (length + 2 * options.padding); - var ysize = height / (length + 2 * options.padding); - - //Join (union, merge) rectangles into one shape? - var join = typeof options.join != "undefined" ? !!options.join : false; - - //Swap the X and Y modules, pull request #2 - var swap = typeof options.swap != "undefined" ? !!options.swap : false; - - //Apply declaration in SVG? - var xmlDeclaration = typeof options.xmlDeclaration != "undefined" ? !!options.xmlDeclaration : true; - - //Populate with predefined shape instead of "rect" elements, thanks to @kkocdko - var predefined = typeof options.predefined != "undefined" ? !!options.predefined : false; - var defs = predefined ? indent + '' + EOL : ''; - - //Background rectangle - var bgrect = indent + '' + EOL; - - //Rectangles representing modules - var modrect = ''; - var pathdata = ''; - - for (var y = 0; y < length; y++) { - for (var x = 0; x < length; x++) { - var module = modules[x][y]; - if (module) { - - var px = (x * xsize + options.padding * xsize); - var py = (y * ysize + options.padding * ysize); - - //Some users have had issues with the QR Code, thanks to @danioso for the solution - if (swap) { - var t = px; - px = py; - py = t; - } - - if (join) { - //Module as a part of svg path data, thanks to @danioso - var w = xsize + px - var h = ysize + py - - px = (Number.isInteger(px))? Number(px): px.toFixed(2); - py = (Number.isInteger(py))? Number(py): py.toFixed(2); - w = (Number.isInteger(w))? Number(w): w.toFixed(2); - h = (Number.isInteger(h))? Number(h): h.toFixed(2); - - pathdata += ('M' + px + ',' + py + ' V' + h + ' H' + w + ' V' + py + ' H' + px + ' Z '); - } - else if (predefined) { - //Module as a predefined shape, thanks to @kkocdko - modrect += indent + '' + EOL; - } - else { - //Module as rectangle element - modrect += indent + '' + EOL; - } - } - } - } - - if (join) { - modrect = indent + ''; - } - - var svg = ""; - switch (opt.container) { - //Wrapped in SVG document - case "svg": - if (xmlDeclaration) { - svg += '' + EOL; - } - svg += '' + EOL; - svg += defs + bgrect + modrect; - svg += ''; - break; - - //Viewbox for responsive use in a browser, thanks to @danioso - case "svg-viewbox": - if (xmlDeclaration) { - svg += '' + EOL; - } - svg += '' + EOL; - svg += defs + bgrect + modrect; - svg += ''; - break; - - - //Wrapped in group element - case "g": - svg += '' + EOL; - svg += defs + bgrect + modrect; - svg += ''; - break; - - //Without a container - default: - svg += (defs + bgrect + modrect).replace(/^\s+/, ""); //Clear indents on each line - break; - } - - return svg; -}; - -/** Writes QR Code image to a file */ -QRCode.prototype.save = function(file, callback) { - var data = this.svg(); - if (typeof callback != "function") { - callback = function(error, result) { }; - } - try { - //Package 'fs' is available in node.js but not in a web browser - var fs = require('fs'); - fs.writeFile(file, data, callback); - } - catch (e) { - //Sorry, 'fs' is not available - callback(e); - } -}; - -if (typeof module != "undefined") { - module.exports = QRCode; -} diff --git a/ko-veed/js/qrcode-svg/minify.js b/ko-veed/js/qrcode-svg/minify.js deleted file mode 100644 index 6e9e3a49c3b8731ee85d46c4693d493f40faf7f9..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/minify.js +++ /dev/null @@ -1,17 +0,0 @@ -var fs = require('fs'); -var minify = require('minify'); -var pkg = require('./package.json'); - -var src = './lib/qrcode.js'; -var dst = './dist/qrcode.min.js'; - -minify(src) -.then(function(data) { - var comment = "/*! " + pkg.name + " v" + pkg.version + " | " + pkg.homepage + " | MIT license */\n"; - var js = comment + data; - fs.writeFileSync(dst, js); - console.log("Done!"); -}) -.catch(function(error) { - if (error) return console.error(error); -}); \ No newline at end of file diff --git a/ko-veed/js/qrcode-svg/test/test.js b/ko-veed/js/qrcode-svg/test/test.js deleted file mode 100644 index dcaa91eb81aa4941258f5faee72f9cfd3bcdb683..0000000000000000000000000000000000000000 --- a/ko-veed/js/qrcode-svg/test/test.js +++ /dev/null @@ -1,263 +0,0 @@ -var QRCode = require('../lib/qrcode.js'); - -function generateRandomString(length) { - var result = ""; - var charset = "abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; - for (var i = 0, n = charset.length; i < length; ++i) { - result += charset.charAt(Math.floor(Math.random() * n)); - } - return result; -} - -exports["Test SVG output"] = function(test) { - test.expect(6); - - var qrcode = new QRCode("Hello World!"); - test.ok(typeof qrcode == "object", "Expected object as the result!"); - test.ok(typeof qrcode.svg == "function", "Missing 'svg' function!"); - test.ok(typeof qrcode.save == "function", "Missing 'save' function!"); - - var svg = qrcode.svg(); - test.ok(typeof svg == "string", "Expected string as the result!"); - test.ok(/\/g.test(svg), "Missing 'svg' tags!"); - test.ok(/\]+/g.test(svg)) { - throw new Error("Missing 'g' element!"); - } - }, Error, "Error in 'g' container!"); - - //QR Code modules without the container element - test.doesNotThrow(function() { - var svg = new QRCode({ content: "test" }).svg({ container: "none" }); - if (/\]+/g.test(svg)) { - throw new Error("Unexpected 'g' element!"); - } - }, Error, "Error in 'g' container!"); - - test.done(); -}; - -exports["Test pretty"] = function(test) { - test.expect(3); - - //Prettify XML enabled by default - test.doesNotThrow(function() { - var svg = new QRCode({ content: "test" }).svg({ container: "none" }); - if (/$\s+\]+d=/g.test(svg)) { - throw new Error("Missing 'path' element with 'd' attribute!"); - } - }, Error, "Error in SVG path!"); - - //Element 'defs' and 'use' for populating with a predefined module shape - test.doesNotThrow(function() { - var svg = new QRCode({ content: "test", predefined: true }).svg({ container: "none" }); - if (svg.split(/\]/g.test(svg)) { - throw new Error("Missing 'defs' element!"); - } - if (!/\]+href=/g.test(svg)) { - throw new Error("Missing 'use' element with 'href' attribute!"); - } - }, Error, "Error in predefined shape!"); - - test.done(); -}; - -exports["Test by generating samples"] = function(test) { - test.expect(5); - - var fs = require('fs'); - var path = require('path'); - - var folder = "samples"; - if (!fs.existsSync(folder)) { - fs.mkdirSync(folder); - } - - test.doesNotThrow(function() { - new QRCode({ content: "test" }) - .save(path.join(folder, "sample_default.svg")); - }, Error, "Should generate a QR Code file!"); - - test.doesNotThrow(function() { - new QRCode({ - content: "test", - background: "beige", - color: "blue", - join: true - }) - .save(path.join(folder, "sample_path_data.svg")); - }, Error, "Should generate a QR Code file!"); - - test.doesNotThrow(function() { - new QRCode({ - content: "test", - background: "beige", - color: "maroon", - predefined: true - }) - .save(path.join(folder, "sample_defs_use.svg")); - }, Error, "Should generate a QR Code file!"); - - test.doesNotThrow(function() { - new QRCode({ - content: "test", - background: "white", - color: "black", - swap: true - }) - .save(path.join(folder, "sample_swap_xy.svg")); - }, Error, "Should generate a QR Code file!"); - - test.doesNotThrow(function() { - new QRCode({ - content: "test", - pretty: false - }) - .save(path.join(folder, "sample_no_pretty.svg")); - }, Error, "Should generate a QR Code file!"); - - setTimeout(function() { - test.done(); - }, 1000); -}; diff --git a/ko-veed/manifest.json b/ko-veed/manifest.json deleted file mode 100644 index 19722e8a10afa87c57e4a7de6b5df530cffbd91a..0000000000000000000000000000000000000000 --- a/ko-veed/manifest.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "QRcode Ko-Veed", - "short_name": "Ko-Veed", - "lang": "fr-FR", - "start_url": "/index.html", - "display": "standalone", - "background_color": "white", - "theme_color": "white" -} \ No newline at end of file diff --git a/ko-veed/sw.js b/ko-veed/sw.js deleted file mode 100644 index 54d67a1cfe2a4bfcedda594087ceaf117ba39197..0000000000000000000000000000000000000000 --- a/ko-veed/sw.js +++ /dev/null @@ -1,26 +0,0 @@ -var cacheName = 'ko-veed'; -var filesToCache = [ - '/', - '/index.html', - '/css/style.css', - '/js/qrcode-svg/dist/qrcode.min.js', - '/js/main.js' -]; - -/* Start the service worker and cache all of the app's content */ -self.addEventListener('install', function(e) { - e.waitUntil( - caches.open(cacheName).then(function(cache) { - return cache.addAll(filesToCache); - }) - ); -}); - -/* Serve cached content when offline */ -self.addEventListener('fetch', function(e) { - e.respondWith( - caches.match(e.request).then(function(response) { - return response || fetch(e.request); - }) - ); -}); \ No newline at end of file diff --git a/status.html b/status.html index 25ae174eba2a6234d593e694f3354e7ed3c1d7a6..21b2f91b4db6d774e7fe3b501f61eb06c922912a 100644 --- a/status.html +++ b/status.html @@ -104,10 +104,15 @@ - Courant Janvier 2021 + Courant Février 2021 Kimsufi et o2switch Transfert du service Siickrss vers o2switch. + + 27/01/2021 + Scaleway + Mise à jour vers YunoHost 4.1.6 (stable) + 06/01/2021 Scaleway diff --git a/technique.html b/technique.html index e39bfd15912ad7f958ee249aba0f1c741fc3b187..949547c56fffd8126c18ee81bad0915176d6a2d0 100644 --- a/technique.html +++ b/technique.html @@ -111,7 +111,7 @@
    Serveur Scaleway 1
  • OS : Debian Strech 9.11 x64
  • -
  • Yunohost : 3.6.5.3
  • +
  • YunoHost 4.1.6 (stable)
  • Siickdate (Framadate) : Voir sur Gitlab
  • Siickpad (Etherpad with mypads plugin) : Voir sur Github