code
stringlengths
2
1.05M
function EraserBrush(ctx) { this.draw = function (event) { ctx.beginPath(); ctx.moveTo(event.previousMousePosition.offsetX, event.previousMousePosition.offsetY); ctx.lineTo(event.offsetX, event.offsetY); ctx.stroke(); ctx.closePath(); }; this.name = "eraser"; } toolbox.addNewBrush(new EraserBrush(ctx));
// ==UserScript== // @name github-npm-deps // @version 0.1.0 // @description Link dependencies from package.json to respective GitHub homepages // @license MIT // @namespace https://github.com/eush77/github-npm-deps // @supportURL https://github.com/eush77/github-npm-deps // @include https://github.com/* // ==/UserScript== init(); document.addEventListener('click', function () { setTimeout(init, 500); }); function init () { if (!/\/package\.json$/.test(location.pathname)) { return; } var trs = document.querySelectorAll('.blob-wrapper tr'); [].reduce.call(trs, function (inDependencies, tr) { var row = tr.querySelector('.blob-code'); if (row.textContent.indexOf('}') >= 0) { return false; } var pls = row.querySelectorAll('.pl-s'); if (pls.length == 1) { pls = pls[0]; if (pls.nextSibling && pls.nextSibling.textContent.replace(/\s/g, '') == ':{' && /^"\w*[dD]ependencies"$/.test(pls.textContent)) { return true; } } else if (inDependencies && pls.length == 2) { var name = pls[0].textContent; var link = document.createElement('a'); link.href = 'http://ghub.io/' + name.slice(1, -1); link.textContent = name; pls[0].parentNode.replaceChild(link, pls[0]); } return inDependencies; }, false); }
console.log('Service Worker started: ', self); var CACHE_VERSION = 'ronco-v1.1.1'; var urlsToCache = [ '/', '/css/style.min.css', '/js/main.min.js', '/images/hand-of-god.png', '/images/just-the-tip.png', '/images/polka-pattern.png', '/images/ronco.png', '/sounds/gagging.mp3', '/sounds/pop.mp3', '/sounds/ah-ma-e-ronco.mp3' ]; self.addEventListener('install', function(event) { console.log('Installed: ', event); event.waitUntil( caches.open(CACHE_VERSION).then(function(cache) { console.log('Opened cache: ', cache); return cache.addAll(urlsToCache).then(function() { return self.skipWaiting(); }); }) ); }); self.addEventListener('activate', function(event) { console.log('Activated: ', event); event.waitUntil( caches.keys().then(function(cacheNames) { return Promise.all(cacheNames.map(function(cacheName) { if (cacheName !== CACHE_VERSION) { return caches.delete(cacheName); } })).then(function() { // Sets itself as main Service Worker return self.clients.claim(); }); }) ); }); self.addEventListener('fetch', function(event) { console.log('Fetch: ', event); event.respondWith( caches.match(event.request).then(function(response) { // Cache hit - return response, otherwhise make a new request return response || fetch(event.request); }) ); });
/* * * JourneyPage constants * */ export const DEFAULT_ACTION = 'app/JourneyPage/DEFAULT_ACTION';
$(document).ready(function() { $("button[type=submit]").jqxButton({ width: '120px', height: '35px', theme: 'green' }); $("button[type=submit].delete").jqxButton({ width: '120px', height: '35px', theme: 'red' }); $("p.button.error a").jqxLinkButton({ width: '120px', height: '35px', theme: 'red' }); $("p.button a").jqxLinkButton({ width: '120px', height: '35px', theme: 'darkblue' }); });
import path from 'path'; import Promise from 'bluebird'; import TranscodeError from './transcode-error.js'; import {stat as _stat, unlinkSync} from 'fs'; let stat = Promise.promisify(_stat); import _mkdirp from 'mkdirp'; let mkdirp = Promise.promisify(_mkdirp); import ChildPromise, {windowsCommand} from './child-promise.js'; import {parse} from 'shell-quote'; import {strToMilliseconds as strToMs} from './util.js'; let progressPattern = 'Encoding: task'; let progressPercent = /(\d{1,3}\.\d{1,2})\s*\%/; let timePattern = '([0-9]{2}\:[0-9]{2}\:[0-9]{2})'; let handbrakeLogTime = new RegExp(`^${timePattern}`); let handbrakeLogBitrate = /[0-9]+\.[0-9]+\s[^\s]+/i; let handbrakeFinish = new RegExp('Encode done!', 'mi'); let handbrakeRuntime = new RegExp(`Elapsed time:\\s+${timePattern}`, 'mi'); let cropValuePattern = /\-{2}crop\s+([0-9]+\:[0-9]+\:[0-9]+\:[0-9]+)/i; function cropDelta(command) { let cropRaw = command.match(cropValuePattern); if (cropRaw === null) { return null; } return cropRaw[1] .split(':') .reduce((t, val) => t + Number.parseInt(val, 10), 0); } function cropCompareFunc(a, b) { let cropA = cropDelta(a); let cropB = cropDelta(b); if (cropA === null) { return 1; } else if (cropB === null) { return -1; } return cropA >= cropB ? 1 : -1; } export default class VideoFile { static get QUEUED() { return 0; } static get RUNNING() { return 1; } static get WRITTEN() { return 2; } static get ERRORED() { return 3; } static get SKIPPED() { return 4; } constructor(filePath, stats, options, transcodeOptions = [], estimator = function () { return null; }) { this.getEstSpeed = estimator; this.options = options; this.transcodeOptions = transcodeOptions; this.status = VideoFile.QUEUED; this.shouldDelete = false; this.lastPercent = 0; this._crop = null; this._encode = null; this._query = null; this.error = null; this.encodeBitrate = null; this.fileName = path.basename(filePath); this.filePathDir = path.dirname(filePath); this.filePathRel = path.relative(this.options['curDir'], filePath); this.destFileName = path.basename(this.fileName, path.extname(this.fileName)) + '.' + this.options['destExt']; this.destFileDir = this.options['output'] ? (!this.options['flatten'] ? // Add relative paths from --input to filePathDir when --o given path.resolve(this.options['output'], path.relative(this.options['input'], this.filePathDir)) : // --flatten option so do not add relative path this.options['output']) : // Output is same place a input this.filePathDir; this.destFilePath = path.normalize(this.destFileDir + path.sep + this.destFileName); this.destFilePathRel = path.relative(this.options['curDir'], this.destFilePath); this.fileSize = Number.parseInt(stats.size / 1000000.0, 10); this._ready = this._resolveDest(); return this; } transcode() { return this._ready .then(() => { if (!this.isReady) { throw new TranscodeError('File cannot be processed again.', this.fileName); } else if (this.destFileExists) { if (this.options['diff']) { this.status = VideoFile.SKIPPED; return Promise.resolve(false); } else { throw new TranscodeError('File already exists in output directory.', this.fileName); } } else { this.startTime = Date.now(); this.lastTime = this.startTime; this.status = VideoFile.RUNNING; return this._detectCrop() .then(args => this._startEncode(args)) .then(didFinish => this._encodeStatus(didFinish)) .then(() => { this.lastPercent = 1.0; this.status = VideoFile.WRITTEN; return true; }); } }) .catch((e) => { this.error = e; this.status = VideoFile.ERRORED; }); } kill() { if (this._encode !== null) { this._encode.kill(); } // Handle SIGINT if (this.isRunning) { this.status = VideoFile.ERRORED; } try { if (this.isMarkedForDeletion) { // Try and delete the destination file if it exists unlinkSync(this.destFilePath); } } catch (e) {} } _detectCrop() { let prom; let isNoCrop = this.options['nocrop'] === true; let isFixedCrop = /([0-9]+\:){3}[0-9]+/.test(this.options['crop']); if (isNoCrop || isFixedCrop) { const useCommand = [ 'transcode-video' ]; if (isFixedCrop && !isNoCrop) { // Force the crop value provided using the --crop option useCommand.push('--crop', this.options['crop'].trim()); } useCommand.push(this.filePathRel); this._crop = prom = Promise.resolve(useCommand.join(' ')); } else { this._crop = new ChildPromise({ cmd: 'detect-crop', args: [this.filePathRel], fileName: this.fileName, cwd: this.options['curDir'] }); prom = this._crop.start(); } return prom .then((output) => { // Make sure conflicting results are not returned from detect-crop let useCommands = output .replace(/^\s+|\s+$/g, '') .split(/\n+/) .map((line) => line.trim()) .filter((line) => /^transcode\-video/.test(line)); if (useCommands.length === 0) { throw new TranscodeError('Crop detection failed. Skipping transcode for file.', this.fileName, output); } else if (useCommands.length > 1) { if (this.options['crop'] !== false) { // Pick the least extreme crop useCommands.sort(cropCompareFunc); } else { let cropResults = useCommands.map(val => { let m = val.match(cropValuePattern); return m !== null ? m[1] : '(unknown)'; }).join(', '); throw new TranscodeError(`Crop detection returned conflicting results: ${cropResults}.`, this.fileName, useCommands.join('\n')); } } return useCommands[0]; }) .then((command) => { let useArgs = parse(command); useArgs.splice(1, 0, this.filePathRel, '--output', this.destFileDir); useArgs.splice.apply(useArgs, [useArgs.length - 1, 0].concat(this.transcodeOptions)); let crop = useArgs.indexOf('--crop') + 1; if (crop > 0) { this.cropValue = useArgs[crop]; } else if (this.options['nocrop'] !== true) { throw new TranscodeError('Could not detect crop values. Skipping transcode for file.', this.fileName, command); } return useArgs; }); } _startEncode([cmd, ...args]) { // This step is the earliest we would have a partially-encoded, new file in the destination directory this.shouldDelete = true; this._encode = new ChildPromise({ cmd, args, fileName: this.destFileName, cwd: this.options['curDir'], onData: (data) => { let lastIndex = data.lastIndexOf(progressPattern); if (lastIndex !== -1) { let lastData = data.substr(lastIndex); if (progressPercent.test(lastData)) { let matches = lastData.match(progressPercent); this.lastPercent = Number.parseFloat(matches[1]) / 100.0; this.lastTime = Date.now(); } } } }); return this._encode.start() .then((output) => { // Get total running time if (this.options['dryRun']) { return false; } else { // Check the output from the transcode to confirm it finished if (!handbrakeFinish.test(output)) { throw new TranscodeError('Transcode probably did not succeed for file.', this.destFileName, output); } this.totalEncodeTime = null; this.lastTime = Date.now(); this.lastPercent = 1.0; let transcodeRuntime = output.match(handbrakeRuntime); if (transcodeRuntime != null) { this.totalEncodeTime = strToMs(transcodeRuntime[1]); } else if (this.options['debug']) { console.log(`unable to determine running time from transcode log: ${this.destFileName}`); } return true; } }); } _encodeStatus(didFinish) { if (!didFinish) { return Promise.resolve(true); } this._query = new ChildPromise({ cmd: 'query-handbrake-log', args: ['bitrate', `${this.destFilePath}.log`], fileName: this.destFileName, cwd: this.options['curDir'] }); return this._query.start() .then((log) => { let matches = `${log}`.trim().match(handbrakeLogBitrate); this.encodeBitrate = matches[0]; return true; }) .catch((err) => { // We failed to get bitrate from the log, but that doesn't mean we failed if (this.options['debug']) { console.log(`unable to get bitrate from encoding log: ${err.message}`); } this.encodeBitrate = null; return true; }); } _resolveDest() { return stat(this.destFilePathRel) .then(() => { this.destFileExists = true; return true; }, () => { this.destFileExists = false; return mkdirp(this.destFileDir, {}); }); } get currentPercent() { if (!this.isRunning) { return this.lastPercent; } else if (this.lastPercent <= 0) { // Determine whether we should guess if (this.isRunning) { let est = this.getEstSpeed(); return (this.currentTime / est) / this.fileSize; } return 0; } return this.currentTime / this.totalTime; } get currentTime() { return Date.now() - this.startTime; } get totalTime() { return (this.lastTime - this.startTime) / this.lastPercent; } get remainingTime() { if (this.lastPercent > 0) { return Math.max(this.totalTime - this.currentTime, 0); } if (this.isRunning) { let est = this.getEstSpeed(); return (this.fileSize * est) - this.currentTime; } return 0; } get isReady() { return this.status === VideoFile.QUEUED; } get isRunning() { return this.status === VideoFile.RUNNING; } get isSkipped() { return this.status === VideoFile.SKIPPED; } get isWritten() { return this.status === VideoFile.WRITTEN; } get isErrored() { return this.status === VideoFile.ERRORED; } get isFinished() { return this.isWritten || this.isErrored || this.isSkipped; } get isMarkedForDeletion() { return this.isErrored && this.shouldDelete && this.options['keep'] !== true; } };
/* global app:false */ 'use strict'; app.factory( 'CheckersProtocol', [ '$log', 'Socket', function ( $log, Socket ) { // init() will be called just prior to returning the lobby protocol object. function init() { // Register the checkers protocol's interpretCommand() function as the callback // for all network events of on the 'checkers' channel. Socket.on( 'checkers', self.interpretCommand ); } // Create the lobby protocol object var self = { // // Constants // CHECKERS_REQ_MOVE_PIECE: 'M', CHECKERS_PUSH_BEGIN_TURN: 'B', CHECKERS_PUSH_GAME_OVER: 'GO', CHECKERS_PUSH_PIECE_DEAD: 'D', CHECKERS_PUSH_PIECE_KINGED: 'K', CHECKERS_PUSH_PIECE_POSITIONED: 'P', // // Member Variables // // Request ID to keep track of sent requests and match them up with their responses requestID: 0, // A map of requestIDs to request data packets that need to be held onto until the // server replies back with a response to resolve the request. sentRequests: {}, // Callback registries for each of the network events // These arrays should contain function references to be called in response to // the network event of the associated type being triggered. registryResMovePiece: [], registryPushBeginTurn: [], registryPushGameOver: [], registryPushPieceDead: [], registryPushPieceKinged: [], registryPushPiecePositioned: [], // // Observer Pattern // // deregisterListener() is a convenience function to deregister an event // listener from an event, knowing the array of listeners from which the // callback should be removed. deregisterListener: function ( listeners, callback ) { var index = listeners.indexOf( callback ); if ( index > 0 ) { listeners.push( callback ); } }, // notifyListeners() is a convenience function to perform notification of all // registered listeners by calling each one and passing along the network // event data. Listeners must be an array of callbacks. notifyListeners: function ( listeners, data ) { // Call each of the functions registered as listeners for this network event var len = listeners.length; for ( var i = 0; i < len; i++ ) { listeners[ i ]( data ); } }, // registerListener() is a convenience function to register an event // listener to an event, knowing the array of listeners from which the // callback should be removed. registerListener: function ( listeners, callback ) { var index = listeners.indexOf( callback ); if ( index < 0 ) { listeners.push( callback ); } }, // addEventListener() is a convenience function to provide a more traditional way of hooking // into the observer pattern for listening to events of the network. // Note: The callback must be of the form: function ( data ) { ... } addEventListener: function ( eventType, callback ) { switch ( eventType ) { case self.CHECKERS_REQ_MOVE_PIECE: self.registerListener( self.registryResMovePiece, callback ); break; case self.CHECKERS_PUSH_BEGIN_TURN: self.registerListener( self.registryPushBeginTurn, callback ); break; case self.CHECKERS_PUSH_GAME_OVER: self.registerListener( self.registryPushGameOver, callback ); break; case self.CHECKERS_PUSH_PIECE_DEAD: self.registerListener( self.registryPushPieceDead, callback ); break; case self.CHECKERS_PUSH_PIECE_KINGED: self.registerListener( self.registryPushPieceKinged, callback ); break; case self.CHECKERS_PUSH_PIECE_POSITIONED: self.registerListener( self.registryPushPiecePositioned, callback ); break; default: throw 'CheckersProtocol.addEventListener >> Cannot register to this eventType. Unknown eventType!'; } }, // // Callback Deregistration // // removeEventListener() is a convenience function to provide a more traditional way of hooking // into the observer pattern for listening to events of the network. // Note: The callback must be of the form: function ( data ) { ... } removeEventListener: function ( eventType, callback ) { switch ( eventType ) { case self.CHECKERS_REQ_MOVE_PIECE: self.deregisterListener( self.registryResMovePiece, callback ); break; case self.CHECKERS_PUSH_BEGIN_TURN: self.deregisterListener( self.registryPushBeginTurn, callback ); break; case self.CHECKERS_PUSH_GAME_OVER: self.deregisterListener( self.registryPushGameOver, callback ); break; case self.CHECKERS_PUSH_PIECE_DEAD: self.deregisterListener( self.registryPushPieceDead, callback ); break; case self.CHECKERS_PUSH_PIECE_KINGED: self.deregisterListener( self.registryPushPieceKinged, callback ); break; case self.CHECKERS_PUSH_PIECE_POSITIONED: self.deregisterListener( self.registryPushPiecePositioned, callback ); break; default: throw 'CheckersProtocol.removeEventListener >> Cannot deregister from this eventType. Unknown eventType!'; } }, // // Network Event Emitters // // emitRequest() is a convenience function to perform request emission as a one-liner // for use in other, more specialized functions and to handle incrementing the requestID // and mapping the request so it can be matched with its response. emitRequest: function ( cmd, data ) { // Build the request object var request = { cmd: cmd, data: data, id: self.requestID }; // Store the request into the sentRequests map self.sentRequests[ self.requestID++ ] = request; // Emit the request on the checkers channel Socket.emit( 'checkers', request ); }, // requestMovePiece() notifies the server of the player's intent to move a piece on the board. requestMovePiece: function ( piece, x, y ) { // Build the data packet to send with the request var data = { piece: piece, x: x, y: y }; // Emit the request to the entwork self.emitRequest( self.CHECKERS_REQ_MOVE_PIECE, data ); }, // // Network Event Listeners // // interpretCommand() determines the type of command being sent by the // server and calls the appropriate functions to notify listeners. interpretCommand: function ( data ) { // Interpret the command switch ( data.cmd ) { case self.CHECKERS_PUSH_BEGIN_TURN: self.notifyListeners( self.registryPushBeginTurn, data ); break; case self.CHECKERS_PUSH_GAME_OVER: self.notifyListeners( self.registryPushGameOver, data ); break; case self.CHECKERS_PUSH_PIECE_DEAD: self.notifyListeners( self.registryPushPieceDead, data ); break; case self.CHECKERS_PUSH_PIECE_KINGED: self.notifyListeners( self.registryPushPieceKinged, data ); break; case self.CHECKERS_PUSH_PIECE_POSITIONED: self.notifyListeners( self.registryPushPiecePositioned, data ); break; default: // No command was sent, so this must be a response for a previous request self.onResponse( data ); break; } }, // onResponse() is a convenience function to match up responses with the requests that // they are related to, so that they can be dealt with appropriately. onResponse: function ( res ) { // Look up the stored request matching the response's id var associatedRequest = self.sentRequests[ res.id ]; // If no request matched the response, throw an exception. if ( 'undefined' == typeof( associatedRequest ) ) { $log.error( 'CheckersProtocol.onResponse() >> Cannot match response to any request by ID!' ); } // Attach the request to the response res.request = associatedRequest; // Remove the request from the stored requests since it's no longer needed var index = self.sentRequests.indexOf( associatedRequest ); self.sentRequests.splice( index, 1 ); // If a request matched interpret the request's command but pass the response's data switch ( associatedRequest.cmd ) { case self.CHECKERS_REQ_MOVE_PIECE: self.notifyListeners( self.registryResMovePiece, res ); break; default: $log.error( 'CheckersProtocol.onResponse() >> Request command unknown! OMFG IS THIS EVEN POSSIBLE?!' ); } } }; // Init and retutrn init(); return self; } ] );
$.ajax({ url: "myPage/myFunction", type: "Post", data: "ID=" + 10, dataType: "json" }).done(function (answer) { for(var i=0 ; i<=answer.length ; i++){ var element = '<option value="'+answer[i].ID+'">'+answer[i].Name+'</div>'; $('.comboBox2').append( element); } });
/*This function will take parameters from the button, excecute an Ajax call *and then verify the response code, if the response code is 200 it will reload *a target div using a givn URL */ $('body').delegate('.ajax-html-call','click', function() { if($(this).attr("disabled")!='disabled'){ $activateClass="btn btn-mini btn-success publish "; $inactivateClass="btn btn-mini btn-danger unpublish "; $disabledClass="disabled "; $methodType=$(this).data('method_type'); $targetDiv=$(this).data('target_div'); $resultURL=$(this).data('result_url'); $path=$(this).data('path'); // alert($path); $(this).attr("disabled","disabled"); //changes on the other button $.get($path, function(data) { // alert('responseCode:'+data.responseCode); // alert('responseMessage:'+data.responseMessage); if(data.responseCode==200){ // if the response type is HTML then call the URL and draw the response in the correspondin DIV $('#'+$targetDiv).load($resultURL); // alert($('#activate-'+$deal_id).attr('class')); // alert('changing class to:' +$('#inactivate-'+$deal_id).attr('class')); // show message }else{ // $(this).attr("class",$inactivateClass); $(this).removeAttr("disabled"); // $('#activate-'+$deal_id).attr('class',$activateClass+$disabledClass); $('#activate-'+$deal_id).attr('disabled','disabled'); alert('Error executing the operation'); } } ); }else{ // alert('disabled') } });
function Gigasecond(startDate) { this.startDate = startDate; this.date = function () { var adjusted = new Date(this.startDate.getTime() + 1000 * 1e9); return adjusted; } } module.exports = Gigasecond;
"use strict"; /* tslint:disable:no-unused-variable */ var app_component_1 = require('./app.component'); var testing_1 = require('@angular/core/testing'); var platform_browser_1 = require('@angular/platform-browser'); describe('Smoke test', function () { it('should run a passing test', function () { expect(true).toEqual(true, 'should pass'); }); }); describe('AppComponent with TCB', function () { beforeEach(function () { testing_1.TestBed.configureTestingModule({ declarations: [app_component_1.AppComponent], }).compileComponents(); // compile template and css }); it('should instantiate component', function (myarg) { var fixture = testing_1.TestBed.createComponent(app_component_1.AppComponent); expect(fixture.componentInstance instanceof app_component_1.AppComponent).toBe(true, 'should create AppComponent'); }); it('should have expected <h1> text', function () { var fixture = testing_1.TestBed.createComponent(app_component_1.AppComponent); fixture.detectChanges(); var h1 = fixture.debugElement.query(function (el) { return el.name === 'h1'; }).nativeElement; // it works h1 = fixture.debugElement.query(platform_browser_1.By.css('h1')).nativeElement; // preferred expect(h1.innerText).toMatch('Myra the ferryboat'); }); }); //# sourceMappingURL=app.component.spec.js.map
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.he'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "הוסף תגובה"; Blockly.Msg.AUTH = "בבקשה נא לאשר את היישום הזה כדי לאפשר לעבודה שלך להישמר וכדי לאפשר את השיתוף על ידיך."; Blockly.Msg.CHANGE_VALUE_TITLE = "שנה ערך:"; Blockly.Msg.CHAT = "שוחח עם משתף פעולה שלך על-ידי הקלדה בתיבה זו!"; Blockly.Msg.CLEAN_UP = "סידור בלוקים"; Blockly.Msg.COLLAPSE_ALL = "צמצם קטעי קוד"; Blockly.Msg.COLLAPSE_BLOCK = "צמצם קטע קוד"; Blockly.Msg.COLOUR_BLEND_COLOUR1 = "צבע 1"; Blockly.Msg.COLOUR_BLEND_COLOUR2 = "צבע 2"; Blockly.Msg.COLOUR_BLEND_HELPURL = "http://meyerweb.com/eric/tools/color-blend/"; // untranslated Blockly.Msg.COLOUR_BLEND_RATIO = "יחס"; Blockly.Msg.COLOUR_BLEND_TITLE = "ערבב"; Blockly.Msg.COLOUR_BLEND_TOOLTIP = "מערבב שני צבעים יחד עם יחס נתון(0.0 - 1.0)."; Blockly.Msg.COLOUR_PICKER_HELPURL = "http://he.wikipedia.org/wiki/%D7%A6%D7%91%D7%A2"; Blockly.Msg.COLOUR_PICKER_TOOLTIP = "בחר צבע מן הצבעים."; Blockly.Msg.COLOUR_RANDOM_HELPURL = "http://randomcolour.com"; // untranslated Blockly.Msg.COLOUR_RANDOM_TITLE = "צבע אקראי"; Blockly.Msg.COLOUR_RANDOM_TOOLTIP = "בחר צבא אקראי."; Blockly.Msg.COLOUR_RGB_BLUE = "כחול"; Blockly.Msg.COLOUR_RGB_GREEN = "ירוק"; Blockly.Msg.COLOUR_RGB_HELPURL = "http://www.december.com/html/spec/colorper.html"; // untranslated Blockly.Msg.COLOUR_RGB_RED = "אדום"; Blockly.Msg.COLOUR_RGB_TITLE = "צבע עם"; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_HELPURL = "https://github.com/google/blockly/wiki/Loops#loop-termination-blocks"; // untranslated Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK = "צא מהלולאה"; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE = "המשך עם האיטרציה הבאה של הלולאה"; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK = "צא אל מחוץ ללולאה הכוללת."; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE = "דלג על שאר הלולאה והמשך עם האיטרציה הבאה."; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_WARNING = "אזהרה: בלוק זה עשוי לשמש רק בתוך לולאה."; Blockly.Msg.CONTROLS_FOREACH_HELPURL = "https://github.com/google/blockly/wiki/Loops#for-each"; // untranslated Blockly.Msg.CONTROLS_FOREACH_TITLE = "לכל פריט %1 ברשימה %2"; Blockly.Msg.CONTROLS_FOREACH_TOOLTIP = "לכל פריט ברשימה, להגדיר את המשתנה '%1' לפריט הזה, ולאחר מכן לעשות כמה פעולות."; Blockly.Msg.CONTROLS_FOR_HELPURL = "https://github.com/google/blockly/wiki/Loops#count-with"; // untranslated Blockly.Msg.CONTROLS_FOR_TITLE = "תספור עם %1 מ- %2 ל- %3 עד- %4"; Blockly.Msg.CONTROLS_FOR_TOOLTIP = "Have the variable '%1' take on the values from the start number to the end number, counting by the specified interval, and do the specified blocks."; // untranslated Blockly.Msg.CONTROLS_IF_ELSEIF_TOOLTIP = "תוסיף תנאי לבלוק If."; Blockly.Msg.CONTROLS_IF_ELSE_TOOLTIP = "לסיום, כל התנאים תקפים לגבי בלוק If."; Blockly.Msg.CONTROLS_IF_HELPURL = "https://github.com/google/blockly/wiki/IfElse"; // untranslated Blockly.Msg.CONTROLS_IF_IF_TOOLTIP = "תוסיף, תמחק, או תסדר מחדש כדי להגדיר מחדש את הבלוק If."; Blockly.Msg.CONTROLS_IF_MSG_ELSE = "אחרת"; Blockly.Msg.CONTROLS_IF_MSG_ELSEIF = "אחרת אם"; Blockly.Msg.CONTROLS_IF_MSG_IF = "אם"; Blockly.Msg.CONTROLS_IF_TOOLTIP_1 = "אם ערך נכון, לבצע כמה פעולות."; Blockly.Msg.CONTROLS_IF_TOOLTIP_2 = "אם הערך הוא אמת, לבצע את הבלוק הראשון של הפעולות. אחרת, לבצע את הבלוק השני של הפעולות."; Blockly.Msg.CONTROLS_IF_TOOLTIP_3 = "אם הערך הראשון הוא אמת, לבצע את הבלוק הראשון של הפעולות. אחרת, אם הערך השני הוא אמת, לבצע את הבלוק השני של הפעולות."; Blockly.Msg.CONTROLS_IF_TOOLTIP_4 = "אם הערך הראשון הוא אמת, לבצע את הבלוק הראשון של הפעולות. אחרת, אם הערך השני הוא אמת, לבצע את הבלוק השני של הפעולות. אם אף אחד מהם אינו נכון, לבצע את הבלוק האחרון של הפעולות."; Blockly.Msg.CONTROLS_REPEAT_HELPURL = "http://he.wikipedia.org/wiki/בקרת_זרימה"; Blockly.Msg.CONTROLS_REPEAT_INPUT_DO = "תעשה"; Blockly.Msg.CONTROLS_REPEAT_TITLE = "חזור על הפעולה %1 פעמים"; Blockly.Msg.CONTROLS_REPEAT_TOOLTIP = "לעשות כמה פעולות מספר פעמים."; Blockly.Msg.CONTROLS_WHILEUNTIL_HELPURL = "https://github.com/google/blockly/wiki/Loops#repeat"; // untranslated Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_UNTIL = "חזור עד ש..."; Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_WHILE = "חזור כל עוד"; Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL = "בזמן שהערך שווה לשגוי, תעשה מספר חישובים."; Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE = "כל עוד הערך הוא אמת, לעשות כמה פעולות."; Blockly.Msg.DELETE_ALL_BLOCKS = "האם למחוק את כל %1 קטעי הקוד?"; Blockly.Msg.DELETE_BLOCK = "מחק קטע קוד"; Blockly.Msg.DELETE_X_BLOCKS = "מחק %1 קטעי קוד"; Blockly.Msg.DEPRECATEDBLOCK = "This block is outdated and will be removed from Vubbi."; // untranslated Blockly.Msg.DISABLE_BLOCK = "נטרל קטע קוד"; Blockly.Msg.DUPLICATE_BLOCK = "שכפל"; Blockly.Msg.ENABLE_BLOCK = "הפעל קטע קוד"; Blockly.Msg.EXPAND_ALL = "הרחב קטעי קוד"; Blockly.Msg.EXPAND_BLOCK = "הרחב קטע קוד"; Blockly.Msg.EXTERNAL_INPUTS = "קלטים חיצוניים"; Blockly.Msg.HELP = "עזרה"; Blockly.Msg.INLINE_INPUTS = "קלטים פנימיים"; Blockly.Msg.LISTS_CREATE_EMPTY_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-empty-list"; // untranslated Blockly.Msg.LISTS_CREATE_EMPTY_TITLE = "צור רשימה ריקה"; Blockly.Msg.LISTS_CREATE_EMPTY_TOOLTIP = "החזר רשימה,באורך 0, המכילה רשומות נתונים"; Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TITLE_ADD = "רשימה"; Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TOOLTIP = "תוסיף, תמחק, או תסדר מחדש כדי להגדיר מחדש את הבלוק If."; Blockly.Msg.LISTS_CREATE_WITH_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated Blockly.Msg.LISTS_CREATE_WITH_INPUT_WITH = "צור רשימה עם"; Blockly.Msg.LISTS_CREATE_WITH_ITEM_TOOLTIP = "הוסף פריט לרשימה."; Blockly.Msg.LISTS_CREATE_WITH_TOOLTIP = "צור רשימה עם כל מספר של פריטים."; Blockly.Msg.LISTS_GET_INDEX_FIRST = "ראשון"; Blockly.Msg.LISTS_GET_INDEX_FROM_END = "# מהסוף"; Blockly.Msg.LISTS_GET_INDEX_FROM_START = "#"; Blockly.Msg.LISTS_GET_INDEX_GET = "לקבל"; Blockly.Msg.LISTS_GET_INDEX_GET_REMOVE = "קבל ומחק"; Blockly.Msg.LISTS_GET_INDEX_LAST = "אחרון"; Blockly.Msg.LISTS_GET_INDEX_RANDOM = "אקראי"; Blockly.Msg.LISTS_GET_INDEX_REMOVE = "הסרה"; Blockly.Msg.LISTS_GET_INDEX_TAIL = ""; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FIRST = "מחזיר את הפריט הראשון ברשימה."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_END = "מחזיר פריט במיקום שצוין ברשימה. #1 הוא הפריט האחרון."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_START = "מחזיר פריט במיקום שצוין ברשימה. #1 הוא הפריט הראשון."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_LAST = "מחזיר את הפריט האחרון ברשימה."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM = "מחזיר פריט אקראי מהרשימה."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST = "מסיר ומחזיר את הפריט הראשון ברשימה."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_END = "מסיר ומחזיר את הפריט במיקום שצוין ברשימה. #1 הוא הפריט האחרון."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_START = "מסיר ומחזיר את הפריט במיקום שצוין ברשימה. #1 הוא הפריט הראשון."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST = "מסיר ומחזיר את הפריט האחרון ברשימה."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM = "מחק והחזר פריט אקראי מהרשימה."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST = "הסר את הפריט הראשון ברשימה."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_END = "מחזיר פריט במיקום שצוין ברשימה. #1 הוא הפריט האחרון."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_START = "מחזיר פריט במיקום שצוין ברשימה. #1 הוא הפריט הראשון."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST = "הסר את הפריט הראשון ברשימה."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM = "הסר פריט אקראי ברשימה."; Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_END = "ל # מהסוף"; Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_START = "ל #"; Blockly.Msg.LISTS_GET_SUBLIST_END_LAST = "לאחרון"; Blockly.Msg.LISTS_GET_SUBLIST_HELPURL = "https://github.com/google/blockly/wiki/Lists#getting-a-sublist"; // untranslated Blockly.Msg.LISTS_GET_SUBLIST_START_FIRST = "לקבל חלק מהרשימה החל מהתחלה"; Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_END = "לקבל חלק מהרשימה החל מ-# עד הסוף"; Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_START = "לקבל חלק מהרשימה החל מ-#"; Blockly.Msg.LISTS_GET_SUBLIST_TAIL = ""; // untranslated Blockly.Msg.LISTS_GET_SUBLIST_TOOLTIP = "יוצרת עותק של חלק מסוים מהרשימה."; Blockly.Msg.LISTS_INDEX_OF_FIRST = "מחזירה את המיקום הראשון של פריט ברשימה"; Blockly.Msg.LISTS_INDEX_OF_HELPURL = "https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list"; // untranslated Blockly.Msg.LISTS_INDEX_OF_LAST = "מחזירה את המיקום האחרון של פריט ברשימה"; Blockly.Msg.LISTS_INDEX_OF_TOOLTIP = "מחזירה את האינדקס של המופע ראשון/אחרון של הפריט ברשימה. מחזירה 0 אם הפריט אינו נמצא."; Blockly.Msg.LISTS_INLIST = "ברשימה"; Blockly.Msg.LISTS_ISEMPTY_HELPURL = "https://github.com/google/blockly/wiki/Lists#is-empty"; // untranslated Blockly.Msg.LISTS_ISEMPTY_TITLE = "%1 הוא ריק"; Blockly.Msg.LISTS_ISEMPTY_TOOLTIP = "מחזיר אמת אם הרשימה ריקה."; Blockly.Msg.LISTS_LENGTH_HELPURL = "https://github.com/google/blockly/wiki/Lists#length-of"; // untranslated Blockly.Msg.LISTS_LENGTH_TITLE = "אורכו של %1"; Blockly.Msg.LISTS_LENGTH_TOOLTIP = "מחזירה את האורך של רשימה."; Blockly.Msg.LISTS_REPEAT_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated Blockly.Msg.LISTS_REPEAT_TITLE = "ליצור רשימה עם הפריט %1 %2 פעמים"; Blockly.Msg.LISTS_REPEAT_TOOLTIP = "יוצר רשימה המורכבת מהערך נתון חוזר מספר פעמים שצוין."; Blockly.Msg.LISTS_SET_INDEX_HELPURL = "https://github.com/google/blockly/wiki/Lists#in-list--set"; // untranslated Blockly.Msg.LISTS_SET_INDEX_INPUT_TO = "כמו"; Blockly.Msg.LISTS_SET_INDEX_INSERT = "הכנס ב"; Blockly.Msg.LISTS_SET_INDEX_SET = "הגדר"; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST = "מכניס את הפריט בתחילת רשימה."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_END = "מכניס את הפריט במיקום שצוין ברשימה. #1 הוא הפריט האחרון."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_START = "מכניס את הפריט במיקום שצוין ברשימה. #1 הוא הפריט הראשון."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_LAST = "מוסיף את הפריט בסוף רשימה."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM = "הוסף פריט באופן אקראי ברשימה."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FIRST = "מגדיר את הפריט הראשון ברשימה."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_END = "מגדיר את הפריט במיקום שצוין ברשימה. #1 הוא הפריט האחרון."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_START = "מגדיר את הפריט במיקום שצוין ברשימה. #1 הוא הפריט הראשון."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_LAST = "מגדיר את הפריט האחרון ברשימה."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_RANDOM = "מגדיר פריט אקראי ברשימה."; Blockly.Msg.LISTS_SORT_HELPURL = "https://github.com/google/blockly/wiki/Lists#sorting-a-list"; Blockly.Msg.LISTS_SORT_ORDER_ASCENDING = "סדר עולה"; Blockly.Msg.LISTS_SORT_ORDER_DESCENDING = "סדר יורד"; Blockly.Msg.LISTS_SORT_TITLE = "sort %1 %2 %3"; // untranslated Blockly.Msg.LISTS_SORT_TOOLTIP = "Sort a copy of a list."; // untranslated Blockly.Msg.LISTS_SORT_TYPE_IGNORECASE = "סדר אלפביתי, לא תלוי רישיות"; Blockly.Msg.LISTS_SORT_TYPE_NUMERIC = "numeric"; // untranslated Blockly.Msg.LISTS_SORT_TYPE_TEXT = "סדר אלפביתי"; Blockly.Msg.LISTS_SPLIT_HELPURL = "https://github.com/google/blockly/wiki/Lists#splitting-strings-and-joining-lists"; // untranslated Blockly.Msg.LISTS_SPLIT_LIST_FROM_TEXT = "יצירת רשימה מטקסט"; Blockly.Msg.LISTS_SPLIT_TEXT_FROM_LIST = "יצירת טקסט מרשימה"; Blockly.Msg.LISTS_SPLIT_TOOLTIP_JOIN = "Join a list of texts into one text, separated by a delimiter."; // untranslated Blockly.Msg.LISTS_SPLIT_TOOLTIP_SPLIT = "Split text into a list of texts, breaking at each delimiter."; // untranslated Blockly.Msg.LISTS_SPLIT_WITH_DELIMITER = "with delimiter"; // untranslated Blockly.Msg.LOGIC_BOOLEAN_FALSE = "שגוי"; Blockly.Msg.LOGIC_BOOLEAN_HELPURL = "https://github.com/google/blockly/wiki/Logic#values"; // untranslated Blockly.Msg.LOGIC_BOOLEAN_TOOLTIP = "תחזיר אם נכון או אם שגוי."; Blockly.Msg.LOGIC_BOOLEAN_TRUE = "נכון"; Blockly.Msg.LOGIC_COMPARE_HELPURL = "https://en.wikipedia.org/wiki/Inequality_(mathematics)"; // untranslated Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ = "תחזיר נכון אם שני הקלטים שווים אחד לשני."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT = "תחזיר נכון אם הקלט הראשון גדול יותר מהקלט השני."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE = "תחזיר נכון אם הקלט הראשון גדול יותר או שווה לכניסה השנייה."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT = "תחזיר אמת (true) אם הקלט הראשון הוא קטן יותר מאשר הקלט השני."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE = "תחזיר אמת אם הקלט הראשון הוא קטן יותר או שווה לקלט השני."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ = "תחזיר אמת אם שני הקלטים אינם שווים זה לזה."; Blockly.Msg.LOGIC_NEGATE_HELPURL = "https://github.com/google/blockly/wiki/Logic#not"; // untranslated Blockly.Msg.LOGIC_NEGATE_TITLE = "לא %1"; Blockly.Msg.LOGIC_NEGATE_TOOLTIP = "החזר אמת אם הקלט הוא שקר. החזר שקר אם הקלט אמת."; Blockly.Msg.LOGIC_NULL = "null"; Blockly.Msg.LOGIC_NULL_HELPURL = "https://en.wikipedia.org/wiki/Nullable_type"; // untranslated Blockly.Msg.LOGIC_NULL_TOOLTIP = "תחזיר ריק."; Blockly.Msg.LOGIC_OPERATION_AND = "ו"; Blockly.Msg.LOGIC_OPERATION_HELPURL = "https://github.com/google/blockly/wiki/Logic#logical-operations"; // untranslated Blockly.Msg.LOGIC_OPERATION_OR = "או"; Blockly.Msg.LOGIC_OPERATION_TOOLTIP_AND = "תחזיר נכון אם שני הקלטים נכונים."; Blockly.Msg.LOGIC_OPERATION_TOOLTIP_OR = "תחזיר נכון אם מתקיים לפחות אחד מהקלטים נכונים."; Blockly.Msg.LOGIC_TERNARY_CONDITION = "בדיקה"; Blockly.Msg.LOGIC_TERNARY_HELPURL = "https://en.wikipedia.org/wiki/%3F:"; // untranslated Blockly.Msg.LOGIC_TERNARY_IF_FALSE = "אם שגוי"; Blockly.Msg.LOGIC_TERNARY_IF_TRUE = "אם נכון"; Blockly.Msg.LOGIC_TERNARY_TOOLTIP = "בדוק את התנאי ב'מבחן'. אם התנאי נכון, תחזיר את הערך 'אם נכון'; אחרת תחזיר את הערך 'אם שגוי'."; Blockly.Msg.MATH_ADDITION_SYMBOL = "+"; Blockly.Msg.MATH_ARITHMETIC_HELPURL = "https://he.wikipedia.org/wiki/ארבע_פעולות_החשבון"; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_ADD = "תחזיר את סכום שני המספרים."; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE = "החזרת המנה של שני המספרים."; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS = "החזרת ההפרש בין שני מספרים."; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY = "החזרת תוצאת הכפל בין שני מספרים."; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_POWER = "החזרת המספר הראשון בחזקת המספר השני."; Blockly.Msg.MATH_CHANGE_HELPURL = "https://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter"; // untranslated Blockly.Msg.MATH_CHANGE_TITLE = "change %1 by %2"; // untranslated Blockly.Msg.MATH_CHANGE_TOOLTIP = "הוסף מספר למשתנה '%1'."; Blockly.Msg.MATH_CONSTANT_HELPURL = "https://en.wikipedia.org/wiki/Mathematical_constant"; // untranslated Blockly.Msg.MATH_CONSTANT_TOOLTIP = "Return one of the common constants: π (3.141…), e (2.718…), φ (1.618…), sqrt(2) (1.414…), sqrt(½) (0.707…), or ∞ (infinity)."; // untranslated Blockly.Msg.MATH_CONSTRAIN_HELPURL = "https://en.wikipedia.org/wiki/Clamping_%28graphics%29"; // untranslated Blockly.Msg.MATH_CONSTRAIN_TITLE = "constrain %1 low %2 high %3"; // untranslated Blockly.Msg.MATH_CONSTRAIN_TOOLTIP = "Constrain a number to be between the specified limits (inclusive)."; // untranslated Blockly.Msg.MATH_DIVISION_SYMBOL = "÷"; Blockly.Msg.MATH_IS_DIVISIBLE_BY = "מתחלק ב"; Blockly.Msg.MATH_IS_EVEN = "זוגי"; Blockly.Msg.MATH_IS_NEGATIVE = "שלילי"; Blockly.Msg.MATH_IS_ODD = "אי-זוגי"; Blockly.Msg.MATH_IS_POSITIVE = "חיובי"; Blockly.Msg.MATH_IS_PRIME = "ראשוני"; Blockly.Msg.MATH_IS_TOOLTIP = "Check if a number is an even, odd, prime, whole, positive, negative, or if it is divisible by certain number. Returns true or false."; // untranslated Blockly.Msg.MATH_IS_WHOLE = "שלם"; Blockly.Msg.MATH_MODULO_HELPURL = "https://en.wikipedia.org/wiki/Modulo_operation"; // untranslated Blockly.Msg.MATH_MODULO_TITLE = "שארית החילוק %1 ÷ %2"; Blockly.Msg.MATH_MODULO_TOOLTIP = "החזרת השארית מחלוקת שני המספרים."; Blockly.Msg.MATH_MULTIPLICATION_SYMBOL = "×"; Blockly.Msg.MATH_NUMBER_HELPURL = "https://he.wikipedia.org/wiki/מספר_ממשי"; Blockly.Msg.MATH_NUMBER_TOOLTIP = "מספר."; Blockly.Msg.MATH_ONLIST_HELPURL = ""; // untranslated Blockly.Msg.MATH_ONLIST_OPERATOR_AVERAGE = "ממוצע של רשימה"; Blockly.Msg.MATH_ONLIST_OPERATOR_MAX = "מקסימום של רשימה"; Blockly.Msg.MATH_ONLIST_OPERATOR_MEDIAN = "חציון של רשימה"; Blockly.Msg.MATH_ONLIST_OPERATOR_MIN = "מינימום של רשימה"; Blockly.Msg.MATH_ONLIST_OPERATOR_MODE = "שכיחי הרשימה"; Blockly.Msg.MATH_ONLIST_OPERATOR_RANDOM = "פריט אקראי מרשימה"; Blockly.Msg.MATH_ONLIST_OPERATOR_STD_DEV = "standard deviation of list"; // untranslated Blockly.Msg.MATH_ONLIST_OPERATOR_SUM = "סכום של רשימה"; Blockly.Msg.MATH_ONLIST_TOOLTIP_AVERAGE = "Return the average (arithmetic mean) of the numeric values in the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_MAX = "תחזיר את המספר הגדול ביותר ברשימה."; Blockly.Msg.MATH_ONLIST_TOOLTIP_MEDIAN = "תחזיר את המספר החיצוני ביותר ברשימה."; Blockly.Msg.MATH_ONLIST_TOOLTIP_MIN = "תחזיר את המספר הקטן ביותר ברשימה."; Blockly.Msg.MATH_ONLIST_TOOLTIP_MODE = "Return a list of the most common item(s) in the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_RANDOM = "תחזיר רכיב אקראי מרשימה."; Blockly.Msg.MATH_ONLIST_TOOLTIP_STD_DEV = "Return the standard deviation of the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_SUM = "Return the sum of all the numbers in the list."; // untranslated Blockly.Msg.MATH_POWER_SYMBOL = "^"; Blockly.Msg.MATH_RANDOM_FLOAT_HELPURL = "https://en.wikipedia.org/wiki/Random_number_generation"; // untranslated Blockly.Msg.MATH_RANDOM_FLOAT_TITLE_RANDOM = "שבר אקראי"; Blockly.Msg.MATH_RANDOM_FLOAT_TOOLTIP = "Return a random fraction between 0.0 (inclusive) and 1.0 (exclusive)."; // untranslated Blockly.Msg.MATH_RANDOM_INT_HELPURL = "https://en.wikipedia.org/wiki/Random_number_generation"; // untranslated Blockly.Msg.MATH_RANDOM_INT_TITLE = "random integer from %1 to %2"; // untranslated Blockly.Msg.MATH_RANDOM_INT_TOOLTIP = "Return a random integer between the two specified limits, inclusive."; // untranslated Blockly.Msg.MATH_ROUND_HELPURL = "https://en.wikipedia.org/wiki/Rounding"; // untranslated Blockly.Msg.MATH_ROUND_OPERATOR_ROUND = "עיגול"; Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDDOWN = "עיגול למטה"; Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDUP = "עיגול למעלה"; Blockly.Msg.MATH_ROUND_TOOLTIP = "עיגול מספר למעלה או למטה."; Blockly.Msg.MATH_SINGLE_HELPURL = "https://he.wikipedia.org/wiki/שורש_ריבועי"; Blockly.Msg.MATH_SINGLE_OP_ABSOLUTE = "ערך מוחלט"; Blockly.Msg.MATH_SINGLE_OP_ROOT = "שורש ריבועי"; Blockly.Msg.MATH_SINGLE_TOOLTIP_ABS = "החזרת הערך המוחלט של מספר."; Blockly.Msg.MATH_SINGLE_TOOLTIP_EXP = "החזרת e בחזקת מספר."; Blockly.Msg.MATH_SINGLE_TOOLTIP_LN = "החזרת הלוגריתם הטבעי של מספר."; Blockly.Msg.MATH_SINGLE_TOOLTIP_LOG10 = "החזרת הלוגריתם לפי בסיס עשר של מספר."; Blockly.Msg.MATH_SINGLE_TOOLTIP_NEG = "החזרת הערך הנגדי של מספר."; Blockly.Msg.MATH_SINGLE_TOOLTIP_POW10 = "החזרת 10 בחזקת מספר."; Blockly.Msg.MATH_SINGLE_TOOLTIP_ROOT = "החזרת השורש הריבועי של מספר."; Blockly.Msg.MATH_SUBTRACTION_SYMBOL = "-"; Blockly.Msg.MATH_TRIG_ACOS = "acos"; Blockly.Msg.MATH_TRIG_ASIN = "asin"; Blockly.Msg.MATH_TRIG_ATAN = "atan"; Blockly.Msg.MATH_TRIG_COS = "cos"; Blockly.Msg.MATH_TRIG_HELPURL = "https://he.wikipedia.org/wiki/פונקציות_טריגונומטריות"; Blockly.Msg.MATH_TRIG_SIN = "sin"; Blockly.Msg.MATH_TRIG_TAN = "tan"; Blockly.Msg.MATH_TRIG_TOOLTIP_ACOS = "Return the arccosine of a number."; // untranslated Blockly.Msg.MATH_TRIG_TOOLTIP_ASIN = "Return the arcsine of a number."; // untranslated Blockly.Msg.MATH_TRIG_TOOLTIP_ATAN = "Return the arctangent of a number."; // untranslated Blockly.Msg.MATH_TRIG_TOOLTIP_COS = "החזרת הקוסינוס של מעלה (לא רדיאן)."; Blockly.Msg.MATH_TRIG_TOOLTIP_SIN = "החזרת הסינוס של מעלה (לא רדיאן)."; Blockly.Msg.MATH_TRIG_TOOLTIP_TAN = "החזרת הטנגס של מעלה (לא רדיאן)."; Blockly.Msg.ME = "אותי"; Blockly.Msg.MENU_SAVE = "save"; // untranslated Blockly.Msg.MENU_ZOOM = "zoom"; // untranslated Blockly.Msg.MENU_ZOOM_IN = "zoom in"; // untranslated Blockly.Msg.MENU_ZOOM_OUT = "zoom out"; // untranslated Blockly.Msg.MENU_ZOOM_RESET = "reset zoom"; // untranslated Blockly.Msg.NEW_VARIABLE = "משתנה חדש..."; Blockly.Msg.NEW_VARIABLE_TITLE = "שם המשתנה החדש:"; Blockly.Msg.NEW_VARIABLE_TYPED = "make new %1 memory item"; // untranslated Blockly.Msg.ORDINAL_NUMBER_SUFFIX = ""; // untranslated Blockly.Msg.PROCEDURES_ALLOW_STATEMENTS = "לאפשר פעולות"; Blockly.Msg.PROCEDURES_BEFORE_PARAMS = "עם:"; Blockly.Msg.PROCEDURES_CALLNORETURN_HELPURL = "https://he.wikipedia.org/wiki/שגרה_(תכנות)"; Blockly.Msg.PROCEDURES_CALLNORETURN_TOOLTIP = "להפעיל את הפונקציה המוגדרת על-ידי המשתמש '%1'."; Blockly.Msg.PROCEDURES_CALLRETURN_HELPURL = "https://he.wikipedia.org/wiki/שגרה_(תכנות)"; Blockly.Msg.PROCEDURES_CALLRETURN_TOOLTIP = "להפעיל את הפונקציה המוגדרת על-ידי המשתמש '%1' ולהשתמש הפלט שלה."; Blockly.Msg.PROCEDURES_CALL_BEFORE_PARAMS = "עם:"; Blockly.Msg.PROCEDURES_CREATE_DO = "ליצור '%1'"; Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT = "Describe this function..."; // untranslated Blockly.Msg.PROCEDURES_DEFNORETURN_DO = ""; // untranslated Blockly.Msg.PROCEDURES_DEFNORETURN_HELPURL = "https://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; // untranslated Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE = "לעשות משהו"; Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE = "לביצוע:"; Blockly.Msg.PROCEDURES_DEFNORETURN_TOOLTIP = "יצירת פונקציה ללא פלט."; Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL = "https://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; // untranslated Blockly.Msg.PROCEDURES_DEFRETURN_RETURN = "להחזיר"; Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP = "יצירת פונקציה עם פלט."; Blockly.Msg.PROCEDURES_DEF_DUPLICATE_WARNING = "אזהרה: לפונקציה זו יש פרמטרים כפולים."; Blockly.Msg.PROCEDURES_HIGHLIGHT_DEF = "הדגש הגדרה של פונקציה"; Blockly.Msg.PROCEDURES_IFRETURN_HELPURL = "http://c2.com/cgi/wiki?GuardClause"; // untranslated Blockly.Msg.PROCEDURES_IFRETURN_TOOLTIP = "אם ערך נכון, אז להחזיר ערך שני."; Blockly.Msg.PROCEDURES_IFRETURN_WARNING = "אזהרה: בלוק זה עשוי לשמש רק בתוך הגדרה של פונקציה."; Blockly.Msg.PROCEDURES_MUTATORARG_TITLE = "שם הקלט:"; Blockly.Msg.PROCEDURES_MUTATORARG_TOOLTIP = "הוסף קלט לפונקציה"; Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TITLE = "מקורות קלט"; Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TOOLTIP = "הוסף, הסר או סדר מחדש קלטים לפונקציה זו"; Blockly.Msg.PROCEDURES_TITLE = "' procedure"; // untranslated Blockly.Msg.PROCEDURES_VARIABLES_ERROR = "Error: This block may be used only within the '"; // untranslated Blockly.Msg.PROCEDURES_VARIABLES_LOOP_ERROR = "Error: This block may be used only within a loop which declares "; // untranslated Blockly.Msg.REDO = "ביצוע חוזר"; Blockly.Msg.REMOVE_COMMENT = "הסר תגובה"; Blockly.Msg.RENAME_VARIABLE = "שנה את שם המשתנה..."; Blockly.Msg.RENAME_VARIABLE_TITLE = "שנה את שם כל '%1' המשתנים ל:"; Blockly.Msg.TEXT_APPEND_APPENDTEXT = "הוספת טקסט"; Blockly.Msg.TEXT_APPEND_HELPURL = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated Blockly.Msg.TEXT_APPEND_TO = "אל"; Blockly.Msg.TEXT_APPEND_TOOLTIP = "Append some text to variable '%1'."; // untranslated Blockly.Msg.TEXT_APPEND_TO_VARNAME_DEFAULT = "text"; // untranslated Blockly.Msg.TEXT_CHANGECASE_HELPURL = "https://github.com/google/blockly/wiki/Text#adjusting-text-case"; // untranslated Blockly.Msg.TEXT_CHANGECASE_OPERATOR_LOWERCASE = "לאותיות קטנות (עבור טקסט באנגלית)"; Blockly.Msg.TEXT_CHANGECASE_OPERATOR_TITLECASE = "לאותיות גדולות בתחילת כל מילה (עבור טקסט באנגלית)"; Blockly.Msg.TEXT_CHANGECASE_OPERATOR_UPPERCASE = "לאותיות גדולות (עבור טקסט באנגלית)"; Blockly.Msg.TEXT_CHANGECASE_TOOLTIP = "Return a copy of the text in a different case."; // untranslated Blockly.Msg.TEXT_CHARAT_FIRST = "get first letter"; // untranslated Blockly.Msg.TEXT_CHARAT_FROM_END = "get letter # from end"; // untranslated Blockly.Msg.TEXT_CHARAT_FROM_START = "get letter #"; // untranslated Blockly.Msg.TEXT_CHARAT_HELPURL = "https://github.com/google/blockly/wiki/Text#extracting-text"; // untranslated Blockly.Msg.TEXT_CHARAT_INPUT_INTEXT = "in text"; // untranslated Blockly.Msg.TEXT_CHARAT_LAST = "get last letter"; // untranslated Blockly.Msg.TEXT_CHARAT_RANDOM = "get random letter"; // untranslated Blockly.Msg.TEXT_CHARAT_TAIL = ""; // untranslated Blockly.Msg.TEXT_CHARAT_TOOLTIP = "Returns the letter at the specified position."; // untranslated Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TOOLTIP = "Add an item to the text."; // untranslated Blockly.Msg.TEXT_CREATE_JOIN_TITLE_JOIN = "צירוף"; Blockly.Msg.TEXT_CREATE_JOIN_TOOLTIP = "Add, remove, or reorder sections to reconfigure this text block."; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_END = "לאות # מהסוף"; Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_START = "לאות #"; Blockly.Msg.TEXT_GET_SUBSTRING_END_LAST = "to last letter"; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_HELPURL = "https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text"; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_INPUT_IN_TEXT = "in text"; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_START_FIRST = "get substring from first letter"; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_END = "get substring from letter # from end"; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_START = "get substring from letter #"; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_TAIL = ""; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_TOOLTIP = "Returns a specified portion of the text."; // untranslated Blockly.Msg.TEXT_INDEXOF_HELPURL = "https://github.com/google/blockly/wiki/Text#finding-text"; // untranslated Blockly.Msg.TEXT_INDEXOF_INPUT_INTEXT = "in text"; // untranslated Blockly.Msg.TEXT_INDEXOF_OPERATOR_FIRST = "find first occurrence of text"; // untranslated Blockly.Msg.TEXT_INDEXOF_OPERATOR_LAST = "find last occurrence of text"; // untranslated Blockly.Msg.TEXT_INDEXOF_TAIL = ""; // untranslated Blockly.Msg.TEXT_INDEXOF_TOOLTIP = "Returns the index of the first/last occurrence of the first text in the second text. Returns 0 if text is not found."; // untranslated Blockly.Msg.TEXT_ISEMPTY_HELPURL = "https://github.com/google/blockly/wiki/Text#checking-for-empty-text"; // untranslated Blockly.Msg.TEXT_ISEMPTY_TITLE = "%1 is empty"; // untranslated Blockly.Msg.TEXT_ISEMPTY_TOOLTIP = "Returns true if the provided text is empty."; // untranslated Blockly.Msg.TEXT_JOIN_HELPURL = "https://github.com/google/blockly/wiki/Text#text-creation"; // untranslated Blockly.Msg.TEXT_JOIN_TITLE_CREATEWITH = "יצירת טקסט עם"; Blockly.Msg.TEXT_JOIN_TOOLTIP = "Create a piece of text by joining together any number of items."; // untranslated Blockly.Msg.TEXT_LENGTH_HELPURL = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated Blockly.Msg.TEXT_LENGTH_TITLE = "length of %1"; // untranslated Blockly.Msg.TEXT_LENGTH_TOOLTIP = "Returns the number of letters (including spaces) in the provided text."; // untranslated Blockly.Msg.TEXT_PRINT_HELPURL = "https://github.com/google/blockly/wiki/Text#printing-text"; // untranslated Blockly.Msg.TEXT_PRINT_TITLE = "הדפס %1"; Blockly.Msg.TEXT_PRINT_TOOLTIP = "להדפיס טקסט, מספר או ערך אחר שצוין"; Blockly.Msg.TEXT_PROMPT_HELPURL = "https://github.com/google/blockly/wiki/Text#getting-input-from-the-user"; // untranslated Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER = "בקש מהמשתמש מספר."; Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT = "בקשה למשתמש להזין טקסט כלשהו."; Blockly.Msg.TEXT_PROMPT_TYPE_NUMBER = "בקשה למספר עם הודעה"; Blockly.Msg.TEXT_PROMPT_TYPE_TEXT = "בקשה להזנת טקסט עם הודעה"; Blockly.Msg.TEXT_TEXT_HELPURL = "https://en.wikipedia.org/wiki/String_(computer_science)"; // untranslated Blockly.Msg.TEXT_TEXT_TOOLTIP = "אות, מילה, או שורת טקסט."; Blockly.Msg.TEXT_TRIM_HELPURL = "https://github.com/google/blockly/wiki/Text#trimming-removing-spaces"; // untranslated Blockly.Msg.TEXT_TRIM_OPERATOR_BOTH = "למחוק רווחים משני הקצוות"; Blockly.Msg.TEXT_TRIM_OPERATOR_LEFT = "למחוק רווחים מימין"; Blockly.Msg.TEXT_TRIM_OPERATOR_RIGHT = "למחוק רווחים משמאל"; Blockly.Msg.TEXT_TRIM_TOOLTIP = "להחזיר עותק של הטקסט לאחר מחיקת רווחים מאחד או משני הקצוות."; Blockly.Msg.TODAY = "היום"; Blockly.Msg.TOOLBOX_ACTION = "Action"; // untranslated Blockly.Msg.TOOLBOX_COLOUR = "Colours"; // untranslated Blockly.Msg.TOOLBOX_COMMUNICATION = "Messages"; // untranslated Blockly.Msg.TOOLBOX_CONTENT_COMPARE_TAG_EXAMPLE_TAG = "enemy"; // untranslated Blockly.Msg.TOOLBOX_CONTENT_FIND_TAG_EXAMPLE_TAG = "scorekeeper"; // untranslated Blockly.Msg.TOOLBOX_CONTENT_LOG_THIS_WORKS = "This works!"; // untranslated Blockly.Msg.TOOLBOX_CONTENT_SCENE_TO = "gameover"; // untranslated Blockly.Msg.TOOLBOX_CONTROL = "Logic"; // untranslated Blockly.Msg.TOOLBOX_DECISION = "Decisions"; // untranslated Blockly.Msg.TOOLBOX_DETECT = "Detect"; // untranslated Blockly.Msg.TOOLBOX_DISPLAY = "Display"; // untranslated Blockly.Msg.TOOLBOX_DRIVE = "Drive"; // untranslated Blockly.Msg.TOOLBOX_EVENTS = "Events"; // untranslated Blockly.Msg.TOOLBOX_LIGHT = "Lights"; // untranslated Blockly.Msg.TOOLBOX_LIST = "Lists"; // untranslated Blockly.Msg.TOOLBOX_LOOP = "Loops"; // untranslated Blockly.Msg.TOOLBOX_MATH = "Numbers"; // untranslated Blockly.Msg.TOOLBOX_MATH_GROUP = "Math"; // untranslated Blockly.Msg.TOOLBOX_MORE = "More blocks"; // untranslated Blockly.Msg.TOOLBOX_MOVE = "Movement"; // untranslated Blockly.Msg.TOOLBOX_OBJECTS = "Objects"; // untranslated Blockly.Msg.TOOLBOX_OTHER = "Other..."; // untranslated Blockly.Msg.TOOLBOX_PROCEDURE = "Functions"; // untranslated Blockly.Msg.TOOLBOX_ROTATE = "Rotations"; // untranslated Blockly.Msg.TOOLBOX_SENSOR = "Sensors"; // untranslated Blockly.Msg.TOOLBOX_SOUND = "Sounds"; // untranslated Blockly.Msg.TOOLBOX_TEXT = "Text"; // untranslated Blockly.Msg.TOOLBOX_TIME = "Time"; // untranslated Blockly.Msg.TOOLBOX_VARIABLE = "Memory"; // untranslated Blockly.Msg.TOOLBOX_VECTOR = "Coordinates and directions"; // untranslated Blockly.Msg.TOOLBOX_WAIT = "Wait"; // untranslated Blockly.Msg.UI_BLOCKS_HEADER = "Blocks"; // untranslated Blockly.Msg.UI_GENERATED_CODE = "generated code"; // untranslated Blockly.Msg.UI_LOAD = "Loading..."; // untranslated Blockly.Msg.UI_LOAD_FAILURE = "Oops! Something went wrong while loading the file..."; // untranslated Blockly.Msg.UI_NAME_FILE_MSG = "Please enter a name."; // untranslated Blockly.Msg.UI_SAVE = "Saving..."; // untranslated Blockly.Msg.UI_SAVE_FAILURE = "Oops! Something went wrong while saving the file..."; // untranslated Blockly.Msg.UI_UNNAMED_FILE = "unnamed file"; // untranslated Blockly.Msg.UNDO = "ביטול"; Blockly.Msg.UNITY_CODE_BLOCK_DEFAULT_CODE = "print({QUOTE}Hello World C# code!{QUOTE});"; // untranslated Blockly.Msg.UNITY_CODE_BLOCK_DEFAULT_NAME = "my action"; // untranslated Blockly.Msg.UNITY_CODE_BLOCK_TITLE = "new block"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_OPT_ENTER = "just"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_OPT_EXIT = "no longer"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_OPT_STAY = "still"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_PARAM_OBJ = "the object I collided with"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_PARAM_OBJ_DEFNAME = "collidedObject"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_PARAM_SPEED = "the speed I collided with"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_PARAM_SPEED_DEFNAME = "collisionSpeed"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_PARAM_VECTOR = "the speed I collided with"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_PARAM_VECTOR_DEFNAME = "collisionVector"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_TITLE_1 = "when I"; // untranslated Blockly.Msg.UNITY_EVENTS_COLLIDE_TITLE_2 = "hit something"; // untranslated Blockly.Msg.UNITY_EVENTS_JOINTBREAKS_PARAM_OBJ = "the object on the other side of the joint"; // untranslated Blockly.Msg.UNITY_EVENTS_JOINTBREAKS_PARAM_OBJ_DEFNAME = "otherSideObject"; // untranslated Blockly.Msg.UNITY_EVENTS_JOINTBREAKS_TITLE = "when a joint breaks"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_DEFAULT = "do something"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_RECEIVE_ARG_TITLE_1 = "when I receive message"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_RECEIVE_ARG_TITLE_2 = "with information"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_RECEIVE_TITLE_1 = "when I receive message"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_RECEIVE_TITLE_2 = ""; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_SEND_ARG_TITLE_1 = "send message"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_SEND_ARG_TITLE_2 = "to"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_SEND_ARG_TITLE_3 = "with information"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_SEND_REQUIRE_RECEIVER = "require someone listening"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_SEND_TITLE_1 = "send message"; // untranslated Blockly.Msg.UNITY_EVENTS_MESSAGE_SEND_TITLE_2 = "to"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSECLICK_OPT_DOWN = "starts a click"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSECLICK_OPT_STAY = "is still pressed down"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSECLICK_OPT_UP = "is released"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSECLICK_TITLE_1 = "when a mouse button"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSECLICK_TITLE_2 = "on me"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSEHOVER_OPT_ENTER = "just started"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSEHOVER_OPT_EXIT = "is no longer"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSEHOVER_OPT_STAY = "is still"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSEHOVER_TITLE_1 = "when the mouse"; // untranslated Blockly.Msg.UNITY_EVENTS_MOUSEHOVER_TITLE_2 = "hovering over me"; // untranslated Blockly.Msg.UNITY_EVENTS_START_TITLE = "when I start"; // untranslated Blockly.Msg.UNITY_EVENTS_TRIGGER_OPT_ENTER = "just entered"; // untranslated Blockly.Msg.UNITY_EVENTS_TRIGGER_OPT_EXIT = "just exited"; // untranslated Blockly.Msg.UNITY_EVENTS_TRIGGER_OPT_STAY = "is still in"; // untranslated Blockly.Msg.UNITY_EVENTS_TRIGGER_PARAM_OBJ = "the other object"; // untranslated Blockly.Msg.UNITY_EVENTS_TRIGGER_PARAM_OBJ_DEFNAME = "otherObject"; // untranslated Blockly.Msg.UNITY_EVENTS_TRIGGER_TITLE_1 = "when something"; // untranslated Blockly.Msg.UNITY_EVENTS_TRIGGER_TITLE_2 = "my trigger area"; // untranslated Blockly.Msg.UNITY_EVENTS_UPDATE_TITLE = "repeat every frame"; // untranslated Blockly.Msg.UNITY_GENERATED_CODE_WARNING = "DO NOT CHANGE THIS FILE!#The code in this file is automatically generated!#Changes to the code will be overwritten when the file is resaved again from inside Vubbi."; // untranslated Blockly.Msg.UNITY_INPUT_GETKEY_OPT_DOWN = "just pressed down"; // untranslated Blockly.Msg.UNITY_INPUT_GETKEY_OPT_STAY = "still pressed down"; // untranslated Blockly.Msg.UNITY_INPUT_GETKEY_OPT_UP = "just released"; // untranslated Blockly.Msg.UNITY_INPUT_GETKEY_TITLE_1 = "button"; // untranslated Blockly.Msg.UNITY_INPUT_GETKEY_TITLE_2 = ""; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha0 = "alphanumeric keyboard 0"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha1 = "alphanumeric keyboard 1"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha2 = "alphanumeric keyboard 2"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha3 = "alphanumeric keyboard 3"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha4 = "alphanumeric keyboard 4"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha5 = "alphanumeric keyboard 5"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha6 = "alphanumeric keyboard 6"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha7 = "alphanumeric keyboard 7"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha8 = "alphanumeric keyboard 8"; // untranslated Blockly.Msg.UNITY_KEYCODE_Alpha9 = "alphanumeric keyboard 9"; // untranslated Blockly.Msg.UNITY_KEYCODE_AltGr = "alt Gr key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Ampersand = "ampersand key '&'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Asterisk = "asterisk key '*'"; // untranslated Blockly.Msg.UNITY_KEYCODE_At = "at key '@'"; // untranslated Blockly.Msg.UNITY_KEYCODE_BackQuote = "back quote key "; // untranslated Blockly.Msg.UNITY_KEYCODE_Backslash = "backslash key '\'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Backspace = "backspace"; // untranslated Blockly.Msg.UNITY_KEYCODE_Break = "break key"; // untranslated Blockly.Msg.UNITY_KEYCODE_CapsLock = "capslock key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Caret = "caret key '^'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Clear = "'clear'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Colon = "colon ':' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Comma = "comma ',' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Delete = "delete"; // untranslated Blockly.Msg.UNITY_KEYCODE_Dollar = "dollar sign key '$'"; // untranslated Blockly.Msg.UNITY_KEYCODE_DoubleQuote = "double quote '''"; // untranslated Blockly.Msg.UNITY_KEYCODE_DownArrow = "arrow key down"; // untranslated Blockly.Msg.UNITY_KEYCODE_End = "'end'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Equals = "equals '=' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Escape = "escape"; // untranslated Blockly.Msg.UNITY_KEYCODE_Exclaim = "exclamation mark '!'"; // untranslated Blockly.Msg.UNITY_KEYCODE_F1 = "F1"; // untranslated Blockly.Msg.UNITY_KEYCODE_F10 = "F10"; // untranslated Blockly.Msg.UNITY_KEYCODE_F11 = "F11"; // untranslated Blockly.Msg.UNITY_KEYCODE_F12 = "F12"; // untranslated Blockly.Msg.UNITY_KEYCODE_F13 = "F13"; // untranslated Blockly.Msg.UNITY_KEYCODE_F14 = "F14"; // untranslated Blockly.Msg.UNITY_KEYCODE_F15 = "F15"; // untranslated Blockly.Msg.UNITY_KEYCODE_F2 = "F2"; // untranslated Blockly.Msg.UNITY_KEYCODE_F3 = "F3"; // untranslated Blockly.Msg.UNITY_KEYCODE_F4 = "F4"; // untranslated Blockly.Msg.UNITY_KEYCODE_F5 = "F5"; // untranslated Blockly.Msg.UNITY_KEYCODE_F6 = "F6"; // untranslated Blockly.Msg.UNITY_KEYCODE_F7 = "F7"; // untranslated Blockly.Msg.UNITY_KEYCODE_F8 = "F8"; // untranslated Blockly.Msg.UNITY_KEYCODE_F9 = "F9"; // untranslated Blockly.Msg.UNITY_KEYCODE_Greater = "greater than '>' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Hash = "hash key '#'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Help = "help key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Home = "'home'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Insert = "'insert'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad0 = "numeric keyboard 0"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad1 = "numeric keyboard 1"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad2 = "numeric keyboard 2"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad3 = "numeric keyboard 3"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad4 = "numeric keyboard 4"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad5 = "numeric keyboard 5"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad6 = "numeric keyboard 6"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad7 = "numeric keyboard 7"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad8 = "numeric keyboard 8"; // untranslated Blockly.Msg.UNITY_KEYCODE_Keypad9 = "numeric keyboard 9"; // untranslated Blockly.Msg.UNITY_KEYCODE_KeypadDivide = "numeric keyboard '/'"; // untranslated Blockly.Msg.UNITY_KEYCODE_KeypadEnter = "numeric keyboard enter"; // untranslated Blockly.Msg.UNITY_KEYCODE_KeypadEquals = "numeric keyboard '='"; // untranslated Blockly.Msg.UNITY_KEYCODE_KeypadMinus = "numeric keyboard '-'"; // untranslated Blockly.Msg.UNITY_KEYCODE_KeypadMultiply = "numeric keyboard '*'"; // untranslated Blockly.Msg.UNITY_KEYCODE_KeypadPeriod = "numeric keyboard '.'"; // untranslated Blockly.Msg.UNITY_KEYCODE_KeypadPlus = "numeric keyboard '+'"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftAlt = "left Alt key"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftApple = "left Command key"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftArrow = "arrow key left"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftBracket = "left square bracket key '['"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftCommand = "left Command key"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftControl = "left Control key"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftParen = "left Parenthesis key '('"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftShift = "left shift key"; // untranslated Blockly.Msg.UNITY_KEYCODE_LeftWindows = "left Windows key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Less = "less than '<' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Menu = "menu key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Minus = "minus '-' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Mouse0 = "first (primary) mouse button"; // untranslated Blockly.Msg.UNITY_KEYCODE_Mouse1 = "second (secondary) mouse button"; // untranslated Blockly.Msg.UNITY_KEYCODE_Mouse2 = "third mouse button"; // untranslated Blockly.Msg.UNITY_KEYCODE_Numlock = "numlock key"; // untranslated Blockly.Msg.UNITY_KEYCODE_PageDown = "'page down'"; // untranslated Blockly.Msg.UNITY_KEYCODE_PageUp = "'page up'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Pause = "'pause' (PC)"; // untranslated Blockly.Msg.UNITY_KEYCODE_Period = "period '.' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Plus = "plus key '+'"; // untranslated Blockly.Msg.UNITY_KEYCODE_Print = "print key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Question = "question mark '?' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Quote = "quote key '"; // untranslated Blockly.Msg.UNITY_KEYCODE_Return = "enter"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightAlt = "right Alt key"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightApple = "right Command key"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightArrow = "arrow key right"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightBracket = "right square bracket key ']'"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightCommand = "right Command key"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightControl = "right Control key"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightParen = "right Parenthesis key ')'"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightShift = "right shift key"; // untranslated Blockly.Msg.UNITY_KEYCODE_RightWindows = "right Windows key"; // untranslated Blockly.Msg.UNITY_KEYCODE_ScrollLock = "scroll lock key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Semicolon = "semicolon ';' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Slash = "slash '/' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Space = "space"; // untranslated Blockly.Msg.UNITY_KEYCODE_SysReq = "sys req key"; // untranslated Blockly.Msg.UNITY_KEYCODE_Tab = "tab"; // untranslated Blockly.Msg.UNITY_KEYCODE_Underscore = "underscore '_' key"; // untranslated Blockly.Msg.UNITY_KEYCODE_UpArrow = "arrow key up"; // untranslated Blockly.Msg.UNITY_LOG_TITLE = "print"; // untranslated Blockly.Msg.UNITY_MEMORY_TITLE = "memory"; // untranslated Blockly.Msg.UNITY_MEMORY_TOOLTIP = "The memory of this script."; // untranslated Blockly.Msg.UNITY_OBJECTS_CREATE_AND_GET_TITLE = "make clone of"; // untranslated Blockly.Msg.UNITY_OBJECTS_CREATE_TITLE = "make clone of"; // untranslated Blockly.Msg.UNITY_OBJECTS_DESTROY_TITLE = "destroy"; // untranslated Blockly.Msg.UNITY_OBJECTS_FIND_TAG_DEFAULT_TAG = "scorekeeper"; // untranslated Blockly.Msg.UNITY_OBJECTS_FIND_TAG_TITLE = "find GameObject with tag"; // untranslated Blockly.Msg.UNITY_OBJECTS_TAG_COMPARE_TITLE_1 = "tag of"; // untranslated Blockly.Msg.UNITY_OBJECTS_TAG_COMPARE_TITLE_2 = "is"; // untranslated Blockly.Msg.UNITY_OBJECTS_TAG_OF_TITLE = "tag of"; // untranslated Blockly.Msg.UNITY_PARAMOUTPUT_EXECUTE_TITLE = "and do"; // untranslated Blockly.Msg.UNITY_PARAMOUTPUT_TITLE_1 = "remember"; // untranslated Blockly.Msg.UNITY_PARAMOUTPUT_TITLE_2 = "in"; // untranslated Blockly.Msg.UNITY_PHYSICS_ANGULARSPEED_SET_TITLE_1 = "set velocity (°/s) of dyn. rigidbody of"; // untranslated Blockly.Msg.UNITY_PHYSICS_ANGULARSPEED_SET_TITLE_2 = "to"; // untranslated Blockly.Msg.UNITY_PHYSICS_ANGULARSPEED_TITLE = "angular velocity (°/s) of"; // untranslated Blockly.Msg.UNITY_PHYSICS_PUSH_TITLE_1 = "push"; // untranslated Blockly.Msg.UNITY_PHYSICS_PUSH_TITLE_2 = "with force"; // untranslated Blockly.Msg.UNITY_PHYSICS_TORQUE_TITLE_1 = "apply to"; // untranslated Blockly.Msg.UNITY_PHYSICS_TORQUE_TITLE_2 = "a rotational force of"; // untranslated Blockly.Msg.UNITY_PHYSICS_VELOCITY_SET_TITLE_1 = "set velocity (unit/s) of dyn. rigidbody of"; // untranslated Blockly.Msg.UNITY_PHYSICS_VELOCITY_SET_TITLE_2 = "to"; // untranslated Blockly.Msg.UNITY_PHYSICS_VELOCITY_TITLE = "velocity (unit/s) of"; // untranslated Blockly.Msg.UNITY_QUATERNION_ANGLEAXIS2D_TITLE = "° (2D)"; // untranslated Blockly.Msg.UNITY_QUATERNION_ANGLEAXIS_TITLE_1 = "° around "; // untranslated Blockly.Msg.UNITY_QUATERNION_ANGLEAXIS_TITLE_2 = " (3D)"; // untranslated Blockly.Msg.UNITY_QUATERNION_APPLY_VECTOR_TITLE = " rotated by "; // untranslated Blockly.Msg.UNITY_QUATERNION_COMBINE_TITLE_1 = "combine rotations: rotate first "; // untranslated Blockly.Msg.UNITY_QUATERNION_COMBINE_TITLE_2 = " and then "; // untranslated Blockly.Msg.UNITY_QUATERNION_GET_ANGLE_2D_TITLE_1 = "2D direction (0°-360°) of "; // untranslated Blockly.Msg.UNITY_QUATERNION_GET_ANGLE_TITLE_1 = "difference between rotation "; // untranslated Blockly.Msg.UNITY_QUATERNION_GET_ANGLE_TITLE_2 = " and "; // untranslated Blockly.Msg.UNITY_QUATERNION_GET_ANGLE_TITLE_3 = " in degrees"; // untranslated Blockly.Msg.UNITY_QUATERNION_GET_ROTATION_TITLE = "rotation of "; // untranslated Blockly.Msg.UNITY_QUATERNION_IDENTITY_TITLE = "not rotated"; // untranslated Blockly.Msg.UNITY_QUATERNION_INVERSE_TITLE = "inverse rotation of "; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_2D_OPT_XAXIS_NEG = "negative side of my x-axis"; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_2D_OPT_XAXIS_POS = "positive side of my x-axis"; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_2D_OPT_YAXIS_NEG = "negative side of my y-axis"; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_2D_OPT_YAXIS_POS = "positive side of my y-axis"; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_2D_TITLE_1 = "rotation where the "; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_2D_TITLE_2 = " points towards "; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_2D_TITLE_3 = " from "; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_2D_TITLE_4 = " (2D)"; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_TITLE_1 = "rotation around axis "; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_TITLE_2 = " where my "; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_TITLE_3 = " points towards "; // untranslated Blockly.Msg.UNITY_QUATERNION_LOOKTOWARDS_TITLE_4 = " from "; // untranslated Blockly.Msg.UNITY_QUATERNION_ROTATE_TITLE_1 = "change rotation of "; // untranslated Blockly.Msg.UNITY_QUATERNION_ROTATE_TITLE_2 = "with"; // untranslated Blockly.Msg.UNITY_QUATERNION_SET_ROTATION_TITLE_1 = "set rotation of "; // untranslated Blockly.Msg.UNITY_QUATERNION_SET_ROTATION_TITLE_2 = " on "; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_PARAM_DIST = "the distance"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_PARAM_DIST_DEFNAME = "distance"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_PARAM_NORMAL = "the normal vector where the laser hit"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_PARAM_NORMAL_DEFNAME = "normal"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_PARAM_OBJ = "the object that got hit"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_PARAM_OBJ_DEFNAME = "hitObject"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_PARAM_POINT = "the point where the laser hit"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_PARAM_POINT_DEFNAME = "point"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_TITLE_1 = "shoot a laser"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_TITLE_2 = "from position"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_TITLE_3 = "in direction"; // untranslated Blockly.Msg.UNITY_RAYCAST_RAYCAST_TITLE_4 = "when it hits do"; // untranslated Blockly.Msg.UNITY_RENDER_SETSPRITE_TITLE_1 = "set appearance of"; // untranslated Blockly.Msg.UNITY_RENDER_SETSPRITE_TITLE_2 = "to"; // untranslated Blockly.Msg.UNITY_SCENE_GOTO_TITLE = "go to scene with name"; // untranslated Blockly.Msg.UNITY_SCREEN_CAMERA_MAIN_TITLE = "the main camera object"; // untranslated Blockly.Msg.UNITY_SCREEN_MOUSE_POSITION_TITLE = "pixel position of the mouse on the screen"; // untranslated Blockly.Msg.UNITY_SCREEN_MOUSE_SCENE_POSITION_2D_TITLE = "position of the mouse in the scene with z=0 (2D)"; // untranslated Blockly.Msg.UNITY_SCREEN_SCENE_TO_SCREEN_TITLE_1 = "pixel position on screen of coordinate"; // untranslated Blockly.Msg.UNITY_SCREEN_SCENE_TO_SCREEN_TITLE_2 = "for camera of"; // untranslated Blockly.Msg.UNITY_SCREEN_SCREEN_SIZE_TITLE = "size of screen in pixels"; // untranslated Blockly.Msg.UNITY_SCREEN_SCREEN_TO_SCENE_DIR_TITLE_1 = "look direction in scene of pixel position"; // untranslated Blockly.Msg.UNITY_SCREEN_SCREEN_TO_SCENE_DIR_TITLE_2 = "for camera of"; // untranslated Blockly.Msg.UNITY_SCREEN_SCREEN_TO_SCENE_TITLE_1 = "coordinate in scene of pixel position"; // untranslated Blockly.Msg.UNITY_SCREEN_SCREEN_TO_SCENE_TITLE_2 = "for camera of"; // untranslated Blockly.Msg.UNITY_SCREEN_SCREEN_TO_SCENE_TITLE_3 = "on the plane with normal"; // untranslated Blockly.Msg.UNITY_SCREEN_SCREEN_TO_SCENE_TITLE_4 = "containing point"; // untranslated Blockly.Msg.UNITY_THIS = "myself"; // untranslated Blockly.Msg.UNITY_TIME_DELTA_TITLE = "delta time"; // untranslated Blockly.Msg.UNITY_TIME_LEVELLOAD_TITLE = "time since start of the scene"; // untranslated Blockly.Msg.UNITY_TIME_LOOP_TITLE = "time since start of repeat"; // untranslated Blockly.Msg.UNITY_TIME_REPEAT_TILL_TITLE = "repeat each frame 🕑 while "; // untranslated Blockly.Msg.UNITY_TIME_REPEAT_TITLE = "repeat each frame 🕑"; // untranslated Blockly.Msg.UNITY_TIME_WAITFRAME_TITLE = "wait till next frame 🕑"; // untranslated Blockly.Msg.UNITY_TIME_WAITTIME_TITLE_1 = "wait"; // untranslated Blockly.Msg.UNITY_TIME_WAITTIME_TITLE_2 = "second(s) 🕑"; // untranslated Blockly.Msg.UNITY_TRANSFORM_JUMPTO_TITLE_1 = "jump"; // untranslated Blockly.Msg.UNITY_TRANSFORM_JUMPTO_TITLE_2 = "to"; // untranslated Blockly.Msg.UNITY_TRANSFORM_MOVE_TITLE_1 = "jump"; // untranslated Blockly.Msg.UNITY_TRANSFORM_MOVE_TITLE_2 = "additionally with"; // untranslated Blockly.Msg.UNITY_TRANSFORM_POSITION_TITLE = "position of"; // untranslated Blockly.Msg.UNITY_UI_SET_TEXT_TITLE_1 = "set UI text of"; // untranslated Blockly.Msg.UNITY_UI_SET_TEXT_TITLE_2 = "on"; // untranslated Blockly.Msg.UNITY_VECTOR_CREATE_X_TITLE = "x"; // untranslated Blockly.Msg.UNITY_VECTOR_CREATE_Y_TITLE = "y"; // untranslated Blockly.Msg.UNITY_VECTOR_CREATE_Z_TITLE = "z"; // untranslated Blockly.Msg.UNITY_VECTOR_FETCH_TITLE_1 = "of"; // untranslated Blockly.Msg.UNITY_VECTOR_FETCH_X_TITLE = "x of"; // untranslated Blockly.Msg.UNITY_VECTOR_FETCH_Y_TITLE = "y of"; // untranslated Blockly.Msg.UNITY_VECTOR_FETCH_Z_TITLE = "z of"; // untranslated Blockly.Msg.UNITY_VECTOR_LENGTH_TITLE = "length of"; // untranslated Blockly.Msg.UNITY_VECTOR_MATH_TOOLTIP_ADD = "Gives the element wise sum of two vectors."; // untranslated Blockly.Msg.UNITY_VECTOR_MATH_TOOLTIP_MINUS = "Gives the element wise subtraction of two vectors."; // untranslated Blockly.Msg.UNITY_VECTOR_MATH_TOOLTIP_MULTIPLY = "Gives the element wise multiplication of two vectors."; // untranslated Blockly.Msg.UNITY_VECTOR_MULTIPLY_TITLE = "times"; // untranslated Blockly.Msg.UNITY_VECTOR_PICK_OPT_BACK = "backward (depth) (0, 0, -1)"; // untranslated Blockly.Msg.UNITY_VECTOR_PICK_OPT_DOWN = "down (0, -1, 0)"; // untranslated Blockly.Msg.UNITY_VECTOR_PICK_OPT_FORWARD = "forward (depth) (0, 0, 1)"; // untranslated Blockly.Msg.UNITY_VECTOR_PICK_OPT_LEFT = "left (-1, 0, 0)"; // untranslated Blockly.Msg.UNITY_VECTOR_PICK_OPT_ONE = "one (1, 1, 1)"; // untranslated Blockly.Msg.UNITY_VECTOR_PICK_OPT_RIGHT = "right (1, 0, 0)"; // untranslated Blockly.Msg.UNITY_VECTOR_PICK_OPT_UP = "up (0, 1, 0)"; // untranslated Blockly.Msg.UNITY_VECTOR_PICK_OPT_ZERO = "zero (0, 0, 0)"; // untranslated Blockly.Msg.UNITY_VECTOR_PRODUCT_OPTION_CROSS = "cross"; // untranslated Blockly.Msg.UNITY_VECTOR_PRODUCT_OPTION_DOT = "dot"; // untranslated Blockly.Msg.UNITY_VECTOR_PRODUCT_TITLE_1 = "product of"; // untranslated Blockly.Msg.UNITY_VECTOR_PRODUCT_TITLE_2 = "and"; // untranslated Blockly.Msg.UNITY_VECTOR_TOSIZE_TITLE = "scaled to length"; // untranslated Blockly.Msg.UNITY_VECTOR_TRANSFORMPOINT_TOLOCAL_TITLE_1 = "position local to"; // untranslated Blockly.Msg.UNITY_VECTOR_TRANSFORMPOINT_TOLOCAL_TITLE_2 = "of position"; // untranslated Blockly.Msg.UNITY_VECTOR_TRANSFORMPOINT_TOLOCAL_TITLE_3 = "in the world"; // untranslated Blockly.Msg.UNITY_VECTOR_TRANSFORMPOINT_TOWORLD_TITLE_1 = "position in the world of position"; // untranslated Blockly.Msg.UNITY_VECTOR_TRANSFORMPOINT_TOWORLD_TITLE_2 = "local to"; // untranslated Blockly.Msg.VARIABLES_DEFAULT_NAME = "פריט"; Blockly.Msg.VARIABLES_GET_CREATE_SET = "ליצור 'הגדר %1'"; Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Variables#get"; // untranslated Blockly.Msg.VARIABLES_GET_TOOLTIP = "להחזיר את הערך של משתנה זה."; Blockly.Msg.VARIABLES_SET = "הגדר %1 ל- %2"; Blockly.Msg.VARIABLES_SET_CREATE_GET = "ליצור 'קרא %1'"; Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated Blockly.Msg.VARIABLES_SET_TOOLTIP = "מגדיר משתנה זה להיות שווה לקלט."; Blockly.Msg.VARIABLES_TYPE_ARRAY_BOOLEAN = "List Boolean"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_COLOUR = "List Colour"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_CONNECTION = "List Connection"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_NUMBER = "List Number"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_STRING = "List String"; // untranslated Blockly.Msg.VARIABLES_TYPE_BOOLEAN = "Boolean"; // untranslated Blockly.Msg.VARIABLES_TYPE_COLOUR = "Colour"; // untranslated Blockly.Msg.VARIABLES_TYPE_CONNECTION = "Connection"; // untranslated Blockly.Msg.VARIABLES_TYPE_GAMEOBJECT = "GameObject"; // untranslated Blockly.Msg.VARIABLES_TYPE_NUMBER = "Number"; // untranslated Blockly.Msg.VARIABLES_TYPE_QUATERNION = "Rotation"; // untranslated Blockly.Msg.VARIABLES_TYPE_SPRITE = "Sprite"; // untranslated Blockly.Msg.VARIABLES_TYPE_STRING = "String"; // untranslated Blockly.Msg.VARIABLES_TYPE_VECTOR3 = "Vector3"; // untranslated Blockly.Msg.MATH_CHANGE_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.PROCEDURES_DEFRETURN_TITLE = Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE; Blockly.Msg.CONTROLS_IF_IF_TITLE_IF = Blockly.Msg.CONTROLS_IF_MSG_IF; Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.CONTROLS_IF_MSG_THEN = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.CONTROLS_IF_ELSE_TITLE_ELSE = Blockly.Msg.CONTROLS_IF_MSG_ELSE; Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE = Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE; Blockly.Msg.LISTS_GET_SUBLIST_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.VARIABLES_GET_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.PROCEDURES_DEFRETURN_DO = Blockly.Msg.PROCEDURES_DEFNORETURN_DO; Blockly.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF = Blockly.Msg.CONTROLS_IF_MSG_ELSEIF; Blockly.Msg.LISTS_GET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.CONTROLS_FOREACH_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.LISTS_SET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.CONTROLS_FOR_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.LISTS_CREATE_WITH_ITEM_TITLE = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.TEXT_APPEND_VARIABLE = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.LISTS_INDEX_OF_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT = Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT; Blockly.Msg.LISTS_GET_INDEX_HELPURL = Blockly.Msg.LISTS_INDEX_OF_HELPURL;
//models/Song var mongoose = require('mongoose'); var Schema = mongoose.Schema; var SongsSchema = new Schema({ title: String }); module.exports = mongoose.model('Song', SongsSchema);
const { lsdRadixSort } = require("./lsd-radix-sort"); const { createRandomArray, isSorted } = require("../utils/index"); const W = 7; /** * Transform an integer into a string of a fixed length. If the string number * doesn't have `size` digits, random digits are appended to it. * @param {int} n : number to be padded. * @param {int} size : pad numbers until they have `size` digits. */ function leftPad(n, size) { n = n + ""; var numbersToAdd = size - n.length; while (numbersToAdd > 0) { n += Math.round(Math.random() * 10) % 10 + ""; numbersToAdd--; } return n; } var testSizes = [100, 1000, 10000, 100000, 1000000]; testSizes.forEach(tSize => { const R = 256; var sortedData = []; var unsortedData = createRandomArray(tSize).map(n => leftPad(n, W)); var startTime, endTime; startTime = +new Date(); sortedData = lsdRadixSort(unsortedData, W, d => d); endTime = +new Date(); console.log(`n=${tSize} took ${endTime - startTime}ms`); isSorted(sortedData); });
var hasOwn=Object.prototype.hasOwnProperty,toString=Object.prototype.toString,isFunction=function(e){var t=typeof e=="function"&&!(e instanceof RegExp)||toString.call(e)==="[object Function]";!t&&typeof window!="undefined"&&(t=e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt);return t};module.exports=function(t,n){if(!isFunction(n))throw new TypeError("iterator must be a function");var r,i,s=typeof t=="string",o=t.length,u=arguments.length>2?arguments[2]:null;if(o===+o)for(r=0;r<o;r++)u===null?n(s?t.charAt(r):t[r],r,t):n.call(u,s?t.charAt(r):t[r],r,t);else for(i in t)hasOwn.call(t,i)&&(u===null?n(t[i],i,t):n.call(u,t[i],i,t))};
'use strict'; const request = require('request'); const APIServer = "https://restbus-api-server.herokuapp.com"; exports.getRoutes = (req, res) => { request({ uri: `${APIServer}/agencies/sf-muni/routes`, json: true }, (err, response, body) => { if (err) { console.log('err', err); return res.send({error: err}); } const routes = body.reduce((acc, val) => { acc.push({ route: val.title, id: val.id, }); return acc; },[]) routes.unshift({route: "Select Route"}); return res.json(routes); }); }; exports.getDirections = (req, res) => { request({ uri: `${APIServer}/agencies/sf-muni/routes/${req.params.route}`, json: true }, (err, response, body) => { let direction = []; const stops = []; const availableStops = {}; if (err) { console.log(err); return res.send({error: err}); } direction.push(body); direction = direction.reduce((acc, val) => { acc.push(val.directions[0]); acc.push(val.directions[1]); availableStops[val.stops.id] = val.stops; stops.push(val.stops); return acc; }, []); stops[0].forEach(val => { availableStops[val.id] = val; }); direction.unshift({title: "Select Direction"}); return res.json({ direction: direction, availableStops: availableStops }); }); }; exports.getPredictions = (req, res) => { request({ uri: `${APIServer}/agencies/sf-muni/routes/${req.params.route}/stops/${req.params.stop}/predictions`, json: true }, (err, response, body) => { if (err) { console.log(err); return res.send({error: err}); } let prediction = body.reduce((acc, val) => { var value = val.values.forEach(function(time){ acc.push(time); }) return acc; }, []); return res.json({ prediction: prediction }); }); }; exports.getVehicleLocation = (req, res) => { request({ uri: `${APIServer}/agencies/sf-muni/vehicles/${req.params.vehicle}`, json: true }, (err, response, body) => { if (err) { console.log(err); res.send({error: err}); } return res.json({ lat: body.lat, lng: body.lon }); }); };
"use strict"; /** * @license * Copyright 2019 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============================================================================= */ Object.defineProperty(exports, "__esModule", { value: true }); var device_util = require("./device_util"); var tf = require("./index"); describe('DEBUG', function () { beforeEach(function () { tf.env().reset(); spyOn(console, 'warn').and.callFake(function (msg) { }); }); afterAll(function () { return tf.env().reset(); }); it('disabled by default', function () { expect(tf.env().getBool('DEBUG')).toBe(false); }); it('warns when enabled', function () { var consoleWarnSpy = console.warn; tf.env().set('DEBUG', true); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.first().args[0] .startsWith('Debugging mode is ON. ')) .toBe(true); expect(tf.env().getBool('DEBUG')).toBe(true); expect(consoleWarnSpy.calls.count()).toBe(1); }); }); describe('IS_BROWSER', function () { var isBrowser; beforeEach(function () { tf.env().reset(); spyOn(device_util, 'isBrowser').and.callFake(function () { return isBrowser; }); }); afterAll(function () { return tf.env().reset(); }); it('isBrowser: true', function () { isBrowser = true; expect(tf.env().getBool('IS_BROWSER')).toBe(true); }); it('isBrowser: false', function () { isBrowser = false; expect(tf.env().getBool('IS_BROWSER')).toBe(false); }); }); describe('PROD', function () { beforeEach(function () { return tf.env().reset(); }); afterAll(function () { return tf.env().reset(); }); it('disabled by default', function () { expect(tf.env().getBool('PROD')).toBe(false); }); }); describe('TENSORLIKE_CHECK_SHAPE_CONSISTENCY', function () { beforeEach(function () { return tf.env().reset(); }); afterAll(function () { return tf.env().reset(); }); it('disabled when debug is disabled', function () { tf.env().set('DEBUG', false); expect(tf.env().getBool('TENSORLIKE_CHECK_SHAPE_CONSISTENCY')).toBe(false); }); it('enabled when debug is enabled', function () { // Silence debug warnings. spyOn(console, 'warn'); tf.enableDebugMode(); expect(tf.env().getBool('TENSORLIKE_CHECK_SHAPE_CONSISTENCY')).toBe(true); }); }); describe('DEPRECATION_WARNINGS_ENABLED', function () { beforeEach(function () { return tf.env().reset(); }); afterAll(function () { return tf.env().reset(); }); it('enabled by default', function () { expect(tf.env().getBool('DEPRECATION_WARNINGS_ENABLED')).toBe(true); }); }); describe('IS_TEST', function () { beforeEach(function () { return tf.env().reset(); }); afterAll(function () { return tf.env().reset(); }); it('disabled by default', function () { expect(tf.env().getBool('IS_TEST')).toBe(false); }); }); //# sourceMappingURL=flags_test.js.map
var fs = require("fs"); var path = require("path"); const authentication = require('../authentication'); var express = require('express'); var router = express.Router(); var routes = []; //load files fs.readdirSync(__dirname) .filter(function(file) { return (file.indexOf(".") !== 0) && (file !== "index.js"); }) .forEach(function(file) { var fileRoute = require(path.join(__dirname, file)); routes = routes.concat(fileRoute); }); //add routes to router for(let route of routes){ var handlers = []; if(route.authenticate){ let authenticate = authentication.authenticate[route.authenticate]; handlers.push(authenticate); } if(route.authenticated){ handlers.push(authentication.authenticated); } if(route.admin){ handlers.push(authentication.requireAdmin); } handlers.push(route.handler); console.log('route added [' + route.method + '] ' + route.path); router[route.method](route.path, handlers); } exports.router = router;
// Libraries const winston = require('winston'); const config = require('winston/lib/winston/config'); /** * LogService represents a singleton LoggerService. We are using a Singleton * pattern as the class is holding one logger instance. The logger levels are * the following custom levels: * success: 0, * error: 1, * notice: 2, * info: 3, * verbose: 4. * The service is based on the * {@link https://www.npmjs.com/package/winston|winston} package. * We are not using the Winston CLI configuration as we are using a custom * message output which does not contain the logging level. We are using a * custom color scheme used only for notice, info and error by the custom * formatter. * The service is based on the * {@link https://www.npmjs.com/package/winston|winston} package. * @class */ class LogService { /** * Create the LogService. * @constructor */ constructor() { this.isEnabled = true; const levels = { success: 0, error: 1, notice: 2, info: 3, verbose: 4, }; const colors = { success: 'green', error: 'red', notice: 'yellow', info: 'blue', // currently not used by the formatter verbose: 'white', // currently not used by the formatter }; this.logger = new winston.Logger({ level: 'info', levels, colors, transports: [ new winston.transports.Console({ prettyPrint: true, colorize: true, silent: false, timestamp: false, // See: https://github.com/winstonjs/winston/issues/603 formatter: (options) => { if (levels[options.level] <= levels.notice) { return config.colorize(options.level, options.message); } return options.message; }, }), ], }); } /** * Enables the logging. * @method */ enable() { this.isEnabled = true; } /** * Disables the logging. * This is used by the testing framework. * @method */ disable() { this.isEnabled = false; } /** * Returns true if verbose level is enabled. */ get isVerbose() { return this.logger.level === 'verbose'; } /** * Enable verbose for the logger. */ enableVerbose() { this.logger.level = 'verbose'; } /** * Disable verbose for the logger. */ disableVerbose() { this.logger.level = 'info'; } /** * Logs the message at the success level. * @method * @argument message */ success(message) { if (this.isEnabled) { this.logger.info(''); this.logger.log('success', message); } } /** * Logs the message at the error level. * @method * @argument message */ error(message) { if (this.isEnabled) { this.logger.log('error', message); } } /** * Logs the message at the notice level. * @method * @argument message */ notice(message) { if (this.isEnabled) { this.logger.log('notice', message); } } /** * Logs the message at the info level. * @method * @argument message */ info(message) { if (this.isEnabled) { this.logger.log('info', message); } } /** * Logs the message at the verbose level. * @method * @argument message */ verbose(message) { if (this.isEnabled) { this.logger.log('verbose', message); } } } module.exports = new LogService();
$(function () { loadFromCookie(); init(); }); $(".tablinks").click(function (evt) { var tabName = evt.target.textContent.toLowerCase(); if (tabName === "save") createSavefile(); openTab(evt, tabName); }); // Star handlers $("#addStar").click(function (evt) { starEditor.addStar(); }); $("#deleteStar").click(function (evt) { starEditor.deleteStar(); }); $("#star-name").on("input", function (evt) { starEditor.updateName(evt.target.value); }); // Planet handlers $("#addPlanet").click(function (evt) { planetEditor.addPlanet(); }); $("#deletePlanet").click(function (evt) { planetEditor.deletePlanet(); }); $("#planet-name").on("input", function (evt) { planetEditor.updateName(evt.target.value); }); $("#planet-typeselector").change(function (evt) { planetEditor.updatePlanetType(evt.target.value); }); // Orbit handlers $("#addOrbit").click(function (evt) { orbitEditor.addOrbit(); }); $("#deleteOrbit").click(function (evt) { orbitEditor.deleteOrbit(); }); $("#orbit-starselector").change(function (evt) { orbitEditor.updateCenterStar(evt.target.value); }); $("#object-planetselector").change(function (evt) { orbitEditor.updatePlanetIndex(evt.target.value); }); $("#addObject").click(function (evt) { orbitEditor.addObject(); }); $("#deleteObject").click(function (evt) { orbitEditor.deleteObject(); }); // Moon handlers $("#addMoonSystem").click(function (evt) { moonEditor.addMoonSystem(); }); $("#deleteMoonSystem").click(function (evt) { moonEditor.deleteMoonSystem(); }); $("#system-planetselector").change(function (evt) { moonEditor.updateCenterPlanet(evt.target.value); }); $("#moon-name").on("input", function (evt) { moonEditor.updateName(evt.target.value); }); $("#moon-typeselector").change(function (evt) { moonEditor.updateMoonType(evt.target.value); }); $("#addMoon").click(function (evt) { moonEditor.addMoon(); }); $("#deleteMoon").click(function (evt) { moonEditor.deleteMoon(); }); // File I/O $("#saveAsCookie").click(function (evt) { saveAsCookie(); alert("Done"); }); $("#loadFile").change(function (evt) { loadFile(evt); alert("Done"); }); $("#loadFromCookie").change(function (evt) { loadFromCookie(); alert("Done"); });
// See: https://en.wikipedia.org/wiki/Heap's_algorithm class Permute { /** * Given an array of values, produce results in lexical order. * @param {Array<T>} list Input to permute. * @template T */ constructor(list) { this.original_ = Array.from(list); this.list = this.original_; // Copied in reset(). this.index = 0; this.state = []; this.permutePosition = 0; this.permutations = 0; this.size = 0; // Calculated in reset(). this.reset(); } reset() { this.list = Array.from(this.original_); this.index = 0; this.permutePosition = 0; this.permutations = 1; // First permutation is immediately available. this.size = 1; for (let i = 0; i < this.list.length; i++) { this.size *= i + 1; this.state[i] = 0; } } hasNext() { return this.index < this.list.length; } /** @return <T> */ next() { // 0123, <advance>, 0132, <advance>, 0213, <advance>, 0231, <advance>, ... if (this.index >= this.list.length) { throw new RangeError('Input list exhausted'); } const result = this.list[this.index]; this.index++; return result; } seek(index) { if (index < 0 || index >= this.list.length) { throw new RangeError('Unable to seek past list length'); } this.index = index; } canAdvance() { return this.permutations < this.size; } advance() { this.index = 0; while (this.permutePosition < this.list.length) { if (this.state[this.permutePosition] < this.permutePosition) { if (this.permutePosition % 2 == 0) { // Swap 0 and i. [this.list[0], this.list[this.permutePosition]] = [ this.list[this.permutePosition], this.list[0] ]; } else { // Swap state[i] and i. [ this.list[this.state[this.permutePosition]], this.list[this.permutePosition] ] = [ this.list[this.permutePosition], this.list[this.state[this.permutePosition]] ]; } this.state[this.permutePosition]++; this.permutePosition = 0; // Swap performed. this.permutations++; return true; } else { this.state[this.permutePosition] = 0; this.permutePosition += 1; } } return false; } } module.exports = Permute;
import React, { Component, PropTypes } from 'react'; import CheckList from './CheckList'; import marked from 'marked'; class Card extends Component { constructor() { super(...arguments); this.state = { showDetails: false }; } toggleDetails() { this.setState({showDetails: !this.state.showDetails}); } render() { let cardDetails; if (this.state.showDetails) { cardDetails = ( <div className="card__details"> <span dangerouslySetInnerHTML={{__html: marked(this.props.description)}} /> <CheckList cardId={this.props.id} tasks={this.props.tasks} taskCallbacks={this.props.taskCallbacks} /> </div> ); } let sideColor = { position: 'absolute', zIndex: -1, top: 0, bottom: 0, left: 0, width: 7, backgroundColor: this.props.color }; return ( <div className="card"> <div style={sideColor}> </div> <div className={ this.state.showDetails? "card__title card__title--is-open" : "card__title" } onClick={this.toggleDetails.bind(this)}> {this.props.title} </div> {cardDetails} </div> ); } }; Card.PropTypes = { id: PropTypes.number, title: PropTypes.string, description: PropTypes.string, color: PropTypes.string, tasks: PropTypes.array, taskCallbacks: PropTypes.object }; export default Card;
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's // vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. JavaScript code in this file should be added after the last require_* statement. // // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details // about supported directives. // //= require jquery //= require rails-ujs //= require_tree .
describe('ArtCanvas Method TEST', function() { describe('ArtCanvas.prototype.getContainerWidth', function() { it('should return 800', function() { var container = document.createElement('div'); var canvas = document.createElement('canvas'); container.appendChild(canvas); var artCanvas = new ArtCanvas(container, canvas, 800.5, 600, {}); expect(artCanvas.getContainerWidth()).toEqual(800); }); }); });
import actionTypes from '../src/action-types'; import { UniquenessErrorMessage, TypeErrorMessage, ConstantsTypeErrorMessage, NamespaceTypeErrorMessage, } from '../src/errors'; const arrayToTest = ['one', 'two', 'three']; const arrayToTest2 = [...arrayToTest, 77]; const arrayToTest3 = [...arrayToTest, 'two']; const PREFIX = 'SomePrefix'; const WRONG_PREFIX = 44; describe('actionTypes', () => { it('should throw an error saying namespace must be a string !', () => { expect(() => actionTypes(WRONG_PREFIX, arrayToTest2)).toThrow( NamespaceTypeErrorMessage, ); }); it('should throw an error saying constants arg must be an Array !', () => { expect(() => actionTypes(PREFIX, ...arrayToTest)).toThrow( ConstantsTypeErrorMessage, ); }); it('should throw an error saying args must be strings !', () => { expect(() => actionTypes(PREFIX, arrayToTest2)).toThrow(TypeErrorMessage); }); it('should throw an error saying args must be uniques !', () => { expect(() => actionTypes(PREFIX, arrayToTest3)).toThrow( UniquenessErrorMessage, ); }); it('should run without error !', () => { const expectedResult = { one: 'SomePrefix/one', two: 'SomePrefix/two', three: 'SomePrefix/three', }; const shouldRunOk = actionTypes(PREFIX, arrayToTest); expect(shouldRunOk).toEqual(expectedResult); }); });
// Dependencies var Ul = require("ul") , Fs = require("fs") , Moment = require("moment") , CliBox = require("cli-box") ; // Constants const STORE_PATH = Ul.USER_DIR + "/.git-stats" , LEVELS = [ "⬚" , "▢" , "▤" , "▣" , "■" ] , DAYS = [ "Sun" , "Mon" , "Tue" , "Wed" , "Thu" , "Fri" , "Sat" ] , DATE_FORMAT = "MMM D, YYYY" ; // Constructor var GitStats = module.exports = {}; /** * record * Records a new commit. * * @name record * @function * @param {Object} data The commit data containing: * * - `date` (String|Date): The date object or a string in a format that can be parsed. * - `url` (String): The repository remote url. * - `hash` (String): The commit hash. * * @param {Function} callback The callback function. * @return {GitStats} The `GitStats` object. */ GitStats.record = function (data, callback) { // Validate data callback = callback || function (err) { if (err) throw err; }; data = Object(data); if (typeof data.date === "string") { data.date = new Moment(new Date(data.date)); } if (!data.date || !/^Moment|Date$/.test(data.date.constructor.name)) { callback(new Error("The date field should be a string or a date object.")); return GitStats; } if (typeof data.hash !== "string" || !data.hash) { callback(new Error("Invalid hash.")); return GitStats; } if (typeof data.url !== "string" || !data.url) { callback(new Error("Invalid url field. This commit is not recorded into the git-stats history since you didn't added the remote url. You can import the previous commits using the git-stats-importer tool.")); return GitStats; } // Get stats GitStats.get(function (err, stats) { stats = stats || {}; var day = data.date.format(DATE_FORMAT) , today = stats[day] = Object(stats[day]) , repo = today[data.url] = Object(today[data.url]) ; repo[data.hash] = { date: data.date }; GitStats.save(stats, callback); }); return GitStats; }; /** * get * Gets the git stats. * * @name get * @function * @param {Function} callback The callback function. * @return {GitStats} The `GitStats` object. */ GitStats.get = function (callback) { Fs.readFile(STORE_PATH, "utf-8", function (err, data) { if (err && err.code === "ENOENT") { return GitStats.save({}, function (err) { callback(err, {}); }); } if (err) { return callback(err); } try { data = JSON.parse(data); } catch (e) { return callback(e); } callback(null, data); }); return GitStats; }; /** * save * Saves the provided stats. * * @name save * @function * @param {Object} stats The stats to be saved. * @param {Function} callback The callback function. * @return {GitStats} The `GitStats` object. */ GitStats.save = function (stats, callback) { Fs.writeFile(STORE_PATH, JSON.stringify(stats, null, 1), callback); return GitStats; }; /** * iterateDays * Iterate through the days, calling the callback function on each day. * * @name iterateDays * @function * @param {Object} data An object containing the following fields: * * - `start` (Moment): A `Moment` date object representing the start date (default: *an year ago*). * - `end` (Moment): A `Moment` date object representing the end date (default: *now*). * - `format` (String): The format of the date (default: `"MMM D, YYYY"`). * * @param {Function} callback The callback function called with the current day formatted (type: string) and the `Moment` date object. * @return {GitStats} The `GitStats` object. */ GitStats.iterateDays = function (data, callback) { if (typeof data === "function") { callback = data; data = undefined; } // Merge the defaults data = Ul.merge({ end: Moment() , start: Moment().subtract(1, "years") , format: DATE_FORMAT }, data); var start = data.start , end = data.end , tomrrow = Moment(end.format(DATE_FORMAT), DATE_FORMAT).add(1, "days") , endStr = tomrrow.format(DATE_FORMAT) , cDay = null ; while (start.format(DATE_FORMAT) !== endStr) { cDay = start.format(data.format); callback(cDay, start); start.add(1, "days"); } return GitStats; }; /** * graph * Creates an object with the stats on the provided period (default: *last year*). * * @name graph * @function * @param {Object} data The object passed to the `iterateDays` method. * @param {Function} callback The callback function. * @return {GitStats} The `GitStats` object. */ GitStats.graph = function (data, callback) { if (typeof data === "function") { callback = data; data = undefined; } // Get commits GitStats.get(function (err, stats) { if (err) { return callback(err); } var cDayObj = null , year = {} ; // Iterate days GitStats.iterateDays(data, function (cDay) { cDayObj = year[cDay] = { _: stats[cDay] || {} , c: 0 }; Object.keys(cDayObj._).forEach(function (c) { cDayObj.c += Object.keys(cDayObj._[c]).length; }); }); callback(null, year); }); return GitStats; }; /** * calendar * Creates the calendar data for the provided period (default: *last year*). * * @name calendar * @function * @param {Object} data The object passed to the `graph` method. * @param {Function} callback The callback function. * @return {GitStats} The `GitStats` object. */ GitStats.calendar = function (data, callback) { GitStats.graph(data, function (err, graph) { if (err) { return callback(err); } var cal = { total: 0, days: {}, cStreak: 0, lStreak: 0, max: 0 } , cDay = null , days = Object.keys(graph) , levels = null , cLevel = 0 ; days.forEach(function (c) { cDay = graph[c]; cal.total += cDay.c; if (cDay.c > cal.max) { cal.max = cDay.c; } if (cDay.c > 0) { if (++cal.cStreak > cal.lStreak) { cal.lStreak = cal.cStreak; } } else { cal.cStreak = 0; } }); levels = cal.max / (LEVELS.length * 2); days.forEach(function (c) { cDay = graph[c]; cal.days[c] = { c: cDay.c , level: !levels ? 0 : (cLevel = Math.round(cDay.c / levels)) >= 4 ? 4 : !cLevel && cDay.c > 0 ? 1 : cLevel }; }); callback(null, cal); }); return GitStats; }; /** * ansiCalendar * Creates the ANSI contributions calendar. * * @name ansiCalendar * @function * @param {Object} data The object passed to the `calendar` method. * @param {Function} callback The callback function. * @return {GitStats} The `GitStats` object. */ GitStats.ansiCalendar = function (data, callback) { if (typeof data === "function") { callback = data; data = undefined; } var year = [] , months = [] , cWeek = [" ", " ", " ", " ", " ", " ", " "] , monthHack = "MM" , sDay = "" , cDayObj = null , strYear = "" , w = 0 , d = 0 , dataClone = { start: data.start ? Moment(data.start.format(DATE_FORMAT), DATE_FORMAT) : null , end: data.end ? Moment(data.end.format(DATE_FORMAT), DATE_FORMAT) : null } ; GitStats.calendar(data, function (err, cal) { if (err) { return callback(err); } GitStats.iterateDays(dataClone, function (cDay, mDay) { sDay = mDay.format("ddd"); if (mDay.format("D") === "1") { months.push(mDay.format("MMM")); } cDayObj = cal.days[cDay]; if (!cDayObj) return; if (sDay === "Sun" && Object.keys(cWeek).length) { year.push(cWeek); cWeek = [" ", " ", " ", " ", " ", " ", " "]; } cWeek[DAYS.indexOf(sDay)] = LEVELS[cDayObj.level]; }); if (cWeek.length) { year.push(cWeek); } for (d = 0; d < 7; ++d) { for (w = 0; w < year.length; ++w) { strYear += " " + year[w][d]; } strYear += "\n"; } // Add day names strYear = strYear.split("\n").map(function (c, i) { if (i > 6) { return; } return DAYS[i] + c; }).join("\n"); monthHack = "MMM"; strYear = monthHack + months.join(" ") + "\n" + strYear; strYear += new Array(5 + 2 * Math.ceil(365 / 7)).join("-") + "\n" + "Contributions in the last year: " + cal.total + " | " + "Longest Streak: " + cal.lStreak + " days" + " | " + "Current Streak: " + cal.cStreak + " days" + " | " + "Max a day: " + cal.max ; strYear = new CliBox({ w: 10 , h: 10 , marks: { nw: "╔" , n: "═" , ne: "╗" , e: "║" , se: "╝" , s: "═" , sw: "╚" , w: "║" , b: " " } }, { text: strYear , stretch: true , hAlign: "left" }).toString(); strYear = strYear.replace(monthHack, new Array(monthHack.length + 1).join(" ")); callback(null, strYear); }); return GitStats; };
var searchData= [ ['tabbackground',['tabBackground',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a655d14e3167b8f64ef0f47b57e34cdc5',1,'android.support.design.R.attr.tabBackground()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ab410ae00a4313f175dc486882901cbca',1,'pl.komunikator.komunikator.R.attr.tabBackground()']]], ['tabcontentstart',['tabContentStart',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a95a1e6a938c369ab1d4432cc581d5ee4',1,'android.support.design.R.attr.tabContentStart()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a280954573b3876504f3c931b7c2146d8',1,'pl.komunikator.komunikator.R.attr.tabContentStart()']]], ['tabgravity',['tabGravity',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a63623768932b683ba92fe1ee1a153e37',1,'android.support.design.R.attr.tabGravity()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a5b3a2e31dffc7dce292e4d59cd12e363',1,'pl.komunikator.komunikator.R.attr.tabGravity()']]], ['tabindicatorcolor',['tabIndicatorColor',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a0b95949e8c3665fe8dc7a51fc7a2e72c',1,'android.support.design.R.attr.tabIndicatorColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a1a0cb74ce1930ee5ce5779477c9af9a5',1,'pl.komunikator.komunikator.R.attr.tabIndicatorColor()']]], ['tabindicatorheight',['tabIndicatorHeight',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a5c362741ab5aebe6a031d68b443ee3a9',1,'android.support.design.R.attr.tabIndicatorHeight()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a3d5c0d09fa42dc2295887d733b5928eb',1,'pl.komunikator.komunikator.R.attr.tabIndicatorHeight()']]], ['tabitem',['TabItem',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a244f187ed8d4ed589f36e6db741d19e8',1,'android.support.design.R.styleable.TabItem()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ac8355750ffe0b617cf7f3625287106eb',1,'pl.komunikator.komunikator.R.styleable.TabItem()']]], ['tabitem_5fandroid_5ficon',['TabItem_android_icon',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a46e96d73ebab77295be1e1a6df14c775',1,'android.support.design.R.styleable.TabItem_android_icon()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a35d4b78d2c9c68c419dd34ee06390b45',1,'pl.komunikator.komunikator.R.styleable.TabItem_android_icon()']]], ['tabitem_5fandroid_5flayout',['TabItem_android_layout',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a11150619c6879db4f36afaecf7ae8353',1,'android.support.design.R.styleable.TabItem_android_layout()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a80d7ca4f6c6ead770d9b45cdf16d7bac',1,'pl.komunikator.komunikator.R.styleable.TabItem_android_layout()']]], ['tabitem_5fandroid_5ftext',['TabItem_android_text',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a4c370f3b8f02d1e75f784cff6dfbcd35',1,'android.support.design.R.styleable.TabItem_android_text()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ab4c06e7d0bde82a1eed25d1a17c6ceae',1,'pl.komunikator.komunikator.R.styleable.TabItem_android_text()']]], ['tablayout',['TabLayout',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a514b47b47f600f9421b65f4f0aa832d6',1,'android.support.design.R.styleable.TabLayout()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ae4f513f06f573312a1e5cb491d8f32f8',1,'pl.komunikator.komunikator.R.styleable.TabLayout()']]], ['tablayout_5ftabbackground',['TabLayout_tabBackground',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a820be00d91c860d611f8d23069a85668',1,'android.support.design.R.styleable.TabLayout_tabBackground()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a42bc05cb832d52fd2159e52312e34cac',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabBackground()']]], ['tablayout_5ftabcontentstart',['TabLayout_tabContentStart',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a5b71a6c0e3a9a65823285cd0c3ab9e41',1,'android.support.design.R.styleable.TabLayout_tabContentStart()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a4ae1eba2bea724b5676a57aed40612fe',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabContentStart()']]], ['tablayout_5ftabgravity',['TabLayout_tabGravity',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a7ae8ebe621a45d0943d8ab3dce402abc',1,'android.support.design.R.styleable.TabLayout_tabGravity()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ac4399376c3eb16af8e207bc995ee2602',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabGravity()']]], ['tablayout_5ftabindicatorcolor',['TabLayout_tabIndicatorColor',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a9b013b480dde8c6e5d57cd6ebd0d0f53',1,'android.support.design.R.styleable.TabLayout_tabIndicatorColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#aef3e5582d2ef7d86af069712d4795566',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabIndicatorColor()']]], ['tablayout_5ftabindicatorheight',['TabLayout_tabIndicatorHeight',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a7ae176dd4e8e0311f4bfa88d08f2691a',1,'android.support.design.R.styleable.TabLayout_tabIndicatorHeight()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a69f2c57bbbc3e8af2edae056e584211c',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabIndicatorHeight()']]], ['tablayout_5ftabmaxwidth',['TabLayout_tabMaxWidth',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a3eb1307137e3900d48a4bc5a2f5a739f',1,'android.support.design.R.styleable.TabLayout_tabMaxWidth()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ab90c6bd0ec08dcf00a661f51cc9ca6bc',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabMaxWidth()']]], ['tablayout_5ftabminwidth',['TabLayout_tabMinWidth',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a3602c5888987ab2e5b541ec404fd7f6d',1,'android.support.design.R.styleable.TabLayout_tabMinWidth()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a017bf6b1e9f2c7bf3a890991eb1e06ef',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabMinWidth()']]], ['tablayout_5ftabmode',['TabLayout_tabMode',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a26a51530c7b6149480742863d85d168a',1,'android.support.design.R.styleable.TabLayout_tabMode()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#aea37d34dd2b2bb498aa3d1164f53e5db',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabMode()']]], ['tablayout_5ftabpadding',['TabLayout_tabPadding',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a056f2b88be834bf619bf77c735cf5a42',1,'android.support.design.R.styleable.TabLayout_tabPadding()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a195e4846a633b4654b868120b6e54a4c',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabPadding()']]], ['tablayout_5ftabpaddingbottom',['TabLayout_tabPaddingBottom',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ad4991690d110e7f1385ee3f9d1a5b85b',1,'android.support.design.R.styleable.TabLayout_tabPaddingBottom()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a926a7e9c444f1e24ad92731d0626aefa',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabPaddingBottom()']]], ['tablayout_5ftabpaddingend',['TabLayout_tabPaddingEnd',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#adbeb0bd64f8e4ad9368fe2a1b099b617',1,'android.support.design.R.styleable.TabLayout_tabPaddingEnd()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ad6bf8e3ae1be2f003060307776bdb133',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabPaddingEnd()']]], ['tablayout_5ftabpaddingstart',['TabLayout_tabPaddingStart',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a0d9cc14d7d2c3237d4b22dd1fae200ba',1,'android.support.design.R.styleable.TabLayout_tabPaddingStart()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a456b7cc95e9cb081c200826b895aa4c7',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabPaddingStart()']]], ['tablayout_5ftabpaddingtop',['TabLayout_tabPaddingTop',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a703b4a603e37f5394dd946d44278424c',1,'android.support.design.R.styleable.TabLayout_tabPaddingTop()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#aebc18fcd9561c28efa1073a651df4ae9',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabPaddingTop()']]], ['tablayout_5ftabselectedtextcolor',['TabLayout_tabSelectedTextColor',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ae1d2a6b701002c2b0ac537ba670c9494',1,'android.support.design.R.styleable.TabLayout_tabSelectedTextColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ad3b80c73117ee7cb093cc155746c8ff9',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabSelectedTextColor()']]], ['tablayout_5ftabtextappearance',['TabLayout_tabTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a2b960a4f2c5c0cd6831652cc2cf9844d',1,'android.support.design.R.styleable.TabLayout_tabTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a96e65fa6123847445d74e05820c2aa92',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabTextAppearance()']]], ['tablayout_5ftabtextcolor',['TabLayout_tabTextColor',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a5dee3b9d7a0f68858b1fd00fe184d831',1,'android.support.design.R.styleable.TabLayout_tabTextColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a56eefde3cf4a6607acf935c4a366a43a',1,'pl.komunikator.komunikator.R.styleable.TabLayout_tabTextColor()']]], ['tabmaxwidth',['tabMaxWidth',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a43a4d96667624eaf72c716ba0579e3cb',1,'android.support.design.R.attr.tabMaxWidth()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ae3354292c1ca26c9b176d39e4f822884',1,'pl.komunikator.komunikator.R.attr.tabMaxWidth()']]], ['tabminwidth',['tabMinWidth',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ad05647ddee10bb7cb00acd5d0255c461',1,'android.support.design.R.attr.tabMinWidth()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ae5774e5ad6716cc3ba0e123f3e6b666e',1,'pl.komunikator.komunikator.R.attr.tabMinWidth()']]], ['tabmode',['tabMode',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a6471efddc2adcbd6b7dd9951067fce93',1,'android.support.design.R.attr.tabMode()'],['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a28f007351f00cb138e17395355f11f88',1,'android.support.design.R.id.tabMode()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#a9f4b211ddf6dcd1ba76c5031f318dfca',1,'android.support.v7.appcompat.R.id.tabMode()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a65f69b62eaee90e89f92ca0171edbdae',1,'pl.komunikator.komunikator.R.attr.tabMode()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a63e2b9821906e276779b3d72f7073bf6',1,'pl.komunikator.komunikator.R.id.tabMode()']]], ['tabpadding',['tabPadding',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a3a90a1dfd1478f5a9c0bc2a76f3ee8f9',1,'android.support.design.R.attr.tabPadding()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ae996c8bfb2b3c33dd3a4628f74f56603',1,'pl.komunikator.komunikator.R.attr.tabPadding()']]], ['tabpaddingbottom',['tabPaddingBottom',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a6d2423ea97ff731bf8b496c145453dd1',1,'android.support.design.R.attr.tabPaddingBottom()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#afc4671fd3c836a994147f2027ae48827',1,'pl.komunikator.komunikator.R.attr.tabPaddingBottom()']]], ['tabpaddingend',['tabPaddingEnd',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a25d1166da428a3dc79929e61da4de252',1,'android.support.design.R.attr.tabPaddingEnd()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a9cd60c29f29d168ee3bf0521b4cf3335',1,'pl.komunikator.komunikator.R.attr.tabPaddingEnd()']]], ['tabpaddingstart',['tabPaddingStart',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a00b1b6ab43f4c3c5f1dfcf5eabc6a4ac',1,'android.support.design.R.attr.tabPaddingStart()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ae559dd652984064b641922df49198691',1,'pl.komunikator.komunikator.R.attr.tabPaddingStart()']]], ['tabpaddingtop',['tabPaddingTop',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ab0be958901fbf172bc67a7f4bc1f05cf',1,'android.support.design.R.attr.tabPaddingTop()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ae5f300317070a30b875f0f5cb8f87f82',1,'pl.komunikator.komunikator.R.attr.tabPaddingTop()']]], ['tabselectedtextcolor',['tabSelectedTextColor',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a56a5ff50e5095440d3066e6f3b932d1a',1,'android.support.design.R.attr.tabSelectedTextColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#af11b37b6719c081f9eba4112e5710d01',1,'pl.komunikator.komunikator.R.attr.tabSelectedTextColor()']]], ['tabtextappearance',['tabTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#aed3ef657b16086082eb107fc03a164bc',1,'android.support.design.R.attr.tabTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a40856d3fd9c4d8def6f12bd51facb08c',1,'pl.komunikator.komunikator.R.attr.tabTextAppearance()']]], ['tabtextcolor',['tabTextColor',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a208aa1427a7eeaee81f9154016d528d7',1,'android.support.design.R.attr.tabTextColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a41715b3f9aa5eb48e5e51b8ceebcb6af',1,'pl.komunikator.komunikator.R.attr.tabTextColor()']]], ['text',['text',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a42faaf7f13a49213f874ef8cb4e68ee1',1,'android.support.design.R.id.text()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#a2930aafc4caa3944336307aaf845eefa',1,'android.support.v7.appcompat.R.id.text()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a137bdd2928bff64379a9a8e5bce9864b',1,'pl.komunikator.komunikator.R.id.text()']]], ['text2',['text2',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a65e945658c4131f7246b3447a632bccf',1,'android.support.design.R.id.text2()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#ab9390bfca9faaba1e8692b82040e152d',1,'android.support.v7.appcompat.R.id.text2()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a8f77707c5e05d75593fc341047631682',1,'pl.komunikator.komunikator.R.id.text2()']]], ['text_5finput_5fpassword_5ftoggle',['text_input_password_toggle',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a77c3ac2414c276faa7936afbef217ab0',1,'android.support.design.R.id.text_input_password_toggle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a38f21e5261587e583b974585fb553aa6',1,'pl.komunikator.komunikator.R.id.text_input_password_toggle()']]], ['textallcaps',['textAllCaps',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ab755ba74b4f994f36ce6d0a4644b696a',1,'android.support.design.R.attr.textAllCaps()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a4a60809d06170629404a0a766aad785e',1,'android.support.v7.appcompat.R.attr.textAllCaps()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ac2cd229b6f7d08f709f0c6e46f7ef70b',1,'pl.komunikator.komunikator.R.attr.textAllCaps()']]], ['textappearance',['TextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a23dc46ec989f92f528b46568dad7e726',1,'android.support.design.R.styleable.TextAppearance()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a85d64ca373dd3c60f50e0e9c1a55a8da',1,'android.support.v7.appcompat.R.styleable.TextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#addeae55bd7bc1a79a13d42fae9f1f27d',1,'pl.komunikator.komunikator.R.styleable.TextAppearance()']]], ['textappearance_5fandroid_5fshadowcolor',['TextAppearance_android_shadowColor',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a6f271140407acd9fe3f06b8fba7c107e',1,'android.support.design.R.styleable.TextAppearance_android_shadowColor()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a639281e0d04325662d3d57c7802f03de',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_shadowColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#acba5dd3acba95b495b8341567dc5b54e',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_shadowColor()']]], ['textappearance_5fandroid_5fshadowdx',['TextAppearance_android_shadowDx',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a5e7de3b733daea5868861df0dfa76062',1,'android.support.design.R.styleable.TextAppearance_android_shadowDx()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a6b1a196edd622828d89fd8707d72b8c7',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_shadowDx()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a0642167e58d2a70d84316553e7f03394',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_shadowDx()']]], ['textappearance_5fandroid_5fshadowdy',['TextAppearance_android_shadowDy',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a4f96e3e9d52b106bfa676c09e87a73c8',1,'android.support.design.R.styleable.TextAppearance_android_shadowDy()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a6c2a7060369b3c30927869484c276444',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_shadowDy()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a777cb07fd373abfbaa98c3b7eb3ddc78',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_shadowDy()']]], ['textappearance_5fandroid_5fshadowradius',['TextAppearance_android_shadowRadius',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a57fc574506aa93a9939345f27539bd48',1,'android.support.design.R.styleable.TextAppearance_android_shadowRadius()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a96bc2f9cacb559966fb2cc7c9ba2eeec',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_shadowRadius()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a3839993213b2f71132cf1992d8961036',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_shadowRadius()']]], ['textappearance_5fandroid_5ftextcolor',['TextAppearance_android_textColor',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a129155598b9f1854731c9f078ece488f',1,'android.support.design.R.styleable.TextAppearance_android_textColor()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#ae130f82b90e33686295a03d11aa6c62f',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_textColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#adb9921b8dfce72ccec64d8cd44885fed',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_textColor()']]], ['textappearance_5fandroid_5ftextcolorhint',['TextAppearance_android_textColorHint',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a7bbcec77aa5ef2ece2ad0d9e504296f3',1,'android.support.design.R.styleable.TextAppearance_android_textColorHint()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a95f007124181f7ae3915214f019838d8',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_textColorHint()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ad2964d4c2becb99f79496d1693657c24',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_textColorHint()']]], ['textappearance_5fandroid_5ftextsize',['TextAppearance_android_textSize',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a4ca078b59bd3cea0f1cc46eb1ba33efa',1,'android.support.design.R.styleable.TextAppearance_android_textSize()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#af9f0bc5e4de5b5a13cf249d520135f6b',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_textSize()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#afdb8a04d22ab8482a32cb7e12637b0f0',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_textSize()']]], ['textappearance_5fandroid_5ftextstyle',['TextAppearance_android_textStyle',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#afdc1e2a3b8c14b12194550bf78f9b051',1,'android.support.design.R.styleable.TextAppearance_android_textStyle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#aeacc55fa755882a9ea3f4afe39049916',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_textStyle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a37ef2922a09aa6289c9291615dd41644',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_textStyle()']]], ['textappearance_5fandroid_5ftypeface',['TextAppearance_android_typeface',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#aa5911a5763e1b03e8ea594230ad9f1a5',1,'android.support.design.R.styleable.TextAppearance_android_typeface()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a85b8be9cd5f70a43e5fd407b3048916e',1,'android.support.v7.appcompat.R.styleable.TextAppearance_android_typeface()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a1a1df912fe549be88ba0d5bd49cede43',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_android_typeface()']]], ['textappearance_5fappcompat',['TextAppearance_AppCompat',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a150f94913f3a6732ce3ba8a8afdd1e3a',1,'android.support.design.R.style.TextAppearance_AppCompat()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a42b9227b2e55ee8feb8221dd6d1f3ec4',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a7cccbe2b02b1247061f5a0d178477ad7',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat()']]], ['textappearance_5fappcompat_5fbody1',['TextAppearance_AppCompat_Body1',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a8ed35c1c1c7ff1e4555efdd939993b32',1,'android.support.design.R.style.TextAppearance_AppCompat_Body1()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a00c54a311c223f13abcddcd7ecffc64c',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Body1()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aa02db20799e21e5f333163b08447b4f2',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Body1()']]], ['textappearance_5fappcompat_5fbody2',['TextAppearance_AppCompat_Body2',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a984f35eb8517130ee3bb9c77f4db3d6b',1,'android.support.design.R.style.TextAppearance_AppCompat_Body2()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#af4f8889eec33c1bb9086e718a767fdb2',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Body2()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ab50b0a9a68b342dd40e1110f3d615735',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Body2()']]], ['textappearance_5fappcompat_5fbutton',['TextAppearance_AppCompat_Button',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#abb6ae1be3e2e1bd68fd51e2d090dbb82',1,'android.support.design.R.style.TextAppearance_AppCompat_Button()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aa801b76dbf3b1122307d7c57c10abcc1',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Button()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a9c4cbbf49b8b64f9afd7c636c2bd2248',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Button()']]], ['textappearance_5fappcompat_5fcaption',['TextAppearance_AppCompat_Caption',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a7beee5ea7f39ff6f540899b876335d06',1,'android.support.design.R.style.TextAppearance_AppCompat_Caption()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aa31b7e463497b5c15b8f6cdf69aa09b5',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Caption()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ae40cc6594394c0339c30af93c91dc07a',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Caption()']]], ['textappearance_5fappcompat_5fdisplay1',['TextAppearance_AppCompat_Display1',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a3d7fcc642e94e5d0da4cc0eb050d4377',1,'android.support.design.R.style.TextAppearance_AppCompat_Display1()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a0623e3bb13bb0517311ed9a7f9fd906e',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Display1()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a5bd1747540a2d864e721dfe7668ec7b9',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Display1()']]], ['textappearance_5fappcompat_5fdisplay2',['TextAppearance_AppCompat_Display2',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a5119c9d4d6b9119f974c3cc3d3274622',1,'android.support.design.R.style.TextAppearance_AppCompat_Display2()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a636c4fa0b00194984dcf32557818d992',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Display2()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a5e8b1c0376c0e79ebb47f3bf1e283c00',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Display2()']]], ['textappearance_5fappcompat_5fdisplay3',['TextAppearance_AppCompat_Display3',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#afcc42ebd522f07fcc0fd82c0b6c8ec54',1,'android.support.design.R.style.TextAppearance_AppCompat_Display3()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a4bb50602a7395cbb4de22e4dd4c182c3',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Display3()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a7217106b01419d2a9e8256fba8067ef5',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Display3()']]], ['textappearance_5fappcompat_5fdisplay4',['TextAppearance_AppCompat_Display4',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a9b9f3be8cc0db80bccd10e2d09001c13',1,'android.support.design.R.style.TextAppearance_AppCompat_Display4()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#af6a39a4f5ad54f4ff593b4c4e118b1ec',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Display4()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a9589e6a5b69a0b6bd8ca596b571a58af',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Display4()']]], ['textappearance_5fappcompat_5fheadline',['TextAppearance_AppCompat_Headline',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a8d4490bb630d7ae6f24ef8a91885d63e',1,'android.support.design.R.style.TextAppearance_AppCompat_Headline()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aa40c94de107d982632d5f5cefb8af742',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Headline()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a9bb1b604dce6893f452313659591edf3',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Headline()']]], ['textappearance_5fappcompat_5finverse',['TextAppearance_AppCompat_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#acc2c875b4af6beac9360f42572c25d9a',1,'android.support.design.R.style.TextAppearance_AppCompat_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a3b1f6191b46f580988a5d7ce1be8442e',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a38ed895b31b8f722d96ea3810651cfac',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Inverse()']]], ['textappearance_5fappcompat_5flarge',['TextAppearance_AppCompat_Large',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad3d980817c920614b02aac4354be82e7',1,'android.support.design.R.style.TextAppearance_AppCompat_Large()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a0f7c87ccc9f28664a827645d6c661adb',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Large()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ac5ceec1647dabade15476933fe03accc',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Large()']]], ['textappearance_5fappcompat_5flarge_5finverse',['TextAppearance_AppCompat_Large_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a12013c3ce690759654e8b1a05327e0c9',1,'android.support.design.R.style.TextAppearance_AppCompat_Large_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a1cd2cf2f498da3bce4450a09defe45cb',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Large_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a2cdf7d00b8104e60161e6afad4ae5004',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Large_Inverse()']]], ['textappearance_5fappcompat_5flight_5fsearchresult_5fsubtitle',['TextAppearance_AppCompat_Light_SearchResult_Subtitle',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ab6a60e6b39b2f6c94adbf6523ca0ddf7',1,'android.support.design.R.style.TextAppearance_AppCompat_Light_SearchResult_Subtitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a2c3168595fbf5a2f2cd9d11b7f45ad30',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Light_SearchResult_Subtitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ae568bc6fe36da54a6cceab92af418371',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Light_SearchResult_Subtitle()']]], ['textappearance_5fappcompat_5flight_5fsearchresult_5ftitle',['TextAppearance_AppCompat_Light_SearchResult_Title',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad43f8905df9054ea1c5ee01caaa9aae2',1,'android.support.design.R.style.TextAppearance_AppCompat_Light_SearchResult_Title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a62fb7764d0faa33424e637094f9874ed',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Light_SearchResult_Title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ad5dd20f998769b0ceb111e8b53400c64',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Light_SearchResult_Title()']]], ['textappearance_5fappcompat_5flight_5fwidget_5fpopupmenu_5flarge',['TextAppearance_AppCompat_Light_Widget_PopupMenu_Large',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a0ab8d102e79fb4df376280670f497119',1,'android.support.design.R.style.TextAppearance_AppCompat_Light_Widget_PopupMenu_Large()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a148472e911d0046b356b15cfc12dfa3a',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Light_Widget_PopupMenu_Large()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#af7a46aed9c5e1b59aae8f92034645023',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Light_Widget_PopupMenu_Large()']]], ['textappearance_5fappcompat_5flight_5fwidget_5fpopupmenu_5fsmall',['TextAppearance_AppCompat_Light_Widget_PopupMenu_Small',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a51f65809127f437f963c959df41f55ca',1,'android.support.design.R.style.TextAppearance_AppCompat_Light_Widget_PopupMenu_Small()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aab3ede0d3b744bbff6ea1fd27f8d6b3c',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Light_Widget_PopupMenu_Small()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a49cf4fbccbe77f435ce001b5124cf4f6',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Light_Widget_PopupMenu_Small()']]], ['textappearance_5fappcompat_5fmedium',['TextAppearance_AppCompat_Medium',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a6f36f3944c8c9e72bb28b1b6f6f55a08',1,'android.support.design.R.style.TextAppearance_AppCompat_Medium()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a772ffada512c435e31ffaebade3ed642',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Medium()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a5694030a8895bd52504f830d90422bca',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Medium()']]], ['textappearance_5fappcompat_5fmedium_5finverse',['TextAppearance_AppCompat_Medium_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#afedf82a346a4efa74ea8c629e33ca220',1,'android.support.design.R.style.TextAppearance_AppCompat_Medium_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a8fa231cf7e54979201ef2a3fb3b336b0',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Medium_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a27f027ecdabf74b6d3ff5a1573f3b24b',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Medium_Inverse()']]], ['textappearance_5fappcompat_5fmenu',['TextAppearance_AppCompat_Menu',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ac915ed93a55ceecfd2cab0a8274bec5c',1,'android.support.design.R.style.TextAppearance_AppCompat_Menu()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a22812bea24f97e75e0f4a149ace3e8e9',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Menu()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a3a9e7d2ef751449a2c1010a8ae1cb616',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Menu()']]], ['textappearance_5fappcompat_5fnotification',['TextAppearance_AppCompat_Notification',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a426b7d0cec7c41e1f68acf13305bf7dd',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a4fbe0d02d0bafba021d7a2a3edcb7857',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#adb66eb17bd2895fac1dcf7920d54cc8b',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification()']]], ['textappearance_5fappcompat_5fnotification_5finfo',['TextAppearance_AppCompat_Notification_Info',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a668e76478ed130092655afd22d7a7712',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Info()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a63018e1092cd1bcd1077973524e8c469',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Info()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a7c4a3800e0817b730741e2b7d969b84a',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Info()']]], ['textappearance_5fappcompat_5fnotification_5finfo_5fmedia',['TextAppearance_AppCompat_Notification_Info_Media',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a87c36a692f717f9e9397e27d2fcd26d0',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Info_Media()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a4ebe9cdf1be08132a905491a22e93372',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Info_Media()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a30bfd69323c7c225eba71a78030164a9',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Info_Media()']]], ['textappearance_5fappcompat_5fnotification_5fline2',['TextAppearance_AppCompat_Notification_Line2',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#afcaa3e2666713abe586956307013b148',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Line2()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aa4ae9e982e57016f640bf942212ee97f',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Line2()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#af99603c0a208e6315ba5a836343faf36',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Line2()']]], ['textappearance_5fappcompat_5fnotification_5fline2_5fmedia',['TextAppearance_AppCompat_Notification_Line2_Media',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aec729e40b42605f9fec30c48073b7f03',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Line2_Media()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a83ded7208b1c3eee6a417a65173a6008',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Line2_Media()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ac1011fb30ca63c50392b972b3e3bfb3a',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Line2_Media()']]], ['textappearance_5fappcompat_5fnotification_5fmedia',['TextAppearance_AppCompat_Notification_Media',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#afbae535d1b595b38343f91262a744996',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Media()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a974fcf15de42850f2005ba4edd34378e',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Media()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#af458e4aff0eb0a5d3ff744c1d0574064',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Media()']]], ['textappearance_5fappcompat_5fnotification_5ftime',['TextAppearance_AppCompat_Notification_Time',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aaf0e340b54d921a671fc7bb53c1b47bb',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Time()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aca07581dc57dd9865b2f8ea80bca66be',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Time()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a1bd49c1c954575755e75f03e78fc0f6f',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Time()']]], ['textappearance_5fappcompat_5fnotification_5ftime_5fmedia',['TextAppearance_AppCompat_Notification_Time_Media',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a152da3a37324161ed0ab041d41a5bde1',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Time_Media()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a653a5eb1a443fa7df619ae8bb8784c7d',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Time_Media()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aa4587a563484aefb1db0e4d5b224f336',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Time_Media()']]], ['textappearance_5fappcompat_5fnotification_5ftitle',['TextAppearance_AppCompat_Notification_Title',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a45fd73323de80651f60adee1fac94eec',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a552ed39a2724d11b54f61ed329312ca1',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a127d10fe0f3adf2d835b47ae4e382e25',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Title()']]], ['textappearance_5fappcompat_5fnotification_5ftitle_5fmedia',['TextAppearance_AppCompat_Notification_Title_Media',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a94e4f19f08e8e04a18ede2086892c7d4',1,'android.support.design.R.style.TextAppearance_AppCompat_Notification_Title_Media()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aafd8c22828180e8ba7543ed3a6b8ee8c',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Notification_Title_Media()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a7cc306b0e3027ff7d70a05d5ae24f4d5',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Notification_Title_Media()']]], ['textappearance_5fappcompat_5fsearchresult_5fsubtitle',['TextAppearance_AppCompat_SearchResult_Subtitle',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aa74ef0db689e7a9ca4d8eb5bb6ddb39f',1,'android.support.design.R.style.TextAppearance_AppCompat_SearchResult_Subtitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#abc8d67744de25dad47ee20f7558b9e61',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_SearchResult_Subtitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a2bc964ca40240a120fb06169b72c078f',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_SearchResult_Subtitle()']]], ['textappearance_5fappcompat_5fsearchresult_5ftitle',['TextAppearance_AppCompat_SearchResult_Title',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ac1981951ceed0b51f02c35a709d05b59',1,'android.support.design.R.style.TextAppearance_AppCompat_SearchResult_Title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a2bb5c5d5e65b3e1c48527de626155a79',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_SearchResult_Title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a80a2b3a257aa3294f412cfe76cd8466d',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_SearchResult_Title()']]], ['textappearance_5fappcompat_5fsmall',['TextAppearance_AppCompat_Small',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad01c4cdfcd6c9c59bf080f594be9a5fe',1,'android.support.design.R.style.TextAppearance_AppCompat_Small()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a2f18b3bec0af714ec2cbe27b8dc88310',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Small()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aaebdaf0496ad54fb2d5fbcc8d483ae55',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Small()']]], ['textappearance_5fappcompat_5fsmall_5finverse',['TextAppearance_AppCompat_Small_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a51c0b2630a053741b47b8c2809e85733',1,'android.support.design.R.style.TextAppearance_AppCompat_Small_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a3c7b4f535d06f2b882bc1bf42cbccea7',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Small_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a76d08b4d8c3535052494a72cc7a0eceb',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Small_Inverse()']]], ['textappearance_5fappcompat_5fsubhead',['TextAppearance_AppCompat_Subhead',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aacedc78f0110a92c2c299c22125f3ef5',1,'android.support.design.R.style.TextAppearance_AppCompat_Subhead()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a898c904d8860090b71256fea299d0331',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Subhead()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a1704beb71b94c5de60454a5410b585d5',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Subhead()']]], ['textappearance_5fappcompat_5fsubhead_5finverse',['TextAppearance_AppCompat_Subhead_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a09683f1d91752d44db1f8c8be6d4d501',1,'android.support.design.R.style.TextAppearance_AppCompat_Subhead_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ad5e427783ecc5b5eb78038cc5e29ecc8',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Subhead_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ab770de5e0da3e3206971167fb1c5aac2',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Subhead_Inverse()']]], ['textappearance_5fappcompat_5ftitle',['TextAppearance_AppCompat_Title',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad05526165d88021b2df0f8928fc2ee6d',1,'android.support.design.R.style.TextAppearance_AppCompat_Title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a673070a66526923c44e85b82bfeed62d',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ac9bc9bc586e9623546be922401547330',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Title()']]], ['textappearance_5fappcompat_5ftitle_5finverse',['TextAppearance_AppCompat_Title_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a8f9745ee1bf804c7d2e699cc8c9816d7',1,'android.support.design.R.style.TextAppearance_AppCompat_Title_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a53b6dccae2ab8fbf4a64fa6e8b3e4952',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Title_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a78adf6793c1bf29f80484c299c563656',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Title_Inverse()']]], ['textappearance_5fappcompat_5fwidget_5factionbar_5fmenu',['TextAppearance_AppCompat_Widget_ActionBar_Menu',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a86a5d5ff68181041becf5bb70064877c',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionBar_Menu()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a42bd18afa75f3029cd3cba58b6dbbd97',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionBar_Menu()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ad54df7e847c87714cb04038adc0b1556',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionBar_Menu()']]], ['textappearance_5fappcompat_5fwidget_5factionbar_5fsubtitle',['TextAppearance_AppCompat_Widget_ActionBar_Subtitle',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a3a033a71413fc909da5a3688e40ae1d5',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionBar_Subtitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a060fdc4b1fab528d2a11af1ff7af10a8',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionBar_Subtitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a23d63125a130f46c4874db7923da593b',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionBar_Subtitle()']]], ['textappearance_5fappcompat_5fwidget_5factionbar_5fsubtitle_5finverse',['TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aa4ba43c3f0e2503bca1b293e5f7fa921',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ad09887d0863f622563a04c345872e644',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a3d4efce38b05ac28e2e8a45308968b5e',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse()']]], ['textappearance_5fappcompat_5fwidget_5factionbar_5ftitle',['TextAppearance_AppCompat_Widget_ActionBar_Title',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aaaab7e3d3971a6f10bb562b456a880ce',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionBar_Title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a85ad5971aea90f7ccb526eb8740109e5',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionBar_Title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a4f097e94da780870dcc89fb0f50648eb',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionBar_Title()']]], ['textappearance_5fappcompat_5fwidget_5factionbar_5ftitle_5finverse',['TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a2722bf365f89efd965c2db9d167ded91',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aae56fc22cd4a5422e5bbd3527cdfbca8',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a297cff724d9ded11cb9120644a9d2400',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse()']]], ['textappearance_5fappcompat_5fwidget_5factionmode_5fsubtitle',['TextAppearance_AppCompat_Widget_ActionMode_Subtitle',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a88f869ee4fba3220eafc9e864ca53331',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionMode_Subtitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ae80b6fd99f5c558c8631bf51e84be10f',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionMode_Subtitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#add1e077dd250e0fd0b646ed524b1a314',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionMode_Subtitle()']]], ['textappearance_5fappcompat_5fwidget_5factionmode_5fsubtitle_5finverse',['TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a327b34a8b3d0970314966a1afc1fbad0',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ace2e9bee4fbb10f73b009e25320c6497',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a80d393f9f4109e4b861d6d78b4e1b6f4',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse()']]], ['textappearance_5fappcompat_5fwidget_5factionmode_5ftitle',['TextAppearance_AppCompat_Widget_ActionMode_Title',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a76c4a04f6f0f71fecc0e75b34c0aa6a0',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionMode_Title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a8916bfb355f4339b9c42ba1331eb478d',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionMode_Title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ac61b9ca9ff5ff1c0fafaa54b9a12a0b5',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionMode_Title()']]], ['textappearance_5fappcompat_5fwidget_5factionmode_5ftitle_5finverse',['TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aad2554eae3444b77e7be2d9754c380f8',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aac3e1610afd8a4516c6eccd16ee4476f',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a7056722ce512b051e9a28cd253fbd824',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse()']]], ['textappearance_5fappcompat_5fwidget_5fbutton',['TextAppearance_AppCompat_Widget_Button',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a5af41ce514978fd38404e848b723b5ae',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_Button()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a727c66b567829dccd9c00810cf31f225',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_Button()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a3ea8c3b0d0a84d61e4c6b31f452a07da',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_Button()']]], ['textappearance_5fappcompat_5fwidget_5fbutton_5fborderless_5fcolored',['TextAppearance_AppCompat_Widget_Button_Borderless_Colored',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a7fbd0962654b7e24b60836a045beb67b',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_Button_Borderless_Colored()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a7046ffbded4909cefd30ce237eb1ac8e',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_Button_Borderless_Colored()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a53fb66296010a96b30faa31fe4128c29',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_Button_Borderless_Colored()']]], ['textappearance_5fappcompat_5fwidget_5fbutton_5fcolored',['TextAppearance_AppCompat_Widget_Button_Colored',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a733e1e98437c5657d194de9d0d94f9be',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_Button_Colored()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a3ee8166f982b74964bde96f9da028b09',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_Button_Colored()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a3a1f2c006432dc44b766420f63c4f2c9',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_Button_Colored()']]], ['textappearance_5fappcompat_5fwidget_5fbutton_5finverse',['TextAppearance_AppCompat_Widget_Button_Inverse',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ae2c7ba38fc4c6f627225328c5e11bde9',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_Button_Inverse()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ac142dc7e75b7e898146711016297324e',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_Button_Inverse()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a1fbbc8e8982e5725c0f3adea5e1d97fe',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_Button_Inverse()']]], ['textappearance_5fappcompat_5fwidget_5fdropdownitem',['TextAppearance_AppCompat_Widget_DropDownItem',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a85111e6e10aa78550520255cf9807a59',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_DropDownItem()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a324d7ce5b9cf28cccb21d06ec310517e',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_DropDownItem()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a021afa8121a3ac1a5435bdb971b5ebdf',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_DropDownItem()']]], ['textappearance_5fappcompat_5fwidget_5fpopupmenu_5fheader',['TextAppearance_AppCompat_Widget_PopupMenu_Header',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a967c5cd773fb811beca02b78c978368a',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Header()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a6429436d9eea603ce9b9fbafd23187e7',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Header()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ab2b5203397650e8130642620c41ac1ee',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Header()']]], ['textappearance_5fappcompat_5fwidget_5fpopupmenu_5flarge',['TextAppearance_AppCompat_Widget_PopupMenu_Large',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ac31cc585803346f3237a75da48107a04',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Large()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#acddbaf164ab34ab838b8cd518569c0c7',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Large()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ad114f70a1129fe8389495871f0392fa0',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Large()']]], ['textappearance_5fappcompat_5fwidget_5fpopupmenu_5fsmall',['TextAppearance_AppCompat_Widget_PopupMenu_Small',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a4be044c1dccfdfd0fc8caef81efad1bd',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Small()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a0bd9421bc05565e838564318f68e8109',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Small()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a1d5e4c77edea6a0ec8e293cc15a180b5',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_PopupMenu_Small()']]], ['textappearance_5fappcompat_5fwidget_5fswitch',['TextAppearance_AppCompat_Widget_Switch',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a235664d14c9d1c9eb319a06fca1e7647',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_Switch()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a044e8db0d422a2d88ab08436b642f8f1',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_Switch()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a488870e2ad3c4f54297194edf1f437fe',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_Switch()']]], ['textappearance_5fappcompat_5fwidget_5ftextview_5fspinneritem',['TextAppearance_AppCompat_Widget_TextView_SpinnerItem',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad467a646dc2a35f3211088174bdaa35a',1,'android.support.design.R.style.TextAppearance_AppCompat_Widget_TextView_SpinnerItem()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a7122ada05dc3c4ad71c8ed067b0bf22e',1,'android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_TextView_SpinnerItem()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a2b3481ce21f6660a68b10d17c3e80918',1,'pl.komunikator.komunikator.R.style.TextAppearance_AppCompat_Widget_TextView_SpinnerItem()']]], ['textappearance_5fdesign_5fcollapsingtoolbar_5fexpanded',['TextAppearance_Design_CollapsingToolbar_Expanded',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a4467f1c04bd3fe1131c546ec3b57a5f9',1,'android.support.design.R.style.TextAppearance_Design_CollapsingToolbar_Expanded()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a2f2e580ebba7ebe16520a31bf9c26890',1,'pl.komunikator.komunikator.R.style.TextAppearance_Design_CollapsingToolbar_Expanded()']]], ['textappearance_5fdesign_5fcounter',['TextAppearance_Design_Counter',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a88c783c0b5d4d0703e95a3de58a29d41',1,'android.support.design.R.style.TextAppearance_Design_Counter()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a2562bb30a277bede0390a0cbd38c5cb8',1,'pl.komunikator.komunikator.R.style.TextAppearance_Design_Counter()']]], ['textappearance_5fdesign_5fcounter_5foverflow',['TextAppearance_Design_Counter_Overflow',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a3a009f705c884d470f8e7a76912e3a93',1,'android.support.design.R.style.TextAppearance_Design_Counter_Overflow()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a377f4270075991bf69e4c9479c045464',1,'pl.komunikator.komunikator.R.style.TextAppearance_Design_Counter_Overflow()']]], ['textappearance_5fdesign_5ferror',['TextAppearance_Design_Error',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#accab8ab0c293a8370ea192578d8dbcec',1,'android.support.design.R.style.TextAppearance_Design_Error()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a1ab6e846dda871080ba3ee5d02051d01',1,'pl.komunikator.komunikator.R.style.TextAppearance_Design_Error()']]], ['textappearance_5fdesign_5fhint',['TextAppearance_Design_Hint',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a2b8b92db31ec208aacc3f0d62cedec8b',1,'android.support.design.R.style.TextAppearance_Design_Hint()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#affe5df5d90bcb996d509b6de76591723',1,'pl.komunikator.komunikator.R.style.TextAppearance_Design_Hint()']]], ['textappearance_5fdesign_5fsnackbar_5fmessage',['TextAppearance_Design_Snackbar_Message',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ac85d0ef831a6f8f8ea0ff291900abc78',1,'android.support.design.R.style.TextAppearance_Design_Snackbar_Message()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ac15cc6b86c9c08283e099deb612fc54f',1,'pl.komunikator.komunikator.R.style.TextAppearance_Design_Snackbar_Message()']]], ['textappearance_5fdesign_5ftab',['TextAppearance_Design_Tab',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ae7a00e72875b359ac34740afb028c67d',1,'android.support.design.R.style.TextAppearance_Design_Tab()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a0f6bb4dd296e41e9b6f4b4e63b20200b',1,'pl.komunikator.komunikator.R.style.TextAppearance_Design_Tab()']]], ['textappearance_5fstatusbar_5feventcontent',['TextAppearance_StatusBar_EventContent',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a4e9980404e1bb076718a926f8cc126dc',1,'android.support.design.R.style.TextAppearance_StatusBar_EventContent()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a45e86f61454f8ebea874b3510c156088',1,'android.support.v7.appcompat.R.style.TextAppearance_StatusBar_EventContent()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a6d54474b52ec1ed258c85d0997e75abb',1,'pl.komunikator.komunikator.R.style.TextAppearance_StatusBar_EventContent()']]], ['textappearance_5fstatusbar_5feventcontent_5finfo',['TextAppearance_StatusBar_EventContent_Info',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aa91ffb500f43744b59f5dab707e234c5',1,'android.support.design.R.style.TextAppearance_StatusBar_EventContent_Info()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a51821eaa8d46d767b779201438f7a60d',1,'android.support.v7.appcompat.R.style.TextAppearance_StatusBar_EventContent_Info()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a37fe5df66d0b819280382143580a637f',1,'pl.komunikator.komunikator.R.style.TextAppearance_StatusBar_EventContent_Info()']]], ['textappearance_5fstatusbar_5feventcontent_5fline2',['TextAppearance_StatusBar_EventContent_Line2',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ab14526186d20ab6c5d08c69ee5c4a278',1,'android.support.design.R.style.TextAppearance_StatusBar_EventContent_Line2()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#afeb41d7f55218369d42d124e38bdf88f',1,'android.support.v7.appcompat.R.style.TextAppearance_StatusBar_EventContent_Line2()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a3e9227fdaf8025d9703b705b7af29fa8',1,'pl.komunikator.komunikator.R.style.TextAppearance_StatusBar_EventContent_Line2()']]], ['textappearance_5fstatusbar_5feventcontent_5ftime',['TextAppearance_StatusBar_EventContent_Time',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a6eb511649f8dd52cc370222ab9be0cca',1,'android.support.design.R.style.TextAppearance_StatusBar_EventContent_Time()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a52296737aad32af06c98357b2616fb96',1,'android.support.v7.appcompat.R.style.TextAppearance_StatusBar_EventContent_Time()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aa685bec4d2eb79266bf10e4be930553c',1,'pl.komunikator.komunikator.R.style.TextAppearance_StatusBar_EventContent_Time()']]], ['textappearance_5fstatusbar_5feventcontent_5ftitle',['TextAppearance_StatusBar_EventContent_Title',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a095d53ab5cb0c98936105ccebb019a28',1,'android.support.design.R.style.TextAppearance_StatusBar_EventContent_Title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a066629ed4a8da87c885a0cbfbd6e3db5',1,'android.support.v7.appcompat.R.style.TextAppearance_StatusBar_EventContent_Title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a287475122679e2bd741e461b97157ff3',1,'pl.komunikator.komunikator.R.style.TextAppearance_StatusBar_EventContent_Title()']]], ['textappearance_5ftextallcaps',['TextAppearance_textAllCaps',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a9222a2b9d5bbe0564ce516e6b451f89c',1,'android.support.design.R.styleable.TextAppearance_textAllCaps()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#af8c701cb6175c8b9e88e66d3cd60ed12',1,'android.support.v7.appcompat.R.styleable.TextAppearance_textAllCaps()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#afcfa2100394c0018b8b3b35730aa5f3f',1,'pl.komunikator.komunikator.R.styleable.TextAppearance_textAllCaps()']]], ['textappearance_5fwidget_5fappcompat_5fexpandedmenu_5fitem',['TextAppearance_Widget_AppCompat_ExpandedMenu_Item',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a3d3c649896fe547217bf1e3a5f7c2c2e',1,'android.support.design.R.style.TextAppearance_Widget_AppCompat_ExpandedMenu_Item()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#af4b9716161695143ddd2776e7821bfd3',1,'android.support.v7.appcompat.R.style.TextAppearance_Widget_AppCompat_ExpandedMenu_Item()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#af66665e973d8507624e894c6185b6254',1,'pl.komunikator.komunikator.R.style.TextAppearance_Widget_AppCompat_ExpandedMenu_Item()']]], ['textappearance_5fwidget_5fappcompat_5ftoolbar_5fsubtitle',['TextAppearance_Widget_AppCompat_Toolbar_Subtitle',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ab87eda6737968b821619555803a66662',1,'android.support.design.R.style.TextAppearance_Widget_AppCompat_Toolbar_Subtitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ac0dfcde296d98d6934a405e562bcb03a',1,'android.support.v7.appcompat.R.style.TextAppearance_Widget_AppCompat_Toolbar_Subtitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a085f2a3e4dfa032b8f712a09f9d4c74a',1,'pl.komunikator.komunikator.R.style.TextAppearance_Widget_AppCompat_Toolbar_Subtitle()']]], ['textappearance_5fwidget_5fappcompat_5ftoolbar_5ftitle',['TextAppearance_Widget_AppCompat_Toolbar_Title',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad45bedf9c7a7f9f80fc30792d23c9998',1,'android.support.design.R.style.TextAppearance_Widget_AppCompat_Toolbar_Title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a28d5448998ba455f9737b0c596c86e4c',1,'android.support.v7.appcompat.R.style.TextAppearance_Widget_AppCompat_Toolbar_Title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a84875de4b9629ab43a2f182ff9a35a28',1,'pl.komunikator.komunikator.R.style.TextAppearance_Widget_AppCompat_Toolbar_Title()']]], ['textappearancelargepopupmenu',['textAppearanceLargePopupMenu',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a6a1db4cc00a586f8355a39fb984dfdca',1,'android.support.design.R.attr.textAppearanceLargePopupMenu()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a74709df50c1106d494db194f4d3b6c0c',1,'android.support.v7.appcompat.R.attr.textAppearanceLargePopupMenu()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a5dad501d332b91aca5a015627e0bc9c3',1,'pl.komunikator.komunikator.R.attr.textAppearanceLargePopupMenu()']]], ['textappearancelistitem',['textAppearanceListItem',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#adb54fe09750c1f317ebcb76f3581535a',1,'android.support.design.R.attr.textAppearanceListItem()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#ad63a659a75f2e87efb7d90fec4edd4b5',1,'android.support.v7.appcompat.R.attr.textAppearanceListItem()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ab08a2e6b7c01993070b88a4d45255efc',1,'pl.komunikator.komunikator.R.attr.textAppearanceListItem()']]], ['textappearancelistitemsmall',['textAppearanceListItemSmall',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a88255c007925fe926ee195f8ecd9102c',1,'android.support.design.R.attr.textAppearanceListItemSmall()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#abda379e68781ab8c707c66b040ac9a62',1,'android.support.v7.appcompat.R.attr.textAppearanceListItemSmall()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a470447e770faf1896c21dbe16eff65f9',1,'pl.komunikator.komunikator.R.attr.textAppearanceListItemSmall()']]], ['textappearancepopupmenuheader',['textAppearancePopupMenuHeader',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a9fd27705390fdfa05f1175e77fc55215',1,'android.support.design.R.attr.textAppearancePopupMenuHeader()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#ae58c369de116e689fb7c5f730d34bcf5',1,'android.support.v7.appcompat.R.attr.textAppearancePopupMenuHeader()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a34f01cf2eff1aa0a6f79c27263615f3b',1,'pl.komunikator.komunikator.R.attr.textAppearancePopupMenuHeader()']]], ['textappearancesearchresultsubtitle',['textAppearanceSearchResultSubtitle',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a589eba96297a5cbf1c44b17b52462d47',1,'android.support.design.R.attr.textAppearanceSearchResultSubtitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a2651df0f5401849b71cff71b656297fe',1,'android.support.v7.appcompat.R.attr.textAppearanceSearchResultSubtitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a7d3e9b6a396a4ce031ab686e89280a4e',1,'pl.komunikator.komunikator.R.attr.textAppearanceSearchResultSubtitle()']]], ['textappearancesearchresulttitle',['textAppearanceSearchResultTitle',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#adfd41707242fb4edba11e3532b4e0e0c',1,'android.support.design.R.attr.textAppearanceSearchResultTitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a910447f9a3116783170bf3da8baf3666',1,'android.support.v7.appcompat.R.attr.textAppearanceSearchResultTitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a5d2d1c21ea36aea76f17e7cd68c41b6b',1,'pl.komunikator.komunikator.R.attr.textAppearanceSearchResultTitle()']]], ['textappearancesmallpopupmenu',['textAppearanceSmallPopupMenu',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a0456fca18bac043ad1ac869f567a37d2',1,'android.support.design.R.attr.textAppearanceSmallPopupMenu()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#aad4315d4193f9362eaea2020b29b265a',1,'android.support.v7.appcompat.R.attr.textAppearanceSmallPopupMenu()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a8965ccdd149339cc7c9533860d6c7b8a',1,'pl.komunikator.komunikator.R.attr.textAppearanceSmallPopupMenu()']]], ['textcoloralertdialoglistitem',['textColorAlertDialogListItem',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a662d370f1b26a96ef3a6cfb38fd88262',1,'android.support.design.R.attr.textColorAlertDialogListItem()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a8fac1b5ad37c5960fe92a3fa9c5ad14d',1,'android.support.v7.appcompat.R.attr.textColorAlertDialogListItem()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a672a3ddaf17f808614c1f58be6b77ec4',1,'pl.komunikator.komunikator.R.attr.textColorAlertDialogListItem()']]], ['textcolorerror',['textColorError',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a7e86019393a4c821c9ad53322dab2114',1,'android.support.design.R.attr.textColorError()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a3487c27cfa9ab77d9731f872fd463562',1,'pl.komunikator.komunikator.R.attr.textColorError()']]], ['textcolorsearchurl',['textColorSearchUrl',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a3a48c2a0b795f2f217674c7fd606364e',1,'android.support.design.R.attr.textColorSearchUrl()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a90c011a6893d57e7ac36d2f522dac1ac',1,'android.support.v7.appcompat.R.attr.textColorSearchUrl()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#acb9fdc435ff48adc869144bcfe72eeeb',1,'pl.komunikator.komunikator.R.attr.textColorSearchUrl()']]], ['textinput_5fcounter',['textinput_counter',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a3e209a8a91205164870a6a2004def118',1,'android.support.design.R.id.textinput_counter()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#accd15162bef4e1ca04d8b38700ebd71c',1,'pl.komunikator.komunikator.R.id.textinput_counter()']]], ['textinput_5ferror',['textinput_error',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a2f78eeb6c053613a83de5e30874f4842',1,'android.support.design.R.id.textinput_error()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a577cc84937d4b773fdef8262f309a7c6',1,'pl.komunikator.komunikator.R.id.textinput_error()']]], ['textinputlayout',['TextInputLayout',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ae01fd2fce65dc8639f3898586b0cedcf',1,'android.support.design.R.styleable.TextInputLayout()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a6c6644c5fd7d756057769b79ef14c50c',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout()']]], ['textinputlayout_5fandroid_5fhint',['TextInputLayout_android_hint',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#acacd639ef9f0f53a5980cca280c4454d',1,'android.support.design.R.styleable.TextInputLayout_android_hint()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a962531113f39234f6b7c9646c879c858',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_android_hint()']]], ['textinputlayout_5fandroid_5ftextcolorhint',['TextInputLayout_android_textColorHint',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ab77cba46b196f367d3323117ad3f3e37',1,'android.support.design.R.styleable.TextInputLayout_android_textColorHint()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#afb0380efd8268583098d5664c623c004',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_android_textColorHint()']]], ['textinputlayout_5fcounterenabled',['TextInputLayout_counterEnabled',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a0b04736f1937ba38deb9170778f6d5a1',1,'android.support.design.R.styleable.TextInputLayout_counterEnabled()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#afbf6d949a943d3e635c514488c20212f',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_counterEnabled()']]], ['textinputlayout_5fcountermaxlength',['TextInputLayout_counterMaxLength',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a556b29734154f6ea1a537f88e10da948',1,'android.support.design.R.styleable.TextInputLayout_counterMaxLength()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a45481f9acba3e4b7cb4a767b0b2c0f04',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_counterMaxLength()']]], ['textinputlayout_5fcounteroverflowtextappearance',['TextInputLayout_counterOverflowTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a45b455acc3c3acb00f7a36db187d9476',1,'android.support.design.R.styleable.TextInputLayout_counterOverflowTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a6943e4603eba50889351af662bc86aec',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_counterOverflowTextAppearance()']]], ['textinputlayout_5fcountertextappearance',['TextInputLayout_counterTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ab6dcd12d97c289aa435c8e54b432300e',1,'android.support.design.R.styleable.TextInputLayout_counterTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a466b72db93214129067d204974de0e87',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_counterTextAppearance()']]], ['textinputlayout_5ferrorenabled',['TextInputLayout_errorEnabled',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ae2e5a1172c99efe3544ea5ffdaac92b6',1,'android.support.design.R.styleable.TextInputLayout_errorEnabled()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a2ca595ca069e60ecd8c62663f09eb3a7',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_errorEnabled()']]], ['textinputlayout_5ferrortextappearance',['TextInputLayout_errorTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a4d09e62deb1742d02e30465768411166',1,'android.support.design.R.styleable.TextInputLayout_errorTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ac7e579b50b4d1295eccf707f198cb3b5',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_errorTextAppearance()']]], ['textinputlayout_5fhintanimationenabled',['TextInputLayout_hintAnimationEnabled',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a62485d8990046222153bfc36f409acb4',1,'android.support.design.R.styleable.TextInputLayout_hintAnimationEnabled()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a5176654505aa04295fbb381318c00172',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_hintAnimationEnabled()']]], ['textinputlayout_5fhintenabled',['TextInputLayout_hintEnabled',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a41e9545f0ccf662d796d06d6b67e254b',1,'android.support.design.R.styleable.TextInputLayout_hintEnabled()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#aa9505b2c69502fce1a5a4ee49dca7785',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_hintEnabled()']]], ['textinputlayout_5fhinttextappearance',['TextInputLayout_hintTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a2d3b7ce259d0043d39a949a759dd729d',1,'android.support.design.R.styleable.TextInputLayout_hintTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a354a659883ad3729834a5c1bd31e715c',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_hintTextAppearance()']]], ['textinputlayout_5fpasswordtogglecontentdescription',['TextInputLayout_passwordToggleContentDescription',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ab3a09db55a9bd8349fd2d14ce511a7d1',1,'android.support.design.R.styleable.TextInputLayout_passwordToggleContentDescription()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a06f3c78b8487baa25bf14f510676d2f3',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_passwordToggleContentDescription()']]], ['textinputlayout_5fpasswordtoggledrawable',['TextInputLayout_passwordToggleDrawable',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a0559e804ed9bbab5f177abc693e96238',1,'android.support.design.R.styleable.TextInputLayout_passwordToggleDrawable()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ac848161eb43b937b47f5a5ce600e32ed',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_passwordToggleDrawable()']]], ['textinputlayout_5fpasswordtoggleenabled',['TextInputLayout_passwordToggleEnabled',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ab9f843954b547744d3c583c046a1ae25',1,'android.support.design.R.styleable.TextInputLayout_passwordToggleEnabled()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a9a1812170f8d09e2eec56cbf06010c80',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_passwordToggleEnabled()']]], ['textinputlayout_5fpasswordtoggletint',['TextInputLayout_passwordToggleTint',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a561ddb9abdf72013c7c9f63ed6e3ce57',1,'android.support.design.R.styleable.TextInputLayout_passwordToggleTint()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a989bf86011046bffbec45a1be43d5a1c',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_passwordToggleTint()']]], ['textinputlayout_5fpasswordtoggletintmode',['TextInputLayout_passwordToggleTintMode',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#aafbf1a87eadb8c4597771e237a0ca57b',1,'android.support.design.R.styleable.TextInputLayout_passwordToggleTintMode()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a0909e56bbad5b023c50c6f04eeef630c',1,'pl.komunikator.komunikator.R.styleable.TextInputLayout_passwordToggleTintMode()']]], ['textspacernobuttons',['textSpacerNoButtons',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a56c833c59cf9349be24f83f9e9dea560',1,'android.support.design.R.id.textSpacerNoButtons()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#a8ea861bc6460b6ef63f07beabc5cb74e',1,'android.support.v7.appcompat.R.id.textSpacerNoButtons()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a5d8291e5e3fb2bf7a7f440f086b79369',1,'pl.komunikator.komunikator.R.id.textSpacerNoButtons()']]], ['textspacernotitle',['textSpacerNoTitle',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#ac4df85eb99a5c88371d15995269b0cd6',1,'android.support.design.R.id.textSpacerNoTitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#a65a1b7cb9dae5e4f54980d2dd6dc3e38',1,'android.support.v7.appcompat.R.id.textSpacerNoTitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a0a8eda02e46744e8b6c734661e9c0538',1,'pl.komunikator.komunikator.R.id.textSpacerNoTitle()']]], ['textview',['textView',['../classpl_1_1komunikator_1_1komunikator_1_1view_holder_1_1_empty_view_holder.html#af478064deba22068417d33d8359b9fdb',1,'pl::komunikator::komunikator::viewHolder::EmptyViewHolder']]], ['theme',['theme',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ae8f71f29f7bb0402c673e98fc94ee2fa',1,'android.support.design.R.attr.theme()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a182cfd2eff31084c29174d1a2ab3ada2',1,'android.support.v7.appcompat.R.attr.theme()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#aafa90681b3dd14c74bea1f4aed6d3a58',1,'pl.komunikator.komunikator.R.attr.theme()']]], ['theme_5fappcompat',['Theme_AppCompat',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a47abe16cf2c44a07f0ea97b28021e096',1,'android.support.design.R.style.Theme_AppCompat()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a36039e9a627267e186a60d97337bdde1',1,'android.support.v7.appcompat.R.style.Theme_AppCompat()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#abce39b3d5617848fabdcaac152ef8bef',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat()']]], ['theme_5fappcompat_5fcompactmenu',['Theme_AppCompat_CompactMenu',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#af28bb64d8932aa6cd8d8b7c0dce5dc85',1,'android.support.design.R.style.Theme_AppCompat_CompactMenu()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#af47c390e032a3ca9e7d85968a3f4fa18',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_CompactMenu()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a8b87c1056d3640cec0d30fd86aeb8cb8',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_CompactMenu()']]], ['theme_5fappcompat_5fdaynight',['Theme_AppCompat_DayNight',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a700fdd059b4bd7eb2b2e636cd4a323de',1,'android.support.design.R.style.Theme_AppCompat_DayNight()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a0bd87a3cb5e158003deb1020c305c307',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_DayNight()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a3f5357bfb076669950290b087643576f',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_DayNight()']]], ['theme_5fappcompat_5fdaynight_5fdarkactionbar',['Theme_AppCompat_DayNight_DarkActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a5eb940eb578df92cfd2b8bb1b6d3aee3',1,'android.support.design.R.style.Theme_AppCompat_DayNight_DarkActionBar()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a21219f3ff51227951dcff1c9bd11f3bb',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_DayNight_DarkActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a6294b5ce41928c771977716b06a56acd',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_DayNight_DarkActionBar()']]], ['theme_5fappcompat_5fdaynight_5fdialog',['Theme_AppCompat_DayNight_Dialog',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a438591c36b44ecebfae3881c33ef57b7',1,'android.support.design.R.style.Theme_AppCompat_DayNight_Dialog()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a29dc92c08e480c08989382431640f698',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_DayNight_Dialog()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a988eec513ade77677cc20b900406663f',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_DayNight_Dialog()']]], ['theme_5fappcompat_5fdaynight_5fdialog_5falert',['Theme_AppCompat_DayNight_Dialog_Alert',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a817ac42257661b14c85637671bbfb502',1,'android.support.design.R.style.Theme_AppCompat_DayNight_Dialog_Alert()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a3929f888539feb62f14e6aca27d3737f',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_DayNight_Dialog_Alert()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a1b325d98bf720ade71accee186cad6af',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_DayNight_Dialog_Alert()']]], ['theme_5fappcompat_5fdaynight_5fdialog_5fminwidth',['Theme_AppCompat_DayNight_Dialog_MinWidth',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a0ff3354e007d5bf0f33b51169db2d927',1,'android.support.design.R.style.Theme_AppCompat_DayNight_Dialog_MinWidth()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ac9786b603f31fd7a6c80b2549e9d238f',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_DayNight_Dialog_MinWidth()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aca79b199c8ecac6a7156b556f1acf79a',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_DayNight_Dialog_MinWidth()']]], ['theme_5fappcompat_5fdaynight_5fdialogwhenlarge',['Theme_AppCompat_DayNight_DialogWhenLarge',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad3e986a7ecad49e4aa2b683263281a2e',1,'android.support.design.R.style.Theme_AppCompat_DayNight_DialogWhenLarge()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#afba4a738702f7eac7bbd3b32e0c5b83e',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_DayNight_DialogWhenLarge()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ad4557b2197f9ca00e9e79f2333d8cfd5',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_DayNight_DialogWhenLarge()']]], ['theme_5fappcompat_5fdaynight_5fnoactionbar',['Theme_AppCompat_DayNight_NoActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#abd2683624e794ff36ad8f50ee4721add',1,'android.support.design.R.style.Theme_AppCompat_DayNight_NoActionBar()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a5f566be860fdec27a832a1cb72e005e4',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_DayNight_NoActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ac358778b710bb240e8f8a26e403e819d',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_DayNight_NoActionBar()']]], ['theme_5fappcompat_5fdialog',['Theme_AppCompat_Dialog',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a68e5f0f49f3cbc58cb530e3977ba8d85',1,'android.support.design.R.style.Theme_AppCompat_Dialog()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aa947f8c647b055078c8ff2b8c77e1729',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Dialog()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a7b653a301c49e07b7fbb24eda5668e12',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Dialog()']]], ['theme_5fappcompat_5fdialog_5falert',['Theme_AppCompat_Dialog_Alert',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad919dfbf7c746414e586fcc4092892ec',1,'android.support.design.R.style.Theme_AppCompat_Dialog_Alert()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ac75a05a56cc31d2f09bcb4f4333ce197',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Dialog_Alert()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a1e39cc6737e363bb1d484a1674757944',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Dialog_Alert()']]], ['theme_5fappcompat_5fdialog_5fminwidth',['Theme_AppCompat_Dialog_MinWidth',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a8340a15f587d3800614ee46322218e0d',1,'android.support.design.R.style.Theme_AppCompat_Dialog_MinWidth()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a7da7f25d0d41b1aedcd0191db68fba8d',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Dialog_MinWidth()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a7644edf0d7240624a534bc22408c1736',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Dialog_MinWidth()']]], ['theme_5fappcompat_5fdialogwhenlarge',['Theme_AppCompat_DialogWhenLarge',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a53b0b06f59f50b329442743a580079d5',1,'android.support.design.R.style.Theme_AppCompat_DialogWhenLarge()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a254c8c935e481bde88dba99a52d72059',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_DialogWhenLarge()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a464101418711fbefaf59c01359b8f9e6',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_DialogWhenLarge()']]], ['theme_5fappcompat_5flight',['Theme_AppCompat_Light',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a919e23b493f57ba6c89a203538a1f629',1,'android.support.design.R.style.Theme_AppCompat_Light()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a23c0b66055cf7effa3936aacc729427f',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Light()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#acc74f5409bdbc59baf22b17abeeb8cab',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Light()']]], ['theme_5fappcompat_5flight_5fdarkactionbar',['Theme_AppCompat_Light_DarkActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a49d9a5053b6943cad2ad50d5d9d27e6c',1,'android.support.design.R.style.Theme_AppCompat_Light_DarkActionBar()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a6de852fddd40a4c6612af07b17de8796',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Light_DarkActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aef5c2c42347159e1bc144f408f6191e3',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Light_DarkActionBar()']]], ['theme_5fappcompat_5flight_5fdialog',['Theme_AppCompat_Light_Dialog',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a9c51a1db3bd57fcb2ed882ed1dd85829',1,'android.support.design.R.style.Theme_AppCompat_Light_Dialog()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a1ebb6bd5786d54f735c9379d2b83720f',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Light_Dialog()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a261a62a569c19cde48193c98298cf582',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Light_Dialog()']]], ['theme_5fappcompat_5flight_5fdialog_5falert',['Theme_AppCompat_Light_Dialog_Alert',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a38330218cb951a3bf1e25e103383efb9',1,'android.support.design.R.style.Theme_AppCompat_Light_Dialog_Alert()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a3154c269ba4155524296e31f2fb85495',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Light_Dialog_Alert()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a57bfb4a46c93c9768ef26e28e92cb888',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Light_Dialog_Alert()']]], ['theme_5fappcompat_5flight_5fdialog_5fminwidth',['Theme_AppCompat_Light_Dialog_MinWidth',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#af2fcec3a17d1266c1aa09404150083c0',1,'android.support.design.R.style.Theme_AppCompat_Light_Dialog_MinWidth()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a31c9ec44a65783612f967848055d20e9',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Light_Dialog_MinWidth()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a1acd3ffa892bf3da97be60e16eccbc94',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Light_Dialog_MinWidth()']]], ['theme_5fappcompat_5flight_5fdialogwhenlarge',['Theme_AppCompat_Light_DialogWhenLarge',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ad18470224513598002203a19f9e9afb2',1,'android.support.design.R.style.Theme_AppCompat_Light_DialogWhenLarge()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ac8cb621e0bc006a8e787cc01fa5a019b',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Light_DialogWhenLarge()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#afbae2c94ab84fba4cf0661ab26046dda',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Light_DialogWhenLarge()']]], ['theme_5fappcompat_5flight_5fnoactionbar',['Theme_AppCompat_Light_NoActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#add69b6a7a05e046750100674904246de',1,'android.support.design.R.style.Theme_AppCompat_Light_NoActionBar()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#ab207bbb6037b2de95c4385c5bb64c186',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_Light_NoActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a69739560130328ca793531b1e40e5550',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_Light_NoActionBar()']]], ['theme_5fappcompat_5fnoactionbar',['Theme_AppCompat_NoActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a908dbe9e5db2dcaaa875b2b3076e6986',1,'android.support.design.R.style.Theme_AppCompat_NoActionBar()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a8519c957330167d04ac87177caf9ae06',1,'android.support.v7.appcompat.R.style.Theme_AppCompat_NoActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aaf9ac2e7390d3d068ce492e3e2984de3',1,'pl.komunikator.komunikator.R.style.Theme_AppCompat_NoActionBar()']]], ['theme_5fdesign',['Theme_Design',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aa6796c89937f6e8b6b04b941eee44a5d',1,'android.support.design.R.style.Theme_Design()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ad817ba180d2452f17e2c6fcca6ed3599',1,'pl.komunikator.komunikator.R.style.Theme_Design()']]], ['theme_5fdesign_5fbottomsheetdialog',['Theme_Design_BottomSheetDialog',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a05188dcbcc8c3841fac2c1daaed4d968',1,'android.support.design.R.style.Theme_Design_BottomSheetDialog()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a97edd93a8e13f10d1d6250ebbd3b88ad',1,'pl.komunikator.komunikator.R.style.Theme_Design_BottomSheetDialog()']]], ['theme_5fdesign_5flight',['Theme_Design_Light',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a27db99a1790aa46efd7c27e61378587a',1,'android.support.design.R.style.Theme_Design_Light()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a3011ae09f6bf7dcb8e4138d5bedbd558',1,'pl.komunikator.komunikator.R.style.Theme_Design_Light()']]], ['theme_5fdesign_5flight_5fbottomsheetdialog',['Theme_Design_Light_BottomSheetDialog',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aefdcef3769b44e270b497ed77e7723c9',1,'android.support.design.R.style.Theme_Design_Light_BottomSheetDialog()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a8a58be50dd512b3beaf48935e4b1bc21',1,'pl.komunikator.komunikator.R.style.Theme_Design_Light_BottomSheetDialog()']]], ['theme_5fdesign_5flight_5fnoactionbar',['Theme_Design_Light_NoActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aeb5bcafc332033d28688b206776ffada',1,'android.support.design.R.style.Theme_Design_Light_NoActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aa4f458fc8d458c4b0c127e904692e2d5',1,'pl.komunikator.komunikator.R.style.Theme_Design_Light_NoActionBar()']]], ['theme_5fdesign_5fnoactionbar',['Theme_Design_NoActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a383114c8b35611f608ba67f8cc1f1803',1,'android.support.design.R.style.Theme_Design_NoActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a8f7f1328aacb35370b73f4c25e97b2d2',1,'pl.komunikator.komunikator.R.style.Theme_Design_NoActionBar()']]], ['themeoverlay_5fappcompat',['ThemeOverlay_AppCompat',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ae88528ab7b6fb65a2a96bef866a513ea',1,'android.support.design.R.style.ThemeOverlay_AppCompat()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a64b85d09de2998a010cefa99b11df028',1,'android.support.v7.appcompat.R.style.ThemeOverlay_AppCompat()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a262689124079a102b47ffa3dd358404c',1,'pl.komunikator.komunikator.R.style.ThemeOverlay_AppCompat()']]], ['themeoverlay_5fappcompat_5factionbar',['ThemeOverlay_AppCompat_ActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ab6f6f318923271179ec1e4216744016d',1,'android.support.design.R.style.ThemeOverlay_AppCompat_ActionBar()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a082b745b4e2430ec34548fd43dabd3c6',1,'android.support.v7.appcompat.R.style.ThemeOverlay_AppCompat_ActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a3a40c847ffd715a81b35c8ca3059e80d',1,'pl.komunikator.komunikator.R.style.ThemeOverlay_AppCompat_ActionBar()']]], ['themeoverlay_5fappcompat_5fdark',['ThemeOverlay_AppCompat_Dark',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a66d45e018d9ab21755dd3dfe91aa7f0a',1,'android.support.design.R.style.ThemeOverlay_AppCompat_Dark()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a153bf2a32f53c4a761520ebb9d57ba46',1,'android.support.v7.appcompat.R.style.ThemeOverlay_AppCompat_Dark()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a36132645144533f7e7b6750d4d3bd4f5',1,'pl.komunikator.komunikator.R.style.ThemeOverlay_AppCompat_Dark()']]], ['themeoverlay_5fappcompat_5fdark_5factionbar',['ThemeOverlay_AppCompat_Dark_ActionBar',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#aa195b492725c39a7a365b9270076be81',1,'android.support.design.R.style.ThemeOverlay_AppCompat_Dark_ActionBar()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a51b51d13caa660cffc430f496874d8dc',1,'android.support.v7.appcompat.R.style.ThemeOverlay_AppCompat_Dark_ActionBar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a4645152e2d6ccb1c2ce196dc18d480aa',1,'pl.komunikator.komunikator.R.style.ThemeOverlay_AppCompat_Dark_ActionBar()']]], ['themeoverlay_5fappcompat_5fdialog',['ThemeOverlay_AppCompat_Dialog',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a4ff8165e69361614a7b6f17506bebed2',1,'android.support.design.R.style.ThemeOverlay_AppCompat_Dialog()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#aef17421b16165eacac83a3c957f994d0',1,'android.support.v7.appcompat.R.style.ThemeOverlay_AppCompat_Dialog()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#aae178cac65e5a4cc1785edcf7ee5c9d1',1,'pl.komunikator.komunikator.R.style.ThemeOverlay_AppCompat_Dialog()']]], ['themeoverlay_5fappcompat_5fdialog_5falert',['ThemeOverlay_AppCompat_Dialog_Alert',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#a65b40e6a0cde1145b8fe60d0be10292d',1,'android.support.design.R.style.ThemeOverlay_AppCompat_Dialog_Alert()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a9cc27c98642ced4bbf8c2324b8c3be33',1,'android.support.v7.appcompat.R.style.ThemeOverlay_AppCompat_Dialog_Alert()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#ae9a071f687a5b21a55fa24483f5a9014',1,'pl.komunikator.komunikator.R.style.ThemeOverlay_AppCompat_Dialog_Alert()']]], ['themeoverlay_5fappcompat_5flight',['ThemeOverlay_AppCompat_Light',['../classandroid_1_1support_1_1design_1_1_r_1_1style.html#ae7401b46ade43c0f9362b4284f5ea048',1,'android.support.design.R.style.ThemeOverlay_AppCompat_Light()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1style.html#a9aee71f01b9ed4c13fef15dcd60b2316',1,'android.support.v7.appcompat.R.style.ThemeOverlay_AppCompat_Light()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1style.html#a32b28cd5375be4a751421eb446c96914',1,'pl.komunikator.komunikator.R.style.ThemeOverlay_AppCompat_Light()']]], ['thickness',['thickness',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ad6da1795dd352215632c62593b260870',1,'android.support.design.R.attr.thickness()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#ad8eecd497c12c8ccd6ad92168b2e3aec',1,'android.support.v7.appcompat.R.attr.thickness()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a68cf96a5399a129428629eba248a7a2b',1,'pl.komunikator.komunikator.R.attr.thickness()']]], ['thumbtextpadding',['thumbTextPadding',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a54e1b26aa0d6ec5ddefa2a11fbf42d9f',1,'android.support.design.R.attr.thumbTextPadding()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#aec2704ebce5f1829511eee80aa7c16cf',1,'android.support.v7.appcompat.R.attr.thumbTextPadding()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a31b4d5d09410ef811a545bec65eb81da',1,'pl.komunikator.komunikator.R.attr.thumbTextPadding()']]], ['thumbtint',['thumbTint',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#acfdbc1cd87de8b7d0a0f49a5752347e4',1,'android.support.design.R.attr.thumbTint()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#acfe04bf2bd21989662fb27261b896513',1,'android.support.v7.appcompat.R.attr.thumbTint()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#af4feac13fbc1cfd61c5d79ebd053b6ea',1,'pl.komunikator.komunikator.R.attr.thumbTint()']]], ['thumbtintmode',['thumbTintMode',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ad99fa1d6324c942b77dce306aca37a80',1,'android.support.design.R.attr.thumbTintMode()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a297f9715165a2c2b08288626b9168091',1,'android.support.v7.appcompat.R.attr.thumbTintMode()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#afaeed42bda39c0970d5b397921b09d20',1,'pl.komunikator.komunikator.R.attr.thumbTintMode()']]], ['tickmark',['tickMark',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a2c15ab478502b879ebe97ef2d4c408b9',1,'android.support.design.R.attr.tickMark()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a938957cf3c3bced2a192ad119530c33c',1,'android.support.v7.appcompat.R.attr.tickMark()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ae0af5bb943fb010fece292252b775eb9',1,'pl.komunikator.komunikator.R.attr.tickMark()']]], ['tickmarktint',['tickMarkTint',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a3059c83834df5f9a78fc7f4c496e5c1c',1,'android.support.design.R.attr.tickMarkTint()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a8d423c0748d4348dba773edc32f4ba66',1,'android.support.v7.appcompat.R.attr.tickMarkTint()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a6579ac93321865653290fd9e8a8e23af',1,'pl.komunikator.komunikator.R.attr.tickMarkTint()']]], ['tickmarktintmode',['tickMarkTintMode',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a27b2ab5fb17a495f470dfb62f0b66d17',1,'android.support.design.R.attr.tickMarkTintMode()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#ab3e5ef28ce3471ab53b2318aa990f48a',1,'android.support.v7.appcompat.R.attr.tickMarkTintMode()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ac49c646666cbdeb9fe3d8abd29a67204',1,'pl.komunikator.komunikator.R.attr.tickMarkTintMode()']]], ['time',['time',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#ab05973571013eeb8a42479f708d42317',1,'android.support.design.R.id.time()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#ae0962952dcceb61085f705f21bb7929c',1,'android.support.v7.appcompat.R.id.time()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#af40ccfe91952cdaa93d40c9d2062347f',1,'pl.komunikator.komunikator.R.id.time()']]], ['title',['title',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a457bf617809270ed8af320d41357f187',1,'android.support.design.R.attr.title()'],['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a15e74af9346f557351ae9e43a3ab4da1',1,'android.support.design.R.id.title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a5c7c9d2df9addf881809723588ed65a5',1,'android.support.v7.appcompat.R.attr.title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#a6c5ab3c0af64adc83824ccd5a9619c44',1,'android.support.v7.appcompat.R.id.title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a15d2bf778465a7ce02da25475960f27d',1,'pl.komunikator.komunikator.R.attr.title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a013edbe460896cbe7acbeee1f72300a0',1,'pl.komunikator.komunikator.R.id.title()']]], ['title_5faction_5flocation',['title_action_location',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1string.html#a205257b89c888e0405bd3cfd9ef85926',1,'pl::komunikator::komunikator::R::string']]], ['title_5faction_5fsearch',['title_action_search',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1string.html#ae6f7fa25358ff26122fcc1ea3b177315',1,'pl::komunikator::komunikator::R::string']]], ['title_5factivity_5fconversations_5flist',['title_activity_conversations_list',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1string.html#a71405f4184cc629c444cc5e75ef2658a',1,'pl::komunikator::komunikator::R::string']]], ['title_5factivity_5fdetails',['title_activity_details',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1string.html#ab5927fb78a6a6cdcaba508f7d5e58310',1,'pl::komunikator::komunikator::R::string']]], ['title_5fsettings',['title_settings',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1string.html#a4394872111991050449b5ff84148cbaa',1,'pl::komunikator::komunikator::R::string']]], ['title_5ftemplate',['title_template',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a9a4ba99ff46ad16c6c732490f0740ffd',1,'android.support.design.R.id.title_template()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#ad1a2ef4de6c56ea12952f3dcb5583365',1,'android.support.v7.appcompat.R.id.title_template()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#af0c1cfb5623e8da8bbe42dd03c7978bc',1,'pl.komunikator.komunikator.R.id.title_template()']]], ['titledividernocustom',['titleDividerNoCustom',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a3685419c81ad5d66fb1cef37917b8008',1,'android.support.design.R.id.titleDividerNoCustom()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#a9f52841478efd3906465f2ff95e2a5f0',1,'android.support.v7.appcompat.R.id.titleDividerNoCustom()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#aa7c053cb706df3f4c0e58dd6936cd545',1,'pl.komunikator.komunikator.R.id.titleDividerNoCustom()']]], ['titleenabled',['titleEnabled',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a4dde193ec35594da99607aa85ad0b723',1,'android.support.design.R.attr.titleEnabled()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ad9a3e28a035948bcdf34bde3635b9ec5',1,'pl.komunikator.komunikator.R.attr.titleEnabled()']]], ['titlemargin',['titleMargin',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ab556bea2b89951d8a589842449ab2194',1,'android.support.design.R.attr.titleMargin()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a166c6c95d482bb92ed6a1f88b311dd71',1,'android.support.v7.appcompat.R.attr.titleMargin()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a253d10280d7e0d92cb3b36697e6dfe63',1,'pl.komunikator.komunikator.R.attr.titleMargin()']]], ['titlemarginbottom',['titleMarginBottom',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a87245c54e5e4a03a199ea283004b986b',1,'android.support.design.R.attr.titleMarginBottom()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#ad13d5190bf6d91b5f44074745bf45600',1,'android.support.v7.appcompat.R.attr.titleMarginBottom()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ae37d0aabce3fcfdefa65cf39bac0bb8d',1,'pl.komunikator.komunikator.R.attr.titleMarginBottom()']]], ['titlemarginend',['titleMarginEnd',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ae7c626cff9780f4c6e48a3a57fe5df97',1,'android.support.design.R.attr.titleMarginEnd()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#ad5c63c69274a686ad0cca3dab4ed6543',1,'android.support.v7.appcompat.R.attr.titleMarginEnd()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#af3cd8d61028fdfab3a3ed20667ff6389',1,'pl.komunikator.komunikator.R.attr.titleMarginEnd()']]], ['titlemargins',['titleMargins',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ac317289ca5428299e0879f393c2097f1',1,'android.support.design.R.attr.titleMargins()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#af20050b093f0fbae9f5caeac8e1f5a5e',1,'android.support.v7.appcompat.R.attr.titleMargins()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a8bfc8a22a11c717ba48c7a0b93c86eb1',1,'pl.komunikator.komunikator.R.attr.titleMargins()']]], ['titlemarginstart',['titleMarginStart',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a22d72ed903994a5a154f4d1d51d7d548',1,'android.support.design.R.attr.titleMarginStart()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#abfe08e41a25653a3a8b8d789b56a092f',1,'android.support.v7.appcompat.R.attr.titleMarginStart()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a84706966fcc68be20c195f45d9d480c3',1,'pl.komunikator.komunikator.R.attr.titleMarginStart()']]], ['titlemargintop',['titleMarginTop',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ada6994d4f765d374fc7ecf540878f62c',1,'android.support.design.R.attr.titleMarginTop()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#aa93444276547b6992aaafc06f0318594',1,'android.support.v7.appcompat.R.attr.titleMarginTop()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a7a0bedb234db8c2a020318715c41f921',1,'pl.komunikator.komunikator.R.attr.titleMarginTop()']]], ['titletextappearance',['titleTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#aa54cad2447fcae6c425d997f842d547e',1,'android.support.design.R.attr.titleTextAppearance()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#af30268dd35d59987ae331965f3e4b27f',1,'android.support.v7.appcompat.R.attr.titleTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#abd85ee65d07c67617d4d3de685a7c815',1,'pl.komunikator.komunikator.R.attr.titleTextAppearance()']]], ['titletextcolor',['titleTextColor',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a61ab4e11b7ddf32429aa917a4436eb81',1,'android.support.design.R.attr.titleTextColor()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#af7f5689d219b8641d6c75b7701d5966e',1,'android.support.v7.appcompat.R.attr.titleTextColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ad5b9c03be9d0fbc971cf045bdab0ac18',1,'pl.komunikator.komunikator.R.attr.titleTextColor()']]], ['titletextstyle',['titleTextStyle',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a88a90fd7bafbbc05004a0a6e0420f6b9',1,'android.support.design.R.attr.titleTextStyle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#ade279724823bddd614405995b4faf136',1,'android.support.v7.appcompat.R.attr.titleTextStyle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a10385ce7ec52b661e6b79aa06277669e',1,'pl.komunikator.komunikator.R.attr.titleTextStyle()']]], ['toolbar',['toolbar',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#ab069ec05088ab1b7898a8a7827fd9561',1,'pl.komunikator.komunikator.R.id.toolbar()'],['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a7783ebe780dbe2a845802a40519a46e9',1,'android.support.design.R.styleable.Toolbar()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a2daba9587ef9f700f2d54cf13435cb32',1,'android.support.v7.appcompat.R.styleable.Toolbar()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a86ab6281279e21462e73802ff092e633',1,'pl.komunikator.komunikator.R.styleable.Toolbar()']]], ['toolbar_5fandroid_5fgravity',['Toolbar_android_gravity',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ae9f189e116f70336a287fd07ccbad870',1,'android.support.design.R.styleable.Toolbar_android_gravity()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a84a79bd8c687a1eef63dda96bb410f01',1,'android.support.v7.appcompat.R.styleable.Toolbar_android_gravity()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ae12953ad8aee1db4ad4d2ca72ad47f88',1,'pl.komunikator.komunikator.R.styleable.Toolbar_android_gravity()']]], ['toolbar_5fandroid_5fminheight',['Toolbar_android_minHeight',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a577363bd15a566f94f5c7a9f24cf1ab5',1,'android.support.design.R.styleable.Toolbar_android_minHeight()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a3b8399b2cca0ff98749346ebd5d6bf70',1,'android.support.v7.appcompat.R.styleable.Toolbar_android_minHeight()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a63cd6a70fab6907609067ae98abaf299',1,'pl.komunikator.komunikator.R.styleable.Toolbar_android_minHeight()']]], ['toolbar_5fbuttongravity',['Toolbar_buttonGravity',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ab8977566ee7aef9bbce4cfa04b80db1e',1,'android.support.design.R.styleable.Toolbar_buttonGravity()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a2733cf58d3beef3449da4e6eba007a0b',1,'android.support.v7.appcompat.R.styleable.Toolbar_buttonGravity()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#adfc20f1ff26759287a2c85835c7a6e84',1,'pl.komunikator.komunikator.R.styleable.Toolbar_buttonGravity()']]], ['toolbar_5fcollapsecontentdescription',['Toolbar_collapseContentDescription',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a2ad949787d7fa8e09c179eaa0ebb74aa',1,'android.support.design.R.styleable.Toolbar_collapseContentDescription()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a3734d32ea95a0b5d4bf4bff52ec5c6c0',1,'android.support.v7.appcompat.R.styleable.Toolbar_collapseContentDescription()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a5446d7516e9124d04e5b6cbc9a73706a',1,'pl.komunikator.komunikator.R.styleable.Toolbar_collapseContentDescription()']]], ['toolbar_5fcollapseicon',['Toolbar_collapseIcon',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a89d8fbe1d316576ebe59e92d248279a6',1,'android.support.design.R.styleable.Toolbar_collapseIcon()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a04b9e91185914dcad81da762ac83b99e',1,'android.support.v7.appcompat.R.styleable.Toolbar_collapseIcon()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#aa2b01282dbc95760c9e158cd64d2b6e7',1,'pl.komunikator.komunikator.R.styleable.Toolbar_collapseIcon()']]], ['toolbar_5fcontentinsetend',['Toolbar_contentInsetEnd',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a1a5e3de0eef2c8b8ce35918ff513531a',1,'android.support.design.R.styleable.Toolbar_contentInsetEnd()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#aecbe2eaa8751ce5821a8e641d2eb9584',1,'android.support.v7.appcompat.R.styleable.Toolbar_contentInsetEnd()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ac59f1e26527d2e6d33c7bbe2788beb44',1,'pl.komunikator.komunikator.R.styleable.Toolbar_contentInsetEnd()']]], ['toolbar_5fcontentinsetendwithactions',['Toolbar_contentInsetEndWithActions',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ad675ba82ebfaa483e6d0eba17711deb9',1,'android.support.design.R.styleable.Toolbar_contentInsetEndWithActions()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#ad02fa08b47505549c358225345d747ff',1,'android.support.v7.appcompat.R.styleable.Toolbar_contentInsetEndWithActions()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ab49dc4325059282b59800ad619c3f800',1,'pl.komunikator.komunikator.R.styleable.Toolbar_contentInsetEndWithActions()']]], ['toolbar_5fcontentinsetleft',['Toolbar_contentInsetLeft',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a0742be136466ef1d6a26776e0be4c829',1,'android.support.design.R.styleable.Toolbar_contentInsetLeft()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a9708be86160ef8cd90d97a2335c4deaa',1,'android.support.v7.appcompat.R.styleable.Toolbar_contentInsetLeft()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a46a21731d0000eb4b617a8f4ddcf43f6',1,'pl.komunikator.komunikator.R.styleable.Toolbar_contentInsetLeft()']]], ['toolbar_5fcontentinsetright',['Toolbar_contentInsetRight',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ad73822dda4f37103fc7bf98a9bc738e3',1,'android.support.design.R.styleable.Toolbar_contentInsetRight()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a9e40d33c2ba6473ca0c5301d5f1f9b4a',1,'android.support.v7.appcompat.R.styleable.Toolbar_contentInsetRight()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ab1de9f450efb7590e0546b17a8a2c442',1,'pl.komunikator.komunikator.R.styleable.Toolbar_contentInsetRight()']]], ['toolbar_5fcontentinsetstart',['Toolbar_contentInsetStart',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a68d6350d263a0ef9072b1b981d832ef7',1,'android.support.design.R.styleable.Toolbar_contentInsetStart()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a8277724d6d61a0810ffe598e5aa92c49',1,'android.support.v7.appcompat.R.styleable.Toolbar_contentInsetStart()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#aa29972119d7bf436747830ce5746e67d',1,'pl.komunikator.komunikator.R.styleable.Toolbar_contentInsetStart()']]], ['toolbar_5fcontentinsetstartwithnavigation',['Toolbar_contentInsetStartWithNavigation',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ae15be1a44663b68b2ff8f2c1e0352e9d',1,'android.support.design.R.styleable.Toolbar_contentInsetStartWithNavigation()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#ad3a26b18e2dcb44a65bac712d9ff3b6d',1,'android.support.v7.appcompat.R.styleable.Toolbar_contentInsetStartWithNavigation()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#affdec4b778f348893bfd559563d3a56e',1,'pl.komunikator.komunikator.R.styleable.Toolbar_contentInsetStartWithNavigation()']]], ['toolbar_5flogo',['Toolbar_logo',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ab0a9b926dbb509c5df3bea32aaa96cd8',1,'android.support.design.R.styleable.Toolbar_logo()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#aa6cd97acb16dc1939297d6b55144511a',1,'android.support.v7.appcompat.R.styleable.Toolbar_logo()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ab879a5cb01d88d14f6a468d4b74d9612',1,'pl.komunikator.komunikator.R.styleable.Toolbar_logo()']]], ['toolbar_5flogodescription',['Toolbar_logoDescription',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a9e268b93eb8ebe84bb34a177df14a6bb',1,'android.support.design.R.styleable.Toolbar_logoDescription()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a90d4140553a7127f0022db99faa5c853',1,'android.support.v7.appcompat.R.styleable.Toolbar_logoDescription()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a57ac4bec690fb0bc18a3fed8275680e6',1,'pl.komunikator.komunikator.R.styleable.Toolbar_logoDescription()']]], ['toolbar_5fmaxbuttonheight',['Toolbar_maxButtonHeight',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a573da6093a404400731d342841b50168',1,'android.support.design.R.styleable.Toolbar_maxButtonHeight()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#affe8ecfe808e4ef6f9ec7d197b85487b',1,'android.support.v7.appcompat.R.styleable.Toolbar_maxButtonHeight()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a30670baf369d78df9917b7d88a51f1c1',1,'pl.komunikator.komunikator.R.styleable.Toolbar_maxButtonHeight()']]], ['toolbar_5fnavigationcontentdescription',['Toolbar_navigationContentDescription',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ac7031f062e44f6d4cea72520507e1703',1,'android.support.design.R.styleable.Toolbar_navigationContentDescription()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a3ba85c003fe3fb0dbf01310aa5be8787',1,'android.support.v7.appcompat.R.styleable.Toolbar_navigationContentDescription()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#af020af061714cb1d49ae817baa18617f',1,'pl.komunikator.komunikator.R.styleable.Toolbar_navigationContentDescription()']]], ['toolbar_5fnavigationicon',['Toolbar_navigationIcon',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#accd16d6faeffbd100a41b9e447a49189',1,'android.support.design.R.styleable.Toolbar_navigationIcon()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a84175030a2bc34232cc0633a27da4f68',1,'android.support.v7.appcompat.R.styleable.Toolbar_navigationIcon()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ad5723c2d003e6b53a83ae16f348c5c76',1,'pl.komunikator.komunikator.R.styleable.Toolbar_navigationIcon()']]], ['toolbar_5fpopuptheme',['Toolbar_popupTheme',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a85ad1e9a88b243c3cb9ac4a4eff2e59d',1,'android.support.design.R.styleable.Toolbar_popupTheme()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a86dd147aa8ab286860ac21db4ebd64a5',1,'android.support.v7.appcompat.R.styleable.Toolbar_popupTheme()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a5a4ab903fddd028bf25162831df1c677',1,'pl.komunikator.komunikator.R.styleable.Toolbar_popupTheme()']]], ['toolbar_5fsubtitle',['Toolbar_subtitle',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a0364d79d02071a50c5e5716dab29c5ab',1,'android.support.design.R.styleable.Toolbar_subtitle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#adbd60df7938c772e9f8a86c5e19a8d1e',1,'android.support.v7.appcompat.R.styleable.Toolbar_subtitle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ac9bad86ea21b4470e77a44d0ba61541d',1,'pl.komunikator.komunikator.R.styleable.Toolbar_subtitle()']]], ['toolbar_5fsubtitletextappearance',['Toolbar_subtitleTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a5f9e967ec77cd237d74b93e364172559',1,'android.support.design.R.styleable.Toolbar_subtitleTextAppearance()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#ad1efd3d21df430b2222c4610c0943e32',1,'android.support.v7.appcompat.R.styleable.Toolbar_subtitleTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ac15f7827461b0010735ff45fb1baf1d9',1,'pl.komunikator.komunikator.R.styleable.Toolbar_subtitleTextAppearance()']]], ['toolbar_5fsubtitletextcolor',['Toolbar_subtitleTextColor',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#af80f7c0e024f277f72f31c36c9a8b256',1,'android.support.design.R.styleable.Toolbar_subtitleTextColor()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a7adbd084daa46b375e6d08a318eaea52',1,'android.support.v7.appcompat.R.styleable.Toolbar_subtitleTextColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a0bc3f54dd9d7a469a20d910d761e5b61',1,'pl.komunikator.komunikator.R.styleable.Toolbar_subtitleTextColor()']]], ['toolbar_5ftitle',['Toolbar_title',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a11e8147b2ddb5ab456b7530c9fb3fce2',1,'android.support.design.R.styleable.Toolbar_title()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a56aef9ae7056ca1c293e056fb1da40c3',1,'android.support.v7.appcompat.R.styleable.Toolbar_title()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a7931625ae2e96fb2c6d513528896f731',1,'pl.komunikator.komunikator.R.styleable.Toolbar_title()']]], ['toolbar_5ftitlemargin',['Toolbar_titleMargin',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#aeced67b1a8dbb0c5b8d240e3ddeb4bf9',1,'android.support.design.R.styleable.Toolbar_titleMargin()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a14e9f0213b518aca69cde7d8a2bf4205',1,'android.support.v7.appcompat.R.styleable.Toolbar_titleMargin()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ae72fdfdb715b777dbb5b84ecbce51515',1,'pl.komunikator.komunikator.R.styleable.Toolbar_titleMargin()']]], ['toolbar_5ftitlemarginbottom',['Toolbar_titleMarginBottom',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a8a74fa3c25fd104e2317f2d59163a0a1',1,'android.support.design.R.styleable.Toolbar_titleMarginBottom()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a0550c95fd1ad266727fc9d98e677235e',1,'android.support.v7.appcompat.R.styleable.Toolbar_titleMarginBottom()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#add5cf729e01accc3f17fd4ab58aceac5',1,'pl.komunikator.komunikator.R.styleable.Toolbar_titleMarginBottom()']]], ['toolbar_5ftitlemarginend',['Toolbar_titleMarginEnd',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a33489940e504cd17320b0791518b1800',1,'android.support.design.R.styleable.Toolbar_titleMarginEnd()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a5af2f9d4fdf6f945d2340b5b9fa4f04c',1,'android.support.v7.appcompat.R.styleable.Toolbar_titleMarginEnd()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a394e575173365f1c09bdd2829905d6a6',1,'pl.komunikator.komunikator.R.styleable.Toolbar_titleMarginEnd()']]], ['toolbar_5ftitlemargins',['Toolbar_titleMargins',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a7a7c87d2d30eb1c42aba4dc93e811b9f',1,'android.support.design.R.styleable.Toolbar_titleMargins()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a12bc46ef3a7e84c54f1605a360569247',1,'android.support.v7.appcompat.R.styleable.Toolbar_titleMargins()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a67ce1b8b927f4a6ecceb81b52d9acd9b',1,'pl.komunikator.komunikator.R.styleable.Toolbar_titleMargins()']]], ['toolbar_5ftitlemarginstart',['Toolbar_titleMarginStart',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#aaa2847451f4babb9f8453a3ab3f1437b',1,'android.support.design.R.styleable.Toolbar_titleMarginStart()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a7c416ae3b5c0071a240e5f8135f2c12f',1,'android.support.v7.appcompat.R.styleable.Toolbar_titleMarginStart()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#aaadf5fb83028a156ec27643e4cdeefb7',1,'pl.komunikator.komunikator.R.styleable.Toolbar_titleMarginStart()']]], ['toolbar_5ftitlemargintop',['Toolbar_titleMarginTop',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#ab372cb599a5074e8cc57f44c95430812',1,'android.support.design.R.styleable.Toolbar_titleMarginTop()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#aa4a73cce7755d27d8dd9266d6b2af22e',1,'android.support.v7.appcompat.R.styleable.Toolbar_titleMarginTop()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a1cf23588d90e388c71d3af71ae613146',1,'pl.komunikator.komunikator.R.styleable.Toolbar_titleMarginTop()']]], ['toolbar_5ftitletextappearance',['Toolbar_titleTextAppearance',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a2cbcc72025cb5da4d094b8250deacd64',1,'android.support.design.R.styleable.Toolbar_titleTextAppearance()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#a0cb9adf45f180ac45768a0740adde323',1,'android.support.v7.appcompat.R.styleable.Toolbar_titleTextAppearance()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#a5cd386fa30864dd13746f3ca0815bec6',1,'pl.komunikator.komunikator.R.styleable.Toolbar_titleTextAppearance()']]], ['toolbar_5ftitletextcolor',['Toolbar_titleTextColor',['../classandroid_1_1support_1_1design_1_1_r_1_1styleable.html#a6cc4632e269ce480a68bcce27c2815d5',1,'android.support.design.R.styleable.Toolbar_titleTextColor()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1styleable.html#ae4d6d3b0232dc582346e59fe0075c161',1,'android.support.v7.appcompat.R.styleable.Toolbar_titleTextColor()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1styleable.html#ac3578e9305b816521bc90991e4f493f3',1,'pl.komunikator.komunikator.R.styleable.Toolbar_titleTextColor()']]], ['toolbarid',['toolbarId',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#ae9f565520d2e78480db1dae46fccb81b',1,'android.support.design.R.attr.toolbarId()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a567b2f2ec5d1ab40f39e5538e34cc89e',1,'pl.komunikator.komunikator.R.attr.toolbarId()']]], ['toolbarnavigationbuttonstyle',['toolbarNavigationButtonStyle',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a9733b7b45c6e2fdfb80f9271d546762a',1,'android.support.design.R.attr.toolbarNavigationButtonStyle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a47d1ceaaf7373d5f8472dfffbeec86b7',1,'android.support.v7.appcompat.R.attr.toolbarNavigationButtonStyle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a311c6e1ae32e60248de516033d92d6cf',1,'pl.komunikator.komunikator.R.attr.toolbarNavigationButtonStyle()']]], ['toolbarstyle',['toolbarStyle',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#af57093ce0a51175955ed5221ab7b8067',1,'android.support.design.R.attr.toolbarStyle()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a06381c6ce2a53989bf4629cd4d250d3a',1,'android.support.v7.appcompat.R.attr.toolbarStyle()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a8e89df3a5fb1a909b4e8c16226a37847',1,'pl.komunikator.komunikator.R.attr.toolbarStyle()']]], ['top',['top',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#aa710ae6c7f9597ec94d2008d8a70b056',1,'android.support.design.R.id.top()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#a58b826a2af9f77fc1bd9661682d629a3',1,'android.support.v7.appcompat.R.id.top()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a47508922202c77eb460d552a755769b5',1,'pl.komunikator.komunikator.R.id.top()']]], ['toppanel',['topPanel',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a7eef3c87506e53208c3243360b38242c',1,'android.support.design.R.id.topPanel()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1id.html#a74344a9a6654c3e1e9647b9e800f3535',1,'android.support.v7.appcompat.R.id.topPanel()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a92b46b2934800b72f017f3e614b3c21d',1,'pl.komunikator.komunikator.R.id.topPanel()']]], ['touch_5foutside',['touch_outside',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#ab8211b0d7277775cf8c214969d03915e',1,'android.support.design.R.id.touch_outside()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a661253ce448800251d32c05e9ab83308',1,'pl.komunikator.komunikator.R.id.touch_outside()']]], ['track',['track',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a282e2c20f2ebb68f351c47e4b0b76a9a',1,'android.support.design.R.attr.track()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#accde29fd93475195158a6087ebeb2bb1',1,'android.support.v7.appcompat.R.attr.track()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#ab0857f836f271ee9cdbc963f87396823',1,'pl.komunikator.komunikator.R.attr.track()']]], ['tracktint',['trackTint',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#abf5a10a01b2bddbdb4e0afa3d567f606',1,'android.support.design.R.attr.trackTint()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a9027c6a1857ce71f9769073110c6abfc',1,'android.support.v7.appcompat.R.attr.trackTint()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a89af1ac08cb8bea37e4342e42db84a57',1,'pl.komunikator.komunikator.R.attr.trackTint()']]], ['tracktintmode',['trackTintMode',['../classandroid_1_1support_1_1design_1_1_r_1_1attr.html#a97828dd1c19f4389956878cac52bee6a',1,'android.support.design.R.attr.trackTintMode()'],['../classandroid_1_1support_1_1v7_1_1appcompat_1_1_r_1_1attr.html#a253097e6cf2e7eff229a8da50651fef9',1,'android.support.v7.appcompat.R.attr.trackTintMode()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1attr.html#a2356eeb479060a961d03a9f343ef4a11',1,'pl.komunikator.komunikator.R.attr.trackTintMode()']]], ['transition_5fcurrent_5fscene',['transition_current_scene',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#a75728c7ae11fb924149bcd39c4f7f843',1,'android.support.design.R.id.transition_current_scene()'],['../classandroid_1_1support_1_1transition_1_1_r_1_1id.html#aef3ea53ee761d0649374566d52e85781',1,'android.support.transition.R.id.transition_current_scene()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a421ac0881abef69a4c283e064765f3fa',1,'pl.komunikator.komunikator.R.id.transition_current_scene()']]], ['transition_5fscene_5flayoutid_5fcache',['transition_scene_layoutid_cache',['../classandroid_1_1support_1_1design_1_1_r_1_1id.html#adf45e834c51610a398a2fc8655464d2a',1,'android.support.design.R.id.transition_scene_layoutid_cache()'],['../classandroid_1_1support_1_1transition_1_1_r_1_1id.html#a38d13adf0b16756ebfc96af4df5a4e7b',1,'android.support.transition.R.id.transition_scene_layoutid_cache()'],['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a97e2e8fe25b2a9956e1d5576f12ed003',1,'pl.komunikator.komunikator.R.id.transition_scene_layoutid_cache()']]], ['txtinfo',['txtInfo',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#af72ebe011b4126eb57791ce390aeaac0',1,'pl.komunikator.komunikator.R.id.txtInfo()'],['../classpl_1_1komunikator_1_1komunikator_1_1adapter_1_1_chat_adapter_1_1_view_holder.html#a104c8e19db7cc7211638d624eb8d0152',1,'pl.komunikator.komunikator.adapter.ChatAdapter.ViewHolder.txtInfo()']]], ['txtmessage',['txtMessage',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1id.html#a81e62e2c4839ca73990dde9d382b4f7f',1,'pl.komunikator.komunikator.R.id.txtMessage()'],['../classpl_1_1komunikator_1_1komunikator_1_1adapter_1_1_chat_adapter_1_1_view_holder.html#a23a766fd8fda1945c4b384c46c8ec2f5',1,'pl.komunikator.komunikator.adapter.ChatAdapter.ViewHolder.txtMessage()']]], ['type_5fmessage_5fhint',['type_message_hint',['../classpl_1_1komunikator_1_1komunikator_1_1_r_1_1string.html#a1ababd31929cc77e6935cbe2abf7ce26',1,'pl::komunikator::komunikator::R::string']]] ];
var moment = require('moment'); var mc = {}; // fake memcache var set = function(key, value) { var ts = moment().add('minutes',3).unix(); var item = { value: value, ts:ts}; mc[key] = item; }; var get = function(key) { var ts = moment().unix(); if(typeof mc[key] != "undefined" && ts < mc[key].ts) { return mc[key].value; } return null; }; module.exports = { set: set, get: get }
import React from 'react' import ReactTooltip from 'react-tooltip' import css from './BackTop.css' class BackTop extends React.Component { constructor(props) { super(props) this.toTop = this.toTop.bind(this) } shouldComponentUpdate() { return false } toTop(event) { event.preventDefault() const id = setInterval(() => { const top = document.documentElement.scrollTop // 到达顶部的距离 const speed = top / 50 + 1 if (top > 1) { document.documentElement.scrollTop -= speed } if (top < 3) { window.clearInterval(id) } }, 10) } render() { return ( <div> <div className={css.container} onClick={this.toTop} data-tip data-for="top" > <i className="fas fa-arrow-up" /> </div> <ReactTooltip id="top">back to top</ReactTooltip> </div> ) } } export default BackTop
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("smiley","he",{options:"אפשרויות סמיילים",title:"הוספת סמיילי",toolbar:"סמיילי"});
/* * Level3MediaPortalAPI * https://github.com/dublx/Level3MediaPortalAPI * * Copyright (c) 2013 Luis Faustino * Licensed under the MIT license. */ 'use strict'; var request = require('request'); var _ = require('underscore'); var dateFormat = require('dateformat'); var crypto = require('crypto'); var url = require('url'); var methods = { "key": { "verb": "GET", "sourceuri": "https://ws.level3.com", "path": "/key/v1.0", "parameters" : "", "content" : "", "setParameters": function(options) { }, "url": function() { return this.sourceuri + this.path + this.parameters; } }, "usage": { "verb": "GET", "sourceuri": "https://ws.level3.com", "path": "/usage/cdn/v1.0", "relativePath" : "", "parameters" : "", "content" : "", "setParameters": function(options) { var params= ""; params+= (options.ag ? "/" + options.ag + "/" : ""); params+= (options.scid ? options.scid + "/" : ""); params+= (options.ni ? options.ni + "/" : ""); params+= (options.serviceType ? "?serviceType=" + options.serviceType : ""); params+= (options.dateFrom ? "&dateFrom=" + options.dateFrom : ""); params+= (options.dateTo ? "&dateTo=" + options.dateTo : ""); params+= (options.dateInterval ? "&dateInterval=" + options.dateInterval : ""); this.parameters = params; }, "url": function() { return this.sourceuri + this.path + this.parameters; } } }; var config = { key: "", secret: "", algorithm: "sha1", encoding: "base64", }; var defaultRequestHeaders = { "Accept": "text/xml", "Content-Type": "text/xml", "Authorization": "", "Date": "" } function getMPASignature(options) { var hmac = crypto.createHmac(options.algorithm, options.secret); hmac.update(options.data); return hmac.digest(options.encoding); } var doRequest = function(apiMethod, cb) { console.log('Request: ',apiMethod.url()); var headers = {}; _.extend(headers, defaultRequestHeaders); var reqDate = dateFormat(Date.now(), "ddd, d mmm yyyy HH:MM:ss", false) + " +0100"; headers.Date = reqDate; var contentMD5 = ""; //todo get content-md5 from apiMethod.content var data = headers.Date + "\n" + url.parse(apiMethod.url()).pathname + "\n" + "text/xml" + "\n" + apiMethod.verb + "\n" + contentMD5; var hash = getMPASignature({ algorithm: config.algorithm, encoding: config.encoding, secret: config.secret, data: data }); headers.Authorization = "MPA " + config.key + ":" + hash; var reqOptions = { "uri": apiMethod.url(), "headers": headers }; request(reqOptions, function(error, response, body) { if (cb) cb(error, response); // if (error) { // return console.error('request error:', error); // } // console.info('Level3MediaPortalAPI response:\n' + body); }); }; module.exports = { request: doRequest, config: config, methods: methods };
var React = require('react'); var GNode = require('./gnode-rect'); var GNodeElipse = require('./gnode-elipse'); var GConn = require('./gconn'); var Cursor = require('./cursor'); var store = require('../../store/editor'); var selectorAction = require('../../actions/selector'); selectorAction.register(store); var DRAG_MOVE = 1; let Graph = React.createClass({ getInitialState: function () { return { }; }, componentWillMount: function() { store.observe((editor)=>{ this.setState({ selected: editor.selected, rubberband: editor.rubberband }); }); }, componentDidMount: function () { }, componentDidUpdate: function () { }, componentWillUnmount : function() { }, onClick : function(e) { console.log('clicked svg'); if (window.isSelectMode) { return; } if (window.isAssociationMode) { return; } if (window.nodeDragging) { return; } var name; if (window.nodeIsElipse) { name = 'IndexGroup' } else { name = 'Index' } var key = 'indexes'; var modelInterface = clooca.getModelInterface(); var resourceSet = modelInterface.getResourceSet(); var eClass = resourceSet.elements('EClass').filter((eClass) => { return eClass.get('name') == name; })[0]; var model = this.props.model; var classInstance = eClass.create( { name:new Date().getTime(), x:e.pageX, y:e.pageY } ); model.get(key).add(classInstance); }, render: function () { if(!this.props.model || !this.props.diagram) return(<div/>); var model = this.props.model; var diagram = this.props.diagram; let nodes = diagram.get('nodes'); let connections = diagram.get('connections').map( (connection)=>{return connection;} ); let nodeList = nodes.map( (node)=>{return node;} ); let gnodes = nodeList.reduce((acc, node) => { let metaElement = node.get('metaElement'); let containFeature = node.get('containFeature'); let cfName = containFeature.get('name'); let cfInstances = model.get(cfName || 'classes'); let cfInstanceList = cfInstances.map(function(_class) { return _class; }); return acc.concat(cfInstanceList); }, []); var gnodeElems = gnodes.map(function(node) { let id = node.get('name'); let eClassName = node.eClass.get('name'); if (eClassName === 'Index') { return (<GNode key={"gnode-"+id} id={id} node={node}></GNode>); } else { return (<GNodeElipse key={"gnode-"+id} id={id} node={node}></GNodeElipse>); } }); let gconnections = gnodes.map(function(node) { return connections.reduce((acc, connection) => { let metaElement = connection.get('metaElement'); let containFeature = connection.get('containFeature'); return acc.concat(node.get(containFeature.get('name')).map(function(_class) { return _class; })); }, []); }); let ftat_gconnections = Array.prototype.concat.apply([], gconnections); var gconnElems = ftat_gconnections.map(function(conn) { let id = conn.get('name'); return (<GConn key={"gconn-"+id} id={id} conn={conn}></GConn>); }); if(this.state.selected) { var selected = gnodes.filter((node)=>{ return this.state.selected == node.get('name'); })[0] } if(this.state.rubberband) { } return ( <div><svg width="600" height="480" onClick={this.onClick} onContextMenu={this.onContextMenu}> <g>{gconnElems}</g><g>{gnodeElems}</g><g>{selected?(<Cursor selected={selected}/>):''}</g> </svg></div> ); } }); module.exports = Graph;
'use strict'; var precondition = require('./contract').precondition; var i18n = require('./i18n').i18n(); exports.render = (container, task) => { precondition(container, 'Legend Widget requires a container'); precondition(task, 'Legend Widget requires a DisplaySheetTask'); var legendContainer = d3.select(container[0]) .append('div') .classed('legend-container', true); var header = legendContainer.append('div') .classed('legend-header', true) .append('span'); legendContainer.append('img') .attr('src', '/images/powered_by_google_on_white.png') .classed('legend-footer', true); var attributeContainer = legendContainer.append('div') .classed('legend-criteria', true); attributeContainer.append('span') .text(i18n.CRITERIA_TYPE_COLOR + ' : '); var attributeSelector = attributeContainer .append('select') .classed('criteria-selector', true); var list = legendContainer .append('ul') .classed('legend-items', true); task.status().subscribe((status) => { status.match({ ready: _.noop, displayed: (model) => { model.geojson().subscribe((geojson) => { var description = i18n.DATA_SOURCE_DESCRIPTION.replace('{0}', geojson.features.length); header.html(description); }); $(attributeSelector[0]).change(function () { model.changeActiveAttribute(this.value); }); _.each(model.attributes(), (attribute) => { attributeSelector.append('option') .attr('value', attribute.id()) .text(attribute.name()); }); model.categories().subscribe((categories) => { list.selectAll('*').remove(); list.selectAll('.legend-item') .data(categories) .enter() .append('li') .classed('legend-item', true) .each(function (category) { var element = d3.select(this); if (category.max) { // Bounded category renderBoundedCategory(element, category); } else { // Normal category renderCategory(element, category); } }); }); } }); }); }; function renderBoundedCategory(element, category) { var svg = element .classed('legend-bounded-category', true) .append('svg') .classed('legend-thumbnail', true) .attr({ width: 25, height: 100 }); var gradient = svg.append('defs') .append('linearGradient') .attr({ id: 'grad1', x1: '0%', y1: '100%', x2: '0%', y2: '0%' }); gradient.append('stop') .attr('offset', '0%') .style({ 'stop-color': category.min.color, 'stop-opacity': 1 }); gradient.append('stop') .attr('offset', '100%') .style({ 'stop-color': category.max.color, 'stop-opacity': 1 }); svg.append('rect') .attr({ width: 25, height: 100 }) .style('fill', 'url(#grad1)'); element.append('span') .classed('legend-bounds-upper', true) .text(category.max.value); element.append('span') .classed('legend-bounds-lower', true) .text(category.min.value); } function renderCategory(element, category) { element .classed('legend-no-data-category', true) .append('svg') .classed('legend-thumbnail', true) .attr({ width: 25, height: 25 }) .append('rect') .attr({ width: 25, height: 25 }) .style('fill', category.color); element.append('span') .text(i18n.DATA_UNAVAILABLE + ' (' + category.count + ')'); }
export default Ember.Component.extend({ tagName : "input", type : "radio", attributeBindings : [ "name", "type", "value", "checked:checked" ], click : function() { this.set("selection", this.$().val()); }, checked : function() { return this.get("value") === this.get("selection"); }.property('selection') });
/* * Original code by Nihilogic * http://blog.nihilogic.dk/2008/05/javascript-super-mario-kart.html * * Customisations: * - location of audios and images * - parent element of the game div * - default screen scale set to 6 (large) * - default music set to off */ function MarioKart(rootUrl) { const AUDIOS_DIR = rootUrl + '/plugin/jsgames/mariokart/resources/'; const IMAGES_DIR = rootUrl + '/plugin/jsgames/mariokart/resources/'; const CONTAINER = document.getElementById('mariokart_container'); var oMaps = { "map1" : { "texture" : IMAGES_DIR + "map_1.png", "width" : 512, "height" : 512, "collision" : [ [84,80,52,216], [68,276,20,56], [136,188,208,60], [344,208,64,40], [368,248,40,160], [368,4,140,76], [4,436,236,72] ], "startposition" : { x : 476, y : 356 }, "aistartpositions" : [ {x : 476-18, y : 356-18}, {x : 476, y : 356-24} ], "startrotation" : 180, "aipoints" : [ [467,273], [459,208], [317,128], [160,50], [64,53], [44,111], [38,272], [50,351], [106,349], [215,300], [278,305], [337,417], [405,451], [462,414] ] }, "map2" : { "texture" : IMAGES_DIR + "map_2.png", "width" : 512, "height" : 512, "collision" : [ [120,116,8,228], [124,100,20,20], [140,88,16,16], [152,84,48,8], [196,72,16,12], [208,68,96,8], [296,68,8,28], [304,88,56,8], [352,96,8,196], [356,288,12,36], [364,320,16,16], [376,332,16,16], [388,344,16,16], [400,356,16,16], [412,368,12,24], [412,244,32,8], [476,244,32,8], [204,0,100,36], [196,4,8,24], [124,340,16,16], [136,352,16,16], [148,364,16,16], [160,376,16,16], [172,388,12,12], [180,396,12,12], [280,284,8,224], [268,272,16,16], [256,260,16,16], [248,252,12,12], [240,244,12,12], [232,236,12,12], [224,228,12,12], [216,220,12,12] ], "startposition" : { x : 70, y : 322 }, "aistartpositions" : [ {x : 70-18, y : 322-18}, {x : 70, y : 322-24} ], "startrotation" : 180, "aipoints" : [ [64,253], [55,184], [67,132], [141,59], [215,51], [317,53], [416,51], [462,125], [392,191], [399,270], [464,353], [431,431], [347,373], [303,238], [210,191], [187,253], [242,378], [188,459], [87,420] ] } } var aAvailableMaps = ["map1","map2"]; // render modes: // 0: One screen canvas // 1: One canvas per horizontal screen line var iRenderMode = 0; var iWidth = 80; var iHeight = 35; var iScreenScale = 6; var iQuality = 2; // 1 = best, 2 = half as many lines, etc. var bSmoothSprites = true; var bMusic = false; function setRenderMode(iValue) { if (bCounting) return; iRenderMode = iValue; if (bRunning) resetScreen(); } function setScreenScale(iValue) { if (bCounting) return; iScreenScale = iValue; if (bRunning) resetScreen(); } function setQuality(iValue) { if (bCounting) return; iQuality = iValue; if (bRunning) resetScreen(); } var oMap; var oHills; var oTrees; var aPlayers = ["mario", "luigi", "peach"]; var oPlayer; var strPlayer = ""; var iMapWidth; var iMapHeight; var oMapImg; function resetGame(strMap) { oMap = oMaps[strMap]; loadMap(oMap); } function loadMap() { oMapImg = new Image(); iMapWidth = oMap.width; iMapHeight = oMap.height; oMapImg.onload = startGame; oMapImg.src = oMap.texture; } var fMaxSpeed = 6; var fMaxRotInc = 6; var fMaxRotTimer = 0; var aKarts = []; var bRunning = false; var bCounting = false; function startGame() { resetScreen(); if (bMusic) { startMusic(); } oPlayer = { x : oMap.startposition.x, y : oMap.startposition.y, speed : 0, speedinc : 0, rotation : oMap.startrotation, rotincdir : 0, rotinc : 0, sprite : new Sprite(strPlayer), cpu : false } aKarts = []; aKarts.push(oPlayer); var iAI = 0; for (var i=0;i<aPlayers.length;i++) { if (aPlayers[i] != strPlayer) { var oEnemy = { x : oMap.aistartpositions[iAI].x, y : oMap.aistartpositions[iAI].y, speed : 0, speedinc : 0, rotation : oMap.startrotation, rotincdir : 0, rotinc : 0, sprite : new Sprite(aPlayers[i]), cpu : true, aipoint : 0 }; aKarts.push(oEnemy); iAI++; } } render(); bCounting = true; var oCount = document.createElement("div"); var oCntStyle = oCount.style; oCntStyle.position = "absolute"; oCntStyle.width = 12*iScreenScale+"px"; oCntStyle.height = 12*iScreenScale+"px"; oCntStyle.overflow = "hidden"; oCntStyle.top = 4*iScreenScale+"px"; oCntStyle.left = 8*iScreenScale+"px"; var oCountImg = document.createElement("img"); oCountImg.src = IMAGES_DIR + "countdown.png"; oCountImg.style.position = "absolute"; oCountImg.style.left = "0px"; oCountImg.height = 12*iScreenScale; oCount.appendChild(oCountImg); oContainer.appendChild(oCount); var iCntStep = 1; oCount.scrollLeft = 0; var fncCount = function() { oCount.scrollLeft = iCntStep * 12*iScreenScale; iCntStep++; if (iCntStep < 4) { setTimeout(fncCount,1000); } else { setTimeout( function() { oContainer.removeChild(oCount); bCounting = false; }, 1000 ); cycle(); bRunning = true; } } setTimeout(fncCount,1000); } var oMusicEmbed; var bMusicPlaying = false; function startMusic() { bMusicPlaying = true; oMusicEmbed = document.createElement("embed"); oMusicEmbed.src = AUDIOS_DIR + strMap + ".mid"; oMusicEmbed.setAttribute("loop", "true"); oMusicEmbed.setAttribute("autostart", "true"); oMusicEmbed.style.position = "absolute"; oMusicEmbed.style.left = -1000; document.body.appendChild(oMusicEmbed); } function stopMusic() { if (!bMusicPlaying) { return; } bMusicPlaying = false; document.body.removeChild(oMusicEmbed); } var fSpriteScale = 0; var fLineScale = 0; // setup main container var oContainer = document.createElement("div") oContainer.tabindex = 1; var oCtrStyle = oContainer.style; oCtrStyle.position = "absolute"; oCtrStyle.border = "2px solid black"; oCtrStyle.overflow = "hidden"; //document.body.appendChild(oContainer); CONTAINER.appendChild(oContainer); // setup screen canvas for render mode 0. var oScreenCanvas = document.createElement("canvas"); var oScreenCtx = oScreenCanvas.getContext("2d"); var oScrStyle = oScreenCanvas.style; oScrStyle.position = "absolute"; oContainer.appendChild(oScreenCanvas); // setup strip container render mode 1. var oStripCtr = document.createElement("div"); oStripCtr.style.position = "absolute"; oContainer.appendChild(oStripCtr); // array for screen strip descriptions var aStrips = []; var iCamHeight = 24; var iCamDist = 32; var iViewHeight = -10; var iViewDist = 0; var fFocal = 1 / Math.tan(Math.PI*Math.PI / 360); function resetScreen() { fSpriteScale = iScreenScale / 4; fLineScale = 1/iScreenScale * iQuality; aStrips = []; oStripCtr.innerHTML = ""; // change dimensions of main container oCtrStyle.width = iWidth*iScreenScale+"px"; oCtrStyle.height = iHeight*iScreenScale+"px"; if (oHills) oContainer.removeChild(oHills.div); if (oTrees) oContainer.removeChild(oTrees.div); // change dimensions of screen canvas oScreenCanvas.width=iWidth/fLineScale; oScreenCanvas.height=iHeight/fLineScale; oScrStyle.width = iWidth*iScreenScale+iScreenScale+"px"; oScrStyle.left = -(iScreenScale/2)+"px"; oScrStyle.top = iScreenScale+"px"; oScrStyle.height = iHeight*iScreenScale+"px"; oStripCtr.style.width = iWidth*iScreenScale+iScreenScale+"px"; oStripCtr.style.left = -(iScreenScale/2)+"px"; var fLastZ = 0; // create horizontal strip descriptions for (var iViewY=0;iViewY<iHeight;iViewY+=fLineScale) { var iTotalY = iViewY + iViewHeight; // total height of point (on view) from the ground up var iDeltaY = iCamHeight - iTotalY; // height of point relative to camera var iPointZ = (iTotalY/(iDeltaY / iCamDist)); // distance to point on the map var fScaleRatio = fFocal / (fFocal + iPointZ); var iStripWidth = Math.floor(iWidth/fScaleRatio); if (fScaleRatio > 0 && iStripWidth < iViewCanvasWidth) { if (iViewY == 0) fLastZ = iPointZ - 1; var oCanvas; if (iRenderMode == 1) { var oCanvas = document.createElement("canvas"); oCanvas.width = iStripWidth; oCanvas.height = 1; var oStyle = oCanvas.style; oStyle.position = "absolute"; oStyle.width = (iWidth*iScreenScale)+iScreenScale+"px"; oStyle.height = (iScreenScale*fLineScale)+iScreenScale*0.5; oStyle.left = (-iScreenScale/2)+"px"; oStyle.top = Math.round((iHeight-iViewY)*iScreenScale)+"px"; oStripCtr.appendChild(oCanvas); } aStrips.push( { canvas : oCanvas || null, viewy : iViewY, mapz : iPointZ, scale : fScaleRatio, stripwidth : iStripWidth, mapzspan : iPointZ - fLastZ } ) fLastZ = iPointZ; } } oHills = new BGLayer("hills", 360); oTrees = new BGLayer("trees", 720); } // setup canvas for holding the currently visible portion of the map // this is the canvas used to draw from when rendering var iViewCanvasHeight = 90; // these height, width and y-offset values var iViewCanvasWidth = 256; // have been adjusted to work with the current camera setup var iViewYOffset = 10; var oViewCanvas = document.createElement("canvas"); var oViewCtx = oViewCanvas.getContext("2d"); oViewCanvas.width=iViewCanvasWidth; oViewCanvas.height=iViewCanvasHeight; function Sprite(strSprite) { var oImg = new Image(); oImg.style.position = "absolute"; oImg.style.left = "0px"; oImg.src = IMAGES_DIR + "sprite_" + strSprite + (bSmoothSprites ? "_smooth" : "") + ".png"; var oSpriteCtr = document.createElement("div"); oSpriteCtr.style.width = 32; oSpriteCtr.style.height = 32; oSpriteCtr.style.position = "absolute"; oSpriteCtr.style.overflow = "hidden"; oSpriteCtr.style.zIndex = 10000; oSpriteCtr.style.display = "none"; oSpriteCtr.appendChild(oImg); oContainer.appendChild(oSpriteCtr); var iActiveState = 0; this.draw = function(iX, iY, fScale) { var bDraw = true; if (iY > iHeight * iScreenScale || iY < 6 * iScreenScale) { bDraw = false; } if (!bDraw) { oSpriteCtr.style.display = "none"; return; } oSpriteCtr.style.display = "block"; var fSpriteSize = 32 * fSpriteScale * fScale; oSpriteCtr.style.left = iX - fSpriteSize/2; oSpriteCtr.style.top = iY - fSpriteSize/2; oImg.style.height = fSpriteSize; oSpriteCtr.style.width = fSpriteSize; oSpriteCtr.style.height = fSpriteSize; oImg.style.left = -(fSpriteSize * iActiveState)+"px"; } this.setState = function(iState) { iActiveState = iState; } this.div = oSpriteCtr; } function BGLayer(strImage, iLayerWidth) { var oLayer = document.createElement("div"); oLayer.style.height = 10 * iScreenScale; oLayer.style.width = iWidth * iScreenScale; oLayer.style.position = "absolute"; oLayer.style.overflow = "hidden"; var oImg1 = new Image(); oImg1.height = 20; oImg1.width = iLayerWidth; oImg1.style.position = "absolute"; oImg1.style.left = "0px"; var oImg2 = new Image(); oImg2.height = 20; oImg2.width = iLayerWidth; oImg2.style.position = "absolute"; oImg2.style.left = "0px"; var oCanvas1 = document.createElement("canvas"); oCanvas1.width = iLayerWidth; oCanvas1.height = 20; oImg1.onload = function() { oCanvas1.getContext("2d").drawImage(oImg1, 0, 0); } oImg1.src = IMAGES_DIR + "bg_" + strImage + ".png"; oCanvas1.style.width = Math.round(iLayerWidth/2 * iScreenScale + iScreenScale)+"px" oCanvas1.style.height = (10 * iScreenScale)+"px"; oCanvas1.style.position = "absolute"; oCanvas1.style.left = "0px"; var oCanvas2 = document.createElement("canvas"); oCanvas2.width = iLayerWidth; oCanvas2.height = 20; oImg2.onload = function() { oCanvas2.getContext("2d").drawImage(oImg2, 0, 0); } oImg2.src = IMAGES_DIR + "bg_" + strImage + ".png"; oCanvas2.style.width = Math.round(iLayerWidth/2 * iScreenScale)+"px"; oCanvas2.style.height = (10 * iScreenScale)+"px"; oCanvas2.style.position = "absolute"; oCanvas2.style.left = Math.round(iLayerWidth * iScreenScale)+"px"; oLayer.appendChild(oCanvas1); oLayer.appendChild(oCanvas2); oContainer.appendChild(oLayer); return { draw : function(fRotation) { // something is wrong in here. For now, it looks fine due to fortunate hill placement var iRot = -Math.round(fRotation); while (iRot < 0) iRot += 360; while (iRot > 360) iRot -= 360; // iRot is now between 0 and 360 var iScaledWidth = (iLayerWidth/2 * iScreenScale); // one degree of rotation equals x width units: var fRotScale = iScaledWidth / 360; var iScroll = iRot * fRotScale; var iLeft1 = -iScroll; var iLeft2 = -iScroll + iScaledWidth; oCanvas1.style.left = Math.round(iLeft1); oCanvas2.style.left = Math.round(iLeft2); }, div : oLayer } } function render() { // (posx, posy) should be at (iViewCanvasWidth/2, iViewCanvasHeight - iViewYOffset) on view canvas oViewCanvas.width = oViewCanvas.width; oViewCtx.fillStyle = "green"; oViewCtx.fillRect(0,0,oViewCanvas.width,oViewCanvas.height); oViewCtx.save(); oViewCtx.translate(iViewCanvasWidth/2,iViewCanvasHeight-iViewYOffset); oViewCtx.rotate((180 + oPlayer.rotation) * Math.PI / 180); oViewCtx.drawImage( oMapImg, -oPlayer.x,-oPlayer.y ); oViewCtx.restore(); oScreenCanvas.width=oScreenCanvas.width; oScreenCtx.fillStyle = "green"; //oScreenCtx.fillRect(0,0,oScreenCanvas.width,oScreenCanvas.height); for (var i=0;i<aStrips.length;i++) { var oStrip = aStrips[i]; if (iRenderMode == 0) { try { oScreenCtx.drawImage( oViewCanvas, iViewCanvasWidth/2 - (oStrip.stripwidth/2), //Math.floor(((iViewCanvasHeight-iViewYOffset) - oStrip.mapz)), ((iViewCanvasHeight-iViewYOffset) - oStrip.mapz)-1, oStrip.stripwidth, oStrip.mapzspan, 0,(iHeight-oStrip.viewy)/fLineScale,iWidth/fLineScale,1 ); } catch(e) {}; } if (iRenderMode == 1) { var iStripHeight = Math.max(3,oStrip.mapzspan); //oStrip.canvas.width=oStrip.canvas.width; oStrip.canvas.height = iStripHeight; oStrip.canvas.getContext("2d").clearRect(0,0,oStrip.stripwidth,1); try { oStrip.canvas.getContext("2d").drawImage( oViewCanvas, iViewCanvasWidth/2 - (oStrip.stripwidth/2), ((iViewCanvasHeight-iViewYOffset) - oStrip.mapz)-1, oStrip.stripwidth, oStrip.mapzspan, 0,0,oStrip.stripwidth,iStripHeight ); } catch(e) {}; } } var iOffsetX = (iWidth/2)*iScreenScale; var iOffsetY = (iHeight - iViewYOffset)*iScreenScale; for (var i=0;i<aKarts.length;i++) { var oKart = aKarts[i]; if (oKart.cpu) { var fCamX = -(oPlayer.x - oKart.x); var fCamY = -(oPlayer.y - oKart.y); var fRotRad = oPlayer.rotation * Math.PI / 180; var fTransX = fCamX * Math.cos(fRotRad) - fCamY * Math.sin(fRotRad); var fTransY = fCamX * Math.sin(fRotRad) + fCamY * Math.cos(fRotRad); var iDeltaY = -iCamHeight; var iDeltaX = iCamDist + fTransY; var iViewY = ((iDeltaY / iDeltaX) * iCamDist + iCamHeight) - iViewHeight; var fViewX = -(fTransX / (fTransY + iCamDist)) * iCamDist; var fAngle = oPlayer.rotation - oKart.rotation; while (fAngle < 0) fAngle += 360; while (fAngle > 360) fAngle -= 360; var iAngleStep = Math.round(fAngle / (360 / 22)); if (iAngleStep == 22) iAngleStep = 0; oKart.sprite.setState(iAngleStep); oKart.sprite.div.style.zIndex = Math.round(10000 - fTransY); oKart.sprite.draw( ((iWidth/2) + fViewX) * iScreenScale, (iHeight - iViewY) * iScreenScale, fFocal / (fFocal + (fTransY)) ); } } oPlayer.sprite.div.style.zIndex = 10000; oPlayer.sprite.draw(iOffsetX,iOffsetY,1); oHills.draw(oPlayer.rotation); oTrees.draw(oPlayer.rotation); } function canMoveTo(iX, iY) { if (iX > iMapWidth-5 || iY > iMapHeight-5) return false; if (iX < 4 || iY < 4) return false; for (var i=0;i<oMap.collision.length;i++) { var oBox = oMap.collision[i]; if (iX > oBox[0] && iX < oBox[0] + oBox[2]) { if (iY > oBox[1] && iY < oBox[1] + oBox[3]) { return false; } } } return true; } function move(oKart) { if (oKart.rotincdir) { oKart.rotinc += 2 * oKart.rotincdir; } else { if (oKart.rotinc < 0) { oKart.rotinc = Math.min(0, oKart.rotinc + 1); } if (oKart.rotinc > 0) { oKart.rotinc = Math.max(0, oKart.rotinc - 1); } } oKart.rotinc = Math.min(oKart.rotinc, fMaxRotInc); oKart.rotinc = Math.max(oKart.rotinc, -fMaxRotInc); if (oKart.speed) { oKart.rotation += (oKart.speedinc < 0 || (oKart.speedinc == 0 && oKart.speed < 0)) ? -oKart.rotinc : oKart.rotinc; } if (oKart.rotation < 0) oKart.rotation += 360; if (oKart.rotation > 360) oKart.rotation -= 360; if (!oKart.cpu) { if (oKart.rotincdir == 0) { oKart.sprite.setState(0); } else { if (oKart.rotincdir < 0) { if (oKart.rotinc == -fMaxRotInc && fMaxRotTimer > 0 && (new Date().getTime() - fMaxRotTimer) > 800) oKart.sprite.setState(26); else oKart.sprite.setState(24); } else { if (oKart.rotinc == fMaxRotInc && fMaxRotTimer > 0 && (new Date().getTime() - fMaxRotTimer) > 800) oKart.sprite.setState(27); else oKart.sprite.setState(25); } } if (Math.abs(oKart.rotinc) != fMaxRotInc) { fMaxRotTimer = 0; } else if (fMaxRotTimer == 0) { fMaxRotTimer = new Date().getTime(); } } oKart.speed += oKart.speedinc; var fMaxKartSpeed = fMaxSpeed; if (oKart.cpu) fMaxKartSpeed *= 0.95; if (oKart.speed > fMaxKartSpeed) oKart.speed = fMaxKartSpeed; if (oKart.speed < -fMaxKartSpeed/4) oKart.speed = -fMaxKartSpeed/4; // move position var fMoveX = oKart.speed * Math.sin(oKart.rotation * Math.PI / 180); var fMoveY = oKart.speed * Math.cos(oKart.rotation * Math.PI / 180); var fNewPosX = oKart.x + fMoveX; var fNewPosY = oKart.y + fMoveY; if (canMoveTo(Math.round(fNewPosX), Math.round(fNewPosY))) { oKart.x = fNewPosX; oKart.y = fNewPosY; } else { oKart.speed *= -1; } // decrease speed oKart.speed *= 0.9; } function ai(oKart) { var aCurPoint = oMap.aipoints[oKart.aipoint]; // first time, get the point coords if (!oKart.aipointx) oKart.aipointx = aCurPoint[0]; if (!oKart.aipointy) oKart.aipointy = aCurPoint[1]; var iLocalX = oKart.aipointx - oKart.x; var iLocalY = oKart.aipointy - oKart.y; iRotatedX = iLocalX * Math.cos(oKart.rotation * Math.PI / 180) - iLocalY * Math.sin(oKart.rotation * Math.PI / 180); iRotatedY = iLocalX * Math.sin(oKart.rotation * Math.PI / 180) + iLocalY * Math.cos(oKart.rotation * Math.PI / 180); var fAngle = Math.atan2(iRotatedX,iRotatedY) / Math.PI * 180; if (Math.abs(fAngle) > 10) { if (oKart.speed == fMaxSpeed) oKart.speedinc = -0.5; oKart.rotincdir = fAngle > 0 ? 1 : -1; } else { oKart.rotincdir = 0; } oKart.speedinc = 1; var fDist = Math.sqrt(iLocalX*iLocalX + iLocalY*iLocalY); if (fDist < 40) { oKart.aipoint++; if (oKart.aipoint >= oMap.aipoints.length) oKart.aipoint = 0; var oNewPoint = oMap.aipoints[oKart.aipoint]; oKart.aipointx = oNewPoint[0] + (Math.random()-0.5) * 10; oKart.aipointy = oNewPoint[1] + (Math.random()-0.5) * 10; } } function cycle() { for (var i=0;i<aKarts.length;i++) { if (aKarts[i].cpu) ai(aKarts[i]); move(aKarts[i]); } setTimeout(cycle, 1000 / 15); render(); } document.onkeydown = function(e) { if (!bRunning) return; switch (e.keyCode) { case 38: // up oPlayer.speedinc = 1; break; case 37: // left oPlayer.rotincdir = 1; break; case 39: // right oPlayer.rotincdir = -1; break; case 40: // down oPlayer.speedinc -= 0.2; break; } } document.onkeyup = function(e) { if (!bRunning) return; switch (e.keyCode) { case 38: // up oPlayer.speedinc = 0; break; case 37: // left oPlayer.rotincdir = 0; break; case 39: // right oPlayer.rotincdir = 0; break; case 40: // down oPlayer.speedinc = 0; break; } } // hastily tacked on intro screens, so you can select driver and track. function selectPlayerScreen() { var oScr = document.createElement("div"); var oStyle = oScr.style; oStyle.width = iWidth*iScreenScale+"px"; oStyle.height = iHeight*iScreenScale+"px"; oStyle.border = "1px solid black"; oStyle.backgroundColor = "black"; var oTitle = document.createElement("img"); oTitle.src = IMAGES_DIR + "title.png"; oTitle.style.position = "absolute"; oTitle.style.width = (39*iScreenScale)+"px"; oTitle.style.height = (13*iScreenScale)+"px"; oTitle.style.left = (iWidth-39)/2*iScreenScale+"px"; oTitle.style.top = 2*iScreenScale+"px"; oScr.appendChild(oTitle); oCtrStyle.width = iWidth*iScreenScale+"px"; oCtrStyle.height = iHeight*iScreenScale+"px"; oContainer.appendChild(oScr); for (var i=0;i<aPlayers.length;i++) { var oPImg = document.createElement("img"); oPImg.src = IMAGES_DIR + "select_" + aPlayers[i] + ".png"; oPImg.style.width = 12 * iScreenScale + "px"; oPImg.style.height = 12 * iScreenScale + "px"; oPImg.style.position = "absolute" oPImg.style.left = ((iWidth-12*aPlayers.length)/2+i*12)*iScreenScale+"px"; oPImg.style.top = 18*iScreenScale+"px"; oPImg.player = aPlayers[i]; oPImg.onclick = function() { strPlayer = this.player; oScr.innerHTML = ""; oContainer.removeChild(oScr); selectMapScreen(); } oScr.appendChild(oPImg); } } function selectMapScreen() { var oScr = document.createElement("div"); var oStyle = oScr.style; oStyle.width = iWidth*iScreenScale+"px"; oStyle.height = iHeight*iScreenScale+"px"; oStyle.border = "1px solid black"; oStyle.backgroundColor = "black"; oCtrStyle.width = iWidth*iScreenScale+"px"; oCtrStyle.height = iHeight*iScreenScale+"px"; oContainer.appendChild(oScr); var oTitle = document.createElement("img"); oTitle.src = IMAGES_DIR + "mushroomcup.png"; oTitle.style.position = "absolute"; oTitle.style.width = (36*iScreenScale)+"px"; oTitle.style.height = (6*iScreenScale)+"px"; oTitle.style.left = (iWidth-36)/2*iScreenScale+"px"; oTitle.style.top = 6*iScreenScale+"px"; oScr.appendChild(oTitle); for (var i=0;i<aAvailableMaps.length;i++) { var oPImg = document.createElement("img"); oPImg.src = IMAGES_DIR + "select_" + aAvailableMaps[i] + ".png"; oPImg.style.width = 30 * iScreenScale + "px"; oPImg.style.height = 12 * iScreenScale + "px"; oPImg.style.position = "absolute" oPImg.style.left = ((iWidth-30*aAvailableMaps.length)/2+i*30+i)*iScreenScale+"px"; oPImg.style.top = (14)*iScreenScale+"px"; oPImg.map = aAvailableMaps[i]; oPImg.onclick = function() { strMap = this.map; oScr.innerHTML = ""; oContainer.removeChild(oScr); resetGame(strMap); } oScr.appendChild(oPImg); } } for (var i=0;i<aPlayers.length;i++) { var oImg = new Image(); oImg.src = IMAGES_DIR + "sprite_" + aPlayers[i] + "_smooth.png"; } selectPlayerScreen(); window.MarioKartControl = { setRenderMode : function(iValue) { setRenderMode(iValue); }, setQuality : function(iValue) { setQuality(iValue); }, setScreenScale : function(iValue) { setScreenScale(iValue); }, setMusic : function(iValue) { bMusic = !!iValue; if (bMusic && !bMusicPlaying && bRunning) { startMusic(); } if (!bMusic && bMusicPlaying) { stopMusic(); } } }; }
/** * @param {number} num * @return {string} */ var digit = [['I', 'V'], ['X', 'L'], ['C', 'D'], ['M']]; var intToRoman = function(num) { var res = ''; var pos = 0; while (num !== 0) { var current = num % 10; if (current > 0 && current < 4) { res = digit[pos][0].repeat(current) + res; } else if (current === 4) { res = digit[pos][0] + digit[pos][1] + res; } else if (current === 5) { res = digit[pos][1] + res; } else if (current > 5 && current < 9) { res = digit[pos][1] + digit[pos][0].repeat(current - 5) + res; } else if (current === 9) { res = digit[pos][0] + digit[pos + 1][0] + res; } pos += 1; num = parseInt(num / 10); } return res; };
var searchData= [ ['location',['Location',['../classpyccuweather_1_1objects_1_1_location.html',1,'pyccuweather::objects']]], ['locationset',['LocationSet',['../classpyccuweather_1_1objects_1_1_location_set.html',1,'pyccuweather::objects']]] ];
(function() { var getPointer = fabric.util.getPointer, degreesToRadians = fabric.util.degreesToRadians, radiansToDegrees = fabric.util.radiansToDegrees, atan2 = Math.atan2, abs = Math.abs, supportLineDash = fabric.StaticCanvas.supports('setLineDash'), STROKE_OFFSET = 0.5; /** * Canvas class * @class fabric.Canvas * @extends fabric.StaticCanvas * @tutorial {@link http://fabricjs.com/fabric-intro-part-1#canvas} * @see {@link fabric.Canvas#initialize} for constructor definition * * @fires object:added * @fires object:modified * @fires object:rotating * @fires object:scaling * @fires object:moving * @fires object:selected * * @fires before:selection:cleared * @fires selection:cleared * @fires selection:created * * @fires path:created * @fires mouse:down * @fires mouse:move * @fires mouse:up * @fires mouse:over * @fires mouse:out * */ fabric.Canvas = fabric.util.createClass(fabric.StaticCanvas, /** @lends fabric.Canvas.prototype */ { /** * Constructor * @param {HTMLElement | String} el &lt;canvas> element to initialize instance on * @param {Object} [options] Options object * @return {Object} thisArg */ initialize: function(el, options) { options || (options = { }); this._initStatic(el, options); this._initInteractive(); this._createCacheCanvas(); }, /** * When true, objects can be transformed by one side (unproportionally) * @type Boolean * @default */ uniScaleTransform: false, /** * Indicates which key enable unproportional scaling * values: altKey, shiftKey, ctrlKey * @since 1.6.2 * @type String * @default */ uniScaleKey: 'shiftKey', /** * When true, objects use center point as the origin of scale transformation. * <b>Backwards incompatibility note:</b> This property replaces "centerTransform" (Boolean). * @since 1.3.4 * @type Boolean * @default */ centeredScaling: false, /** * When true, objects use center point as the origin of rotate transformation. * <b>Backwards incompatibility note:</b> This property replaces "centerTransform" (Boolean). * @since 1.3.4 * @type Boolean * @default */ centeredRotation: false, /** * Indicates which key enable centered Transfrom * values: altKey, shiftKey, ctrlKey * @since 1.6.2 * @type String * @default */ centeredKey: 'altKey', /** * Indicates which key enable alternate action on corner * values: altKey, shiftKey, ctrlKey * @since 1.6.2 * @type String * @default */ altActionKey: 'shiftKey', /** * Indicates that canvas is interactive. This property should not be changed. * @type Boolean * @default */ interactive: true, /** * Indicates whether group selection should be enabled * @type Boolean * @default */ selection: true, /** * Indicates which key enable multiple click selection * values: altKey, shiftKey, ctrlKey, cmdKey * @since 1.6.2 * @type String * @default */ selectionKey: 'shiftKey', /** * Indicates which key enable alternative selection * in case of target overlapping with active object * values: altKey, shiftKey, ctrlKey, cmdKey * @since 1.6.5 * @type null|String * @default */ altSelectionKey: null, /** * Color of selection * @type String * @default */ selectionColor: 'rgba(100, 100, 255, 0.3)', // blue /** * Default dash array pattern * If not empty the selection border is dashed * @type Array */ selectionDashArray: [], /** * Color of the border of selection (usually slightly darker than color of selection itself) * @type String * @default */ selectionBorderColor: 'rgba(255, 255, 255, 0.3)', /** * Width of a line used in object/group selection * @type Number * @default */ selectionLineWidth: 1, /** * Default cursor value used when hovering over an object on canvas * @type String * @default */ hoverCursor: 'move', /** * Default cursor value used when moving an object on canvas * @type String * @default */ moveCursor: 'move', /** * Default cursor value used for the entire canvas * @type String * @default */ defaultCursor: 'default', /** * Cursor value used during free drawing * @type String * @default */ freeDrawingCursor: 'crosshair', /** * Cursor value used for rotation point * @type String * @default */ rotationCursor: 'crosshair', /** * Default element class that's given to wrapper (div) element of canvas * @type String * @default */ containerClass: 'canvas-container', /** * When true, object detection happens on per-pixel basis rather than on per-bounding-box * @type Boolean * @default */ perPixelTargetFind: false, /** * Number of pixels around target pixel to tolerate (consider active) during object detection * @type Number * @default */ targetFindTolerance: 0, /** * When true, target detection is skipped when hovering over canvas. This can be used to improve performance. * @type Boolean * @default */ skipTargetFind: false, /** * When true, mouse events on canvas (mousedown/mousemove/mouseup) result in free drawing. * After mousedown, mousemove creates a shape, * and then mouseup finalizes it and adds an instance of `fabric.Path` onto canvas. * @tutorial {@link http://fabricjs.com/fabric-intro-part-4#free_drawing} * @type Boolean * @default */ isDrawingMode: false, /** * Indicates whether objects should remain in current stack position when selected. * When false objects are brought to top and rendered as part of the selection group * @type Boolean * @default */ preserveObjectStacking: false, /** * Indicates if the right click on canvas can output the context menu or not * @type Boolean * @since 1.6.5 * @default */ stopContextMenu: false, /** * Indicates if the canvas can fire right click events * @type Boolean * @since 1.6.5 * @default */ fireRightClick: false, /** * @private */ _initInteractive: function() { this._currentTransform = null; this._groupSelector = null; this._initWrapperElement(); this._createUpperCanvas(); this._initEventListeners(); this._initRetinaScaling(); this.freeDrawingBrush = fabric.PencilBrush && new fabric.PencilBrush(this); this.calcOffset(); }, /** * Divides objects in two groups, one to render immediately * and one to render as activeGroup. * @return {Array} objects to render immediately and pushes the other in the activeGroup. */ _chooseObjectsToRender: function() { var activeGroup = this.getActiveGroup(), activeObject = this.getActiveObject(), object, objsToRender = [], activeGroupObjects = []; if ((activeGroup || activeObject) && !this.preserveObjectStacking) { for (var i = 0, length = this._objects.length; i < length; i++) { object = this._objects[i]; if ((!activeGroup || !activeGroup.contains(object)) && object !== activeObject) { objsToRender.push(object); } else { activeGroupObjects.push(object); } } if (activeGroup) { activeGroup._set('_objects', activeGroupObjects); objsToRender.push(activeGroup); } activeObject && objsToRender.push(activeObject); } else { objsToRender = this._objects; } return objsToRender; }, /** * Renders both the top canvas and the secondary container canvas. * @return {fabric.Canvas} instance * @chainable */ renderAll: function () { if (this.selection && !this._groupSelector && !this.isDrawingMode) { this.clearContext(this.contextTop); } var canvasToDrawOn = this.contextContainer; this.renderCanvas(canvasToDrawOn, this._chooseObjectsToRender()); return this; }, /** * Method to render only the top canvas. * Also used to render the group selection box. * @return {fabric.Canvas} thisArg * @chainable */ renderTop: function () { var ctx = this.contextTop; this.clearContext(ctx); // we render the top context - last object if (this.selection && this._groupSelector) { this._drawSelection(ctx); } this.fire('after:render'); return this; }, /** * Resets the current transform to its original values and chooses the type of resizing based on the event * @private */ _resetCurrentTransform: function() { var t = this._currentTransform; t.target.set({ scaleX: t.original.scaleX, scaleY: t.original.scaleY, skewX: t.original.skewX, skewY: t.original.skewY, left: t.original.left, top: t.original.top }); if (this._shouldCenterTransform(t.target)) { if (t.action === 'rotate') { this._setOriginToCenter(t.target); } else { if (t.originX !== 'center') { if (t.originX === 'right') { t.mouseXSign = -1; } else { t.mouseXSign = 1; } } if (t.originY !== 'center') { if (t.originY === 'bottom') { t.mouseYSign = -1; } else { t.mouseYSign = 1; } } t.originX = 'center'; t.originY = 'center'; } } else { t.originX = t.original.originX; t.originY = t.original.originY; } }, /** * Checks if point is contained within an area of given object * @param {Event} e Event object * @param {fabric.Object} target Object to test against * @param {Object} [point] x,y object of point coordinates we want to check. * @return {Boolean} true if point is contained within an area of given object */ containsPoint: function (e, target, point) { var ignoreZoom = true, pointer = point || this.getPointer(e, ignoreZoom), xy; if (target.group && target.group === this.getActiveGroup()) { xy = this._normalizePointer(target.group, pointer); } else { xy = { x: pointer.x, y: pointer.y }; } // http://www.geog.ubc.ca/courses/klink/gis.notes/ncgia/u32.html // http://idav.ucdavis.edu/~okreylos/TAship/Spring2000/PointInPolygon.html return (target.containsPoint(xy) || target._findTargetCorner(pointer)); }, /** * @private */ _normalizePointer: function (object, pointer) { var m = object.calcTransformMatrix(), invertedM = fabric.util.invertTransform(m), vpt = this.viewportTransform, vptPointer = this.restorePointerVpt(pointer), p = fabric.util.transformPoint(vptPointer, invertedM); return fabric.util.transformPoint(p, vpt); }, /** * Returns true if object is transparent at a certain location * @param {fabric.Object} target Object to check * @param {Number} x Left coordinate * @param {Number} y Top coordinate * @return {Boolean} */ isTargetTransparent: function (target, x, y) { var hasBorders = target.hasBorders, transparentCorners = target.transparentCorners, ctx = this.contextCache, originalColor = target.selectionBackgroundColor; target.hasBorders = target.transparentCorners = false; target.selectionBackgroundColor = ''; ctx.save(); ctx.transform.apply(ctx, this.viewportTransform); target.render(ctx); ctx.restore(); target.active && target._renderControls(ctx); target.hasBorders = hasBorders; target.transparentCorners = transparentCorners; target.selectionBackgroundColor = originalColor; var isTransparent = fabric.util.isTransparent( ctx, x, y, this.targetFindTolerance); this.clearContext(ctx); return isTransparent; }, /** * @private * @param {Event} e Event object * @param {fabric.Object} target */ _shouldClearSelection: function (e, target) { var activeGroup = this.getActiveGroup(), activeObject = this.getActiveObject(); return ( !target || (target && activeGroup && !activeGroup.contains(target) && activeGroup !== target && !e[this.selectionKey]) || (target && !target.evented) || (target && !target.selectable && activeObject && activeObject !== target) ); }, /** * @private * @param {fabric.Object} target */ _shouldCenterTransform: function (target) { if (!target) { return; } var t = this._currentTransform, centerTransform; if (t.action === 'scale' || t.action === 'scaleX' || t.action === 'scaleY') { centerTransform = this.centeredScaling || target.centeredScaling; } else if (t.action === 'rotate') { centerTransform = this.centeredRotation || target.centeredRotation; } return centerTransform ? !t.altKey : t.altKey; }, /** * @private */ _getOriginFromCorner: function(target, corner) { var origin = { x: target.originX, y: target.originY }; if (corner === 'ml' || corner === 'tl' || corner === 'bl') { origin.x = 'right'; } else if (corner === 'mr' || corner === 'tr' || corner === 'br') { origin.x = 'left'; } if (corner === 'tl' || corner === 'mt' || corner === 'tr') { origin.y = 'bottom'; } else if (corner === 'bl' || corner === 'mb' || corner === 'br') { origin.y = 'top'; } return origin; }, /** * @private */ _getActionFromCorner: function(target, corner, e) { if (!corner) { return 'drag'; } switch (corner) { case 'mtr': return 'rotate'; case 'ml': case 'mr': return e[this.altActionKey] ? 'skewY' : 'scaleX'; case 'mt': case 'mb': return e[this.altActionKey] ? 'skewX' : 'scaleY'; default: return 'scale'; } }, /** * @private * @param {Event} e Event object * @param {fabric.Object} target */ _setupCurrentTransform: function (e, target) { if (!target) { return; } var pointer = this.getPointer(e), corner = target._findTargetCorner(this.getPointer(e, true)), action = this._getActionFromCorner(target, corner, e), origin = this._getOriginFromCorner(target, corner); this._currentTransform = { target: target, action: action, corner: corner, scaleX: target.scaleX, scaleY: target.scaleY, skewX: target.skewX, skewY: target.skewY, offsetX: pointer.x - target.left, offsetY: pointer.y - target.top, originX: origin.x, originY: origin.y, ex: pointer.x, ey: pointer.y, lastX: pointer.x, lastY: pointer.y, left: target.left, top: target.top, theta: degreesToRadians(target.angle), width: target.width * target.scaleX, mouseXSign: 1, mouseYSign: 1, shiftKey: e.shiftKey, altKey: e[this.centeredKey] }; this._currentTransform.original = { left: target.left, top: target.top, scaleX: target.scaleX, scaleY: target.scaleY, skewX: target.skewX, skewY: target.skewY, originX: origin.x, originY: origin.y }; this._resetCurrentTransform(); }, /** * Translates object by "setting" its left/top * @private * @param {Number} x pointer's x coordinate * @param {Number} y pointer's y coordinate * @return {Boolean} true if the translation occurred */ _translateObject: function (x, y) { var transform = this._currentTransform, target = transform.target, newLeft = x - transform.offsetX, newTop = y - transform.offsetY, moveX = !target.get('lockMovementX') && target.left !== newLeft, moveY = !target.get('lockMovementY') && target.top !== newTop; moveX && target.set('left', newLeft); moveY && target.set('top', newTop); return moveX || moveY; }, /** * Check if we are increasing a positive skew or lower it, * checking mouse direction and pressed corner. * @private */ _changeSkewTransformOrigin: function(mouseMove, t, by) { var property = 'originX', origins = { 0: 'center' }, skew = t.target.skewX, originA = 'left', originB = 'right', corner = t.corner === 'mt' || t.corner === 'ml' ? 1 : -1, flipSign = 1; mouseMove = mouseMove > 0 ? 1 : -1; if (by === 'y') { skew = t.target.skewY; originA = 'top'; originB = 'bottom'; property = 'originY'; } origins[-1] = originA; origins[1] = originB; t.target.flipX && (flipSign *= -1); t.target.flipY && (flipSign *= -1); if (skew === 0) { t.skewSign = -corner * mouseMove * flipSign; t[property] = origins[-mouseMove]; } else { skew = skew > 0 ? 1 : -1; t.skewSign = skew; t[property] = origins[skew * corner * flipSign]; } }, /** * Skew object by mouse events * @private * @param {Number} x pointer's x coordinate * @param {Number} y pointer's y coordinate * @param {String} by Either 'x' or 'y' * @return {Boolean} true if the skewing occurred */ _skewObject: function (x, y, by) { var t = this._currentTransform, target = t.target, skewed = false, lockSkewingX = target.get('lockSkewingX'), lockSkewingY = target.get('lockSkewingY'); if ((lockSkewingX && by === 'x') || (lockSkewingY && by === 'y')) { return false; } // Get the constraint point var center = target.getCenterPoint(), actualMouseByCenter = target.toLocalPoint(new fabric.Point(x, y), 'center', 'center')[by], lastMouseByCenter = target.toLocalPoint(new fabric.Point(t.lastX, t.lastY), 'center', 'center')[by], actualMouseByOrigin, constraintPosition, dim = target._getTransformedDimensions(); this._changeSkewTransformOrigin(actualMouseByCenter - lastMouseByCenter, t, by); actualMouseByOrigin = target.toLocalPoint(new fabric.Point(x, y), t.originX, t.originY)[by]; constraintPosition = target.translateToOriginPoint(center, t.originX, t.originY); // Actually skew the object skewed = this._setObjectSkew(actualMouseByOrigin, t, by, dim); t.lastX = x; t.lastY = y; // Make sure the constraints apply target.setPositionByOrigin(constraintPosition, t.originX, t.originY); return skewed; }, /** * Set object skew * @private * @return {Boolean} true if the skewing occurred */ _setObjectSkew: function(localMouse, transform, by, _dim) { var target = transform.target, newValue, skewed = false, skewSign = transform.skewSign, newDim, dimNoSkew, otherBy, _otherBy, _by, newDimMouse, skewX, skewY; if (by === 'x') { otherBy = 'y'; _otherBy = 'Y'; _by = 'X'; skewX = 0; skewY = target.skewY; } else { otherBy = 'x'; _otherBy = 'X'; _by = 'Y'; skewX = target.skewX; skewY = 0; } dimNoSkew = target._getTransformedDimensions(skewX, skewY); newDimMouse = 2 * Math.abs(localMouse) - dimNoSkew[by]; if (newDimMouse <= 2) { newValue = 0; } else { newValue = skewSign * Math.atan((newDimMouse / target['scale' + _by]) / (dimNoSkew[otherBy] / target['scale' + _otherBy])); newValue = fabric.util.radiansToDegrees(newValue); } skewed = target['skew' + _by] !== newValue; target.set('skew' + _by, newValue); if (target['skew' + _otherBy] !== 0) { newDim = target._getTransformedDimensions(); newValue = (_dim[otherBy] / newDim[otherBy]) * target['scale' + _otherBy]; target.set('scale' + _otherBy, newValue); } return skewed; }, /** * Scales object by invoking its scaleX/scaleY methods * @private * @param {Number} x pointer's x coordinate * @param {Number} y pointer's y coordinate * @param {String} by Either 'x' or 'y' - specifies dimension constraint by which to scale an object. * When not provided, an object is scaled by both dimensions equally * @return {Boolean} true if the scaling occurred */ _scaleObject: function (x, y, by) { var t = this._currentTransform, target = t.target, lockScalingX = target.get('lockScalingX'), lockScalingY = target.get('lockScalingY'), lockScalingFlip = target.get('lockScalingFlip'); if (lockScalingX && lockScalingY) { return false; } // Get the constraint point var constraintPosition = target.translateToOriginPoint(target.getCenterPoint(), t.originX, t.originY), localMouse = target.toLocalPoint(new fabric.Point(x, y), t.originX, t.originY), dim = target._getTransformedDimensions(), scaled = false; this._setLocalMouse(localMouse, t); // Actually scale the object scaled = this._setObjectScale(localMouse, t, lockScalingX, lockScalingY, by, lockScalingFlip, dim); // Make sure the constraints apply target.setPositionByOrigin(constraintPosition, t.originX, t.originY); return scaled; }, /** * @private * @return {Boolean} true if the scaling occurred */ _setObjectScale: function(localMouse, transform, lockScalingX, lockScalingY, by, lockScalingFlip, _dim) { var target = transform.target, forbidScalingX = false, forbidScalingY = false, scaled = false, changeX, changeY, scaleX, scaleY; scaleX = localMouse.x * target.scaleX / _dim.x; scaleY = localMouse.y * target.scaleY / _dim.y; changeX = target.scaleX !== scaleX; changeY = target.scaleY !== scaleY; if (lockScalingFlip && scaleX <= 0 && scaleX < target.scaleX) { forbidScalingX = true; } if (lockScalingFlip && scaleY <= 0 && scaleY < target.scaleY) { forbidScalingY = true; } if (by === 'equally' && !lockScalingX && !lockScalingY) { forbidScalingX || forbidScalingY || (scaled = this._scaleObjectEqually(localMouse, target, transform, _dim)); } else if (!by) { forbidScalingX || lockScalingX || (target.set('scaleX', scaleX) && (scaled = scaled || changeX)); forbidScalingY || lockScalingY || (target.set('scaleY', scaleY) && (scaled = scaled || changeY)); } else if (by === 'x' && !target.get('lockUniScaling')) { forbidScalingX || lockScalingX || (target.set('scaleX', scaleX) && (scaled = scaled || changeX)); } else if (by === 'y' && !target.get('lockUniScaling')) { forbidScalingY || lockScalingY || (target.set('scaleY', scaleY) && (scaled = scaled || changeY)); } transform.newScaleX = scaleX; transform.newScaleY = scaleY; forbidScalingX || forbidScalingY || this._flipObject(transform, by); return scaled; }, /** * @private * @return {Boolean} true if the scaling occurred */ _scaleObjectEqually: function(localMouse, target, transform, _dim) { var dist = localMouse.y + localMouse.x, lastDist = _dim.y * transform.original.scaleY / target.scaleY + _dim.x * transform.original.scaleX / target.scaleX, scaled; // We use transform.scaleX/Y instead of target.scaleX/Y // because the object may have a min scale and we'll loose the proportions transform.newScaleX = transform.original.scaleX * dist / lastDist; transform.newScaleY = transform.original.scaleY * dist / lastDist; scaled = transform.newScaleX !== target.scaleX || transform.newScaleY !== target.scaleY; target.set('scaleX', transform.newScaleX); target.set('scaleY', transform.newScaleY); return scaled; }, /** * @private */ _flipObject: function(transform, by) { if (transform.newScaleX < 0 && by !== 'y') { if (transform.originX === 'left') { transform.originX = 'right'; } else if (transform.originX === 'right') { transform.originX = 'left'; } } if (transform.newScaleY < 0 && by !== 'x') { if (transform.originY === 'top') { transform.originY = 'bottom'; } else if (transform.originY === 'bottom') { transform.originY = 'top'; } } }, /** * @private */ _setLocalMouse: function(localMouse, t) { var target = t.target; if (t.originX === 'right') { localMouse.x *= -1; } else if (t.originX === 'center') { localMouse.x *= t.mouseXSign * 2; if (localMouse.x < 0) { t.mouseXSign = -t.mouseXSign; } } if (t.originY === 'bottom') { localMouse.y *= -1; } else if (t.originY === 'center') { localMouse.y *= t.mouseYSign * 2; if (localMouse.y < 0) { t.mouseYSign = -t.mouseYSign; } } // adjust the mouse coordinates when dealing with padding if (abs(localMouse.x) > target.padding) { if (localMouse.x < 0) { localMouse.x += target.padding; } else { localMouse.x -= target.padding; } } else { // mouse is within the padding, set to 0 localMouse.x = 0; } if (abs(localMouse.y) > target.padding) { if (localMouse.y < 0) { localMouse.y += target.padding; } else { localMouse.y -= target.padding; } } else { localMouse.y = 0; } }, /** * Rotates object by invoking its rotate method * @private * @param {Number} x pointer's x coordinate * @param {Number} y pointer's y coordinate * @return {Boolean} true if the rotation occurred */ _rotateObject: function (x, y) { var t = this._currentTransform; if (t.target.get('lockRotation')) { return false; } var lastAngle = atan2(t.ey - t.top, t.ex - t.left), curAngle = atan2(y - t.top, x - t.left), angle = radiansToDegrees(curAngle - lastAngle + t.theta); // normalize angle to positive value if (angle < 0) { angle = 360 + angle; } t.target.angle = angle % 360; return true; }, /** * Set the cursor type of the canvas element * @param {String} value Cursor type of the canvas element. * @see http://www.w3.org/TR/css3-ui/#cursor */ setCursor: function (value) { this.upperCanvasEl.style.cursor = value; }, /** * @param {fabric.Object} target to reset transform * @private */ _resetObjectTransform: function (target) { target.scaleX = 1; target.scaleY = 1; target.skewX = 0; target.skewY = 0; target.setAngle(0); }, /** * @private * @param {CanvasRenderingContext2D} ctx to draw the selection on */ _drawSelection: function (ctx) { var groupSelector = this._groupSelector, left = groupSelector.left, top = groupSelector.top, aleft = abs(left), atop = abs(top); if (this.selectionColor) { ctx.fillStyle = this.selectionColor; ctx.fillRect( groupSelector.ex - ((left > 0) ? 0 : -left), groupSelector.ey - ((top > 0) ? 0 : -top), aleft, atop ); } if (!this.selectionLineWidth || !this.selectionBorderColor) { return; } ctx.lineWidth = this.selectionLineWidth; ctx.strokeStyle = this.selectionBorderColor; // selection border if (this.selectionDashArray.length > 1 && !supportLineDash) { var px = groupSelector.ex + STROKE_OFFSET - ((left > 0) ? 0 : aleft), py = groupSelector.ey + STROKE_OFFSET - ((top > 0) ? 0 : atop); ctx.beginPath(); fabric.util.drawDashedLine(ctx, px, py, px + aleft, py, this.selectionDashArray); fabric.util.drawDashedLine(ctx, px, py + atop - 1, px + aleft, py + atop - 1, this.selectionDashArray); fabric.util.drawDashedLine(ctx, px, py, px, py + atop, this.selectionDashArray); fabric.util.drawDashedLine(ctx, px + aleft - 1, py, px + aleft - 1, py + atop, this.selectionDashArray); ctx.closePath(); ctx.stroke(); } else { fabric.Object.prototype._setLineDash.call(this, ctx, this.selectionDashArray); ctx.strokeRect( groupSelector.ex + STROKE_OFFSET - ((left > 0) ? 0 : aleft), groupSelector.ey + STROKE_OFFSET - ((top > 0) ? 0 : atop), aleft, atop ); } }, /** * Method that determines what object we are clicking on * @param {Event} e mouse event * @param {Boolean} skipGroup when true, activeGroup is skipped and only objects are traversed through */ findTarget: function (e, skipGroup) { if (this.skipTargetFind) { return; } var ignoreZoom = true, pointer = this.getPointer(e, ignoreZoom), activeGroup = this.getActiveGroup(), activeObject = this.getActiveObject(), activeTarget; // first check current group (if one exists) // active group does not check sub targets like normal groups. // if active group just exits. if (activeGroup && !skipGroup && this._checkTarget(pointer, activeGroup)) { this._fireOverOutEvents(activeGroup, e); return activeGroup; } // if we hit the corner of an activeObject, let's return that. if (activeObject && activeObject._findTargetCorner(pointer)) { this._fireOverOutEvents(activeObject, e); return activeObject; } if (activeObject && this._checkTarget(pointer, activeObject)) { if (!this.preserveObjectStacking) { this._fireOverOutEvents(activeObject, e); return activeObject; } else { activeTarget = activeObject; } } this.targets = []; var target = this._searchPossibleTargets(this._objects, pointer); if (e[this.altSelectionKey] && target && activeTarget && target !== activeTarget) { target = activeTarget; } this._fireOverOutEvents(target, e); return target; }, /** * @private */ _fireOverOutEvents: function(target, e) { if (target) { if (this._hoveredTarget !== target) { if (this._hoveredTarget) { this.fire('mouse:out', { target: this._hoveredTarget, e: e }); this._hoveredTarget.fire('mouseout'); } this.fire('mouse:over', { target: target, e: e }); target.fire('mouseover'); this._hoveredTarget = target; } } else if (this._hoveredTarget) { this.fire('mouse:out', { target: this._hoveredTarget, e: e }); this._hoveredTarget.fire('mouseout'); this._hoveredTarget = null; } }, /** * @private */ _checkTarget: function(pointer, obj) { if (obj && obj.visible && obj.evented && this.containsPoint(null, obj, pointer)){ if ((this.perPixelTargetFind || obj.perPixelTargetFind) && !obj.isEditing) { var isTransparent = this.isTargetTransparent(obj, pointer.x, pointer.y); if (!isTransparent) { return true; } } else { return true; } } }, /** * @private */ _searchPossibleTargets: function(objects, pointer) { // Cache all targets where their bounding box contains point. var target, i = objects.length, normalizedPointer, subTarget; // Do not check for currently grouped objects, since we check the parent group itself. // untill we call this function specifically to search inside the activeGroup while (i--) { if (this._checkTarget(pointer, objects[i])) { target = objects[i]; if (target.type === 'group' && target.subTargetCheck) { normalizedPointer = this._normalizePointer(target, pointer); subTarget = this._searchPossibleTargets(target._objects, normalizedPointer); subTarget && this.targets.push(subTarget); } break; } } return target; }, /** * Returns pointer coordinates without the effect of the viewport * @param {Object} pointer with "x" and "y" number values * @return {Object} object with "x" and "y" number values */ restorePointerVpt: function(pointer) { return fabric.util.transformPoint( pointer, fabric.util.invertTransform(this.viewportTransform) ); }, /** * Returns pointer coordinates relative to canvas. * @param {Event} e * @param {Boolean} ignoreZoom * @return {Object} object with "x" and "y" number values */ getPointer: function (e, ignoreZoom, upperCanvasEl) { if (!upperCanvasEl) { upperCanvasEl = this.upperCanvasEl; } var pointer = getPointer(e), bounds = upperCanvasEl.getBoundingClientRect(), boundsWidth = bounds.width || 0, boundsHeight = bounds.height || 0, cssScale; if (!boundsWidth || !boundsHeight ) { if ('top' in bounds && 'bottom' in bounds) { boundsHeight = Math.abs( bounds.top - bounds.bottom ); } if ('right' in bounds && 'left' in bounds) { boundsWidth = Math.abs( bounds.right - bounds.left ); } } this.calcOffset(); pointer.x = pointer.x - this._offset.left; pointer.y = pointer.y - this._offset.top; if (!ignoreZoom) { pointer = this.restorePointerVpt(pointer); } if (boundsWidth === 0 || boundsHeight === 0) { // If bounds are not available (i.e. not visible), do not apply scale. cssScale = { width: 1, height: 1 }; } else { cssScale = { width: upperCanvasEl.width / boundsWidth, height: upperCanvasEl.height / boundsHeight }; } return { x: pointer.x * cssScale.width, y: pointer.y * cssScale.height }; }, /** * @private * @throws {CANVAS_INIT_ERROR} If canvas can not be initialized */ _createUpperCanvas: function () { var lowerCanvasClass = this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/, ''); this.upperCanvasEl = this._createCanvasElement(); fabric.util.addClass(this.upperCanvasEl, 'upper-canvas ' + lowerCanvasClass); this.wrapperEl.appendChild(this.upperCanvasEl); this._copyCanvasStyle(this.lowerCanvasEl, this.upperCanvasEl); this._applyCanvasStyle(this.upperCanvasEl); this.contextTop = this.upperCanvasEl.getContext('2d'); }, /** * @private */ _createCacheCanvas: function () { this.cacheCanvasEl = this._createCanvasElement(); this.cacheCanvasEl.setAttribute('width', this.width); this.cacheCanvasEl.setAttribute('height', this.height); this.contextCache = this.cacheCanvasEl.getContext('2d'); }, /** * @private */ _initWrapperElement: function () { this.wrapperEl = fabric.util.wrapElement(this.lowerCanvasEl, 'div', { 'class': this.containerClass }); fabric.util.setStyle(this.wrapperEl, { width: this.getWidth() + 'px', height: this.getHeight() + 'px', position: 'relative' }); fabric.util.makeElementUnselectable(this.wrapperEl); }, /** * @private * @param {HTMLElement} element canvas element to apply styles on */ _applyCanvasStyle: function (element) { var width = this.getWidth() || element.width, height = this.getHeight() || element.height; fabric.util.setStyle(element, { position: 'absolute', width: width + 'px', height: height + 'px', left: 0, top: 0 }); element.width = width; element.height = height; fabric.util.makeElementUnselectable(element); }, /** * Copys the the entire inline style from one element (fromEl) to another (toEl) * @private * @param {Element} fromEl Element style is copied from * @param {Element} toEl Element copied style is applied to */ _copyCanvasStyle: function (fromEl, toEl) { toEl.style.cssText = fromEl.style.cssText; }, /** * Returns context of canvas where object selection is drawn * @return {CanvasRenderingContext2D} */ getSelectionContext: function() { return this.contextTop; }, /** * Returns &lt;canvas> element on which object selection is drawn * @return {HTMLCanvasElement} */ getSelectionElement: function () { return this.upperCanvasEl; }, /** * @private * @param {Object} object */ _setActiveObject: function(object) { if (this._activeObject) { this._activeObject.set('active', false); } this._activeObject = object; object.set('active', true); }, /** * Sets given object as the only active object on canvas * @param {fabric.Object} object Object to set as an active one * @param {Event} [e] Event (passed along when firing "object:selected") * @return {fabric.Canvas} thisArg * @chainable */ setActiveObject: function (object, e) { this._setActiveObject(object); this.renderAll(); this.fire('object:selected', { target: object, e: e }); object.fire('selected', { e: e }); return this; }, /** * Returns currently active object * @return {fabric.Object} active object */ getActiveObject: function () { return this._activeObject; }, /** * @private * @param {fabric.Object} obj Object that was removed */ _onObjectRemoved: function(obj) { // removing active object should fire "selection:cleared" events if (this.getActiveObject() === obj) { this.fire('before:selection:cleared', { target: obj }); this._discardActiveObject(); this.fire('selection:cleared', { target: obj }); obj.fire('deselected'); } this.callSuper('_onObjectRemoved', obj); }, /** * @private */ _discardActiveObject: function() { if (this._activeObject) { this._activeObject.set('active', false); } this._activeObject = null; }, /** * Discards currently active object and fire events * @param {event} e * @return {fabric.Canvas} thisArg * @chainable */ discardActiveObject: function (e) { var activeObject = this._activeObject; this.fire('before:selection:cleared', { target: activeObject, e: e }); this._discardActiveObject(); this.fire('selection:cleared', { e: e }); activeObject && activeObject.fire('deselected', { e: e }); return this; }, /** * @private * @param {fabric.Group} group */ _setActiveGroup: function(group) { this._activeGroup = group; if (group) { group.set('active', true); } }, /** * Sets active group to a specified one * @param {fabric.Group} group Group to set as a current one * @param {Event} e Event object * @return {fabric.Canvas} thisArg * @chainable */ setActiveGroup: function (group, e) { this._setActiveGroup(group); if (group) { this.fire('object:selected', { target: group, e: e }); group.fire('selected', { e: e }); } return this; }, /** * Returns currently active group * @return {fabric.Group} Current group */ getActiveGroup: function () { return this._activeGroup; }, /** * @private */ _discardActiveGroup: function() { var g = this.getActiveGroup(); if (g) { g.destroy(); } this.setActiveGroup(null); }, /** * Discards currently active group and fire events * @return {fabric.Canvas} thisArg * @chainable */ discardActiveGroup: function (e) { var g = this.getActiveGroup(); this.fire('before:selection:cleared', { e: e, target: g }); this._discardActiveGroup(); this.fire('selection:cleared', { e: e }); return this; }, /** * Deactivates all objects on canvas, removing any active group or object * @return {fabric.Canvas} thisArg * @chainable */ deactivateAll: function () { var allObjects = this.getObjects(), i = 0, len = allObjects.length; for ( ; i < len; i++) { allObjects[i].set('active', false); } this._discardActiveGroup(); this._discardActiveObject(); return this; }, /** * Deactivates all objects and dispatches appropriate events * @return {fabric.Canvas} thisArg * @chainable */ deactivateAllWithDispatch: function (e) { var activeGroup = this.getActiveGroup(), activeObject = this.getActiveObject(); if (activeObject || activeGroup) { this.fire('before:selection:cleared', { target: activeObject || activeGroup, e: e }); } this.deactivateAll(); if (activeObject || activeGroup) { this.fire('selection:cleared', { e: e, target: activeObject }); activeObject && activeObject.fire('deselected'); } return this; }, /** * Clears a canvas element and removes all event listeners * @return {fabric.Canvas} thisArg * @chainable */ dispose: function () { this.callSuper('dispose'); var wrapper = this.wrapperEl; this.removeListeners(); wrapper.removeChild(this.upperCanvasEl); wrapper.removeChild(this.lowerCanvasEl); delete this.upperCanvasEl; if (wrapper.parentNode) { wrapper.parentNode.replaceChild(this.lowerCanvasEl, this.wrapperEl); } delete this.wrapperEl; return this; }, /** * Clears all contexts (background, main, top) of an instance * @return {fabric.Canvas} thisArg * @chainable */ clear: function () { this.discardActiveGroup(); this.discardActiveObject(); this.clearContext(this.contextTop); return this.callSuper('clear'); }, /** * Draws objects' controls (borders/controls) * @param {CanvasRenderingContext2D} ctx Context to render controls on */ drawControls: function(ctx) { var activeGroup = this.getActiveGroup(); if (activeGroup) { activeGroup._renderControls(ctx); } else { this._drawObjectsControls(ctx); } }, /** * @private */ _drawObjectsControls: function(ctx) { for (var i = 0, len = this._objects.length; i < len; ++i) { if (!this._objects[i] || !this._objects[i].active) { continue; } this._objects[i]._renderControls(ctx); } }, /** * @private */ _toObject: function(instance, methodName, propertiesToInclude) { //If the object is part of the current selection group, it should //be transformed appropriately //i.e. it should be serialised as it would appear if the selection group //were to be destroyed. var originalProperties = this._realizeGroupTransformOnObject(instance), object = this.callSuper('_toObject', instance, methodName, propertiesToInclude); //Undo the damage we did by changing all of its properties this._unwindGroupTransformOnObject(instance, originalProperties); return object; }, /** * Realises an object's group transformation on it * @private * @param {fabric.Object} [instance] the object to transform (gets mutated) * @returns the original values of instance which were changed */ _realizeGroupTransformOnObject: function(instance) { var layoutProps = ['angle', 'flipX', 'flipY', 'height', 'left', 'scaleX', 'scaleY', 'top', 'width']; if (instance.group && instance.group === this.getActiveGroup()) { //Copy all the positionally relevant properties across now var originalValues = {}; layoutProps.forEach(function(prop) { originalValues[prop] = instance[prop]; }); this.getActiveGroup().realizeTransform(instance); return originalValues; } else { return null; } }, /** * Restores the changed properties of instance * @private * @param {fabric.Object} [instance] the object to un-transform (gets mutated) * @param {Object} [originalValues] the original values of instance, as returned by _realizeGroupTransformOnObject */ _unwindGroupTransformOnObject: function(instance, originalValues) { if (originalValues) { instance.set(originalValues); } }, /** * @private */ _setSVGObject: function(markup, instance, reviver) { var originalProperties; //If the object is in a selection group, simulate what would happen to that //object when the group is deselected originalProperties = this._realizeGroupTransformOnObject(instance); this.callSuper('_setSVGObject', markup, instance, reviver); this._unwindGroupTransformOnObject(instance, originalProperties); }, }); // copying static properties manually to work around Opera's bug, // where "prototype" property is enumerable and overrides existing prototype for (var prop in fabric.StaticCanvas) { if (prop !== 'prototype') { fabric.Canvas[prop] = fabric.StaticCanvas[prop]; } } if (fabric.isTouchSupported) { /** @ignore */ fabric.Canvas.prototype._setCursorFromEvent = function() { }; } /** * @ignore * @class fabric.Element * @alias fabric.Canvas * @deprecated Use {@link fabric.Canvas} instead. * @constructor */ fabric.Element = fabric.Canvas; })();
{{{ code }}}
/* * grunt-requirejspaths * https://github.com/rockallite/grunt-requirejspaths * * Copyright (c) 2014 Rockallite Wulf * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { grunt.registerMultiTask('requirejspaths', 'Find RequireJS modules and make a file which contains corresponding paths config.', function() { // Need `grunt-filerev` plugin if (!grunt.filerev) { grunt.fail.warn('Could not find grunt.filerev. Task "filerev" must be run first.'); } if (!grunt.filerev.summary) { grunt.log.warn('No mappings in grunt.filerev.summary. Abort file creation.'); return; } // Merge task-specific and/or target-specific options with these defaults. var options = this.options({ baseRoot: '', baseUrl: '', scriptTag: true, useStrict: true, skipUnrevved: false }); if (!options.outputFile) { grunt.fail.warn('Option `outputFile` not specified.'); } if (!options.modules) { grunt.log.warn('Option `modules` not specified. Abort file creation.'); return; } var templateString; if (options.templateFile) { // Read template from a file if (grunt.file.exists(options.templateFile)) { templateString = grunt.file.read(options.templateFile); } else { grunt.fail.warn('Template file "' + options.templateFile + '" not found.'); } } else { /*jshint multistr:true */ templateString = options.template || ( (options.scriptTag ? '<script>\n' : '') + (options.useStrict ? '\'use strict\';\n' : '') + 'require.config({\n\ <% if (baseUrl) { %> baseUrl: "<%= baseUrl %>",\n<% } %>\ paths: <%= JSON.stringify(moduleMappings, null, 2) %>\n\ });\n' + (options.scriptTag ? '</script>\n': '')); } var assets = grunt.filerev.summary; var path = require('path'); var mappings = {}; options.modules.forEach(function (module) { var basePath = path.join(options.baseRoot, module) + '.js'; var longPath = assets[basePath]; if (!longPath) { if (options.skipUnrevved) { grunt.log.writeln('"' + basePath + '" was not found in filerev hash. Skipped.'); } else { grunt.fail.warn('"' + basePath + '" was not found in filerev hash. Make sure the module is revved. If you want to skip un-revved files, use the `skipUnrevved: true` option.'); } return; } var shortPath = path.relative(options.baseRoot, longPath); mappings[module] = shortPath.substr(0, shortPath.length - path.extname(shortPath).length); }); var data = { baseUrl: options.baseUrl, moduleMappings: mappings }; var content = grunt.template.process(templateString, {data: data}); grunt.file.write(options.outputFile, content); grunt.log.writeln('File "' + options.outputFile + '" created.'); }); };
import React from 'react'; import { Link } from 'react-router'; import $ from 'jquery'; import CommentsContainer from './comments_container'; import common_getParameter from '../modules/common_get_parameter'; class PrevPaper extends React.Component { render() { const { paper, changePaper } = this.props; if (paper.currentPaperId == paper.prevPaper.id) { return ( <span id = "prevPaper" title = { paper.prevPaper.title } data-paperId = { paper.prevPaper.id } > { paper.prevPaper.title } </span> ); } else { return ( <Link id = "prevPaper" to = { '/paper?paperId=' + paper.prevPaper.id } title = { paper.prevPaper.title } data-paperId = { paper.prevPaper.id } onClick = { () => changePaper(paper.prevPaper.id) } > { paper.prevPaper.title } </Link> ); } }; }; class NextPaper extends React.Component { render() { const { paper, changePaper } = this.props; if (paper.currentPaperId == paper.nextPaper.id) { return ( <span id = "nextPaper" title = { paper.nextPaper.title } data-paperId = { paper.nextPaper.id } > { paper.nextPaper.title } </span> ); } else { return ( <Link id = "nextPaper" to = { '/paper?paperId=' + paper.nextPaper.id } title = { paper.nextPaper.title } data-paperId = { paper.nextPaper.id } onClick = { () => changePaper(paper.nextPaper.id) } > { paper.nextPaper.title } </Link> ); } }; }; class UI_paperItem extends React.Component { constructor() { super(); this.addCodeCount = this.addCodeCount.bind(this); this.changePaper = this.changePaper.bind(this); }; addCodeCount() { $('.code-container').each(function() { var count = 1; $(this).find('pre').each(function() { if ($(this).hasClass('indent-4') && count > 100) { $(this).addClass('indent-lg'); } else if ($(this).hasClass('indent-5') && count > 9 && count < 100) { $(this).addClass('indent-sm'); } else if ($(this).hasClass('indent-5') && count < 9) { $(this).addClass('indent-xs'); } else if ($(this).hasClass('indent-6') && count > 9 && count < 100) { $(this).addClass('indent-sm'); } else if ($(this).hasClass('indent-6') && count < 9) { $(this).addClass('indent-xs'); } $(this).attr('data-line', count++); }); }); }; changePaper(paperId) { const { loadingContent, initPaper, initComments } = this.props; loadingContent(); initPaper(paperId); initComments(paperId); }; componentWillMount() { const { loadingAll } = this.props; loadingAll(); }; componentDidMount() { const { loadingAll, paper, initPaper, initComments } = this.props; if (!paper.currentPaperId) { loadingAll(); initPaper(common_getParameter('paperId')); initComments(common_getParameter('paperId')); } }; componentDidUpdate() { this.addCodeCount(); }; render() { const { paper, comments, initComments } = this.props; const currentPaperId = paper.currentPaperId; const paperContent = paper.paperContent; return ( <div id = "paperContent" className = "content-block hidden" data-paperId = { currentPaperId } > <div className = "paper-title"> <h1> { paper.paperTitle } </h1> </div> <div className = "paper-subtitle"> <h3> <span className = "subtitle-date"> <i className = "fa fa-calendar"></i> &nbsp; <span className = "date-val">{ paper.paperDate }</span> </span> <span className = "subtitle-tags"> <i className = "fa fa-tags"></i> &nbsp; <span className = "tags-val">{ paper.paperTag }</span> </span> </h3> </div> <hr/> <div className = "paper-content" dangerouslySetInnerHTML = {{ __html: paperContent }} ></div> <hr className = "footer-hr"/> <div className = "paper-footer row"> <div className = "col-xs-6 pre-title"> <i className = "fa fa-arrow-circle-o-left pull-left"></i> <PrevPaper paper = { paper } changePaper = { this.changePaper } /> </div> <div className = "col-xs-6 next-title"> <NextPaper paper = { paper } changePaper = { this.changePaper } /> <i className = "fa fa-arrow-circle-o-right pull-right"></i> </div> </div> <hr className = "footer-hr"/> <CommentsContainer comments = { comments } initComments = { initComments } /> </div> ); }; }; export default UI_paperItem;
#!/usr/bin/env node const OctoDash = require("octodash") const packageJSON = require("./package.json") const ReleaseService = require("./lib/services/release-service") const ProjectHelper = require("./lib/helpers/project-helper") const semverHelper = require("./lib/helpers/semver-helper") const Spinner = require("./lib/models/spinner") const map = require("lodash/map") const compact = require("lodash/compact") const first = require("lodash/first") const isEmpty = require("lodash/isEmpty") const parseBeekeeperEnv = require("./lib/helpers/parse-beekeeper-env") const path = require("path") const projectRoot = process.cwd() const projectHelper = new ProjectHelper({ projectRoot }) const checkExclusiveOptions = function(options) { const exclusiveOptions = compact( map(options, (value, key) => { if (value === true || !isEmpty(value)) return key }) ) const length = exclusiveOptions.length if (length > 1) throw new Error(`Multiple release options cannot be specified ${exclusiveOptions}`) if (length === 0) return "patch" return first(exclusiveOptions).toString() } const CLI_OPTIONS = [ { names: ["beekeeper-uri"], type: "string", env: "BEEKEEPER_URI", required: true, help: "Beekeeper Uri", helpArg: "URL", }, { names: ["project-owner"], type: "string", env: "BEEKEEPER_PROJECT_OWNER", required: true, help: "Project Owner", }, { names: ["project-name"], type: "string", env: "BEEKEEPER_PROJECT_NAME", required: true, default: projectHelper.defaultProjectName(), help: "Project Name", }, { names: ["project-version"], type: "string", env: "BEEKEEPER_PROJECT_VERSION", required: true, default: projectHelper.projectVersion(), help: "Project Version", }, { names: ["github-token"], type: "string", env: "BEEKEEPER_GITHUB_TOKEN", required: true, help: "Github token", }, { names: ["github-release-enabled", "enable-github-release"], type: "boolarg", env: "BEEKEEPER_GITHUB_RELEASE_ENABLED", required: true, default: true, help: "Github release enabled", }, { names: ["github-draft"], type: "bool", env: "BEEKEEPER_GITHUB_DRAFT", default: false, help: "Github draft", }, { names: ["github-prerelease"], type: "bool", env: "BEEKEEPER_GITHUB_PRERELEASE", default: false, help: "Github prerelease", }, { names: ["beekeeper-enabled", "enable-beekeeper"], type: "boolarg", env: "BEEKEEPER_ENABLED", required: true, default: true, help: "Beekeeper enabled", }, { names: ["init"], type: "bool", help: "Set version 1.0.0", }, { names: ["major"], type: "bool", help: "Increment semver major version", }, { names: ["premajor"], type: "bool", help: "Increment semver premajor version", }, { names: ["minor"], type: "bool", help: "Increment semver minor version", }, { names: ["preminor"], type: "bool", help: "Increment semver preminor version", }, { names: ["patch"], type: "bool", help: "Increment semver patch version", }, { names: ["prepatch"], type: "bool", help: "Increment semver prepatch version", }, { names: ["prerelease"], type: "string", help: "Increment semver prerelease version, value is 'tag-preid'", helpArg: "preid", }, ] const run = async function() { const filePath = path.join(projectRoot, ".beekeeper.env") const beekeeperEnv = parseBeekeeperEnv({ env: process.env, filePath }) const octoDash = new OctoDash({ argv: process.argv, env: beekeeperEnv, cliOptions: CLI_OPTIONS, name: packageJSON.name, version: packageJSON.version, }) const options = octoDash.parseOptions() const { beekeeperUri, beekeeperEnabled, projectName, projectOwner, githubToken, githubReleaseEnabled, githubDraft, githubPrerelease, projectVersion, init, major, premajor, minor, preminor, patch, prepatch, prerelease, } = options const release = checkExclusiveOptions({ init, major, premajor, minor, preminor, patch, prepatch, prerelease, }) const newProjectVersion = projectHelper.incrementVersion({ release, projectVersion, prerelease }) const spinner = new Spinner() const releaseService = new ReleaseService({ projectRoot, beekeeperEnabled, beekeeperUri, githubToken, githubReleaseEnabled, githubDraft, githubPrerelease, spinner, }) const messageArg = first(options._args) const message = messageArg ? `${semverHelper.getTag(newProjectVersion)} ${messageArg}` : semverHelper.getTag(newProjectVersion) try { await releaseService.release({ projectOwner, projectName, release, projectVersion: newProjectVersion, message }) } catch (error) { octoDash.die(error) } octoDash.die() // exits with status 0 } run().catch(function(error) { console.error(error.stack) })
var mongoose = require('mongoose'), Schema = mongoose.Schema; var PartSchema = new Schema({ name: {type: String, minlength: 2}, //_repairs: [{type: Schema.Types.ObjectId, ref: 'Repair'}] }, {timestamps: true}); mongoose.model('Part', PartSchema);
define(function (require) { 'use strict'; var defineComponent = require('flight/lib/component'); return defineComponent(colorMatcher); function colorMatcher() { this.defaultAttrs({ inputSelector: '.inputField', colorSelector: '.color' }); this.updateName = function (e, data) { this.select('colorSelector').css({background: data.el.value}); }; this.after('initialize', function () { this.on("input", { inputSelector: this.updateName }); }); } });
import { decamelizeKeys } from 'humps'; function buildQueryString(query) { const keys = query && Object.keys(decamelizeKeys(query)).filter(key => query[key] !== undefined); if (!keys || keys.length === 0) { return ''; } const qs = keys.map(key => [key, query[key]].map(encodeURIComponent).join('=')) .join('&'); return `?${qs}`; } function buildUrl(state, endpoint, query) { let url = process.env.API_URL; if (typeof endpoint === 'function') { url += endpoint(state); } else { url += endpoint; } url += buildQueryString(query); return url; } function buildHeaders(state, authenticate) { const headers = new Headers({ 'Accept': 'application/json', 'Content-Type': 'application/json; charset=utf-8', }); if (authenticate) { const token = state.getIn(['auth', 'token']); headers.set('Authorization', `Bearer ${token}`); } return headers; } function buildBody(state, payload) { let body = payload; if (typeof body === 'function') { body = body(state); } if (typeof body !== 'undefined') { body = JSON.stringify(decamelizeKeys(body)); } return body; } export const CALL_API = Symbol('CALL_API'); export default store => next => action => { const api = action[CALL_API]; if (typeof api === 'undefined') { next(action); return; } const state = store.getState(); const { types, method = 'get', endpoint, query, validate, authenticate = true } = api; let { body } = api; const [REQUEST, SUCCESS, FAILURE] = types; next({ type: REQUEST }); if (validate) { const errors = validate(body); if (errors) { next({ type: FAILURE, payload: errors }); return; } } const fullUrl = buildUrl(state, endpoint, query); const headers = buildHeaders(state, authenticate); body = buildBody(state, body); fetch(fullUrl, { method, headers, body }) .then(response => response.json().then(json => ({ response, json }))) .then(({ json, response }) => { if (response.ok) { next({ type: SUCCESS, payload: json }); } else if (response.status === 422) { // unprocessable entity next({ type: FAILURE, payload: json.errors }); } else { next({ type: FAILURE, payload: { base: [json.message || json.error] } }); } }) .catch(err => { console.error('[api middleware]', err); next({ type: FAILURE, error: true, payload: err }); }); };
NEWSBLUR.ReaderGoodies = function(options) { var defaults = {}; this.options = $.extend({}, defaults, options); this.model = NEWSBLUR.assets; this.runner(); }; NEWSBLUR.ReaderGoodies.prototype = new NEWSBLUR.Modal; NEWSBLUR.ReaderGoodies.prototype.constructor = NEWSBLUR.ReaderGoodies; _.extend(NEWSBLUR.ReaderGoodies.prototype, { runner: function() { this.make_modal(); this.open_modal(); this.$modal.bind('click', $.rescope(this.handle_click, this)); }, make_modal: function() { var self = this; this.$modal = $.make('div', { className: 'NB-modal-goodies NB-modal' }, [ $.make('h2', { className: 'NB-modal-title' }, [ $.make('div', { className: 'NB-icon' }), 'Goodies &amp; Extras', $.make('div', { className: 'NB-icon-dropdown' }) ]), $.make('fieldset', [ $.make('legend', 'Bookmarklet') ]), $.make('div', { className: 'NB-goodies-group' }, [ NEWSBLUR.generate_bookmarklet(), $.make('div', { className: 'NB-goodies-title' }, 'Add Site &amp; Share Story Bookmarklet') ]), $.make('fieldset', [ $.make('legend', 'Mobile Apps for NewsBlur') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: '/ios/' }, 'See the iOS App'), $.make('div', { className: 'NB-goodies-iphone' }), $.make('div', { className: 'NB-goodies-title' }, 'Official NewsBlur iPhone/iPad App') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: '/android/' }, 'See the Android App'), $.make('div', { className: 'NB-goodies-android' }), $.make('div', { className: 'NB-goodies-title' }, 'Official NewsBlur Android App') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'https://market.android.com/details?id=bitwrit.Blar' }, 'View in Android Market'), $.make('div', { className: 'NB-goodies-android' }), $.make('div', { className: 'NB-goodies-title' }, 'Blar') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://windowsphone.com/s?appid=900e67fd-9934-e011-854c-00237de2db9e' }, 'View in Windows Phone Store'), $.make('div', { className: 'NB-goodies-windows' }), $.make('div', { className: 'NB-goodies-title' }, 'Feed Me') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://windowsphone.com/s?appid=2585d348-0894-41b6-8c26-77aeb257f9d8' }, 'View in Windows Phone Store'), $.make('div', { className: 'NB-goodies-windows' }), $.make('div', { className: 'NB-goodies-title' }, 'Metroblur') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://www.windowsphone.com/s?appid=f001b025-94d7-4769-a33d-7dd34778141c' }, 'View in Windows Phone Store'), $.make('div', { className: 'NB-goodies-windows' }), $.make('div', { className: 'NB-goodies-title' }, 'NewsSpot') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://www.windowsphone.com/s?appid=5bef74a6-9ccc-df11-9eae-00237de2db9e' }, 'View in Windows Phone Store'), $.make('div', { className: 'NB-goodies-windows' }), $.make('div', { className: 'NB-goodies-title' }, 'Feed Reader') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://www.windowsphone.com/en-us/store/app/swift-reader/e1e672a1-dd3a-483d-8457-81d3ca4a13ef' }, 'View in Windows Phone Store'), $.make('div', { className: 'NB-goodies-windows' }), $.make('div', { className: 'NB-goodies-title' }, 'Swift Reader') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://projects.developer.nokia.com/feed_reader' }, 'View in Nokia Store'), $.make('div', { className: 'NB-goodies-nokia' }), $.make('div', { className: 'NB-goodies-title' }, 'Web Feeds') ]), $.make('fieldset', [ $.make('legend', 'Native Apps for NewsBlur') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://readkitapp.com' }, 'Download ReadKit for Mac'), $.make('div', { className: 'NB-goodies-readkit' }), $.make('div', { className: 'NB-goodies-title' }, 'ReadKit') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://www.tafitiapp.com/mx/' }, 'Download Tafiti for Windows 8'), $.make('div', { className: 'NB-goodies-tafiti' }), $.make('div', { className: 'NB-goodies-title' }, 'Tafiti') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green', href: 'http://apps.microsoft.com/windows/en-us/app/bluree/35b1d32a-5abb-479a-8fd1-bbed4fa0172e' }, 'Download Bluree for Windows 8'), $.make('div', { className: 'NB-goodies-bluree' }), $.make('div', { className: 'NB-goodies-title' }, 'Bluree') ]), $.make('fieldset', [ $.make('legend', 'Browser Extensions for NewsBlur') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-firefox-link NB-modal-submit-button NB-modal-submit-green', href: '#' }, 'Add to Firefox'), $.make('div', { className: 'NB-goodies-firefox' }), $.make('div', { className: 'NB-goodies-title' }, 'Firefox: Register NewsBlur as an RSS reader') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-chrome-link NB-modal-submit-button NB-modal-submit-green', href: '#' }, 'Download'), $.make('div', { className: 'NB-goodies-chrome' }), $.make('div', { className: 'NB-goodies-title' }, 'Google Chrome: NewsBlur Chrome Web App') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-modal-submit-button NB-modal-submit-green', href: 'https://chrome.google.com/webstore/detail/rss-subscription-extensio/nlbjncdgjeocebhnmkbbbdekmmmcbfjd/details?hl=en' }, 'Add to Chrome'), $.make('div', { className: 'NB-goodies-chrome' }), $.make('div', { className: 'NB-goodies-title' }, 'Google Chrome: Register NewsBlur as an RSS reader'), $.make('div', { className: 'NB-goodies-subtitle' }, [ 'To use this extension, use the custom add site URL below.' ]) ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-modal-submit-button NB-modal-submit-green', href: 'https://chrome.google.com/webstore/detail/unofficial-newsblur-reade/hnegmjknmfninedmmlhndnjlblopjgad?utm_campaign=en&utm_source=en-ha-na-us-bk-webstr&utm_medium=ha' }, 'Download'), $.make('div', { className: 'NB-goodies-chrome' }), $.make('div', { className: 'NB-goodies-title' }, 'Google Chrome: Unofficial browser extension'), $.make('div', { className: 'NB-goodies-subtitle' }, [ 'This extension displays all of your unread stories and unread counts.' ]) ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-modal-submit-button NB-modal-submit-green', href: NEWSBLUR.Globals.MEDIA_URL + 'extensions/NewsBlur Safari Helper.app.zip' }, 'Add to Safari'), $.make('div', { className: 'NB-goodies-safari' }), $.make('div', { className: 'NB-goodies-title' }, 'Safari: Register NewsBlur as an RSS reader'), $.make('div', { className: 'NB-goodies-subtitle' }, [ 'To use this extension, extract and move the NewsBlur Safari Helper.app ', 'to your Applications folder. Then in ', $.make('b', 'Safari > Settings > RSS'), ' choose the new NewsBlur Safari Helper.app. If you don\'t have an RSS chooser, ', 'you will have to use ', $.make('a', { href: 'http://www.rubicode.com/Software/RCDefaultApp/', className: 'NB-splash-link' }, 'RCDefaultApp'), ' to select the NewsBlur Safari Helper as your RSS reader. Then loading an RSS ', 'feed in Safari will open the feed in NewsBlur. Simple!' ]) ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-safari-notifier NB-modal-submit-button NB-modal-submit-green', href: 'https://menakite.eu/~anaconda/safari/NewsBlur-Counter/NewsBlur-Counter.safariextz' }, 'Download'), $.make('div', { className: 'NB-goodies-safari' }), $.make('div', { className: 'NB-goodies-title' }, 'Safari: NewsBlur unread count notifier') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('a', { className: 'NB-goodies-chrome-link NB-modal-submit-button NB-modal-submit-green', href: 'https://chrome.google.com/webstore/detail/nnbhbdncokmmjheldobdfbmfpamelojh' }, 'Download'), $.make('div', { className: 'NB-goodies-chrome' }), $.make('div', { className: 'NB-goodies-title' }, 'Chrome: NewsBlur unread count notifier') ]), $.make('fieldset', [ $.make('legend', 'Custom URLs') ]), $.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [ $.make('input', { className: 'NB-goodies-custom-input', value: 'http://www.newsblur.com/?url=BLOG_URL_GOES_HERE' }), $.make('div', { className: 'NB-goodies-custom' }), $.make('div', { className: 'NB-goodies-title' }, 'Custom Add Site URL') ]) ]); }, // =========== // = Actions = // =========== handle_click: function(elem, e) { var self = this; $.targetIs(e, { tagSelector: '.NB-goodies-bookmarklet-button' }, function($t, $p) { e.preventDefault(); alert('Drag this button to your bookmark toolbar.'); }); $.targetIs(e, { tagSelector: '.NB-goodies-firefox-link' }, function($t, $p) { e.preventDefault(); var host = [ document.location.protocol, '//', document.location.host, '/' ].join(''); navigator.registerContentHandler("application/vnd.mozilla.maybe.feed", host + "?url=%s", "NewsBlur"); navigator.registerContentHandler("application/atom+xml", host + "?url=%s", "NewsBlur"); navigator.registerContentHandler("application/rss+xml", host + "?url=%s", "NewsBlur"); }); $.targetIs(e, { tagSelector: '.NB-goodies-chrome-link' }, function($t, $p) { e.preventDefault(); window.location.href = 'https://chrome.google.com/webstore/detail/rss-subscription-extensio/bmjffnfcokiodbeiamclanljnaheeoke'; }); $.targetIs(e, { tagSelector: '.NB-goodies-custom-input' }, function($t, $p) { e.preventDefault(); $t.select(); }); } });
import ActionTypes from "./actionTypes"; // Action to hide the callout export function hide() { return { type: ActionTypes.Hide.Callout, visible: false }; } // Action to show the callout export function show() { return { type: ActionTypes.Show.Callout, visible: true }; }
module.exports = {"1619":{"id":"1619","parentId":"194","name":"\u5b5d\u5357\u533a"},"1620":{"id":"1620","parentId":"194","name":"\u5e94\u57ce\u5e02"},"1621":{"id":"1621","parentId":"194","name":"\u5b89\u9646\u5e02"},"1622":{"id":"1622","parentId":"194","name":"\u6c49\u5ddd\u5e02"},"1623":{"id":"1623","parentId":"194","name":"\u5b5d\u660c\u53bf"},"1624":{"id":"1624","parentId":"194","name":"\u5927\u609f\u53bf"},"1625":{"id":"1625","parentId":"194","name":"\u4e91\u68a6\u53bf"}};
import axios from 'axios'; export const FETCH_POSTS = 'fetch_posts'; export const FETCH_POST = 'fetch_post'; export const CREATE_POST = 'create_post'; export const DELETE_POST = 'delete_post'; const ROOT_URL = 'https://reduxblog.herokuapp.com/api'; const API_KEY = '?key=batman90'; export function fetchPosts() { const request = axios.get(`${ROOT_URL}/posts${API_KEY}`); return { type: FETCH_POSTS, payload: request } } export function createPost(values, callback) { const request = axios.post(`${ROOT_URL}/posts${API_KEY}`, values) .then(() => callback()); return { type: CREATE_POST, payload: request } } export function fetchPost(id) { const request = axios.get(`${ROOT_URL}/posts/${id}${API_KEY}`); return { type: FETCH_POST, payload: request } } export function deletePost(id, callback) { axios.delete(`${ROOT_URL}/posts/${id}${API_KEY}`) .then(() => { callback()}); return { type: DELETE_POST, payload: id } }
(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.plantumlEncoder = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ 'use strict' var pako = require('pako/lib/deflate.js') module.exports = function (data) { return pako.deflateRaw(data, { level: 9, to: 'string' }) } },{"pako/lib/deflate.js":4}],2:[function(require,module,exports){ 'use strict' // Encode code taken from the PlantUML website: // http://plantuml.sourceforge.net/codejavascript2.html // It is described as being "a transformation close to base64" // The code has been slightly modified to pass linters function encode6bit (b) { if (b < 10) { return String.fromCharCode(48 + b) } b -= 10 if (b < 26) { return String.fromCharCode(65 + b) } b -= 26 if (b < 26) { return String.fromCharCode(97 + b) } b -= 26 if (b === 0) { return '-' } if (b === 1) { return '_' } return '?' } function append3bytes (b1, b2, b3) { var c1 = b1 >> 2 var c2 = ((b1 & 0x3) << 4) | (b2 >> 4) var c3 = ((b2 & 0xF) << 2) | (b3 >> 6) var c4 = b3 & 0x3F var r = '' r += encode6bit(c1 & 0x3F) r += encode6bit(c2 & 0x3F) r += encode6bit(c3 & 0x3F) r += encode6bit(c4 & 0x3F) return r } module.exports = function (data) { var r = '' for (var i = 0; i < data.length; i += 3) { if (i + 2 === data.length) { r += append3bytes(data.charCodeAt(i), data.charCodeAt(i + 1), 0) } else if (i + 1 === data.length) { r += append3bytes(data.charCodeAt(i), 0, 0) } else { r += append3bytes(data.charCodeAt(i), data.charCodeAt(i + 1), data.charCodeAt(i + 2)) } } return r } },{}],3:[function(require,module,exports){ 'use strict' var deflate = require('./deflate') var encode64 = require('./encode64') module.exports.encode = function (puml) { var deflated = deflate(puml) return encode64(deflated) } },{"./deflate":1,"./encode64":2}],4:[function(require,module,exports){ 'use strict'; var zlib_deflate = require('./zlib/deflate'); var utils = require('./utils/common'); var strings = require('./utils/strings'); var msg = require('./zlib/messages'); var ZStream = require('./zlib/zstream'); var toString = Object.prototype.toString; /* Public constants ==========================================================*/ /* ===========================================================================*/ var Z_NO_FLUSH = 0; var Z_FINISH = 4; var Z_OK = 0; var Z_STREAM_END = 1; var Z_SYNC_FLUSH = 2; var Z_DEFAULT_COMPRESSION = -1; var Z_DEFAULT_STRATEGY = 0; var Z_DEFLATED = 8; /* ===========================================================================*/ /** * class Deflate * * Generic JS-style wrapper for zlib calls. If you don't need * streaming behaviour - use more simple functions: [[deflate]], * [[deflateRaw]] and [[gzip]]. **/ /* internal * Deflate.chunks -> Array * * Chunks of output data, if [[Deflate#onData]] not overridden. **/ /** * Deflate.result -> Uint8Array|Array * * Compressed result, generated by default [[Deflate#onData]] * and [[Deflate#onEnd]] handlers. Filled after you push last chunk * (call [[Deflate#push]] with `Z_FINISH` / `true` param) or if you * push a chunk with explicit flush (call [[Deflate#push]] with * `Z_SYNC_FLUSH` param). **/ /** * Deflate.err -> Number * * Error code after deflate finished. 0 (Z_OK) on success. * You will not need it in real life, because deflate errors * are possible only on wrong options or bad `onData` / `onEnd` * custom handlers. **/ /** * Deflate.msg -> String * * Error message, if [[Deflate.err]] != 0 **/ /** * new Deflate(options) * - options (Object): zlib deflate options. * * Creates new deflator instance with specified params. Throws exception * on bad params. Supported options: * * - `level` * - `windowBits` * - `memLevel` * - `strategy` * - `dictionary` * * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced) * for more information on these. * * Additional options, for internal needs: * * - `chunkSize` - size of generated data chunks (16K by default) * - `raw` (Boolean) - do raw deflate * - `gzip` (Boolean) - create gzip wrapper * - `to` (String) - if equal to 'string', then result will be "binary string" * (each char code [0..255]) * - `header` (Object) - custom header for gzip * - `text` (Boolean) - true if compressed data believed to be text * - `time` (Number) - modification time, unix timestamp * - `os` (Number) - operation system code * - `extra` (Array) - array of bytes with extra data (max 65536) * - `name` (String) - file name (binary string) * - `comment` (String) - comment (binary string) * - `hcrc` (Boolean) - true if header crc should be added * * ##### Example: * * ```javascript * var pako = require('pako') * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9]) * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]); * * var deflate = new pako.Deflate({ level: 3}); * * deflate.push(chunk1, false); * deflate.push(chunk2, true); // true -> last chunk * * if (deflate.err) { throw new Error(deflate.err); } * * console.log(deflate.result); * ``` **/ function Deflate(options) { if (!(this instanceof Deflate)) return new Deflate(options); this.options = utils.assign({ level: Z_DEFAULT_COMPRESSION, method: Z_DEFLATED, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: Z_DEFAULT_STRATEGY, to: '' }, options || {}); var opt = this.options; if (opt.raw && (opt.windowBits > 0)) { opt.windowBits = -opt.windowBits; } else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) { opt.windowBits += 16; } this.err = 0; // error code, if happens (0 = Z_OK) this.msg = ''; // error message this.ended = false; // used to avoid multiple onEnd() calls this.chunks = []; // chunks of compressed data this.strm = new ZStream(); this.strm.avail_out = 0; var status = zlib_deflate.deflateInit2( this.strm, opt.level, opt.method, opt.windowBits, opt.memLevel, opt.strategy ); if (status !== Z_OK) { throw new Error(msg[status]); } if (opt.header) { zlib_deflate.deflateSetHeader(this.strm, opt.header); } if (opt.dictionary) { var dict; // Convert data if needed if (typeof opt.dictionary === 'string') { // If we need to compress text, change encoding to utf8. dict = strings.string2buf(opt.dictionary); } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') { dict = new Uint8Array(opt.dictionary); } else { dict = opt.dictionary; } status = zlib_deflate.deflateSetDictionary(this.strm, dict); if (status !== Z_OK) { throw new Error(msg[status]); } this._dict_set = true; } } /** * Deflate#push(data[, mode]) -> Boolean * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be * converted to utf8 byte sequence. * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes. * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH. * * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with * new compressed chunks. Returns `true` on success. The last data block must have * mode Z_FINISH (or `true`). That will flush internal pending buffers and call * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you * can use mode Z_SYNC_FLUSH, keeping the compression context. * * On fail call [[Deflate#onEnd]] with error code and return false. * * We strongly recommend to use `Uint8Array` on input for best speed (output * array format is detected automatically). Also, don't skip last param and always * use the same type in your code (boolean or number). That will improve JS speed. * * For regular `Array`-s make sure all elements are [0..255]. * * ##### Example * * ```javascript * push(chunk, false); // push one of data chunks * ... * push(chunk, true); // push last chunk * ``` **/ Deflate.prototype.push = function (data, mode) { var strm = this.strm; var chunkSize = this.options.chunkSize; var status, _mode; if (this.ended) { return false; } _mode = (mode === ~~mode) ? mode : ((mode === true) ? Z_FINISH : Z_NO_FLUSH); // Convert data if needed if (typeof data === 'string') { // If we need to compress text, change encoding to utf8. strm.input = strings.string2buf(data); } else if (toString.call(data) === '[object ArrayBuffer]') { strm.input = new Uint8Array(data); } else { strm.input = data; } strm.next_in = 0; strm.avail_in = strm.input.length; do { if (strm.avail_out === 0) { strm.output = new utils.Buf8(chunkSize); strm.next_out = 0; strm.avail_out = chunkSize; } status = zlib_deflate.deflate(strm, _mode); /* no bad return value */ if (status !== Z_STREAM_END && status !== Z_OK) { this.onEnd(status); this.ended = true; return false; } if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))) { if (this.options.to === 'string') { this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out))); } else { this.onData(utils.shrinkBuf(strm.output, strm.next_out)); } } } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END); // Finalize on the last chunk. if (_mode === Z_FINISH) { status = zlib_deflate.deflateEnd(this.strm); this.onEnd(status); this.ended = true; return status === Z_OK; } // callback interim results if Z_SYNC_FLUSH. if (_mode === Z_SYNC_FLUSH) { this.onEnd(Z_OK); strm.avail_out = 0; return true; } return true; }; /** * Deflate#onData(chunk) -> Void * - chunk (Uint8Array|Array|String): output data. Type of array depends * on js engine support. When string output requested, each chunk * will be string. * * By default, stores data blocks in `chunks[]` property and glue * those in `onEnd`. Override this handler, if you need another behaviour. **/ Deflate.prototype.onData = function (chunk) { this.chunks.push(chunk); }; /** * Deflate#onEnd(status) -> Void * - status (Number): deflate status. 0 (Z_OK) on success, * other if not. * * Called once after you tell deflate that the input stream is * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH) * or if an error happened. By default - join collected chunks, * free memory and fill `results` / `err` properties. **/ Deflate.prototype.onEnd = function (status) { // On success - join if (status === Z_OK) { if (this.options.to === 'string') { this.result = this.chunks.join(''); } else { this.result = utils.flattenChunks(this.chunks); } } this.chunks = []; this.err = status; this.msg = this.strm.msg; }; /** * deflate(data[, options]) -> Uint8Array|Array|String * - data (Uint8Array|Array|String): input data to compress. * - options (Object): zlib deflate options. * * Compress `data` with deflate algorithm and `options`. * * Supported options are: * * - level * - windowBits * - memLevel * - strategy * - dictionary * * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced) * for more information on these. * * Sugar (options): * * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify * negative windowBits implicitly. * - `to` (String) - if equal to 'string', then result will be "binary string" * (each char code [0..255]) * * ##### Example: * * ```javascript * var pako = require('pako') * , data = Uint8Array([1,2,3,4,5,6,7,8,9]); * * console.log(pako.deflate(data)); * ``` **/ function deflate(input, options) { var deflator = new Deflate(options); deflator.push(input, true); // That will never happens, if you don't cheat with options :) if (deflator.err) { throw deflator.msg || msg[deflator.err]; } return deflator.result; } /** * deflateRaw(data[, options]) -> Uint8Array|Array|String * - data (Uint8Array|Array|String): input data to compress. * - options (Object): zlib deflate options. * * The same as [[deflate]], but creates raw data, without wrapper * (header and adler32 crc). **/ function deflateRaw(input, options) { options = options || {}; options.raw = true; return deflate(input, options); } /** * gzip(data[, options]) -> Uint8Array|Array|String * - data (Uint8Array|Array|String): input data to compress. * - options (Object): zlib deflate options. * * The same as [[deflate]], but create gzip wrapper instead of * deflate one. **/ function gzip(input, options) { options = options || {}; options.gzip = true; return deflate(input, options); } exports.Deflate = Deflate; exports.deflate = deflate; exports.deflateRaw = deflateRaw; exports.gzip = gzip; },{"./utils/common":5,"./utils/strings":6,"./zlib/deflate":9,"./zlib/messages":10,"./zlib/zstream":12}],5:[function(require,module,exports){ 'use strict'; var TYPED_OK = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Int32Array !== 'undefined'); function _has(obj, key) { return Object.prototype.hasOwnProperty.call(obj, key); } exports.assign = function (obj /*from1, from2, from3, ...*/) { var sources = Array.prototype.slice.call(arguments, 1); while (sources.length) { var source = sources.shift(); if (!source) { continue; } if (typeof source !== 'object') { throw new TypeError(source + 'must be non-object'); } for (var p in source) { if (_has(source, p)) { obj[p] = source[p]; } } } return obj; }; // reduce buffer size, avoiding mem copy exports.shrinkBuf = function (buf, size) { if (buf.length === size) { return buf; } if (buf.subarray) { return buf.subarray(0, size); } buf.length = size; return buf; }; var fnTyped = { arraySet: function (dest, src, src_offs, len, dest_offs) { if (src.subarray && dest.subarray) { dest.set(src.subarray(src_offs, src_offs + len), dest_offs); return; } // Fallback to ordinary array for (var i = 0; i < len; i++) { dest[dest_offs + i] = src[src_offs + i]; } }, // Join array of chunks to single array. flattenChunks: function (chunks) { var i, l, len, pos, chunk, result; // calculate data length len = 0; for (i = 0, l = chunks.length; i < l; i++) { len += chunks[i].length; } // join chunks result = new Uint8Array(len); pos = 0; for (i = 0, l = chunks.length; i < l; i++) { chunk = chunks[i]; result.set(chunk, pos); pos += chunk.length; } return result; } }; var fnUntyped = { arraySet: function (dest, src, src_offs, len, dest_offs) { for (var i = 0; i < len; i++) { dest[dest_offs + i] = src[src_offs + i]; } }, // Join array of chunks to single array. flattenChunks: function (chunks) { return [].concat.apply([], chunks); } }; // Enable/Disable typed arrays use, for testing // exports.setTyped = function (on) { if (on) { exports.Buf8 = Uint8Array; exports.Buf16 = Uint16Array; exports.Buf32 = Int32Array; exports.assign(exports, fnTyped); } else { exports.Buf8 = Array; exports.Buf16 = Array; exports.Buf32 = Array; exports.assign(exports, fnUntyped); } }; exports.setTyped(TYPED_OK); },{}],6:[function(require,module,exports){ // String encode/decode helpers 'use strict'; var utils = require('./common'); // Quick check if we can use fast array to bin string conversion // // - apply(Array) can fail on Android 2.2 // - apply(Uint8Array) can fail on iOS 5.1 Safari // var STR_APPLY_OK = true; var STR_APPLY_UIA_OK = true; try { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; } try { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; } // Table with utf8 lengths (calculated by first byte of sequence) // Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS, // because max possible codepoint is 0x10ffff var _utf8len = new utils.Buf8(256); for (var q = 0; q < 256; q++) { _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1); } _utf8len[254] = _utf8len[254] = 1; // Invalid sequence start // convert string to array (typed, when possible) exports.string2buf = function (str) { var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0; // count binary size for (m_pos = 0; m_pos < str_len; m_pos++) { c = str.charCodeAt(m_pos); if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) { c2 = str.charCodeAt(m_pos + 1); if ((c2 & 0xfc00) === 0xdc00) { c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00); m_pos++; } } buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4; } // allocate buffer buf = new utils.Buf8(buf_len); // convert for (i = 0, m_pos = 0; i < buf_len; m_pos++) { c = str.charCodeAt(m_pos); if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) { c2 = str.charCodeAt(m_pos + 1); if ((c2 & 0xfc00) === 0xdc00) { c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00); m_pos++; } } if (c < 0x80) { /* one byte */ buf[i++] = c; } else if (c < 0x800) { /* two bytes */ buf[i++] = 0xC0 | (c >>> 6); buf[i++] = 0x80 | (c & 0x3f); } else if (c < 0x10000) { /* three bytes */ buf[i++] = 0xE0 | (c >>> 12); buf[i++] = 0x80 | (c >>> 6 & 0x3f); buf[i++] = 0x80 | (c & 0x3f); } else { /* four bytes */ buf[i++] = 0xf0 | (c >>> 18); buf[i++] = 0x80 | (c >>> 12 & 0x3f); buf[i++] = 0x80 | (c >>> 6 & 0x3f); buf[i++] = 0x80 | (c & 0x3f); } } return buf; }; // Helper (used in 2 places) function buf2binstring(buf, len) { // On Chrome, the arguments in a function call that are allowed is `65534`. // If the length of the buffer is smaller than that, we can use this optimization, // otherwise we will take a slower path. if (len < 65534) { if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) { return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len)); } } var result = ''; for (var i = 0; i < len; i++) { result += String.fromCharCode(buf[i]); } return result; } // Convert byte array to binary string exports.buf2binstring = function (buf) { return buf2binstring(buf, buf.length); }; // Convert binary string (typed, when possible) exports.binstring2buf = function (str) { var buf = new utils.Buf8(str.length); for (var i = 0, len = buf.length; i < len; i++) { buf[i] = str.charCodeAt(i); } return buf; }; // convert array to string exports.buf2string = function (buf, max) { var i, out, c, c_len; var len = max || buf.length; // Reserve max possible length (2 words per char) // NB: by unknown reasons, Array is significantly faster for // String.fromCharCode.apply than Uint16Array. var utf16buf = new Array(len * 2); for (out = 0, i = 0; i < len;) { c = buf[i++]; // quick process ascii if (c < 0x80) { utf16buf[out++] = c; continue; } c_len = _utf8len[c]; // skip 5 & 6 byte codes if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; } // apply mask on first byte c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07; // join the rest while (c_len > 1 && i < len) { c = (c << 6) | (buf[i++] & 0x3f); c_len--; } // terminated by end of string? if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; } if (c < 0x10000) { utf16buf[out++] = c; } else { c -= 0x10000; utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff); utf16buf[out++] = 0xdc00 | (c & 0x3ff); } } return buf2binstring(utf16buf, out); }; // Calculate max possible position in utf8 buffer, // that will not break sequence. If that's not possible // - (very small limits) return max size as is. // // buf[] - utf8 bytes array // max - length limit (mandatory); exports.utf8border = function (buf, max) { var pos; max = max || buf.length; if (max > buf.length) { max = buf.length; } // go back from last position, until start of sequence found pos = max - 1; while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; } // Very small and broken sequence, // return max, because we should return something anyway. if (pos < 0) { return max; } // If we came to start of buffer - that means buffer is too small, // return max too. if (pos === 0) { return max; } return (pos + _utf8len[buf[pos]] > max) ? pos : max; }; },{"./common":5}],7:[function(require,module,exports){ 'use strict'; // Note: adler32 takes 12% for level 0 and 2% for level 6. // It isn't worth it to make additional optimizations as in original. // Small size is preferable. // (C) 1995-2013 Jean-loup Gailly and Mark Adler // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. The origin of this software must not be misrepresented; you must not // claim that you wrote the original software. If you use this software // in a product, an acknowledgment in the product documentation would be // appreciated but is not required. // 2. Altered source versions must be plainly marked as such, and must not be // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. function adler32(adler, buf, len, pos) { var s1 = (adler & 0xffff) |0, s2 = ((adler >>> 16) & 0xffff) |0, n = 0; while (len !== 0) { // Set limit ~ twice less than 5552, to keep // s2 in 31-bits, because we force signed ints. // in other case %= will fail. n = len > 2000 ? 2000 : len; len -= n; do { s1 = (s1 + buf[pos++]) |0; s2 = (s2 + s1) |0; } while (--n); s1 %= 65521; s2 %= 65521; } return (s1 | (s2 << 16)) |0; } module.exports = adler32; },{}],8:[function(require,module,exports){ 'use strict'; // Note: we can't get significant speed boost here. // So write code to minimize size - no pregenerated tables // and array tools dependencies. // (C) 1995-2013 Jean-loup Gailly and Mark Adler // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. The origin of this software must not be misrepresented; you must not // claim that you wrote the original software. If you use this software // in a product, an acknowledgment in the product documentation would be // appreciated but is not required. // 2. Altered source versions must be plainly marked as such, and must not be // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. // Use ordinary array, since untyped makes no boost here function makeTable() { var c, table = []; for (var n = 0; n < 256; n++) { c = n; for (var k = 0; k < 8; k++) { c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1)); } table[n] = c; } return table; } // Create table on load. Just 255 signed longs. Not a problem. var crcTable = makeTable(); function crc32(crc, buf, len, pos) { var t = crcTable, end = pos + len; crc ^= -1; for (var i = pos; i < end; i++) { crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF]; } return (crc ^ (-1)); // >>> 0; } module.exports = crc32; },{}],9:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. The origin of this software must not be misrepresented; you must not // claim that you wrote the original software. If you use this software // in a product, an acknowledgment in the product documentation would be // appreciated but is not required. // 2. Altered source versions must be plainly marked as such, and must not be // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. var utils = require('../utils/common'); var trees = require('./trees'); var adler32 = require('./adler32'); var crc32 = require('./crc32'); var msg = require('./messages'); /* Public constants ==========================================================*/ /* ===========================================================================*/ /* Allowed flush values; see deflate() and inflate() below for details */ var Z_NO_FLUSH = 0; var Z_PARTIAL_FLUSH = 1; //var Z_SYNC_FLUSH = 2; var Z_FULL_FLUSH = 3; var Z_FINISH = 4; var Z_BLOCK = 5; //var Z_TREES = 6; /* Return codes for the compression/decompression functions. Negative values * are errors, positive values are used for special but normal events. */ var Z_OK = 0; var Z_STREAM_END = 1; //var Z_NEED_DICT = 2; //var Z_ERRNO = -1; var Z_STREAM_ERROR = -2; var Z_DATA_ERROR = -3; //var Z_MEM_ERROR = -4; var Z_BUF_ERROR = -5; //var Z_VERSION_ERROR = -6; /* compression levels */ //var Z_NO_COMPRESSION = 0; //var Z_BEST_SPEED = 1; //var Z_BEST_COMPRESSION = 9; var Z_DEFAULT_COMPRESSION = -1; var Z_FILTERED = 1; var Z_HUFFMAN_ONLY = 2; var Z_RLE = 3; var Z_FIXED = 4; var Z_DEFAULT_STRATEGY = 0; /* Possible values of the data_type field (though see inflate()) */ //var Z_BINARY = 0; //var Z_TEXT = 1; //var Z_ASCII = 1; // = Z_TEXT var Z_UNKNOWN = 2; /* The deflate compression method */ var Z_DEFLATED = 8; /*============================================================================*/ var MAX_MEM_LEVEL = 9; /* Maximum value for memLevel in deflateInit2 */ var MAX_WBITS = 15; /* 32K LZ77 window */ var DEF_MEM_LEVEL = 8; var LENGTH_CODES = 29; /* number of length codes, not counting the special END_BLOCK code */ var LITERALS = 256; /* number of literal bytes 0..255 */ var L_CODES = LITERALS + 1 + LENGTH_CODES; /* number of Literal or Length codes, including the END_BLOCK code */ var D_CODES = 30; /* number of distance codes */ var BL_CODES = 19; /* number of codes used to transfer the bit lengths */ var HEAP_SIZE = 2 * L_CODES + 1; /* maximum heap size */ var MAX_BITS = 15; /* All codes must not exceed MAX_BITS bits */ var MIN_MATCH = 3; var MAX_MATCH = 258; var MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1); var PRESET_DICT = 0x20; var INIT_STATE = 42; var EXTRA_STATE = 69; var NAME_STATE = 73; var COMMENT_STATE = 91; var HCRC_STATE = 103; var BUSY_STATE = 113; var FINISH_STATE = 666; var BS_NEED_MORE = 1; /* block not completed, need more input or more output */ var BS_BLOCK_DONE = 2; /* block flush performed */ var BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */ var BS_FINISH_DONE = 4; /* finish done, accept no more input or output */ var OS_CODE = 0x03; // Unix :) . Don't detect, use this default. function err(strm, errorCode) { strm.msg = msg[errorCode]; return errorCode; } function rank(f) { return ((f) << 1) - ((f) > 4 ? 9 : 0); } function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } } /* ========================================================================= * Flush as much pending output as possible. All deflate() output goes * through this function so some applications may wish to modify it * to avoid allocating a large strm->output buffer and copying into it. * (See also read_buf()). */ function flush_pending(strm) { var s = strm.state; //_tr_flush_bits(s); var len = s.pending; if (len > strm.avail_out) { len = strm.avail_out; } if (len === 0) { return; } utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out); strm.next_out += len; s.pending_out += len; strm.total_out += len; strm.avail_out -= len; s.pending -= len; if (s.pending === 0) { s.pending_out = 0; } } function flush_block_only(s, last) { trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last); s.block_start = s.strstart; flush_pending(s.strm); } function put_byte(s, b) { s.pending_buf[s.pending++] = b; } /* ========================================================================= * Put a short in the pending buffer. The 16-bit value is put in MSB order. * IN assertion: the stream state is correct and there is enough room in * pending_buf. */ function putShortMSB(s, b) { // put_byte(s, (Byte)(b >> 8)); // put_byte(s, (Byte)(b & 0xff)); s.pending_buf[s.pending++] = (b >>> 8) & 0xff; s.pending_buf[s.pending++] = b & 0xff; } /* =========================================================================== * Read a new buffer from the current input stream, update the adler32 * and total number of bytes read. All deflate() input goes through * this function so some applications may wish to modify it to avoid * allocating a large strm->input buffer and copying from it. * (See also flush_pending()). */ function read_buf(strm, buf, start, size) { var len = strm.avail_in; if (len > size) { len = size; } if (len === 0) { return 0; } strm.avail_in -= len; // zmemcpy(buf, strm->next_in, len); utils.arraySet(buf, strm.input, strm.next_in, len, start); if (strm.state.wrap === 1) { strm.adler = adler32(strm.adler, buf, len, start); } else if (strm.state.wrap === 2) { strm.adler = crc32(strm.adler, buf, len, start); } strm.next_in += len; strm.total_in += len; return len; } /* =========================================================================== * Set match_start to the longest match starting at the given string and * return its length. Matches shorter or equal to prev_length are discarded, * in which case the result is equal to prev_length and match_start is * garbage. * IN assertions: cur_match is the head of the hash chain for the current * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1 * OUT assertion: the match length is not greater than s->lookahead. */ function longest_match(s, cur_match) { var chain_length = s.max_chain_length; /* max hash chain length */ var scan = s.strstart; /* current string */ var match; /* matched string */ var len; /* length of current match */ var best_len = s.prev_length; /* best match length so far */ var nice_match = s.nice_match; /* stop if match long enough */ var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ? s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/; var _win = s.window; // shortcut var wmask = s.w_mask; var prev = s.prev; /* Stop when cur_match becomes <= limit. To simplify the code, * we prevent matches with the string of window index 0. */ var strend = s.strstart + MAX_MATCH; var scan_end1 = _win[scan + best_len - 1]; var scan_end = _win[scan + best_len]; /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16. * It is easy to get rid of this optimization if necessary. */ // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); /* Do not waste too much time if we already have a good match: */ if (s.prev_length >= s.good_match) { chain_length >>= 2; } /* Do not look for matches beyond the end of the input. This is necessary * to make deflate deterministic. */ if (nice_match > s.lookahead) { nice_match = s.lookahead; } // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead"); do { // Assert(cur_match < s->strstart, "no future"); match = cur_match; /* Skip to next match if the match length cannot increase * or if the match length is less than 2. Note that the checks below * for insufficient lookahead only occur occasionally for performance * reasons. Therefore uninitialized memory will be accessed, and * conditional jumps will be made that depend on those values. * However the length of the match is limited to the lookahead, so * the output of deflate is not affected by the uninitialized values. */ if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) { continue; } /* The check at best_len-1 can be removed because it will be made * again later. (This heuristic is not always a win.) * It is not necessary to compare scan[2] and match[2] since they * are always equal when the other bytes match, given that * the hash keys are equal and that HASH_BITS >= 8. */ scan += 2; match++; // Assert(*scan == *match, "match[2]?"); /* We check for insufficient lookahead only every 8th comparison; * the 256th check will be made at strstart+258. */ do { /*jshint noempty:false*/ } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend); // Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan"); len = MAX_MATCH - (strend - scan); scan = strend - MAX_MATCH; if (len > best_len) { s.match_start = cur_match; best_len = len; if (len >= nice_match) { break; } scan_end1 = _win[scan + best_len - 1]; scan_end = _win[scan + best_len]; } } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0); if (best_len <= s.lookahead) { return best_len; } return s.lookahead; } /* =========================================================================== * Fill the window when the lookahead becomes insufficient. * Updates strstart and lookahead. * * IN assertion: lookahead < MIN_LOOKAHEAD * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD * At least one byte has been read, or avail_in == 0; reads are * performed for at least two bytes (required for the zip translate_eol * option -- not supported here). */ function fill_window(s) { var _w_size = s.w_size; var p, n, m, more, str; //Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead"); do { more = s.window_size - s.lookahead - s.strstart; // JS ints have 32 bit, block below not needed /* Deal with !@#$% 64K limit: */ //if (sizeof(int) <= 2) { // if (more == 0 && s->strstart == 0 && s->lookahead == 0) { // more = wsize; // // } else if (more == (unsigned)(-1)) { // /* Very unlikely, but possible on 16 bit machine if // * strstart == 0 && lookahead == 1 (input done a byte at time) // */ // more--; // } //} /* If the window is almost full and there is insufficient lookahead, * move the upper half to the lower one to make room in the upper half. */ if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) { utils.arraySet(s.window, s.window, _w_size, _w_size, 0); s.match_start -= _w_size; s.strstart -= _w_size; /* we now have strstart >= MAX_DIST */ s.block_start -= _w_size; /* Slide the hash table (could be avoided with 32 bit values at the expense of memory usage). We slide even when level == 0 to keep the hash table consistent if we switch back to level > 0 later. (Using level 0 permanently is not an optimal usage of zlib, so we don't care about this pathological case.) */ n = s.hash_size; p = n; do { m = s.head[--p]; s.head[p] = (m >= _w_size ? m - _w_size : 0); } while (--n); n = _w_size; p = n; do { m = s.prev[--p]; s.prev[p] = (m >= _w_size ? m - _w_size : 0); /* If n is not on any hash chain, prev[n] is garbage but * its value will never be used. */ } while (--n); more += _w_size; } if (s.strm.avail_in === 0) { break; } /* If there was no sliding: * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 && * more == window_size - lookahead - strstart * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1) * => more >= window_size - 2*WSIZE + 2 * In the BIG_MEM or MMAP case (not yet supported), * window_size == input_size + MIN_LOOKAHEAD && * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD. * Otherwise, window_size == 2*WSIZE so more >= 2. * If there was sliding, more >= WSIZE. So in all cases, more >= 2. */ //Assert(more >= 2, "more < 2"); n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more); s.lookahead += n; /* Initialize the hash value now that we have some input: */ if (s.lookahead + s.insert >= MIN_MATCH) { str = s.strstart - s.insert; s.ins_h = s.window[str]; /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */ s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask; //#if MIN_MATCH != 3 // Call update_hash() MIN_MATCH-3 more times //#endif while (s.insert) { /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */ s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask; s.prev[str & s.w_mask] = s.head[s.ins_h]; s.head[s.ins_h] = str; str++; s.insert--; if (s.lookahead + s.insert < MIN_MATCH) { break; } } } /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage, * but this is not important since only literal bytes will be emitted. */ } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0); /* If the WIN_INIT bytes after the end of the current data have never been * written, then zero those bytes in order to avoid memory check reports of * the use of uninitialized (or uninitialised as Julian writes) bytes by * the longest match routines. Update the high water mark for the next * time through here. WIN_INIT is set to MAX_MATCH since the longest match * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead. */ // if (s.high_water < s.window_size) { // var curr = s.strstart + s.lookahead; // var init = 0; // // if (s.high_water < curr) { // /* Previous high water mark below current data -- zero WIN_INIT // * bytes or up to end of window, whichever is less. // */ // init = s.window_size - curr; // if (init > WIN_INIT) // init = WIN_INIT; // zmemzero(s->window + curr, (unsigned)init); // s->high_water = curr + init; // } // else if (s->high_water < (ulg)curr + WIN_INIT) { // /* High water mark at or above current data, but below current data // * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up // * to end of window, whichever is less. // */ // init = (ulg)curr + WIN_INIT - s->high_water; // if (init > s->window_size - s->high_water) // init = s->window_size - s->high_water; // zmemzero(s->window + s->high_water, (unsigned)init); // s->high_water += init; // } // } // // Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD, // "not enough room for search"); } /* =========================================================================== * Copy without compression as much as possible from the input stream, return * the current block state. * This function does not insert new strings in the dictionary since * uncompressible data is probably not useful. This function is used * only for the level=0 compression option. * NOTE: this function should be optimized to avoid extra copying from * window to pending_buf. */ function deflate_stored(s, flush) { /* Stored blocks are limited to 0xffff bytes, pending_buf is limited * to pending_buf_size, and each stored block has a 5 byte header: */ var max_block_size = 0xffff; if (max_block_size > s.pending_buf_size - 5) { max_block_size = s.pending_buf_size - 5; } /* Copy as much as possible from input to output: */ for (;;) { /* Fill the window as much as possible: */ if (s.lookahead <= 1) { //Assert(s->strstart < s->w_size+MAX_DIST(s) || // s->block_start >= (long)s->w_size, "slide too late"); // if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) || // s.block_start >= s.w_size)) { // throw new Error("slide too late"); // } fill_window(s); if (s.lookahead === 0 && flush === Z_NO_FLUSH) { return BS_NEED_MORE; } if (s.lookahead === 0) { break; } /* flush the current block */ } //Assert(s->block_start >= 0L, "block gone"); // if (s.block_start < 0) throw new Error("block gone"); s.strstart += s.lookahead; s.lookahead = 0; /* Emit a stored block if pending_buf will be full: */ var max_start = s.block_start + max_block_size; if (s.strstart === 0 || s.strstart >= max_start) { /* strstart == 0 is possible when wraparound on 16-bit machine */ s.lookahead = s.strstart - max_start; s.strstart = max_start; /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } /* Flush if we may have to slide, otherwise block_start may become * negative and the data will be gone: */ if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } } s.insert = 0; if (flush === Z_FINISH) { /*** FLUSH_BLOCK(s, 1); ***/ flush_block_only(s, true); if (s.strm.avail_out === 0) { return BS_FINISH_STARTED; } /***/ return BS_FINISH_DONE; } if (s.strstart > s.block_start) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } return BS_NEED_MORE; } /* =========================================================================== * Compress as much as possible from the input stream, return the current * block state. * This function does not perform lazy evaluation of matches and inserts * new strings in the dictionary only for unmatched strings or for short * matches. It is used only for the fast compression options. */ function deflate_fast(s, flush) { var hash_head; /* head of the hash chain */ var bflush; /* set if current block must be flushed */ for (;;) { /* Make sure that we always have enough lookahead, except * at the end of the input file. We need MAX_MATCH bytes * for the next match, plus MIN_MATCH bytes to insert the * string following the next match. */ if (s.lookahead < MIN_LOOKAHEAD) { fill_window(s); if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) { return BS_NEED_MORE; } if (s.lookahead === 0) { break; /* flush the current block */ } } /* Insert the string window[strstart .. strstart+2] in the * dictionary, and set hash_head to the head of the hash chain: */ hash_head = 0/*NIL*/; if (s.lookahead >= MIN_MATCH) { /*** INSERT_STRING(s, s.strstart, hash_head); ***/ s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; s.head[s.ins_h] = s.strstart; /***/ } /* Find the longest match, discarding those <= prev_length. * At this point we have always match_length < MIN_MATCH */ if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) { /* To simplify the code, we prevent matches with the string * of window index 0 (in particular we have to avoid a match * of the string with itself at the start of the input file). */ s.match_length = longest_match(s, hash_head); /* longest_match() sets match_start */ } if (s.match_length >= MIN_MATCH) { // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only /*** _tr_tally_dist(s, s.strstart - s.match_start, s.match_length - MIN_MATCH, bflush); ***/ bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH); s.lookahead -= s.match_length; /* Insert new strings in the hash table only if the match length * is not too large. This saves time but degrades compression. */ if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) { s.match_length--; /* string at strstart already in table */ do { s.strstart++; /*** INSERT_STRING(s, s.strstart, hash_head); ***/ s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; s.head[s.ins_h] = s.strstart; /***/ /* strstart never exceeds WSIZE-MAX_MATCH, so there are * always MIN_MATCH bytes ahead. */ } while (--s.match_length !== 0); s.strstart++; } else { s.strstart += s.match_length; s.match_length = 0; s.ins_h = s.window[s.strstart]; /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */ s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask; //#if MIN_MATCH != 3 // Call UPDATE_HASH() MIN_MATCH-3 more times //#endif /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not * matter since it will be recomputed at next deflate call. */ } } else { /* No match, output a literal byte */ //Tracevv((stderr,"%c", s.window[s.strstart])); /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/ bflush = trees._tr_tally(s, 0, s.window[s.strstart]); s.lookahead--; s.strstart++; } if (bflush) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } } s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1); if (flush === Z_FINISH) { /*** FLUSH_BLOCK(s, 1); ***/ flush_block_only(s, true); if (s.strm.avail_out === 0) { return BS_FINISH_STARTED; } /***/ return BS_FINISH_DONE; } if (s.last_lit) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } return BS_BLOCK_DONE; } /* =========================================================================== * Same as above, but achieves better compression. We use a lazy * evaluation for matches: a match is finally adopted only if there is * no better match at the next window position. */ function deflate_slow(s, flush) { var hash_head; /* head of hash chain */ var bflush; /* set if current block must be flushed */ var max_insert; /* Process the input block. */ for (;;) { /* Make sure that we always have enough lookahead, except * at the end of the input file. We need MAX_MATCH bytes * for the next match, plus MIN_MATCH bytes to insert the * string following the next match. */ if (s.lookahead < MIN_LOOKAHEAD) { fill_window(s); if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) { return BS_NEED_MORE; } if (s.lookahead === 0) { break; } /* flush the current block */ } /* Insert the string window[strstart .. strstart+2] in the * dictionary, and set hash_head to the head of the hash chain: */ hash_head = 0/*NIL*/; if (s.lookahead >= MIN_MATCH) { /*** INSERT_STRING(s, s.strstart, hash_head); ***/ s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; s.head[s.ins_h] = s.strstart; /***/ } /* Find the longest match, discarding those <= prev_length. */ s.prev_length = s.match_length; s.prev_match = s.match_start; s.match_length = MIN_MATCH - 1; if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match && s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) { /* To simplify the code, we prevent matches with the string * of window index 0 (in particular we have to avoid a match * of the string with itself at the start of the input file). */ s.match_length = longest_match(s, hash_head); /* longest_match() sets match_start */ if (s.match_length <= 5 && (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) { /* If prev_match is also MIN_MATCH, match_start is garbage * but we will ignore the current match anyway. */ s.match_length = MIN_MATCH - 1; } } /* If there was a match at the previous step and the current * match is not better, output the previous match: */ if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) { max_insert = s.strstart + s.lookahead - MIN_MATCH; /* Do not insert strings in hash table beyond this. */ //check_match(s, s.strstart-1, s.prev_match, s.prev_length); /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH, bflush);***/ bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH); /* Insert in hash table all strings up to the end of the match. * strstart-1 and strstart are already inserted. If there is not * enough lookahead, the last two strings are not inserted in * the hash table. */ s.lookahead -= s.prev_length - 1; s.prev_length -= 2; do { if (++s.strstart <= max_insert) { /*** INSERT_STRING(s, s.strstart, hash_head); ***/ s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; s.head[s.ins_h] = s.strstart; /***/ } } while (--s.prev_length !== 0); s.match_available = 0; s.match_length = MIN_MATCH - 1; s.strstart++; if (bflush) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } } else if (s.match_available) { /* If there was no match at the previous position, output a * single literal. If there was a match but the current match * is longer, truncate the previous match to a single literal. */ //Tracevv((stderr,"%c", s->window[s->strstart-1])); /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/ bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]); if (bflush) { /*** FLUSH_BLOCK_ONLY(s, 0) ***/ flush_block_only(s, false); /***/ } s.strstart++; s.lookahead--; if (s.strm.avail_out === 0) { return BS_NEED_MORE; } } else { /* There is no previous match to compare with, wait for * the next step to decide. */ s.match_available = 1; s.strstart++; s.lookahead--; } } //Assert (flush != Z_NO_FLUSH, "no flush?"); if (s.match_available) { //Tracevv((stderr,"%c", s->window[s->strstart-1])); /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/ bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]); s.match_available = 0; } s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1; if (flush === Z_FINISH) { /*** FLUSH_BLOCK(s, 1); ***/ flush_block_only(s, true); if (s.strm.avail_out === 0) { return BS_FINISH_STARTED; } /***/ return BS_FINISH_DONE; } if (s.last_lit) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } return BS_BLOCK_DONE; } /* =========================================================================== * For Z_RLE, simply look for runs of bytes, generate matches only of distance * one. Do not maintain a hash table. (It will be regenerated if this run of * deflate switches away from Z_RLE.) */ function deflate_rle(s, flush) { var bflush; /* set if current block must be flushed */ var prev; /* byte at distance one to match */ var scan, strend; /* scan goes up to strend for length of run */ var _win = s.window; for (;;) { /* Make sure that we always have enough lookahead, except * at the end of the input file. We need MAX_MATCH bytes * for the longest run, plus one for the unrolled loop. */ if (s.lookahead <= MAX_MATCH) { fill_window(s); if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) { return BS_NEED_MORE; } if (s.lookahead === 0) { break; } /* flush the current block */ } /* See how many times the previous byte repeats */ s.match_length = 0; if (s.lookahead >= MIN_MATCH && s.strstart > 0) { scan = s.strstart - 1; prev = _win[scan]; if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) { strend = s.strstart + MAX_MATCH; do { /*jshint noempty:false*/ } while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend); s.match_length = MAX_MATCH - (strend - scan); if (s.match_length > s.lookahead) { s.match_length = s.lookahead; } } //Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan"); } /* Emit match if have run of MIN_MATCH or longer, else emit literal */ if (s.match_length >= MIN_MATCH) { //check_match(s, s.strstart, s.strstart - 1, s.match_length); /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/ bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH); s.lookahead -= s.match_length; s.strstart += s.match_length; s.match_length = 0; } else { /* No match, output a literal byte */ //Tracevv((stderr,"%c", s->window[s->strstart])); /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/ bflush = trees._tr_tally(s, 0, s.window[s.strstart]); s.lookahead--; s.strstart++; } if (bflush) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } } s.insert = 0; if (flush === Z_FINISH) { /*** FLUSH_BLOCK(s, 1); ***/ flush_block_only(s, true); if (s.strm.avail_out === 0) { return BS_FINISH_STARTED; } /***/ return BS_FINISH_DONE; } if (s.last_lit) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } return BS_BLOCK_DONE; } /* =========================================================================== * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table. * (It will be regenerated if this run of deflate switches away from Huffman.) */ function deflate_huff(s, flush) { var bflush; /* set if current block must be flushed */ for (;;) { /* Make sure that we have a literal to write. */ if (s.lookahead === 0) { fill_window(s); if (s.lookahead === 0) { if (flush === Z_NO_FLUSH) { return BS_NEED_MORE; } break; /* flush the current block */ } } /* Output a literal byte */ s.match_length = 0; //Tracevv((stderr,"%c", s->window[s->strstart])); /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/ bflush = trees._tr_tally(s, 0, s.window[s.strstart]); s.lookahead--; s.strstart++; if (bflush) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } } s.insert = 0; if (flush === Z_FINISH) { /*** FLUSH_BLOCK(s, 1); ***/ flush_block_only(s, true); if (s.strm.avail_out === 0) { return BS_FINISH_STARTED; } /***/ return BS_FINISH_DONE; } if (s.last_lit) { /*** FLUSH_BLOCK(s, 0); ***/ flush_block_only(s, false); if (s.strm.avail_out === 0) { return BS_NEED_MORE; } /***/ } return BS_BLOCK_DONE; } /* Values for max_lazy_match, good_match and max_chain_length, depending on * the desired pack level (0..9). The values given below have been tuned to * exclude worst case performance for pathological files. Better values may be * found for specific files. */ function Config(good_length, max_lazy, nice_length, max_chain, func) { this.good_length = good_length; this.max_lazy = max_lazy; this.nice_length = nice_length; this.max_chain = max_chain; this.func = func; } var configuration_table; configuration_table = [ /* good lazy nice chain */ new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */ new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */ new Config(4, 5, 16, 8, deflate_fast), /* 2 */ new Config(4, 6, 32, 32, deflate_fast), /* 3 */ new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */ new Config(8, 16, 32, 32, deflate_slow), /* 5 */ new Config(8, 16, 128, 128, deflate_slow), /* 6 */ new Config(8, 32, 128, 256, deflate_slow), /* 7 */ new Config(32, 128, 258, 1024, deflate_slow), /* 8 */ new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */ ]; /* =========================================================================== * Initialize the "longest match" routines for a new zlib stream */ function lm_init(s) { s.window_size = 2 * s.w_size; /*** CLEAR_HASH(s); ***/ zero(s.head); // Fill with NIL (= 0); /* Set the default configuration parameters: */ s.max_lazy_match = configuration_table[s.level].max_lazy; s.good_match = configuration_table[s.level].good_length; s.nice_match = configuration_table[s.level].nice_length; s.max_chain_length = configuration_table[s.level].max_chain; s.strstart = 0; s.block_start = 0; s.lookahead = 0; s.insert = 0; s.match_length = s.prev_length = MIN_MATCH - 1; s.match_available = 0; s.ins_h = 0; } function DeflateState() { this.strm = null; /* pointer back to this zlib stream */ this.status = 0; /* as the name implies */ this.pending_buf = null; /* output still pending */ this.pending_buf_size = 0; /* size of pending_buf */ this.pending_out = 0; /* next pending byte to output to the stream */ this.pending = 0; /* nb of bytes in the pending buffer */ this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */ this.gzhead = null; /* gzip header information to write */ this.gzindex = 0; /* where in extra, name, or comment */ this.method = Z_DEFLATED; /* can only be DEFLATED */ this.last_flush = -1; /* value of flush param for previous deflate call */ this.w_size = 0; /* LZ77 window size (32K by default) */ this.w_bits = 0; /* log2(w_size) (8..16) */ this.w_mask = 0; /* w_size - 1 */ this.window = null; /* Sliding window. Input bytes are read into the second half of the window, * and move to the first half later to keep a dictionary of at least wSize * bytes. With this organization, matches are limited to a distance of * wSize-MAX_MATCH bytes, but this ensures that IO is always * performed with a length multiple of the block size. */ this.window_size = 0; /* Actual size of window: 2*wSize, except when the user input buffer * is directly used as sliding window. */ this.prev = null; /* Link to older string with same hash index. To limit the size of this * array to 64K, this link is maintained only for the last 32K strings. * An index in this array is thus a window index modulo 32K. */ this.head = null; /* Heads of the hash chains or NIL. */ this.ins_h = 0; /* hash index of string to be inserted */ this.hash_size = 0; /* number of elements in hash table */ this.hash_bits = 0; /* log2(hash_size) */ this.hash_mask = 0; /* hash_size-1 */ this.hash_shift = 0; /* Number of bits by which ins_h must be shifted at each input * step. It must be such that after MIN_MATCH steps, the oldest * byte no longer takes part in the hash key, that is: * hash_shift * MIN_MATCH >= hash_bits */ this.block_start = 0; /* Window position at the beginning of the current output block. Gets * negative when the window is moved backwards. */ this.match_length = 0; /* length of best match */ this.prev_match = 0; /* previous match */ this.match_available = 0; /* set if previous match exists */ this.strstart = 0; /* start of string to insert */ this.match_start = 0; /* start of matching string */ this.lookahead = 0; /* number of valid bytes ahead in window */ this.prev_length = 0; /* Length of the best match at previous step. Matches not greater than this * are discarded. This is used in the lazy match evaluation. */ this.max_chain_length = 0; /* To speed up deflation, hash chains are never searched beyond this * length. A higher limit improves compression ratio but degrades the * speed. */ this.max_lazy_match = 0; /* Attempt to find a better match only when the current match is strictly * smaller than this value. This mechanism is used only for compression * levels >= 4. */ // That's alias to max_lazy_match, don't use directly //this.max_insert_length = 0; /* Insert new strings in the hash table only if the match length is not * greater than this length. This saves time but degrades compression. * max_insert_length is used only for compression levels <= 3. */ this.level = 0; /* compression level (1..9) */ this.strategy = 0; /* favor or force Huffman coding*/ this.good_match = 0; /* Use a faster search when the previous match is longer than this */ this.nice_match = 0; /* Stop searching when current match exceeds this */ /* used by trees.c: */ /* Didn't use ct_data typedef below to suppress compiler warning */ // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */ // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */ // Use flat array of DOUBLE size, with interleaved fata, // because JS does not support effective this.dyn_ltree = new utils.Buf16(HEAP_SIZE * 2); this.dyn_dtree = new utils.Buf16((2 * D_CODES + 1) * 2); this.bl_tree = new utils.Buf16((2 * BL_CODES + 1) * 2); zero(this.dyn_ltree); zero(this.dyn_dtree); zero(this.bl_tree); this.l_desc = null; /* desc. for literal tree */ this.d_desc = null; /* desc. for distance tree */ this.bl_desc = null; /* desc. for bit length tree */ //ush bl_count[MAX_BITS+1]; this.bl_count = new utils.Buf16(MAX_BITS + 1); /* number of codes at each bit length for an optimal tree */ //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */ this.heap = new utils.Buf16(2 * L_CODES + 1); /* heap used to build the Huffman trees */ zero(this.heap); this.heap_len = 0; /* number of elements in the heap */ this.heap_max = 0; /* element of largest frequency */ /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used. * The same heap array is used to build all trees. */ this.depth = new utils.Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1]; zero(this.depth); /* Depth of each subtree used as tie breaker for trees of equal frequency */ this.l_buf = 0; /* buffer index for literals or lengths */ this.lit_bufsize = 0; /* Size of match buffer for literals/lengths. There are 4 reasons for * limiting lit_bufsize to 64K: * - frequencies can be kept in 16 bit counters * - if compression is not successful for the first block, all input * data is still in the window so we can still emit a stored block even * when input comes from standard input. (This can also be done for * all blocks if lit_bufsize is not greater than 32K.) * - if compression is not successful for a file smaller than 64K, we can * even emit a stored file instead of a stored block (saving 5 bytes). * This is applicable only for zip (not gzip or zlib). * - creating new Huffman trees less frequently may not provide fast * adaptation to changes in the input data statistics. (Take for * example a binary file with poorly compressible code followed by * a highly compressible string table.) Smaller buffer sizes give * fast adaptation but have of course the overhead of transmitting * trees more frequently. * - I can't count above 4 */ this.last_lit = 0; /* running index in l_buf */ this.d_buf = 0; /* Buffer index for distances. To simplify the code, d_buf and l_buf have * the same number of elements. To use different lengths, an extra flag * array would be necessary. */ this.opt_len = 0; /* bit length of current block with optimal trees */ this.static_len = 0; /* bit length of current block with static trees */ this.matches = 0; /* number of string matches in current block */ this.insert = 0; /* bytes at end of window left to insert */ this.bi_buf = 0; /* Output buffer. bits are inserted starting at the bottom (least * significant bits). */ this.bi_valid = 0; /* Number of valid bits in bi_buf. All bits above the last valid bit * are always zero. */ // Used for window memory init. We safely ignore it for JS. That makes // sense only for pointers and memory check tools. //this.high_water = 0; /* High water mark offset in window for initialized bytes -- bytes above * this are set to zero in order to avoid memory check warnings when * longest match routines access bytes past the input. This is then * updated to the new high water mark. */ } function deflateResetKeep(strm) { var s; if (!strm || !strm.state) { return err(strm, Z_STREAM_ERROR); } strm.total_in = strm.total_out = 0; strm.data_type = Z_UNKNOWN; s = strm.state; s.pending = 0; s.pending_out = 0; if (s.wrap < 0) { s.wrap = -s.wrap; /* was made negative by deflate(..., Z_FINISH); */ } s.status = (s.wrap ? INIT_STATE : BUSY_STATE); strm.adler = (s.wrap === 2) ? 0 // crc32(0, Z_NULL, 0) : 1; // adler32(0, Z_NULL, 0) s.last_flush = Z_NO_FLUSH; trees._tr_init(s); return Z_OK; } function deflateReset(strm) { var ret = deflateResetKeep(strm); if (ret === Z_OK) { lm_init(strm.state); } return ret; } function deflateSetHeader(strm, head) { if (!strm || !strm.state) { return Z_STREAM_ERROR; } if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; } strm.state.gzhead = head; return Z_OK; } function deflateInit2(strm, level, method, windowBits, memLevel, strategy) { if (!strm) { // === Z_NULL return Z_STREAM_ERROR; } var wrap = 1; if (level === Z_DEFAULT_COMPRESSION) { level = 6; } if (windowBits < 0) { /* suppress zlib wrapper */ wrap = 0; windowBits = -windowBits; } else if (windowBits > 15) { wrap = 2; /* write gzip wrapper instead */ windowBits -= 16; } if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED || windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) { return err(strm, Z_STREAM_ERROR); } if (windowBits === 8) { windowBits = 9; } /* until 256-byte window bug fixed */ var s = new DeflateState(); strm.state = s; s.strm = strm; s.wrap = wrap; s.gzhead = null; s.w_bits = windowBits; s.w_size = 1 << s.w_bits; s.w_mask = s.w_size - 1; s.hash_bits = memLevel + 7; s.hash_size = 1 << s.hash_bits; s.hash_mask = s.hash_size - 1; s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH); s.window = new utils.Buf8(s.w_size * 2); s.head = new utils.Buf16(s.hash_size); s.prev = new utils.Buf16(s.w_size); // Don't need mem init magic for JS. //s.high_water = 0; /* nothing written to s->window yet */ s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */ s.pending_buf_size = s.lit_bufsize * 4; //overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2); //s->pending_buf = (uchf *) overlay; s.pending_buf = new utils.Buf8(s.pending_buf_size); // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`) //s->d_buf = overlay + s->lit_bufsize/sizeof(ush); s.d_buf = 1 * s.lit_bufsize; //s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize; s.l_buf = (1 + 2) * s.lit_bufsize; s.level = level; s.strategy = strategy; s.method = method; return deflateReset(strm); } function deflateInit(strm, level) { return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY); } function deflate(strm, flush) { var old_flush, s; var beg, val; // for gzip header write only if (!strm || !strm.state || flush > Z_BLOCK || flush < 0) { return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR; } s = strm.state; if (!strm.output || (!strm.input && strm.avail_in !== 0) || (s.status === FINISH_STATE && flush !== Z_FINISH)) { return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR); } s.strm = strm; /* just in case */ old_flush = s.last_flush; s.last_flush = flush; /* Write the header */ if (s.status === INIT_STATE) { if (s.wrap === 2) { // GZIP header strm.adler = 0; //crc32(0L, Z_NULL, 0); put_byte(s, 31); put_byte(s, 139); put_byte(s, 8); if (!s.gzhead) { // s->gzhead == Z_NULL put_byte(s, 0); put_byte(s, 0); put_byte(s, 0); put_byte(s, 0); put_byte(s, 0); put_byte(s, s.level === 9 ? 2 : (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0)); put_byte(s, OS_CODE); s.status = BUSY_STATE; } else { put_byte(s, (s.gzhead.text ? 1 : 0) + (s.gzhead.hcrc ? 2 : 0) + (!s.gzhead.extra ? 0 : 4) + (!s.gzhead.name ? 0 : 8) + (!s.gzhead.comment ? 0 : 16) ); put_byte(s, s.gzhead.time & 0xff); put_byte(s, (s.gzhead.time >> 8) & 0xff); put_byte(s, (s.gzhead.time >> 16) & 0xff); put_byte(s, (s.gzhead.time >> 24) & 0xff); put_byte(s, s.level === 9 ? 2 : (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0)); put_byte(s, s.gzhead.os & 0xff); if (s.gzhead.extra && s.gzhead.extra.length) { put_byte(s, s.gzhead.extra.length & 0xff); put_byte(s, (s.gzhead.extra.length >> 8) & 0xff); } if (s.gzhead.hcrc) { strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0); } s.gzindex = 0; s.status = EXTRA_STATE; } } else // DEFLATE header { var header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8; var level_flags = -1; if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) { level_flags = 0; } else if (s.level < 6) { level_flags = 1; } else if (s.level === 6) { level_flags = 2; } else { level_flags = 3; } header |= (level_flags << 6); if (s.strstart !== 0) { header |= PRESET_DICT; } header += 31 - (header % 31); s.status = BUSY_STATE; putShortMSB(s, header); /* Save the adler32 of the preset dictionary: */ if (s.strstart !== 0) { putShortMSB(s, strm.adler >>> 16); putShortMSB(s, strm.adler & 0xffff); } strm.adler = 1; // adler32(0L, Z_NULL, 0); } } //#ifdef GZIP if (s.status === EXTRA_STATE) { if (s.gzhead.extra/* != Z_NULL*/) { beg = s.pending; /* start of bytes to update crc */ while (s.gzindex < (s.gzhead.extra.length & 0xffff)) { if (s.pending === s.pending_buf_size) { if (s.gzhead.hcrc && s.pending > beg) { strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg); } flush_pending(strm); beg = s.pending; if (s.pending === s.pending_buf_size) { break; } } put_byte(s, s.gzhead.extra[s.gzindex] & 0xff); s.gzindex++; } if (s.gzhead.hcrc && s.pending > beg) { strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg); } if (s.gzindex === s.gzhead.extra.length) { s.gzindex = 0; s.status = NAME_STATE; } } else { s.status = NAME_STATE; } } if (s.status === NAME_STATE) { if (s.gzhead.name/* != Z_NULL*/) { beg = s.pending; /* start of bytes to update crc */ //int val; do { if (s.pending === s.pending_buf_size) { if (s.gzhead.hcrc && s.pending > beg) { strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg); } flush_pending(strm); beg = s.pending; if (s.pending === s.pending_buf_size) { val = 1; break; } } // JS specific: little magic to add zero terminator to end of string if (s.gzindex < s.gzhead.name.length) { val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff; } else { val = 0; } put_byte(s, val); } while (val !== 0); if (s.gzhead.hcrc && s.pending > beg) { strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg); } if (val === 0) { s.gzindex = 0; s.status = COMMENT_STATE; } } else { s.status = COMMENT_STATE; } } if (s.status === COMMENT_STATE) { if (s.gzhead.comment/* != Z_NULL*/) { beg = s.pending; /* start of bytes to update crc */ //int val; do { if (s.pending === s.pending_buf_size) { if (s.gzhead.hcrc && s.pending > beg) { strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg); } flush_pending(strm); beg = s.pending; if (s.pending === s.pending_buf_size) { val = 1; break; } } // JS specific: little magic to add zero terminator to end of string if (s.gzindex < s.gzhead.comment.length) { val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff; } else { val = 0; } put_byte(s, val); } while (val !== 0); if (s.gzhead.hcrc && s.pending > beg) { strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg); } if (val === 0) { s.status = HCRC_STATE; } } else { s.status = HCRC_STATE; } } if (s.status === HCRC_STATE) { if (s.gzhead.hcrc) { if (s.pending + 2 > s.pending_buf_size) { flush_pending(strm); } if (s.pending + 2 <= s.pending_buf_size) { put_byte(s, strm.adler & 0xff); put_byte(s, (strm.adler >> 8) & 0xff); strm.adler = 0; //crc32(0L, Z_NULL, 0); s.status = BUSY_STATE; } } else { s.status = BUSY_STATE; } } //#endif /* Flush as much pending output as possible */ if (s.pending !== 0) { flush_pending(strm); if (strm.avail_out === 0) { /* Since avail_out is 0, deflate will be called again with * more output space, but possibly with both pending and * avail_in equal to zero. There won't be anything to do, * but this is not an error situation so make sure we * return OK instead of BUF_ERROR at next call of deflate: */ s.last_flush = -1; return Z_OK; } /* Make sure there is something to do and avoid duplicate consecutive * flushes. For repeated and useless calls with Z_FINISH, we keep * returning Z_STREAM_END instead of Z_BUF_ERROR. */ } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) && flush !== Z_FINISH) { return err(strm, Z_BUF_ERROR); } /* User must not provide more input after the first FINISH: */ if (s.status === FINISH_STATE && strm.avail_in !== 0) { return err(strm, Z_BUF_ERROR); } /* Start a new block or continue the current one. */ if (strm.avail_in !== 0 || s.lookahead !== 0 || (flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) { var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) : (s.strategy === Z_RLE ? deflate_rle(s, flush) : configuration_table[s.level].func(s, flush)); if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) { s.status = FINISH_STATE; } if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) { if (strm.avail_out === 0) { s.last_flush = -1; /* avoid BUF_ERROR next call, see above */ } return Z_OK; /* If flush != Z_NO_FLUSH && avail_out == 0, the next call * of deflate should use the same flush parameter to make sure * that the flush is complete. So we don't have to output an * empty block here, this will be done at next call. This also * ensures that for a very small output buffer, we emit at most * one empty block. */ } if (bstate === BS_BLOCK_DONE) { if (flush === Z_PARTIAL_FLUSH) { trees._tr_align(s); } else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */ trees._tr_stored_block(s, 0, 0, false); /* For a full flush, this empty block will be recognized * as a special marker by inflate_sync(). */ if (flush === Z_FULL_FLUSH) { /*** CLEAR_HASH(s); ***/ /* forget history */ zero(s.head); // Fill with NIL (= 0); if (s.lookahead === 0) { s.strstart = 0; s.block_start = 0; s.insert = 0; } } } flush_pending(strm); if (strm.avail_out === 0) { s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */ return Z_OK; } } } //Assert(strm->avail_out > 0, "bug2"); //if (strm.avail_out <= 0) { throw new Error("bug2");} if (flush !== Z_FINISH) { return Z_OK; } if (s.wrap <= 0) { return Z_STREAM_END; } /* Write the trailer */ if (s.wrap === 2) { put_byte(s, strm.adler & 0xff); put_byte(s, (strm.adler >> 8) & 0xff); put_byte(s, (strm.adler >> 16) & 0xff); put_byte(s, (strm.adler >> 24) & 0xff); put_byte(s, strm.total_in & 0xff); put_byte(s, (strm.total_in >> 8) & 0xff); put_byte(s, (strm.total_in >> 16) & 0xff); put_byte(s, (strm.total_in >> 24) & 0xff); } else { putShortMSB(s, strm.adler >>> 16); putShortMSB(s, strm.adler & 0xffff); } flush_pending(strm); /* If avail_out is zero, the application will call deflate again * to flush the rest. */ if (s.wrap > 0) { s.wrap = -s.wrap; } /* write the trailer only once! */ return s.pending !== 0 ? Z_OK : Z_STREAM_END; } function deflateEnd(strm) { var status; if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) { return Z_STREAM_ERROR; } status = strm.state.status; if (status !== INIT_STATE && status !== EXTRA_STATE && status !== NAME_STATE && status !== COMMENT_STATE && status !== HCRC_STATE && status !== BUSY_STATE && status !== FINISH_STATE ) { return err(strm, Z_STREAM_ERROR); } strm.state = null; return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK; } /* ========================================================================= * Initializes the compression dictionary from the given byte * sequence without producing any compressed output. */ function deflateSetDictionary(strm, dictionary) { var dictLength = dictionary.length; var s; var str, n; var wrap; var avail; var next; var input; var tmpDict; if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) { return Z_STREAM_ERROR; } s = strm.state; wrap = s.wrap; if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) { return Z_STREAM_ERROR; } /* when using zlib wrappers, compute Adler-32 for provided dictionary */ if (wrap === 1) { /* adler32(strm->adler, dictionary, dictLength); */ strm.adler = adler32(strm.adler, dictionary, dictLength, 0); } s.wrap = 0; /* avoid computing Adler-32 in read_buf */ /* if dictionary would fill window, just replace the history */ if (dictLength >= s.w_size) { if (wrap === 0) { /* already empty otherwise */ /*** CLEAR_HASH(s); ***/ zero(s.head); // Fill with NIL (= 0); s.strstart = 0; s.block_start = 0; s.insert = 0; } /* use the tail */ // dictionary = dictionary.slice(dictLength - s.w_size); tmpDict = new utils.Buf8(s.w_size); utils.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0); dictionary = tmpDict; dictLength = s.w_size; } /* insert dictionary into window and hash */ avail = strm.avail_in; next = strm.next_in; input = strm.input; strm.avail_in = dictLength; strm.next_in = 0; strm.input = dictionary; fill_window(s); while (s.lookahead >= MIN_MATCH) { str = s.strstart; n = s.lookahead - (MIN_MATCH - 1); do { /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */ s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask; s.prev[str & s.w_mask] = s.head[s.ins_h]; s.head[s.ins_h] = str; str++; } while (--n); s.strstart = str; s.lookahead = MIN_MATCH - 1; fill_window(s); } s.strstart += s.lookahead; s.block_start = s.strstart; s.insert = s.lookahead; s.lookahead = 0; s.match_length = s.prev_length = MIN_MATCH - 1; s.match_available = 0; strm.next_in = next; strm.input = input; strm.avail_in = avail; s.wrap = wrap; return Z_OK; } exports.deflateInit = deflateInit; exports.deflateInit2 = deflateInit2; exports.deflateReset = deflateReset; exports.deflateResetKeep = deflateResetKeep; exports.deflateSetHeader = deflateSetHeader; exports.deflate = deflate; exports.deflateEnd = deflateEnd; exports.deflateSetDictionary = deflateSetDictionary; exports.deflateInfo = 'pako deflate (from Nodeca project)'; /* Not implemented exports.deflateBound = deflateBound; exports.deflateCopy = deflateCopy; exports.deflateParams = deflateParams; exports.deflatePending = deflatePending; exports.deflatePrime = deflatePrime; exports.deflateTune = deflateTune; */ },{"../utils/common":5,"./adler32":7,"./crc32":8,"./messages":10,"./trees":11}],10:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. The origin of this software must not be misrepresented; you must not // claim that you wrote the original software. If you use this software // in a product, an acknowledgment in the product documentation would be // appreciated but is not required. // 2. Altered source versions must be plainly marked as such, and must not be // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. module.exports = { 2: 'need dictionary', /* Z_NEED_DICT 2 */ 1: 'stream end', /* Z_STREAM_END 1 */ 0: '', /* Z_OK 0 */ '-1': 'file error', /* Z_ERRNO (-1) */ '-2': 'stream error', /* Z_STREAM_ERROR (-2) */ '-3': 'data error', /* Z_DATA_ERROR (-3) */ '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */ '-5': 'buffer error', /* Z_BUF_ERROR (-5) */ '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */ }; },{}],11:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. The origin of this software must not be misrepresented; you must not // claim that you wrote the original software. If you use this software // in a product, an acknowledgment in the product documentation would be // appreciated but is not required. // 2. Altered source versions must be plainly marked as such, and must not be // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. /* eslint-disable space-unary-ops */ var utils = require('../utils/common'); /* Public constants ==========================================================*/ /* ===========================================================================*/ //var Z_FILTERED = 1; //var Z_HUFFMAN_ONLY = 2; //var Z_RLE = 3; var Z_FIXED = 4; //var Z_DEFAULT_STRATEGY = 0; /* Possible values of the data_type field (though see inflate()) */ var Z_BINARY = 0; var Z_TEXT = 1; //var Z_ASCII = 1; // = Z_TEXT var Z_UNKNOWN = 2; /*============================================================================*/ function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } } // From zutil.h var STORED_BLOCK = 0; var STATIC_TREES = 1; var DYN_TREES = 2; /* The three kinds of block type */ var MIN_MATCH = 3; var MAX_MATCH = 258; /* The minimum and maximum match lengths */ // From deflate.h /* =========================================================================== * Internal compression state. */ var LENGTH_CODES = 29; /* number of length codes, not counting the special END_BLOCK code */ var LITERALS = 256; /* number of literal bytes 0..255 */ var L_CODES = LITERALS + 1 + LENGTH_CODES; /* number of Literal or Length codes, including the END_BLOCK code */ var D_CODES = 30; /* number of distance codes */ var BL_CODES = 19; /* number of codes used to transfer the bit lengths */ var HEAP_SIZE = 2 * L_CODES + 1; /* maximum heap size */ var MAX_BITS = 15; /* All codes must not exceed MAX_BITS bits */ var Buf_size = 16; /* size of bit buffer in bi_buf */ /* =========================================================================== * Constants */ var MAX_BL_BITS = 7; /* Bit length codes must not exceed MAX_BL_BITS bits */ var END_BLOCK = 256; /* end of block literal code */ var REP_3_6 = 16; /* repeat previous bit length 3-6 times (2 bits of repeat count) */ var REPZ_3_10 = 17; /* repeat a zero length 3-10 times (3 bits of repeat count) */ var REPZ_11_138 = 18; /* repeat a zero length 11-138 times (7 bits of repeat count) */ /* eslint-disable comma-spacing,array-bracket-spacing */ var extra_lbits = /* extra bits for each length code */ [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]; var extra_dbits = /* extra bits for each distance code */ [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]; var extra_blbits = /* extra bits for each bit length code */ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]; var bl_order = [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]; /* eslint-enable comma-spacing,array-bracket-spacing */ /* The lengths of the bit length codes are sent in order of decreasing * probability, to avoid transmitting the lengths for unused bit length codes. */ /* =========================================================================== * Local data. These are initialized only once. */ // We pre-fill arrays with 0 to avoid uninitialized gaps var DIST_CODE_LEN = 512; /* see definition of array dist_code below */ // !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1 var static_ltree = new Array((L_CODES + 2) * 2); zero(static_ltree); /* The static literal tree. Since the bit lengths are imposed, there is no * need for the L_CODES extra codes used during heap construction. However * The codes 286 and 287 are needed to build a canonical tree (see _tr_init * below). */ var static_dtree = new Array(D_CODES * 2); zero(static_dtree); /* The static distance tree. (Actually a trivial tree since all codes use * 5 bits.) */ var _dist_code = new Array(DIST_CODE_LEN); zero(_dist_code); /* Distance codes. The first 256 values correspond to the distances * 3 .. 258, the last 256 values correspond to the top 8 bits of * the 15 bit distances. */ var _length_code = new Array(MAX_MATCH - MIN_MATCH + 1); zero(_length_code); /* length code for each normalized match length (0 == MIN_MATCH) */ var base_length = new Array(LENGTH_CODES); zero(base_length); /* First normalized length for each code (0 = MIN_MATCH) */ var base_dist = new Array(D_CODES); zero(base_dist); /* First normalized distance for each code (0 = distance of 1) */ function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) { this.static_tree = static_tree; /* static tree or NULL */ this.extra_bits = extra_bits; /* extra bits for each code or NULL */ this.extra_base = extra_base; /* base index for extra_bits */ this.elems = elems; /* max number of elements in the tree */ this.max_length = max_length; /* max bit length for the codes */ // show if `static_tree` has data or dummy - needed for monomorphic objects this.has_stree = static_tree && static_tree.length; } var static_l_desc; var static_d_desc; var static_bl_desc; function TreeDesc(dyn_tree, stat_desc) { this.dyn_tree = dyn_tree; /* the dynamic tree */ this.max_code = 0; /* largest code with non zero frequency */ this.stat_desc = stat_desc; /* the corresponding static tree */ } function d_code(dist) { return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)]; } /* =========================================================================== * Output a short LSB first on the stream. * IN assertion: there is enough room in pendingBuf. */ function put_short(s, w) { // put_byte(s, (uch)((w) & 0xff)); // put_byte(s, (uch)((ush)(w) >> 8)); s.pending_buf[s.pending++] = (w) & 0xff; s.pending_buf[s.pending++] = (w >>> 8) & 0xff; } /* =========================================================================== * Send a value on a given number of bits. * IN assertion: length <= 16 and value fits in length bits. */ function send_bits(s, value, length) { if (s.bi_valid > (Buf_size - length)) { s.bi_buf |= (value << s.bi_valid) & 0xffff; put_short(s, s.bi_buf); s.bi_buf = value >> (Buf_size - s.bi_valid); s.bi_valid += length - Buf_size; } else { s.bi_buf |= (value << s.bi_valid) & 0xffff; s.bi_valid += length; } } function send_code(s, c, tree) { send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/); } /* =========================================================================== * Reverse the first len bits of a code, using straightforward code (a faster * method would use a table) * IN assertion: 1 <= len <= 15 */ function bi_reverse(code, len) { var res = 0; do { res |= code & 1; code >>>= 1; res <<= 1; } while (--len > 0); return res >>> 1; } /* =========================================================================== * Flush the bit buffer, keeping at most 7 bits in it. */ function bi_flush(s) { if (s.bi_valid === 16) { put_short(s, s.bi_buf); s.bi_buf = 0; s.bi_valid = 0; } else if (s.bi_valid >= 8) { s.pending_buf[s.pending++] = s.bi_buf & 0xff; s.bi_buf >>= 8; s.bi_valid -= 8; } } /* =========================================================================== * Compute the optimal bit lengths for a tree and update the total bit length * for the current block. * IN assertion: the fields freq and dad are set, heap[heap_max] and * above are the tree nodes sorted by increasing frequency. * OUT assertions: the field len is set to the optimal bit length, the * array bl_count contains the frequencies for each bit length. * The length opt_len is updated; static_len is also updated if stree is * not null. */ function gen_bitlen(s, desc) // deflate_state *s; // tree_desc *desc; /* the tree descriptor */ { var tree = desc.dyn_tree; var max_code = desc.max_code; var stree = desc.stat_desc.static_tree; var has_stree = desc.stat_desc.has_stree; var extra = desc.stat_desc.extra_bits; var base = desc.stat_desc.extra_base; var max_length = desc.stat_desc.max_length; var h; /* heap index */ var n, m; /* iterate over the tree elements */ var bits; /* bit length */ var xbits; /* extra bits */ var f; /* frequency */ var overflow = 0; /* number of elements with bit length too large */ for (bits = 0; bits <= MAX_BITS; bits++) { s.bl_count[bits] = 0; } /* In a first pass, compute the optimal bit lengths (which may * overflow in the case of the bit length tree). */ tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */ for (h = s.heap_max + 1; h < HEAP_SIZE; h++) { n = s.heap[h]; bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1; if (bits > max_length) { bits = max_length; overflow++; } tree[n * 2 + 1]/*.Len*/ = bits; /* We overwrite tree[n].Dad which is no longer needed */ if (n > max_code) { continue; } /* not a leaf node */ s.bl_count[bits]++; xbits = 0; if (n >= base) { xbits = extra[n - base]; } f = tree[n * 2]/*.Freq*/; s.opt_len += f * (bits + xbits); if (has_stree) { s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits); } } if (overflow === 0) { return; } // Trace((stderr,"\nbit length overflow\n")); /* This happens for example on obj2 and pic of the Calgary corpus */ /* Find the first bit length which could increase: */ do { bits = max_length - 1; while (s.bl_count[bits] === 0) { bits--; } s.bl_count[bits]--; /* move one leaf down the tree */ s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */ s.bl_count[max_length]--; /* The brother of the overflow item also moves one step up, * but this does not affect bl_count[max_length] */ overflow -= 2; } while (overflow > 0); /* Now recompute all bit lengths, scanning in increasing frequency. * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all * lengths instead of fixing only the wrong ones. This idea is taken * from 'ar' written by Haruhiko Okumura.) */ for (bits = max_length; bits !== 0; bits--) { n = s.bl_count[bits]; while (n !== 0) { m = s.heap[--h]; if (m > max_code) { continue; } if (tree[m * 2 + 1]/*.Len*/ !== bits) { // Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits)); s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/; tree[m * 2 + 1]/*.Len*/ = bits; } n--; } } } /* =========================================================================== * Generate the codes for a given tree and bit counts (which need not be * optimal). * IN assertion: the array bl_count contains the bit length statistics for * the given tree and the field len is set for all tree elements. * OUT assertion: the field code is set for all tree elements of non * zero code length. */ function gen_codes(tree, max_code, bl_count) // ct_data *tree; /* the tree to decorate */ // int max_code; /* largest code with non zero frequency */ // ushf *bl_count; /* number of codes at each bit length */ { var next_code = new Array(MAX_BITS + 1); /* next code value for each bit length */ var code = 0; /* running code value */ var bits; /* bit index */ var n; /* code index */ /* The distribution counts are first used to generate the code values * without bit reversal. */ for (bits = 1; bits <= MAX_BITS; bits++) { next_code[bits] = code = (code + bl_count[bits - 1]) << 1; } /* Check that the bit counts in bl_count are consistent. The last code * must be all ones. */ //Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1, // "inconsistent bit counts"); //Tracev((stderr,"\ngen_codes: max_code %d ", max_code)); for (n = 0; n <= max_code; n++) { var len = tree[n * 2 + 1]/*.Len*/; if (len === 0) { continue; } /* Now reverse the bits */ tree[n * 2]/*.Code*/ = bi_reverse(next_code[len]++, len); //Tracecv(tree != static_ltree, (stderr,"\nn %3d %c l %2d c %4x (%x) ", // n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1)); } } /* =========================================================================== * Initialize the various 'constant' tables. */ function tr_static_init() { var n; /* iterates over tree elements */ var bits; /* bit counter */ var length; /* length value */ var code; /* code value */ var dist; /* distance index */ var bl_count = new Array(MAX_BITS + 1); /* number of codes at each bit length for an optimal tree */ // do check in _tr_init() //if (static_init_done) return; /* For some embedded targets, global variables are not initialized: */ /*#ifdef NO_INIT_GLOBAL_POINTERS static_l_desc.static_tree = static_ltree; static_l_desc.extra_bits = extra_lbits; static_d_desc.static_tree = static_dtree; static_d_desc.extra_bits = extra_dbits; static_bl_desc.extra_bits = extra_blbits; #endif*/ /* Initialize the mapping length (0..255) -> length code (0..28) */ length = 0; for (code = 0; code < LENGTH_CODES - 1; code++) { base_length[code] = length; for (n = 0; n < (1 << extra_lbits[code]); n++) { _length_code[length++] = code; } } //Assert (length == 256, "tr_static_init: length != 256"); /* Note that the length 255 (match length 258) can be represented * in two different ways: code 284 + 5 bits or code 285, so we * overwrite length_code[255] to use the best encoding: */ _length_code[length - 1] = code; /* Initialize the mapping dist (0..32K) -> dist code (0..29) */ dist = 0; for (code = 0; code < 16; code++) { base_dist[code] = dist; for (n = 0; n < (1 << extra_dbits[code]); n++) { _dist_code[dist++] = code; } } //Assert (dist == 256, "tr_static_init: dist != 256"); dist >>= 7; /* from now on, all distances are divided by 128 */ for (; code < D_CODES; code++) { base_dist[code] = dist << 7; for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) { _dist_code[256 + dist++] = code; } } //Assert (dist == 256, "tr_static_init: 256+dist != 512"); /* Construct the codes of the static literal tree */ for (bits = 0; bits <= MAX_BITS; bits++) { bl_count[bits] = 0; } n = 0; while (n <= 143) { static_ltree[n * 2 + 1]/*.Len*/ = 8; n++; bl_count[8]++; } while (n <= 255) { static_ltree[n * 2 + 1]/*.Len*/ = 9; n++; bl_count[9]++; } while (n <= 279) { static_ltree[n * 2 + 1]/*.Len*/ = 7; n++; bl_count[7]++; } while (n <= 287) { static_ltree[n * 2 + 1]/*.Len*/ = 8; n++; bl_count[8]++; } /* Codes 286 and 287 do not exist, but we must include them in the * tree construction to get a canonical Huffman tree (longest code * all ones) */ gen_codes(static_ltree, L_CODES + 1, bl_count); /* The static distance tree is trivial: */ for (n = 0; n < D_CODES; n++) { static_dtree[n * 2 + 1]/*.Len*/ = 5; static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5); } // Now data ready and we can init static trees static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS); static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS); static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS); //static_init_done = true; } /* =========================================================================== * Initialize a new block. */ function init_block(s) { var n; /* iterates over tree elements */ /* Initialize the trees. */ for (n = 0; n < L_CODES; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; } for (n = 0; n < D_CODES; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; } for (n = 0; n < BL_CODES; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; } s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1; s.opt_len = s.static_len = 0; s.last_lit = s.matches = 0; } /* =========================================================================== * Flush the bit buffer and align the output on a byte boundary */ function bi_windup(s) { if (s.bi_valid > 8) { put_short(s, s.bi_buf); } else if (s.bi_valid > 0) { //put_byte(s, (Byte)s->bi_buf); s.pending_buf[s.pending++] = s.bi_buf; } s.bi_buf = 0; s.bi_valid = 0; } /* =========================================================================== * Copy a stored block, storing first the length and its * one's complement if requested. */ function copy_block(s, buf, len, header) //DeflateState *s; //charf *buf; /* the input data */ //unsigned len; /* its length */ //int header; /* true if block header must be written */ { bi_windup(s); /* align on byte boundary */ if (header) { put_short(s, len); put_short(s, ~len); } // while (len--) { // put_byte(s, *buf++); // } utils.arraySet(s.pending_buf, s.window, buf, len, s.pending); s.pending += len; } /* =========================================================================== * Compares to subtrees, using the tree depth as tie breaker when * the subtrees have equal frequency. This minimizes the worst case length. */ function smaller(tree, n, m, depth) { var _n2 = n * 2; var _m2 = m * 2; return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ || (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m])); } /* =========================================================================== * Restore the heap property by moving down the tree starting at node k, * exchanging a node with the smallest of its two sons if necessary, stopping * when the heap property is re-established (each father smaller than its * two sons). */ function pqdownheap(s, tree, k) // deflate_state *s; // ct_data *tree; /* the tree to restore */ // int k; /* node to move down */ { var v = s.heap[k]; var j = k << 1; /* left son of k */ while (j <= s.heap_len) { /* Set j to the smallest of the two sons: */ if (j < s.heap_len && smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) { j++; } /* Exit if v is smaller than both sons */ if (smaller(tree, v, s.heap[j], s.depth)) { break; } /* Exchange v with the smallest son */ s.heap[k] = s.heap[j]; k = j; /* And continue down the tree, setting j to the left son of k */ j <<= 1; } s.heap[k] = v; } // inlined manually // var SMALLEST = 1; /* =========================================================================== * Send the block data compressed using the given Huffman trees */ function compress_block(s, ltree, dtree) // deflate_state *s; // const ct_data *ltree; /* literal tree */ // const ct_data *dtree; /* distance tree */ { var dist; /* distance of matched string */ var lc; /* match length or unmatched char (if dist == 0) */ var lx = 0; /* running index in l_buf */ var code; /* the code to send */ var extra; /* number of extra bits to send */ if (s.last_lit !== 0) { do { dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]); lc = s.pending_buf[s.l_buf + lx]; lx++; if (dist === 0) { send_code(s, lc, ltree); /* send a literal byte */ //Tracecv(isgraph(lc), (stderr," '%c' ", lc)); } else { /* Here, lc is the match length - MIN_MATCH */ code = _length_code[lc]; send_code(s, code + LITERALS + 1, ltree); /* send the length code */ extra = extra_lbits[code]; if (extra !== 0) { lc -= base_length[code]; send_bits(s, lc, extra); /* send the extra length bits */ } dist--; /* dist is now the match distance - 1 */ code = d_code(dist); //Assert (code < D_CODES, "bad d_code"); send_code(s, code, dtree); /* send the distance code */ extra = extra_dbits[code]; if (extra !== 0) { dist -= base_dist[code]; send_bits(s, dist, extra); /* send the extra distance bits */ } } /* literal or match pair ? */ /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */ //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx, // "pendingBuf overflow"); } while (lx < s.last_lit); } send_code(s, END_BLOCK, ltree); } /* =========================================================================== * Construct one Huffman tree and assigns the code bit strings and lengths. * Update the total bit length for the current block. * IN assertion: the field freq is set for all tree elements. * OUT assertions: the fields len and code are set to the optimal bit length * and corresponding code. The length opt_len is updated; static_len is * also updated if stree is not null. The field max_code is set. */ function build_tree(s, desc) // deflate_state *s; // tree_desc *desc; /* the tree descriptor */ { var tree = desc.dyn_tree; var stree = desc.stat_desc.static_tree; var has_stree = desc.stat_desc.has_stree; var elems = desc.stat_desc.elems; var n, m; /* iterate over heap elements */ var max_code = -1; /* largest code with non zero frequency */ var node; /* new node being created */ /* Construct the initial heap, with least frequent element in * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1]. * heap[0] is not used. */ s.heap_len = 0; s.heap_max = HEAP_SIZE; for (n = 0; n < elems; n++) { if (tree[n * 2]/*.Freq*/ !== 0) { s.heap[++s.heap_len] = max_code = n; s.depth[n] = 0; } else { tree[n * 2 + 1]/*.Len*/ = 0; } } /* The pkzip format requires that at least one distance code exists, * and that at least one bit should be sent even if there is only one * possible code. So to avoid special checks later on we force at least * two codes of non zero frequency. */ while (s.heap_len < 2) { node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0); tree[node * 2]/*.Freq*/ = 1; s.depth[node] = 0; s.opt_len--; if (has_stree) { s.static_len -= stree[node * 2 + 1]/*.Len*/; } /* node is 0 or 1 so it does not have extra bits */ } desc.max_code = max_code; /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree, * establish sub-heaps of increasing lengths: */ for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); } /* Construct the Huffman tree by repeatedly combining the least two * frequent nodes. */ node = elems; /* next internal node of the tree */ do { //pqremove(s, tree, n); /* n = node of least frequency */ /*** pqremove ***/ n = s.heap[1/*SMALLEST*/]; s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--]; pqdownheap(s, tree, 1/*SMALLEST*/); /***/ m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */ s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */ s.heap[--s.heap_max] = m; /* Create a new node father of n and m */ tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/; s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1; tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node; /* and insert the new node in the heap */ s.heap[1/*SMALLEST*/] = node++; pqdownheap(s, tree, 1/*SMALLEST*/); } while (s.heap_len >= 2); s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/]; /* At this point, the fields freq and dad are set. We can now * generate the bit lengths. */ gen_bitlen(s, desc); /* The field len is now set, we can generate the bit codes */ gen_codes(tree, max_code, s.bl_count); } /* =========================================================================== * Scan a literal or distance tree to determine the frequencies of the codes * in the bit length tree. */ function scan_tree(s, tree, max_code) // deflate_state *s; // ct_data *tree; /* the tree to be scanned */ // int max_code; /* and its largest code of non zero frequency */ { var n; /* iterates over all tree elements */ var prevlen = -1; /* last emitted length */ var curlen; /* length of current code */ var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */ var count = 0; /* repeat count of the current code */ var max_count = 7; /* max repeat count */ var min_count = 4; /* min repeat count */ if (nextlen === 0) { max_count = 138; min_count = 3; } tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */ for (n = 0; n <= max_code; n++) { curlen = nextlen; nextlen = tree[(n + 1) * 2 + 1]/*.Len*/; if (++count < max_count && curlen === nextlen) { continue; } else if (count < min_count) { s.bl_tree[curlen * 2]/*.Freq*/ += count; } else if (curlen !== 0) { if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; } s.bl_tree[REP_3_6 * 2]/*.Freq*/++; } else if (count <= 10) { s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++; } else { s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++; } count = 0; prevlen = curlen; if (nextlen === 0) { max_count = 138; min_count = 3; } else if (curlen === nextlen) { max_count = 6; min_count = 3; } else { max_count = 7; min_count = 4; } } } /* =========================================================================== * Send a literal or distance tree in compressed form, using the codes in * bl_tree. */ function send_tree(s, tree, max_code) // deflate_state *s; // ct_data *tree; /* the tree to be scanned */ // int max_code; /* and its largest code of non zero frequency */ { var n; /* iterates over all tree elements */ var prevlen = -1; /* last emitted length */ var curlen; /* length of current code */ var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */ var count = 0; /* repeat count of the current code */ var max_count = 7; /* max repeat count */ var min_count = 4; /* min repeat count */ /* tree[max_code+1].Len = -1; */ /* guard already set */ if (nextlen === 0) { max_count = 138; min_count = 3; } for (n = 0; n <= max_code; n++) { curlen = nextlen; nextlen = tree[(n + 1) * 2 + 1]/*.Len*/; if (++count < max_count && curlen === nextlen) { continue; } else if (count < min_count) { do { send_code(s, curlen, s.bl_tree); } while (--count !== 0); } else if (curlen !== 0) { if (curlen !== prevlen) { send_code(s, curlen, s.bl_tree); count--; } //Assert(count >= 3 && count <= 6, " 3_6?"); send_code(s, REP_3_6, s.bl_tree); send_bits(s, count - 3, 2); } else if (count <= 10) { send_code(s, REPZ_3_10, s.bl_tree); send_bits(s, count - 3, 3); } else { send_code(s, REPZ_11_138, s.bl_tree); send_bits(s, count - 11, 7); } count = 0; prevlen = curlen; if (nextlen === 0) { max_count = 138; min_count = 3; } else if (curlen === nextlen) { max_count = 6; min_count = 3; } else { max_count = 7; min_count = 4; } } } /* =========================================================================== * Construct the Huffman tree for the bit lengths and return the index in * bl_order of the last bit length code to send. */ function build_bl_tree(s) { var max_blindex; /* index of last bit length code of non zero freq */ /* Determine the bit length frequencies for literal and distance trees */ scan_tree(s, s.dyn_ltree, s.l_desc.max_code); scan_tree(s, s.dyn_dtree, s.d_desc.max_code); /* Build the bit length tree: */ build_tree(s, s.bl_desc); /* opt_len now includes the length of the tree representations, except * the lengths of the bit lengths codes and the 5+5+4 bits for the counts. */ /* Determine the number of bit length codes to send. The pkzip format * requires that at least 4 bit length codes be sent. (appnote.txt says * 3 but the actual value used is 4.) */ for (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) { if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) { break; } } /* Update opt_len to include the bit length tree and counts */ s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4; //Tracev((stderr, "\ndyn trees: dyn %ld, stat %ld", // s->opt_len, s->static_len)); return max_blindex; } /* =========================================================================== * Send the header for a block using dynamic Huffman trees: the counts, the * lengths of the bit length codes, the literal tree and the distance tree. * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4. */ function send_all_trees(s, lcodes, dcodes, blcodes) // deflate_state *s; // int lcodes, dcodes, blcodes; /* number of codes for each tree */ { var rank; /* index in bl_order */ //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, "not enough codes"); //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES, // "too many codes"); //Tracev((stderr, "\nbl counts: ")); send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */ send_bits(s, dcodes - 1, 5); send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */ for (rank = 0; rank < blcodes; rank++) { //Tracev((stderr, "\nbl code %2d ", bl_order[rank])); send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3); } //Tracev((stderr, "\nbl tree: sent %ld", s->bits_sent)); send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */ //Tracev((stderr, "\nlit tree: sent %ld", s->bits_sent)); send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */ //Tracev((stderr, "\ndist tree: sent %ld", s->bits_sent)); } /* =========================================================================== * Check if the data type is TEXT or BINARY, using the following algorithm: * - TEXT if the two conditions below are satisfied: * a) There are no non-portable control characters belonging to the * "black list" (0..6, 14..25, 28..31). * b) There is at least one printable character belonging to the * "white list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255). * - BINARY otherwise. * - The following partially-portable control characters form a * "gray list" that is ignored in this detection algorithm: * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}). * IN assertion: the fields Freq of dyn_ltree are set. */ function detect_data_type(s) { /* black_mask is the bit mask of black-listed bytes * set bits 0..6, 14..25, and 28..31 * 0xf3ffc07f = binary 11110011111111111100000001111111 */ var black_mask = 0xf3ffc07f; var n; /* Check for non-textual ("black-listed") bytes. */ for (n = 0; n <= 31; n++, black_mask >>>= 1) { if ((black_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) { return Z_BINARY; } } /* Check for textual ("white-listed") bytes. */ if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) { return Z_TEXT; } for (n = 32; n < LITERALS; n++) { if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) { return Z_TEXT; } } /* There are no "black-listed" or "white-listed" bytes: * this stream either is empty or has tolerated ("gray-listed") bytes only. */ return Z_BINARY; } var static_init_done = false; /* =========================================================================== * Initialize the tree data structures for a new zlib stream. */ function _tr_init(s) { if (!static_init_done) { tr_static_init(); static_init_done = true; } s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc); s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc); s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc); s.bi_buf = 0; s.bi_valid = 0; /* Initialize the first block of the first file: */ init_block(s); } /* =========================================================================== * Send a stored block */ function _tr_stored_block(s, buf, stored_len, last) //DeflateState *s; //charf *buf; /* input block */ //ulg stored_len; /* length of input block */ //int last; /* one if this is the last block for a file */ { send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */ copy_block(s, buf, stored_len, true); /* with header */ } /* =========================================================================== * Send one empty static block to give enough lookahead for inflate. * This takes 10 bits, of which 7 may remain in the bit buffer. */ function _tr_align(s) { send_bits(s, STATIC_TREES << 1, 3); send_code(s, END_BLOCK, static_ltree); bi_flush(s); } /* =========================================================================== * Determine the best encoding for the current block: dynamic trees, static * trees or store, and output the encoded block to the zip file. */ function _tr_flush_block(s, buf, stored_len, last) //DeflateState *s; //charf *buf; /* input block, or NULL if too old */ //ulg stored_len; /* length of input block */ //int last; /* one if this is the last block for a file */ { var opt_lenb, static_lenb; /* opt_len and static_len in bytes */ var max_blindex = 0; /* index of last bit length code of non zero freq */ /* Build the Huffman trees unless a stored block is forced */ if (s.level > 0) { /* Check if the file is binary or text */ if (s.strm.data_type === Z_UNKNOWN) { s.strm.data_type = detect_data_type(s); } /* Construct the literal and distance trees */ build_tree(s, s.l_desc); // Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len, // s->static_len)); build_tree(s, s.d_desc); // Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len, // s->static_len)); /* At this point, opt_len and static_len are the total bit lengths of * the compressed block data, excluding the tree representations. */ /* Build the bit length tree for the above two trees, and get the index * in bl_order of the last bit length code to send. */ max_blindex = build_bl_tree(s); /* Determine the best encoding. Compute the block lengths in bytes. */ opt_lenb = (s.opt_len + 3 + 7) >>> 3; static_lenb = (s.static_len + 3 + 7) >>> 3; // Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ", // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len, // s->last_lit)); if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; } } else { // Assert(buf != (char*)0, "lost buf"); opt_lenb = static_lenb = stored_len + 5; /* force a stored block */ } if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) { /* 4: two words for the lengths */ /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE. * Otherwise we can't have processed more than WSIZE input bytes since * the last block flush, because compression would have been * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to * transform a block into a stored block. */ _tr_stored_block(s, buf, stored_len, last); } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) { send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3); compress_block(s, static_ltree, static_dtree); } else { send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3); send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1); compress_block(s, s.dyn_ltree, s.dyn_dtree); } // Assert (s->compressed_len == s->bits_sent, "bad compressed size"); /* The above check is made mod 2^32, for files larger than 512 MB * and uLong implemented on 32 bits. */ init_block(s); if (last) { bi_windup(s); } // Tracev((stderr,"\ncomprlen %lu(%lu) ", s->compressed_len>>3, // s->compressed_len-7*last)); } /* =========================================================================== * Save the match info and tally the frequency counts. Return true if * the current block must be flushed. */ function _tr_tally(s, dist, lc) // deflate_state *s; // unsigned dist; /* distance of matched string */ // unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */ { //var out_length, in_length, dcode; s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff; s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff; s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff; s.last_lit++; if (dist === 0) { /* lc is the unmatched char */ s.dyn_ltree[lc * 2]/*.Freq*/++; } else { s.matches++; /* Here, lc is the match length - MIN_MATCH */ dist--; /* dist = match distance - 1 */ //Assert((ush)dist < (ush)MAX_DIST(s) && // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) && // (ush)d_code(dist) < (ush)D_CODES, "_tr_tally: bad match"); s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]/*.Freq*/++; s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++; } // (!) This block is disabled in zlib defaults, // don't enable it for binary compatibility //#ifdef TRUNCATE_BLOCK // /* Try to guess if it is profitable to stop the current block here */ // if ((s.last_lit & 0x1fff) === 0 && s.level > 2) { // /* Compute an upper bound for the compressed length */ // out_length = s.last_lit*8; // in_length = s.strstart - s.block_start; // // for (dcode = 0; dcode < D_CODES; dcode++) { // out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]); // } // out_length >>>= 3; // //Tracev((stderr,"\nlast_lit %u, in %ld, out ~%ld(%ld%%) ", // // s->last_lit, in_length, out_length, // // 100L - out_length*100L/in_length)); // if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) { // return true; // } // } //#endif return (s.last_lit === s.lit_bufsize - 1); /* We avoid equality with lit_bufsize because of wraparound at 64K * on 16 bit machines and because stored blocks are restricted to * 64K-1 bytes. */ } exports._tr_init = _tr_init; exports._tr_stored_block = _tr_stored_block; exports._tr_flush_block = _tr_flush_block; exports._tr_tally = _tr_tally; exports._tr_align = _tr_align; },{"../utils/common":5}],12:[function(require,module,exports){ 'use strict'; // (C) 1995-2013 Jean-loup Gailly and Mark Adler // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. The origin of this software must not be misrepresented; you must not // claim that you wrote the original software. If you use this software // in a product, an acknowledgment in the product documentation would be // appreciated but is not required. // 2. Altered source versions must be plainly marked as such, and must not be // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. function ZStream() { /* next input byte */ this.input = null; // JS specific, because we have no pointers this.next_in = 0; /* number of bytes available at input */ this.avail_in = 0; /* total number of input bytes read so far */ this.total_in = 0; /* next output byte should be put there */ this.output = null; // JS specific, because we have no pointers this.next_out = 0; /* remaining free space at output */ this.avail_out = 0; /* total number of bytes output so far */ this.total_out = 0; /* last error message, NULL if no error */ this.msg = ''/*Z_NULL*/; /* not visible by applications */ this.state = null; /* best guess about the data type: binary or text */ this.data_type = 2/*Z_UNKNOWN*/; /* adler32 value of the uncompressed data */ this.adler = 0; } module.exports = ZStream; },{}]},{},[3])(3) });
/* Pushes/removes the corresponding elements from selectedSpellIDs when a checkbox is marked. */ function updateSelectedSpells() { var currentSpellId = parseInt(this.id.replace("spell-", "")); if (this.checked) { selectedSpellIDs.push(currentSpellId); } else { selectedSpellIDs.splice(selectedSpellIDs.indexOf(currentSpellId), 1); } updateResults(); } /* As updateSelectedSpells(), but for radio buttons. Also contains hacks to make radio buttons de-selectable. */ function radioButtonClicked() { var previousValue = $(this).prop('previousValue'); var name = $(this).prop('name'); if (previousValue == 'checked') { $(this).removeAttr('checked'); $(this).prop('previousValue', false); } else { $("input[name=" + name + "]:radio").prop('previousValue', false); $(this).prop('previousValue', 'checked'); } var currentSpellId = parseInt(this.id.replace("spell-", "")); if (this.checked) { selectedSpellIDs.push(currentSpellId); } else { selectedSpellIDs.splice(selectedSpellIDs.indexOf(currentSpellId), 1); } var clickedElement = this; var $radioButtons = $("input[type=radio]"); $.each($radioButtons, function (index, element) { if (element.id !== clickedElement.id) { var spellToRemove = parseInt(element.id.replace("spell-", "")); var position = selectedSpellIDs.indexOf(spellToRemove); if (position != -1) { selectedSpellIDs.splice(position, 1); } } }); updateResults(); } /* Duh. */ function updateGlobalCL() { var globalCL = $("#caster-level").val(); $(".cl-detail").val(globalCL); updateResults(); } /* Posts an object from constructMessage to the api via AJAX, calls displayResults on success. */ function updateResults() { var CL = $("#caster-level").val(); var message = constructMessage(CL); $.ajax({ url: "/behind-the-scenes/bonuses/", type: "get", data: message, success: function (json) { var numericalBonuses = json.content.numerical; var miscBonuses = json.content.misc; displayResults(numericalBonuses, miscBonuses) } }); } /* Returns a JS object consisting of spell IDs as keys and the CL of the respective spells as values. */ function constructMessage(CL) { var message = {}; for (var i = 0; i < selectedSpellIDs.length; i++) { var currentID = selectedSpellIDs[i]; var $currentDetailedCL = $("#caster-level-" + currentID); if ($currentDetailedCL.length > 0) { message[currentID] = $currentDetailedCL.val(); } else { message[currentID] = CL; } } return message; } /* Loops over the statisticsGroups object to display bonuses. This is the function that actually updates the page. */ function displayResults(numericalBonuses, miscBonuses) { var $resultsContainer = $("#results-container"); $resultsContainer.empty(); $.each(statisticsGroups, function (i, group) { $.each(group.statistics, function (j, statistic) { if(numericalBonuses[statistic.id]) { var resultDiv = "<div>" + statistic.name + ": " + (numericalBonuses[statistic.id] > 0 ? "+" : "") + numericalBonuses[statistic.id] + "</div>"; $resultsContainer.append(resultDiv); } }); }); $.each(miscBonuses, function(i, bonus) { $resultsContainer.append("<div>" + bonus + "</div>") }) }
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var users = require('./routes/users'); var reg = require('./routes/reg'); var login = require('./routes/login'); var home = require('./routes/home'); var loginOut = require('./routes/login-out'); var app = express(); var session = require('express-session'); var MongoStore = require('connect-mongo/es5')(session); app.use(express.static(__dirname + '/')); app.set('views', __dirname + '/public'); app.set('view engine', 'ejs'); // uncomment after placing your favicon in /public //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); app.use(logger('dev')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); app.use(cookieParser()); app.use(session({ secret: 'keyboard cat', saveUninitialized: false, // don't create session until something stored resave: false, //don't save session if unmodified store: new MongoStore({ url: 'mongodb://localhost/test-app', touchAfter: 24 * 3600 // time period in seconds }) })); app.use(function (req, res, next) { res.locals.user = req.session.user; next(); }); app.use(express.static(path.join(__dirname, 'public'))); app.use('/api', routes); app.use('/api/users', users); app.use('/api/reg', reg); app.use('/api/login', login); app.use('/api/home', home); app.use('/api/login-out', loginOut); // catch 404 and forward to error handler app.use(function(req, res, next) { var err = new Error('Not Found'); err.status = 404; next(err); }); // error handlers // development error handler // will print stacktrace if (app.get('env') === 'development') { app.use(function(err, req, res, next) { res.status(err.status || 500); res.render('error', { message: err.message, error: err }); }); } // production error handler // no stacktraces leaked to user app.use(function(err, req, res, next) { res.status(err.status || 500); res.render('error', { message: err.message, error: {} }); }); app.use(function (req, res, next) { res.locals.user = req.session.user; var err = req.session.error; var success = req.session.success; delete req.session.error; delete req.session.success; res.locals.message = ''; if (err) res.locals.message = '<div class="alert alert-warning"> ' + err + '</div>'; else if (success) res.locals.message = '<div class="alert alert-success"> ' + success + '</div>'; next(); }); module.exports = app;
import React from "react"; import ShallowComponent from "robe-react-commons/lib/components/ShallowComponent"; import Application from "robe-react-commons/lib/application/Application"; import Card from "app/card/Card"; export default class Welcome extends ShallowComponent { render():Object { return ( <Card header={Application.i18n("welcome").header}> <p>{Application.i18n("welcome").description}</p> <br/> </Card> ); } }
function euler220() { // Good luck! return true } euler220()
import '@storybook/addon-actions/register'; import '@storybook/addon-links/register'; import '@storybook/addon-events/register'; import '@storybook/addon-notes/register'; import '@storybook/addon-options/register'; import '@storybook/addon-knobs/register';
module.exports = { files: require('./files') };
'use babel'; import path from 'path'; const __b = (_p, arr) => arr.map(mp => path.resolve(`${__dirname}/../node_modules/babel-${_p}-${mp}`)); export default { "presets": __b('preset', [ "es2015", "react" ]), "plugins": __b('plugin', [ "add-module-exports", "transform-object-rest-spread", "transform-export-extensions", "detective" ]), "babelrc": false };
//alert("Hello from your Chrome extension!")
var makebuffer_from_trace = require("node-opcua-debug").makebuffer_from_trace; exports.packet_ReadResponse= makebuffer_from_trace(function () { /* 00000000: 01 00 7a 02 87 bb 66 e8 6e 19 d1 01 e0 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 ..z..;fhn.Q.`................... 00000020: 0d c1 18 00 00 00 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01 03 00 .A.............................. 00000040: 00 00 02 00 00 00 04 00 00 00 03 00 00 00 c4 c6 a9 cf 30 19 d1 01 87 bb 66 e8 6e 19 d1 01 09 03 ..............DF)O0.Q..;fhn.Q... 00000060: 03 87 bb 66 e8 6e 19 d1 01 09 03 03 87 bb 66 e8 6e 19 d1 01 00 00 00 00 ..;fhn.Q.....;fhn.Q..... */ });
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: ';' }, dist: { src: ['src/elements/BaseElement.js', 'src/elements/MapElement.js', 'src/elements/SolidMapElement.js', 'src/**/*.js'], dest: 'js/<%= pkg.name %>.js' } }, uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' }, dist: { files: { 'js/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>'] } } }, jshint: { files: ['Gruntfile.js', 'src/**/*.js'], options: { // options here to override JSHint defaults globals: { jQuery: true, console: true, module: true, document: true } } }, watch: { files: ['<%= jshint.files %>'], tasks: ['jshint', 'qunit'] } }); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.registerTask(['jshint', 'qunit']); grunt.registerTask('default', ['jshint', 'concat', 'uglify']); };
window.addEvent('domready', function() { // Close button for alert messages $$('.alert-error, .alert-info, .alert-success').each(function(e) { var button = new Element('button', { type: 'button', html: '&times;', events: { click: function() { var fx = new Fx.Tween(this.parentNode, { property: 'opacity', onComplete: function() { this.parentNode.dispose(); }.bind(this) }); fx.start(1, 0); } } }); button.inject(e, 'top'); }); });
var path = require('path'); module.exports = { cache: false, entry: { bundle: './src/client.js' }, output: { path: path.resolve(__dirname, 'public/js/build'), filename: 'bundle.js', }, module: { loaders: [ { test: /\.js$|\.jsx$/, exclude: /node_modules/, loader: 'babel' } ], }, resolve: { extensions: ['', '.js', '.jsx'], modulesDirectories: ['node_modules', 'src'] } };
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Leave Schema */ var LeaveSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Leave name', trim: true }, created: { type: Date, default: Date.now }, user: { type: Schema.ObjectId, ref: 'User' } }); mongoose.model('Leave', LeaveSchema);
import React, { PureComponent } from 'react' import classNames from 'classnames' import PropTypes from 'prop-types' import BodyContent from '../BodyContent/BodyContent' import Description from '../Description/Description' import Indicator from '../Indicator/Indicator' import { styles } from './Response.styles' @styles export default class Response extends PureComponent { constructor (props) { super(props) this.onClick = this.onClick.bind(this) this.state = { isOpen: false } } render () { const { response, classes } = this.props const { code, description, schema, examples } = response const { isOpen } = this.state let indicatorDirection if (isOpen) { indicatorDirection = 'up' } else { indicatorDirection = 'down' } const successCode = this.isSuccessCode(code) const hasDetails = schema || examples return ( <div className={classes.response}> <div className={classNames(classes.info, { [classes.success]: successCode, [classes.error]: !successCode, [classes.isClickable]: hasDetails })} onClick={hasDetails ? this.onClick : undefined}> {hasDetails && <Indicator direction={indicatorDirection} />} <span className={classes.code}>{code}</span> {description && <Description isInline description={description} />} </div> {hasDetails && isOpen && <BodyContent schema={schema} examples={examples} /> } </div> ) } onClick () { if (this.state.isOpen) { this.setState({ isOpen: false }) } else { this.setState({ isOpen: true }) } } isSuccessCode (code) { return parseInt(code, 10) >= 100 && parseInt(code, 10) <= 399 } } Response.propTypes = { response: PropTypes.shape({ code: PropTypes.string, description: PropTypes.string, schema: PropTypes.array, examples: PropTypes.array }), classes: PropTypes.object }
module.exports = class extends think.Model { /** * 获取验证码by Code * 用于查询验证码是否存在 * @param code */ getCodeByCode(code) { return this.where({code: code}).find(); } /** * 保存验证码 * @param data * @returns {Promise} */ saveCode(data) { return this.thenUpdate(data, {email: data.email}); } /** * 通过邮箱获取验证码 * @param email */ getCodeByEmail(email) { return this.where({email: email}).find(); } };
import * as React from 'react'; import PropTypes from 'prop-types'; import { Global } from '@emotion/react'; import { styled } from '@material-ui/core/styles'; import CssBaseline from '@material-ui/core/CssBaseline'; import { grey } from '@material-ui/core/colors'; import Button from '@material-ui/core/Button'; import Box from '@material-ui/core/Box'; import Skeleton from '@material-ui/core/Skeleton'; import Typography from '@material-ui/core/Typography'; import SwipeableDrawer from '@material-ui/core/SwipeableDrawer'; const drawerBleeding = 56; const Root = styled('div')(({ theme }) => ({ height: '100%', backgroundColor: theme.palette.mode === 'light' ? grey[100] : theme.palette.background.default, })); const StyledBox = styled(Box)(({ theme }) => ({ backgroundColor: theme.palette.mode === 'light' ? '#fff' : grey[800], })); const Puller = styled(Box)(({ theme }) => ({ width: 30, height: 6, backgroundColor: theme.palette.mode === 'light' ? grey[300] : grey[900], borderRadius: 3, position: 'absolute', top: 8, left: 'calc(50% - 15px)', })); function SwipeableEdgeDrawer(props) { const { window } = props; const [open, setOpen] = React.useState(false); const toggleDrawer = (newOpen) => () => { setOpen(newOpen); }; // This is used only for the example const container = window !== undefined ? () => window().document.body : undefined; return ( <Root> <CssBaseline /> <Global styles={{ '.MuiDrawer-root > .MuiPaper-root': { height: `calc(50% - ${drawerBleeding}px)`, overflow: 'visible', }, }} /> <Box sx={{ textAlign: 'center', pt: 1 }}> <Button onClick={toggleDrawer(true)}>Open</Button> </Box> <SwipeableDrawer container={container} anchor="bottom" open={open} onClose={toggleDrawer(false)} onOpen={toggleDrawer(true)} swipeAreaWidth={drawerBleeding} disableSwipeToOpen={false} ModalProps={{ keepMounted: true, }} > <StyledBox sx={{ position: 'absolute', top: -drawerBleeding, borderTopLeftRadius: 8, borderTopRightRadius: 8, visibility: 'visible', right: 0, left: 0, }} > <Puller /> <Typography sx={{ p: 2, color: 'text.secondary' }}>51 results</Typography> </StyledBox> <StyledBox sx={{ px: 2, pb: 2, height: '100%', overflow: 'auto', }} > <Skeleton variant="rectangular" height="100%" /> </StyledBox> </SwipeableDrawer> </Root> ); } SwipeableEdgeDrawer.propTypes = { /** * Injected by the documentation to work in an iframe. * You won't need it on your project. */ window: PropTypes.func, }; export default SwipeableEdgeDrawer;
var ConcreteInformationView = Backbone.View.extend({ initialize : function() { this.template = _.template(tpl.get('layouts/concreteinformation')); }, render : function() { var data = {"object": this.model}; this.$el.html(this.template(data)); return this; } });
define([ 'backbone', 'jquery', 'underscore', 'find/app/vent', 'find/app/model/document-model', 'find/app/model/promotions-collection', 'find/app/page/search/sort-view', 'find/app/page/search/results/results-number-view', 'find/app/page/search/results/result-rendering/result-renderer', 'find/app/page/search/results/result-rendering/result-renderer-config', 'find/app/util/view-server-client', 'find/app/util/events', 'text!find/templates/app/page/search/results/results-view.html', 'text!find/templates/app/page/search/results/results-container.html', 'text!find/templates/app/page/loading-spinner.html', 'moment', 'i18n!find/nls/bundle', 'i18n!find/nls/indexes' ], function(Backbone, $, _, vent, DocumentModel, PromotionsCollection, SortView, ResultsNumberView, ResultRenderer, resultsRendererConfig, viewClient, events, template, resultsTemplate, loadingSpinnerTemplate, moment, i18n, i18n_indexes) { var SCROLL_INCREMENT = 30; var INFINITE_SCROLL_POSITION_PIXELS = 500; var MATCHING = 0; function infiniteScroll() { var resultsPresent = this.documentsCollection.size() > 0 && this.fetchStrategy.validateQuery(this.queryModel); if (resultsPresent && this.resultsFinished && !this.endOfResults) { this.start = this.maxResults + 1; this.maxResults += SCROLL_INCREMENT; this.loadData(true); events().page(this.maxResults / SCROLL_INCREMENT); } } return Backbone.View.extend({ //to be overridden generateErrorMessage: null, template: _.template(template), loadingTemplate: _.template(loadingSpinnerTemplate)({i18n: i18n, large: true}), resultsTemplate: _.template(resultsTemplate), messageTemplate: _.template('<div class="result-message span10"><%-message%> </div>'), errorTemplate: _.template('<li class="error-message span10"><span><%-feature%>: </span><%-error%></li>'), events: { 'click .preview-mode [data-cid]': function(e) { var $target = $(e.currentTarget); if ($target.hasClass('selected-document')) { // disable preview mode this.previewModeModel.set({document: null}); } else { //enable/choose another preview view var cid = $target.data('cid'); var isPromotion = $target.closest('.main-results-list').hasClass('promotions'); var collection = isPromotion ? this.promotionsCollection : this.documentsCollection; var model = collection.get(cid); this.previewModeModel.set({document: model}); if (!isPromotion) { events().preview(collection.indexOf(model) + 1); } } }, // ToDo : Merge with changes made in FIND-229 'click .document-detail-mode [data-cid]': function(e) { var $target = $(e.currentTarget); var cid = $target.data('cid'); var isPromotion = $target.closest('.main-results-list').hasClass('promotions'); var collection = isPromotion ? this.promotionsCollection : this.documentsCollection; var model = collection.get(cid); vent.navigateToDetailRoute(model); }, 'click .similar-CVs-trigger': function(event) { event.stopPropagation(); var cid = $(event.target).closest('[data-cid]').data('cid'); var documentModel = this.documentsCollection.get(cid); if (!documentModel){ documentModel = this.promotionsCollection.get(cid); } MATCHING = 1; vent.navigateToSuggestRoute(documentModel); }, 'click .similar-Offers-trigger': function(event) { event.stopPropagation(); var cid = $(event.target).closest('[data-cid]').data('cid'); var documentModel = this.documentsCollection.get(cid); if (!documentModel){ documentModel = this.promotionsCollection.get(cid); } MATCHING = 2; vent.navigateToSuggestRoute(documentModel); } }, initialize: function(options) { this.fetchStrategy = options.fetchStrategy; this.queryModel = options.queryModel; //console.log("queryModel",this.queryModel) //console.log("queryModel--indexes",this.queryModel.get('indexes')) if (MATCHING == 1) this.queryModel.set({indexes: ["CV","Recrutement","Freelance","Soustraitant","Taleo"]}) if (MATCHING == 2) this.queryModel.set({indexes: "Offres"}) MATCHING = 0; //console.log("queryModel--indexes",this.queryModel.get('indexes')) this.showPromotions = this.fetchStrategy.promotions(this.queryModel) && !options.hidePromotions; this.documentsCollection = options.documentsCollection; //console.log("documentsCollection",this.documentsCollection) this.indexesCollection = options.indexesCollection; //console.log("indexesCollection",this.indexesCollection) this.scrollModel = options.scrollModel; // Preview mode is enabled when a preview mode model is provided this.previewModeModel = options.previewModeModel; if (this.indexesCollection) { this.selectedIndexesCollection = options.queryState.selectedIndexes; //console.log("selectedIndexesCollection",this.selectedIndexesCollection) } this.resultRenderer = new ResultRenderer({ config: resultsRendererConfig }); if (this.showPromotions) { this.promotionsCollection = new PromotionsCollection(); } this.sortView = new SortView({ queryModel: this.queryModel }); this.resultsNumberView = new ResultsNumberView({ documentsCollection: this.documentsCollection }); this.listenTo(this.queryModel, 'change refresh', this.refreshResults); this.infiniteScroll = _.debounce(infiniteScroll, 500, true); this.listenTo(this.scrollModel, 'change', function() { if (this.scrollModel.get('scrollTop') > this.scrollModel.get('scrollHeight') - INFINITE_SCROLL_POSITION_PIXELS - this.scrollModel.get('innerHeight')) { this.infiniteScroll(); } }); if (this.previewModeModel) { this.listenTo(this.previewModeModel, 'change:document', this.updateSelectedDocument); } }, refreshResults: function() { if (this.fetchStrategy.validateQuery(this.queryModel)) { if (this.fetchStrategy.waitForIndexes(this.queryModel)) { this.$loadingSpinner.addClass('hide'); this.$('.main-results-content .results').html(this.messageTemplate({message: i18n_indexes['search.error.noIndexes']})); } else { this.endOfResults = false; this.start = 1; this.maxResults = SCROLL_INCREMENT; this.loadData(false); this.$('.main-results-content .promotions').empty(); this.$loadingSpinner.removeClass('hide'); this.toggleError(false); this.$('.main-results-content .error .error-list').empty(); this.$('.main-results-content .results').empty(); } } }, clearLoadingSpinner: function() { if (this.resultsFinished && this.promotionsFinished || !this.showPromotions) { this.$loadingSpinner.addClass('hide'); } }, render: function() { this.$el.html(this.template({i18n: i18n})); this.$loadingSpinner = $(this.loadingTemplate); this.$el.find('.results').after(this.$loadingSpinner); this.sortView.setElement(this.$('.sort-container')).render(); this.resultsNumberView.setElement(this.$('.results-number-container')).render(); if (this.showPromotions) { this.listenTo(this.promotionsCollection, 'add', function(model) { this.formatResult(model, true); }); this.listenTo(this.promotionsCollection, 'sync', function() { this.promotionsFinished = true; this.clearLoadingSpinner(); }); this.listenTo(this.promotionsCollection, 'error', function(collection, xhr) { this.promotionsFinished = true; this.clearLoadingSpinner(); this.$('.main-results-content .promotions').append(this.handleError(i18n['app.feature.promotions'], xhr)); }); } this.listenTo(this.documentsCollection, 'add', function(model) { this.formatResult(model, false); //console.log(model); }); this.listenTo(this.documentsCollection, 'sync reset', function() { this.resultsFinished = true; this.clearLoadingSpinner(); this.endOfResults = this.maxResults >= this.documentsCollection.totalResults; if (this.endOfResults && !this.documentsCollection.isEmpty()) { this.$('.main-results-content .results').append(this.messageTemplate({message: i18n["search.noMoreResults"]})); } else if (this.documentsCollection.isEmpty()) { this.$('.main-results-content .results').append(this.messageTemplate({message: i18n["search.noResults"]})); } }); this.listenTo(this.documentsCollection, 'error', function(collection, xhr) { this.resultsFinished = true; this.clearLoadingSpinner(); this.$('.main-results-content .results').append(this.handleError(i18n['app.feature.search'], xhr)); }); if (this.documentsCollection.isEmpty()) { this.refreshResults(); } if (this.previewModeModel) { this.$('.main-results-content').addClass('preview-mode'); this.updateSelectedDocument(); } else { this.$('.main-results-content').addClass('document-detail-mode'); } }, updateSelectedDocument: function() { var documentModel = this.previewModeModel.get('document'); this.$('.main-results-container').removeClass('selected-document'); if (documentModel !== null) { this.$('.main-results-container[data-cid="' + documentModel.cid + '"]').addClass('selected-document'); } }, formatResult: function(model, isPromotion) { var $newResult = this.resultRenderer.getResult(model, isPromotion); if (isPromotion) { this.$('.main-results-content .promotions').append($newResult); } else { this.$('.main-results-content .results').append($newResult); } }, handleError: function(feature, xhr) { this.toggleError(true); var message = this.generateErrorMessage(xhr); var messageTemplate = this.errorTemplate({feature: feature, error: message}); this.$('.main-results-content .error .error-list').append(messageTemplate); }, toggleError: function(on) { this.$('.main-results-content .promotions').toggleClass('hide', on); this.$('.main-results-content .results').toggleClass('hide', on); this.$('.main-results-content .error').toggleClass('hide', !on); }, loadData: function(infiniteScroll) { this.$loadingSpinner.removeClass('hide'); this.resultsFinished = false; var requestData = _.extend({ start: this.start, max_results: this.maxResults, sort: this.queryModel.get('sort'), auto_correct: this.queryModel.get('autoCorrect') }, this.fetchStrategy.requestParams(this.queryModel, infiniteScroll)); this.documentsCollection.fetch({ data: requestData, reset: false, remove: !infiniteScroll, error: function(collection) { // if returns an error remove previous models from documentsCollection if (collection) { collection.reset(); } }, success: function() { if (this.indexesCollection && this.documentsCollection.warnings && this.documentsCollection.warnings.invalidDatabases) { // Invalid databases have been deleted from IDOL; mark them as such in the indexes collection this.documentsCollection.warnings.invalidDatabases.forEach(function(name) { var indexModel = this.indexesCollection.findWhere({name: name}); //console.log("indexModel",indexModel) if (indexModel) { indexModel.set('deleted', true); } this.selectedIndexesCollection.remove({name: name}); }.bind(this)); } }.bind(this) }); if (!infiniteScroll && this.showPromotions) { this.promotionsFinished = false; var promotionsRequestData = _.extend({ start: this.start, max_results: this.maxResults, sort: this.queryModel.get('sort') }, this.fetchStrategy.promotionsRequestParams(this.queryModel, infiniteScroll)); this.promotionsCollection.fetch({ data: promotionsRequestData, reset: false }, this); // we're not scrolling, so should be a new search events().reset(requestData.text); } }, remove: function() { this.sortView.remove(); this.resultsNumberView.remove(); Backbone.View.prototype.remove.call(this); } }); });
export default (prop) => <div propA='1' probB={3} c>1sdas</div>
Snipe.Results = Class.extend({ /** * Init method * @param options (Object) - Options for the method. * Eg. * options: { * //Maximum number of results to display * maxResults: 5, * * select: function(winid, tabid) { * //Method to handle what happens when an item is selected * } * } */ init: function(element, options) { var self = this, items = element.querySelectorAll('li'), curSelection; self.element = element; // PRIVATE METHODS ____________________________________________________________ function updateLayout() { var height = 0; if (items.length > 0) { removeClass(element, 'invisible'); for (var i = 0, length = items.length; i < length; i++) { if (i < 5) { height += items[i].clientHeight + 1; } } element.style.maxHeight = height + 'px !important'; } else { addClass(element, 'invisible'); } } function onItemSelect(e) { self.activateResult(e.target); } function onItemHover(e) { e.cancelBubble = true; var targ = e.target; //Hovering over child node if (!targ.children.length) { targ = targ.parentNode; } self.selectResult(targ); } function onItemLeave(e) { e.cancelBubble = true; var targ = e.target; //Hovering over child node if (!targ.children.length) { targ = targ.parentNode; } self.deselectResult(targ); } // PRIVILEGED METHODS _________________________________________________________ self.refresh = function(data) { if (!data) { element.innerHTML = ''; } else { element.innerHTML = tmpl( '<% for ( var i = 0; i < length; i++ ) { %>\ <li style="background-image:url(<%= results[i].favicon %>) !important;" data-index="<%= i %>" data-win="<%= results[i].winid %>" data-tab="<%= results[i].tabid %>">\ <%= results[i].title %>\ <em><%= results[i].url %></em>\ </li>\ <% } %>', {results: data, length: Math.min(options.maxResults, data.length) || data.length} ); items = element.querySelectorAll('li'); for (var i = 0; i < items.length; i++) { items[i].addEventListener('mouseover', onItemHover, false); items[i].addEventListener('mouseout', onItemLeave, false); items[i].addEventListener('click', onItemSelect, false); } } updateLayout(); self.selectResult(items[0]); }; self.selectResult = function(item) { if (!item) {return false;} if (curSelection) { self.deselectResult(curSelection); } addClass(item, 'active'); self.curIndex = parseInt(item.getAttribute('data-index')); curSelection = items[self.curIndex]; }; self.deselectResult = function(item) { removeClass(item, 'active'); curSelection = null; self.curIndex = null; }; self.activateResult = function(item) { if (!item) { item = curSelection; } options.select.apply(null, [item.getAttribute('data-win'), item.getAttribute('data-tab')]); }; self.destroy = function() { element.parentNode.removeChild(element); }; } });
module.exports = { resHandler : function (req, res, next) { if(res.payload){ var response = {} response['status'] = 'ok' response['message'] = res.message if(res.payload.length){ response['payload'] = res.payload } else { response['payload'] = [res.payload] } response['count'] = response.payload.length res.send(response) } else{ var err = new Error('Resource not found'); err.status = 404; err.message = "Resource not found" next(err); } }, errHandler : function (err, req, res, next){ res.status(err.status || 500) response = {} response['status'] = 'error' response['code'] = err.status || 500 response['message'] = err.message || 'Internal server error' res.send(response) } }
import storeContainer from "./storeContainer"; export default function storeContainerWithOpts(mapShadowToProps, options) { return storeContainer(mapShadowToProps, null, null, options); }
angular.module('lukkari.services') .factory('FoodService', ['$http', function($http) { let lunches = []; function parseLunch(element, index, array) { let lunch = {}; try { lunch.main = element.div[0].div.div.content; if (element.div.length >= 2) { lunch.side = element.div[1].div.div.content; } if (element.div.length >= 3) { lunch.allergy = element.div[2].div.div.content; } } catch (e) { // if only one field is specified, eg. aamupuuro lunch.main = element.div.div.div.content; } let found = false; let lunchLength = lunches.length; while (lunchLength--) { if (lunches[lunchLength].main.includes(lunch.main)) { console.log('found'); found = true; } } if (!found) { lunches.push(lunch); } } function get({ callback }) { if (lunches.length > 0) { callback(lunches); } else { $http({ method: 'GET', url: [ 'https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%', '20html%20where%20url%3D%22http%3A%2F%2Fwww.campusravita.fi%2Fi', 'ntra_menu_today.php%22%20and%0A%20%20%20%20%20%20xpath%3D\'%2F', '%2Fdiv%5B%40class%3D%22rivitys-intra%22%5D\'&format=json&diagn', 'ostics=true&callback=' ].join('') }).then( function successCallback(response) { // if no lunches (eg. weekend) if (response.data.query.results === null) { callback(lunches); } else { const data = response.data.query.results.div; data.forEach(parseLunch); callback(lunches); } }, function errorCallback(response) {}); } } return { get: get }; } ]);
/** * Created by candice on 17/4/6. */ export Select from './components/Select'
/** * color button. * @author yiminghe@gmail.com */ KISSY.add("editor/plugin/color/btn", function (S, Editor, Button, Overlay4E, DialogLoader) { var Node = S.Node; var COLORS = [ ["000", "444", "666", "999", "CCC", "EEE", "F3F3F3", "FFF"], ["F00", "F90", "FF0", "0F0", "0FF", "00F", "90F", "F0F"], [ "F4CC" + "CC", "FCE5CD", "FFF2CC", "D9EAD3", "D0E0E3", "CFE2F3", "D9D2E9", "EAD1DC", "EA9999", "F9CB9C", "FFE599", "B6D7A8", "A2C4C9", "9FC5E8", "B4A7D6", "D5A6BD", "E06666", "F6B26B", "FFD966", "93C47D", "76A5AF", "6FA8DC", "8E7CC3", "C27BAD", "CC0000", "E69138", "F1C232", "6AA84F", "45818E", "3D85C6", "674EA7", "A64D79", "990000", "B45F06", "BF9000", "38761D", "134F5C", "0B5394", "351C75", "741B47", "660000", "783F04", "7F6000", "274E13", "0C343D", "073763", "20124D", "4C1130" ] ], html; function initHTML() { html = "<div class='{prefixCls}editor-color-panel'>" + "<a class='{prefixCls}editor-color-remove' " + "href=\"javascript:void('清除');\">" + "清除" + "</a>"; for (var i = 0; i < 3; i++) { html += "<div class='{prefixCls}editor-color-palette'><table>"; var c = COLORS[i], l = c.length / 8; for (var k = 0; k < l; k++) { html += "<tr>"; for (var j = 0; j < 8; j++) { var currentColor = "#" + (c[8 * k + j]); html += "<td>"; html += "<a href='javascript:void(0);' " + "class='{prefixCls}editor-color-a' " + "style='background-color:" + currentColor + "'" + "></a>"; html += "</td>"; } html += "</tr>"; } html += "</table></div>"; } html += "" + "<div>" + "<a class='{prefixCls}editor-button {prefixCls}editor-color-others ks-inline-block'>其他颜色</a>" + "</div>" + "</div>"; } initHTML(); var ColorButton = Button.extend({ initializer: function () { var self = this; self.on("blur", function () { // make select color works setTimeout(function () { self.colorWin && self.colorWin.hide(); }, 150); }); self.on('click', function () { var checked = self.get("checked"); if (checked) { self._prepare(); } else { self.colorWin && self.colorWin.hide(); } }); }, _prepare: function () { var self = this, editor = self.get("editor"), prefixCls = editor.get('prefixCls'), colorPanel; self.colorWin = new Overlay4E({ // TODO 变成了 -1?? elAttrs: { tabindex: 0 }, elCls: prefixCls + "editor-popup", content: S.substitute(html, { prefixCls: prefixCls }), width: 172, zIndex: Editor.baseZIndex(Editor.zIndexManager.POPUP_MENU) }).render(); var colorWin = self.colorWin; colorPanel = colorWin.get("contentEl"); colorPanel.on("click", self._selectColor, self); colorWin.on("hide", function () { self.set("checked", false); }); var others = colorPanel.one("." + prefixCls + "editor-color-others"); others.on("click", function (ev) { ev.halt(); colorWin.hide(); DialogLoader.useDialog(editor, "color", undefined, self); }); self._prepare = self._show; self._show(); }, _show: function () { var self = this, el = self.get("el"), colorWin = self.colorWin; colorWin.set("align", { node: el, points: ["bl", "tl"], offset: [0, 2], overflow: { adjustX: 1, adjustY: 1 } }); colorWin.show(); }, _selectColor: function (ev) { ev.halt(); var self = this, editor = self.get("editor"), prefixCls = editor.get('prefixCls'), t = new Node(ev.target); if (t.hasClass(prefixCls + "editor-color-a")) { self.fire('selectColor', { color: t.style("background-color") }); } else if (t.hasClass(prefixCls + 'editor-color-remove')) { self.fire('selectColor', { color: null }); } }, destructor: function () { var self = this; if (self.colorWin) { self.colorWin.destroy(); } } }, { ATTRS: { checkable: { value: true }, mode: { value: Editor.Mode.WYSIWYG_MODE } } }); var tpl = '<div class="{icon}"></div>' + '<div style="background-color:{defaultColor}"' + ' class="{indicator}"></div>'; function runCmd(editor, cmdType, color) { setTimeout(function () { editor.execCommand(cmdType, color); }, 0); } ColorButton.init = function (editor, cfg) { var prefix = editor.get('prefixCls') + 'editor-toolbar-', cmdType = cfg.cmdType, defaultColor = cfg.defaultColor, tooltip = cfg.tooltip; var button = editor.addButton(cmdType, { elCls: cmdType + 'Btn', content: S.substitute(tpl, { defaultColor: defaultColor, icon: prefix + 'item ' + prefix + cmdType, indicator: prefix + 'color-indicator' }), mode: Editor.Mode.WYSIWYG_MODE, tooltip: "设置" + tooltip }); var arrow = editor.addButton(cmdType + 'Arrow', { tooltip: "选择并设置" + tooltip, elCls: cmdType + 'ArrowBtn' }, ColorButton); var indicator = button.get('el').one('.' + prefix + 'color-indicator'); arrow.on('selectColor', function (e) { indicator.css('background-color', e.color || defaultColor); runCmd(editor, cmdType, e.color); }); button.on('click', function () { runCmd(editor, cmdType, indicator.style('background-color')); }); }; return ColorButton; }, { requires: ['editor', '../button', '../overlay', '../dialog-loader'] });
iD.Background = function(context) { var dispatch = d3.dispatch('change'), baseLayer = iD.TileLayer() .projection(context.projection), gpxLayer = iD.GpxLayer(context, dispatch) .projection(context.projection), mapillaryLayer = iD.MapillaryLayer(context), overlayLayers = []; var backgroundSources; function findSource(id) { return _.find(backgroundSources, function(d) { return d.id && d.id === id; }); } function updateImagery() { var b = background.baseLayerSource(), o = overlayLayers.map(function (d) { return d.source().id; }).join(','), q = iD.util.stringQs(location.hash.substring(1)); var id = b.id; if (id === 'custom') { id = 'custom:' + b.template; } if (id) { q.background = id; } else { delete q.background; } if (o) { q.overlays = o; } else { delete q.overlays; } location.replace('#' + iD.util.qsString(q, true)); var imageryUsed = [b.imageryUsed()]; overlayLayers.forEach(function (d) { var source = d.source(); if (!source.isLocatorOverlay()) { imageryUsed.push(source.imageryUsed()); } }); if (background.showsGpxLayer()) { imageryUsed.push('Local GPX'); } context.history().imageryUsed(imageryUsed); } function background(selection) { var base = selection.selectAll('.background-layer') .data([0]); base.enter().insert('div', '.layer-data') .attr('class', 'layer-layer background-layer'); base.call(baseLayer); var overlays = selection.selectAll('.layer-overlay') .data(overlayLayers, function(d) { return d.source().name(); }); overlays.enter().insert('div', '.layer-data') .attr('class', 'layer-layer layer-overlay'); overlays.each(function(layer) { d3.select(this).call(layer); }); overlays.exit() .remove(); var gpx = selection.selectAll('.layer-gpx') .data([0]); gpx.enter().insert('div') .attr('class', 'layer-layer layer-gpx'); gpx.call(gpxLayer); var mapillary = selection.selectAll('.layer-mapillary') .data([0]); mapillary.enter().insert('div') .attr('class', 'layer-layer layer-mapillary'); mapillary.call(mapillaryLayer); } background.sources = function(extent) { return backgroundSources.filter(function(source) { return source.intersects(extent); }); }; background.dimensions = function(_) { baseLayer.dimensions(_); gpxLayer.dimensions(_); mapillaryLayer.dimensions(_); overlayLayers.forEach(function(layer) { layer.dimensions(_); }); }; background.baseLayerSource = function(d) { if (!arguments.length) return baseLayer.source(); baseLayer.source(d); dispatch.change(); updateImagery(); return background; }; background.bing = function() { background.baseLayerSource(findSource('Bing')); }; background.hasGpxLayer = function() { return !_.isEmpty(gpxLayer.geojson()); }; background.showsGpxLayer = function() { return background.hasGpxLayer() && gpxLayer.enable(); }; function toDom(x) { return (new DOMParser()).parseFromString(x, 'text/xml'); } background.gpxLayerFiles = function(fileList) { var f = fileList[0], reader = new FileReader(); reader.onload = function(e) { gpxLayer.geojson(toGeoJSON.gpx(toDom(e.target.result))); background.zoomToGpxLayer(); dispatch.change(); }; reader.readAsText(f); }; background.zoomToGpxLayer = function() { if (background.hasGpxLayer()) { var viewport = context.map().extent().polygon(), coords = _.reduce(gpxLayer.geojson().features, function(coords, feature) { var c = feature.geometry.coordinates; return _.union(coords, feature.geometry.type === 'Point' ? [c] : c); }, []); if (!iD.geo.polygonIntersectsPolygon(viewport, coords)) { context.map().extent(d3.geo.bounds(gpxLayer.geojson())); } } }; background.toggleGpxLayer = function() { gpxLayer.enable(!gpxLayer.enable()); dispatch.change(); }; background.showsMapillaryLayer = function() { return mapillaryLayer.enable(); }; background.toggleMapillaryLayer = function() { mapillaryLayer.enable(!mapillaryLayer.enable()); dispatch.change(); }; background.showsLayer = function(d) { return d === baseLayer.source() || (d.id === 'custom' && baseLayer.source().id === 'custom') || overlayLayers.some(function(l) { return l.source() === d; }); }; background.overlayLayerSources = function() { return overlayLayers.map(function (l) { return l.source(); }); }; background.toggleOverlayLayer = function(d) { var layer; for (var i = 0; i < overlayLayers.length; i++) { layer = overlayLayers[i]; if (layer.source() === d) { overlayLayers.splice(i, 1); dispatch.change(); updateImagery(); return; } } layer = iD.TileLayer() .source(d) .projection(context.projection) .dimensions(baseLayer.dimensions()); overlayLayers.push(layer); dispatch.change(); updateImagery(); }; background.nudge = function(d, zoom) { baseLayer.source().nudge(d, zoom); dispatch.change(); return background; }; background.offset = function(d) { if (!arguments.length) return baseLayer.source().offset(); baseLayer.source().offset(d); dispatch.change(); return background; }; background.load = function(imagery) { backgroundSources = imagery.map(function(source) { if (source.type === 'bing') { return iD.BackgroundSource.Bing(source, dispatch); } else { return iD.BackgroundSource(source); } }); backgroundSources.unshift(iD.BackgroundSource.None()); var q = iD.util.stringQs(location.hash.substring(1)), chosen = q.background || q.layer; if (chosen && chosen.indexOf('custom:') === 0) { background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, ''))); } else { background.baseLayerSource(findSource(chosen) || findSource('Bing') || backgroundSources[1]); } var locator = _.find(backgroundSources, function(d) { return d.overlay && d.default; }); if (locator) { background.toggleOverlayLayer(locator); } var overlays = (q.overlays || '').split(','); overlays.forEach(function(overlay) { overlay = findSource(overlay); if (overlay) background.toggleOverlayLayer(overlay); }); var gpx = q.gpx; if (gpx) { d3.text(gpx, function(err, gpxTxt) { gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt))); dispatch.change(); }); } }; return d3.rebind(background, dispatch, 'on'); };
module.exports = require('./lib/simple-pubsub')
define(function(){return function anonymous(locals){var buf=[];with(locals||{})buf.push('<div id="navbar"></div><div id="main"></div>');return buf.join("")}})
define([],function(){ var addFormulaEvent = function(app,callBack){ var dts = app.getDataTables() for (var key in dts){ var dt = dts[key] var meta = dt.getMeta() for (var k in meta){ var hasEditFormula = meta[k]['editFormula']; var hasValidateFormula = meta[k]['validateFormula']; var hasRelationItems = meta[k]['associations']; var len=0; if (hasRelationItems != undefined && hasRelationItems) { for(var i in hasRelationItems){ if(hasRelationItems.hasOwnProperty){ len++; } } } if (hasEditFormula || hasValidateFormula || len>1){ dt.on(k + '.valueChange', function(event){ // if(event.ctx && event.ctx.isExe && event.ctx.isExe == true){ app.serverEvent().addDataTable(event.dataTable).setEvent(event).fire({ ctrl:'FormularController', method:'proess', async: false, success: function(data){ if (callBack) callBack.call(this, event, data) } }) }) } } } } return { addFormulaEvent: addFormulaEvent } })
//~ name c113 alert(c113); //~ component c114.js
angular .module('momentum.actions') .directive('actionsForm', actionsForm); function actionsForm() { return { restrict: 'E', bindToController: true, controller : 'actionsCtrl as Form', transclude: 'element', scope: { actionId: "@", action: "@", template: "@" }, link: link }; function link(scope, element, attr, ctrl, transclude) { ctrl.newAction = {}; transclude(scope, function (clone) { element.after(clone); }) } }
iris.ui(function(self) { var appRes = iris.resource(iris.path.resource.app); self.settings({ showStatus: null, hideStatus: null, data: [], type: 'type' }); self.create = function() { self.tmplMode(self.APPEND); self.tmpl(iris.path.ui.privacy.html); self.setting('data').forEach(function(item) { self.ui('privacy_items', iris.path.ui.privacy_item.js, item); }); self.get().on('show.bs.modal', self.render); self.get('save-btn').on('click', save); }; self.render = function() { }; function save() { var data = []; self.ui('privacy_items').forEach(function(ui) { var id = ui.getState().id; var state = ui.getState().privacy; if (state) { data.push(id); } }); self.get().modal('hide'); if (self.setting('showStatus')) { self.setting('showStatus')('Updating share mode'); } var privacy = { }; privacy[self.setting('type')] = data; appRes.sendPrivacy(privacy).done(function() { if (self.setting('hideStatus')) { self.setting('hideStatus')(); } ; }); } }, iris.path.ui.privacy.js);
(function () { 'use strict'; angular.module('fireApp', [ 'ngResource', 'ui.router', 'googlechart', 'fireApp.controllers', 'fireApp.services' ]).config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/'); } ]); })();
var colorutil = require('../app/colorutil.js'); describe("ColorUtils are able to ...", function() { it("convert hex green to RgbInt", function() { expect(colorutil.hex2Int("#00ff00")).toBe(65280); }); it("convert arbitrary hex to RgbInt", function() { expect(colorutil.hex2Int("#7B9C4F")).toBe(8100943); }); it("converts hex black to RgbInt", function () { expect(colorutil.hex2Int("#000000")).toBe(0); }) it("converts short hex black to RgbInt", function () { expect(colorutil.hex2Int("#000")).toBe(0); }) it("converts empty hex to black RgbInt", function () { expect(colorutil.hex2Int("")).toBe(0); }) it("converts weird hex black to RgbInt", function () { expect(colorutil.hex2Int("#asdf234r")).toBe(0); }) it("converts invalid hex black to RgbInt", function () { expect(colorutil.hex2Int("#ffggff")).toBe(0); }) });
'use strict'; const paper = require('paper'); const Howl = require('howler').Howl; const debounce = require('lodash/debounce'); const throttle = require('lodash/throttle'); const isFunction = require('lodash/isFunction'); const addEventListener = require('add-dom-event-listener'); /** * Renders an interactive musical string on a canvas. * @property {number} _w Width of the canvas * @property {number} _h Height of the canvas * @property {Howl} _sound Plucking sound * @property {paper.Path} _line The plucking string */ module.exports = class PluckString { /** * @param {object} options * @param {HTMLCanvasElement} options.element - Canvas DOM element on which to initiate the plucking string * @param {number|function} options.width - Width of the container, or a callback for determining the width of the container * @param {number|function} options.height - Height of the container, or a callback for determining the height of the container */ constructor(options) { /////////////// // Constants // /////////////// /** * The factor by which the vibration decreases each animation frame * @constant {number} */ this.FRICTION = 0.94; /** * Size in pixels of the area that can be grabbed by the mouse * @constant (number) */ this.HANDLE_SIZE = 10; /** * Amplitude (0-1) under which the "short" sound sprite is played * @constant (number) */ this.SHORT_SOUND_THRESHOLD = 0.25; /** * Sound volume is proportional to amplitude, but not under this amplitude (0-1) * @constant {number} */ this.MIN_VOLUME = 0.3; //////////////////////////// // Create dynamic methods // //////////////////////////// /** * Fires when Paper's built in resize alters the canvas size. * Fixes the coordinate system and redraws the line. * @param {paper.Event} event */ this._draw = debounce(event => { this._updateBounds(); paper.view.viewSize = new paper.Size(this._w, this._h); this._line.strokeWidth = this._h / 115.0 * 5.0; this._line.segments[0].point = [ 0, this._h/2 ]; this._line.segments[1].point = [ this._w/2, this._h/2 ]; this._line.segments[2].point = [ this._w, this._h/2 ]; this._line.segments[0].handleOut.x = this._w * 0.15; this._line.segments[1].handleIn.x = this._w * -0.2; this._line.segments[1].handleOut.x = this._w * 0.2; this._line.segments[2].handleIn.x = this._w * -0.15; paper.view.draw(); }, 30); this._vibrateStringBound = this._vibrateString.bind(this); // JavaScript: The Good Parts /** * Set the string in motion and play the appropriate sound. * @param {paper.Event} event */ this._releaseString = throttle(event => { const shouldPlaySound = this._line.segments[1].point.y !== this._h / 2 && !paper.view.responds('frame'); if (shouldPlaySound) { const amplitude = (Math.abs(this._line.segments[1].point.y - (this._h / 2))) / (this._h / 2); // Give it an appropriate volume level this._sound.volume = (1 - this.MIN_VOLUME) * amplitude * amplitude + this.MIN_VOLUME; this._sound.stop(); if (amplitude < this.SHORT_SOUND_THRESHOLD) { this._sound.play('short'); } else { this._sound.play('long'); } // Set the string in motion paper.view.on('frame', this._vibrateStringBound); } }, 30); //////////////// // Store args // //////////////// // Load up the DOM element we will need const canvas = options.element; if (!canvas) { throw new Error('Could not initialize PluckString. Missing Canvas element.') } this._widthOption = options.width; if (!this._widthOption) { throw new Error('Could not initialize PluckString. Missing width option.'); } this._heightOption = options.height; if (!this._heightOption) { throw new Error('Could not initialize PluckString. Missing height option.') } //////////////// // Initialize // //////////////// // Set up Howler.js this._sound = new Howl({ src: [ require('./sounds/pluck.ogg'), require('./sounds/pluck.mp3'), require('./sounds/pluck.wav'), ], sprite: { short: [0, 672], long: [800, 2133] } }); // Set up Paper.js paper.setup(canvas); paper.project.currentStyle = { strokeColor: 'black' }; // Set up coordinates this._updateBounds(); // Initialize the line! this._line = new paper.Path({ segments: [ [ 0, this._h/2 ], [ this._w/2, this._h/2 ], [ this._w, this._h/2 ] ], strokeWidth: this._h / 115.0 * 5 }); // Set up mouse paper.tool = new paper.Tool(); // Create event listeners paper.view.onResize = this._draw.bind(this); paper.tool.onMouseMove = this._mouseMoveHandler.bind(this); paper.tool.onMouseUp = this._releaseString.bind(this); addEventListener(canvas, 'mouseout', this._releaseString.bind(this)); addEventListener(window, 'resize', this._draw.bind(this)); // Initial draw this._draw(); } /** * Refresh this._w and this._h */ _updateBounds() { this._w = isFunction(this._widthOption) ? this._widthOption() : this._widthOption; this._h = isFunction(this._heightOption) ? this._heightOption() : this._heightOption; } /** * Event listener for mouse movements. Determines whether to grab or release the line. * @param {paper.MouseEvent} event */ _mouseMoveHandler(event) { const lineIsGrabbed = event.point.y > this._line.strokeWidth && event.point.y < this._h - this._line.strokeWidth && event.point.x > this._w * 0.15 && event.point.x < this._w * 0.85 && Math.abs(event.point.y - this._line.segments[1].point.y) < this.HANDLE_SIZE; if (lineIsGrabbed) { this._endVibration(); this._line.segments[1].point.y = event.point.y; } else { this._releaseString(); } } /** * Stop all sounds and end any motion. */ _endVibration() { this._sound.stop(); paper.view.off('frame', this._vibrateStringBound); } /** * Simulate the vibration of the string. Event handler for onFrame. */ _vibrateString(event) { const amplitude = Math.abs(this._line.segments[1].point.y - (this._h/2)); if (amplitude > 1) { // Move the closer to the center this._line.segments[1].point.y = 0.5 * this._h * (this.FRICTION + 1) - (this.FRICTION * this._line.segments[1].point.y); } else { // Attach the line to the center this._line.segments[1].point.y = this._h/2; this._endVibration(); } } };
function dropdownMenu () { return { require: '^dropdown', link: function (scope, element, attrs, ctrl) { ctrl.addMenu(element) } } } export default dropdownMenu
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M21 14.58c0-.36-.19-.69-.49-.89L13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-7.51 4.69c-.3.19-.49.53-.49.89 0 .7.68 1.21 1.36 1L10 13.5V19l-1.8 1.35c-.13.09-.2.24-.2.4v.59c0 .33.32.57.64.48L11.5 21l2.86.82c.32.09.64-.15.64-.48v-.59c0-.16-.07-.31-.2-.4L13 19v-5.5l6.64 2.08c.68.21 1.36-.3 1.36-1z" }), 'FlightRounded');
var assert = require('assert'), uuid = require('node-uuid'), _ = require('underscore'); var Status = { NOT_STARTED: 0, WAIT_FOR_ROUND_START: 1, WAIT_FOR_ANSWERS: 2, WAIT_FOR_JUDGMENT: 3, GAME_OVER: 5 }; // boilerplate cardset-loading code for rn var Cardset = require('./cardset.js'), cah = new Cardset(__dirname + '/sets/cah-cc-by-nc-sa.json'); module.exports = (function () { function Game() { this.id = uuid.v4(); this.name = 'game ' + Math.floor(Math.random() * 1000000); this.players = []; this.winner = null; this._nextPlayerId = 1; this._winFn = function (player, otherPlayers) { return player.score >= 3; } this._state = Status.NOT_STARTED; this._whiteCards = cah.whiteCards; this._blackCards = cah.blackCards; this._whiteCardDeck = []; this._blackCardDeck = []; this._currentCardCzar = null; this._currentBlackCard = null; this._currentAnswers = null; this._n = 4; } Game.prototype.changeSize = function (newSize) { if (_(this._activePlayers()).size() > newSize) { // game would be too small after resizing return false; } else { // everything's cool this._n = newSize; return true; } } Game.prototype.join = function (user) { if (this._state == Status.GAME_OVER) { // game's already over return false; } else if (_(this._activePlayers()).size() >= this._n) { // game's already full return false; } else { // make sure the player's not already in here if (_(this.players).findWhere({ user: user })) { return false; } // everything's cool var player = this._makePlayer(user); this.players.push(player); // if we're currently waiting for answers, deal the player in if (this._state == Status.WAIT_FOR_ANSWERS) { this._dealToPlayer(player); } return true; } } Game.prototype._getPlayer = function (user) { return _(this.players).findWhere({ user: user }); } Game.prototype._getCardCzar = function () { return this._currentCardCzar; } Game.prototype.leave = function (user) { var player = this._getPlayer(user); if (!player) { // user actually isn't in this game? return false; } else { // if the player is the current card czar, then abandon the current round if (player == this._currentCardCzar) { this._state = Status.WAIT_FOR_ROUND_START; } // everything's cool player.hasLeft = true; return true; } } Game.prototype.answer = function (user, answer) { var player = this._getPlayer(user); if (this._state != Status.WAIT_FOR_ANSWERS) { // not the time for answering return false; } else if (!player) { // user isn't in this game return false; } else if (player.hasLeft) { // player left the game return false; } else { // card czar can't answer if (player == this._currentCardCzar) { return false; } // find the card in the user's hand var card = _(player.hand).findWhere({ id: answer.id }); if (this._currentAnswers[player.id]) { // player has already answered return false; } else if (card) { // player has card, so play it player.hand = _(player.hand).without(card); this._currentAnswers[player.id] = card; return true; } else { // player doesn't have card return false; } } } Game.prototype.lockAnswers = function (user) { var g = this; var allAnswersSubmitted = _(this._activePlayers()).every(function (player) { return (player == g._currentCardCzar) || (!!g._currentAnswers[player.id]); }); if (this._state != Status.WAIT_FOR_ANSWERS) { // not waiting for answers right now return false; } else if (!allAnswersSubmitted) { // at least one active player hasn't answered return false; } else if (user != g._currentCardCzar.user) { // only the card czar can lock in answers return false; } else { // everything's cool this._state = Status.WAIT_FOR_JUDGMENT; return true; } } Game.prototype.vote = function (user, chosenAnswer) { if (this._state != Status.WAIT_FOR_JUDGMENT) { // not waiting for vote right now return false; } else if (user != this._currentCardCzar.user) { // only the card czar can vote return false; } else { var g = this, answerFound = false; // find the actual answer, and the person who submitted it _(this._currentAnswers).each(function (answer, answererId, answers) { if (chosenAnswer.id == answer.id) { var answerer = _(g.players).findWhere({ id: Number(answererId) }); answerer.score += 1; answerFound = true; } }); if (!answerFound) { return false; } // check for win state and move to new state var gameOver = false, winner = null; var g = this; _(this.players).each(function (player) { var otherPlayers = _(g.players).without(player); if (g._winFn(player, otherPlayers)) { gameOver = true; winner = player; } }); if (gameOver) { this.winner = winner; this._state = Status.GAME_OVER; } else { this._state = Status.WAIT_FOR_ROUND_START; } // everything's cool return true; } } Game.prototype.newRound = function () { if (this._state != Status.NOT_STARTED && this._state != Status.WAIT_FOR_ROUND_START) { // can't start a new round right now return false; } if (_(this._activePlayers()).size() < 3) { // not enough players to start a round return false; } var g = this; // deal a new round _(this.players).forEach(this._dealToPlayer.bind(this)); this._currentBlackCard = this._dealBlackCard(); this._currentAnswers = {}; // select new card czar if (this._currentCardCzar) { // already had a card czar, select next-by-id active player var cardCzar = this._currentCardCzar; var players = _(this._activePlayers()).sortBy(function (player) { return player.id; }); var nextPlayer = _(players).find(function (player) { return player.id > cardCzar.id; }); if (nextPlayer) { this._currentCardCzar = nextPlayer; } else { // no players with a higher id than the current card czar; start again at the beginning this._currentCardCzar = players[0]; } } else { // no card czar yet, choose an active player randomly var players = _(this._activePlayers()).shuffle(); this._currentCardCzar = players[0]; } // change state to awaiting answers this._state = Status.WAIT_FOR_ANSWERS; return true; } Game.prototype._endGame = function () { if (this._state != Status.NOT_STARTED && this._state != Status.WAIT_FOR_ROUND_START) { return false; } this._state = Status.GAME_OVER; return true; } Game.prototype._getState = function() { return this._state; } Game.prototype._makePlayer = function (user) { return { id: this._nextPlayerId++, user: user, hasLeft: false, score: 0, hand: [] }; } Game.prototype._activePlayers = function () { return _(this.players).where({ hasLeft: false }); } Game.prototype._dealBlackCard = function () { if (_(this._blackCardDeck).size() == 0) { // shuffle the black cards onto the deck this._blackCardDeck = this._blackCardDeck.concat(_(this._blackCards).shuffle()); } return this._blackCardDeck.shift(); } Game.prototype._dealWhiteCards = function (n) { if (_(this._whiteCardDeck).size() < n) { // shuffle the white cards onto the deck this._whiteCardDeck = this._whiteCardDeck.concat(_(this._whiteCards).shuffle()); } // deal n off the top var dealt = _(this._whiteCardDeck).first(n), remainder = _(this._whiteCardDeck).rest(n); this._whiteCardDeck = remainder; return dealt; } Game.prototype._dealToPlayer = function (player) { var oldHandSize = _(player.hand).size(); var newCards = this._dealWhiteCards(10 - oldHandSize); player.hand = player.hand.concat(newCards); } return Game; })();
$(document).ready(function(){ $("#reporte_usuarios").click(function(){ if($("#fecha_desde_u").val() == "" || $("#fecha_hasta_u").val() == "") { alert('Seleccione fechas para usuarios'); } else { var fecha1 = $("#fecha_desde_u").val(); var fecha2 = $("#fecha_hasta_u").val(); $.ajax({ url: 'AdministradorController/usuariosPorFecha', data: { fecha_desde_u: fecha1, fecha_hasta_u: fecha2 }, type: "POST", dataType: 'json', success: function (res) { drawChartUsuariosPorFecha(res.respuesta); }, error: function(err) { debugger; alert('algo salió mal: ' + err.responseText); } }); } }); $("#reporte_proyectos").click(function(){ if($("#fecha_desde_p").val() == "" || $("#fecha_hasta_p").val() == "") { alert('Seleccione fechas para proyectos'); } else { var fecha1 = $("#fecha_desde_p").val(); var fecha2 = $("#fecha_hasta_p").val(); $.ajax({ url: 'AdministradorController/proyectosPorFecha', data: { fecha_desde_p: fecha1, fecha_hasta_p: fecha2 }, type: "POST", dataType: "json", success: function (res) { drawChartProyectosPorFecha(res.respuesta); }, error: function(err) { alert('algo salió mal: ' + err.responseText); } }); } }); function drawChartUsuariosPorFecha(respuesta) { var array = JSON.parse(respuesta); var data = google.visualization.arrayToDataTable(array); var options = { chart: { title: 'Registro de usuarios en la plataforma', subtitle: 'Inversores y emprendedores', } }; var chart = new google.charts.Bar(document.getElementById('barchart_users_date')); chart.draw(data, options); } function drawChartProyectosPorFecha(respuesta) { var array = JSON.parse(respuesta); var data = google.visualization.arrayToDataTable(array); var options = { chart: { title: 'Popularidad de proyectos en la plataforma', subtitle: 'Medida según cantidad de visitas', } }; var chart = new google.charts.Bar(document.getElementById('barchart_projects_date')); chart.draw(data, options); } });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var AnotherSelectorParserError = function (_Error) { _inherits(AnotherSelectorParserError, _Error); function AnotherSelectorParserError() { var _Object$getPrototypeO; _classCallCheck(this, AnotherSelectorParserError); for (var _len = arguments.length, params = Array(_len), _key = 0; _key < _len; _key++) { params[_key] = arguments[_key]; } var _this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(AnotherSelectorParserError)).call.apply(_Object$getPrototypeO, [this].concat(params))); _this.AnotherSelectorParserError = true; return _this; } return AnotherSelectorParserError; }(Error); exports.default = AnotherSelectorParserError;
'use babel' import { RtmClient, WebClient, MemoryDataStore, RTM_EVENTS, CLIENT_EVENTS, } from '@slack/client' const RTM_CLIENT_EVENTS = CLIENT_EVENTS.RTM import { TeamObject, UserObject, ChannelObject, MessageObject } from './objects' import { setStatus } from './redux/modules/status' import { updateTeam, addNewTeam } from './redux/modules/teams' import { setAllUsers } from './redux/modules/users' import { addNewChannel, removeChannel, updateChannel, addChannels } from './redux/modules/channels' import { setActiveChannel } from './redux/modules/activeChannels' import { sendMessage, reciveMessage, replaceMessage } from './redux/modules/messages' import store from './redux/store' export default class Slack { constructor(options) { this.id = options.team_id || options.id this.userId = options.user_id || options.userId this.name = options.team_name || options.name this.accessToken = options.access_token || options.accessToken this.rtm = new RtmClient(this.accessToken, { logLevel: 'debug', dataStore: new MemoryDataStore(), }) this.web = new WebClient(this.accessToken) this.bind() } bind() { const { rtm } = this rtm.on(RTM_EVENTS.CHANNEL_JOINED, (obj) => { const { channel } = obj if (channel) { const chObj = new ChannelObject({ id: channel.id, teamId: this.id, name: channel.name, type: 'group', topic: channel.topic, memberIds: channel.members, isMember: channel.is_member, unreadCount: channel.unread_count, lastRead: channel.last_read, status: 'online', }) store.dispatch(addNewChannel(chObj)) } }) rtm.on(RTM_EVENTS.CHANNEL_LEFT, (obj) => { const { channel } = obj if (channel) { const chObj = new ChannelObject({ id: channel, teamId: this.id, type: 'group', }) store.dispatch(removeChannel(chObj)) } }) rtm.on(RTM_EVENTS.MESSAGE, (msg) => { if (msg.type !== 'message' || msg.subtype) { return } const message = new MessageObject({ id: msg.ts, senderId: msg.user, channelId: msg.channel, teamId: this.id, text: msg.text, createdAt: msg.ts * 1000, state: 'recived', }) store.dispatch(reciveMessage(message)) if (this.getDisplayedChannel().id !== message.channelId) { this.incrementUnread(message) } }); rtm.on(RTM_CLIENT_EVENTS.AUTHENTICATED, (rtmStartData) => { // set up connection data this.id = rtmStartData.team.id this.name = rtmStartData.team.name this.userId = rtmStartData.self.id if (!rtmStartData.team.icon.image_default) { this.icon = rtmStartData.team.icon.image_230 } const teamObject = new TeamObject({ ...this.serialize(), }) store.dispatch(addNewTeam(teamObject)) store.dispatch(setStatus('ready')) this.fullFillUsers(rtmStartData.users) this.fullFillChannels(rtmStartData.channels) this.fullFillDirectMessages(rtmStartData.ims) this.didConnect() }) return this } connect() { this.rtm.start() } getDisplayedChannel() { const { currentTeam, activeChannels } = store.getState() return activeChannels[currentTeam.id] || {} } incrementUnread(msg) { const { channels } = store.getState() let channel = channels[this.id][msg.channelId] if (!channel) { const obj = this.rtm.dataStore.getChannelGroupOrDMById(msg.channelId) if (obj.is_group) { // clean up private group name const name = obj.name .replace(/--/gi, ', ') .replace(/^[^-]+-/, '') .replace(/-\d?/, '') channel = new ChannelObject({ id: obj.id, teamId: this.id, name, type: 'group', memberIds: obj.members, isMember: obj.is_mpim, unreadCount: obj.unread_count, lastRead: obj.last_read, status: 'online', }) } } else { channel.unreadCount += 1 } store.dispatch(updateChannel(channel)) } send(message) { store.dispatch(sendMessage(message)) this.rtm.sendMessage(message.text, message.channelId, (err, msg) => { if (!msg) { return } const newMessage = new MessageObject({ ...message.serialize(), id: msg.ts, state: 'sent', }) store.dispatch(replaceMessage(message, newMessage)) }) } history(channel, options = {}) { if (channel.type === 'group') { return this.web.channels.history(channel.id, options) } return this.web.im.history(channel.id, options) } mark(channel) { const ts = ((new Date()).getTime() * 0.001) + 0.000001 if (channel.type === 'group') { return this.web.channels.mark(channel.id, ts) } return this.web.im.mark(channel.id, ts) } join(channel, optCb) { if (channel.type === 'group') { this.web.channels.join(channel.name, optCb) } else { console.log('join channel - ', channel) } } leave(channel, optCb) { if (channel.type === 'group') { this.web.channels.leave(channel.id, optCb) } else { console.log('leaving channel - ', channel) } } didConnect() { const teamObject = new TeamObject({ ...this.serialize(), status: 'online', }) store.dispatch(updateTeam(teamObject)) } fullFillUsers(rawUsers) { const users = rawUsers.map((user) => { return new UserObject({ id: user.id, teamId: this.id, username: user.name, displayName: user.profile.real_name, avatar: user.profile.image_72, status: (user.presence === 'active' ? 'online' : 'offline'), }) }) store.dispatch(setAllUsers({ users, teamId: this.id })) } fullFillChannels(rawChannels) { const channels = rawChannels.map((channel) => { return new ChannelObject({ id: channel.id, teamId: this.id, name: channel.name, type: 'group', topic: channel.topic, memberIds: channel.members, isMember: channel.is_member, unreadCount: channel.unread_count, lastRead: channel.last_read, status: 'online', }) }) store.dispatch(addChannels({ channels, teamId: this.id })) store.dispatch(setActiveChannel(channels.filter(ch => ch.isMember)[0])) } fullFillDirectMessages(dms) { const channels = dms.map((channel) => { return new ChannelObject({ id: channel.id, teamId: this.id, name: this.rtm.dataStore.getUserById(channel.user).name, type: 'dm', memberIds: [channel.user, this.userId], isMember: true, unreadCount: channel.unread_count, lastRead: channel.last_read, }) }) store.dispatch(addChannels({ channels, teamId: this.id })) } serialize() { const { id, name, userId, icon, accessToken } = this return { id, name, userId, icon, accessToken, } } }
'use strict'; //NOTE: Do not remove the comments!!! /* [Start Import] */ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _angular = require('angular'); var _angular2 = _interopRequireDefault(_angular); var _factoriesBModalFactoryJs = require('./factories/b-modal-factory.js'); var _controllersBModalControllerJs = require('./controllers/b-modal-controller.js'); var _directivesBModalDirectiveJs = require('./directives//b-modal-directive.js'); /* [End Import] */ var angularImports = []; var app = _angular2['default'].module('bModal', angularImports); /* [Start Declarations] */ app.factory(_factoriesBModalFactoryJs.BModalFactory.$name, _factoriesBModalFactoryJs.BModalFactory.$component); app.controller(_controllersBModalControllerJs.BModalController.$name, _controllersBModalControllerJs.BModalController.$component); app.directive(_directivesBModalDirectiveJs.BModalDirective.$name, _directivesBModalDirectiveJs.BModalDirective.$component); /* [End Declarations] */ module.exports = app.name;
// import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import Server from '../components/server' import { fetchServerInfo, saveServerInfo, testServer } from '../actions/server' const mapStateToProps = (state) => { let { server } = state return server } const mapDispatchToProps = dispatch => ({ fetchServerInfo: bindActionCreators(fetchServerInfo, dispatch), saveServerInfo: bindActionCreators(saveServerInfo, dispatch), testServer: bindActionCreators(testServer, dispatch) }) export default connect( mapStateToProps, mapDispatchToProps )(Server)
define([ 'jquery', 'underscore', 'backbone', 'collections/divisions/freezerDivisions', 'text!templates/division/freezerDivisionList.html' ], function($, _, Backbone, FreezerDivisionCollection, freezerDivisionListTemplate) { var DivisionListView = Backbone.View.extend({ el: 'body', initialize: function() { }, events: { 'divisions.fetch' : 'render', }, render: function(event, isFreezer, freezerId) { if (!isFreezer) { return; } this.freezerId = freezerId; this.element = '.section.children[data-parent="' + freezerId + '"]'; var that = this; var divisions = new FreezerDivisionCollection(this.freezerId); divisions.fetch({ success: function(divisions) { var template = _.template(freezerDivisionListTemplate , {divisions: divisions.models}); var parent = $('.section.freezers [data-id="' + that.freezerId + '"]'); // Im expanded and we have fetched now (so no more fetching please) parent.addClass('expanded fetched'); $(that.element).html(template); $('.section.freezers [data-id="' + that.freezerId + '"]').find('.side-nav-expand').html('&#8212;'); // Now adjust the padding for these children $('body').trigger('sideNavUpdate'); } }); } }); return DivisionListView; });
import * as util from 'Utilities'; import {game} from 'index'; class BootstrapState extends Phaser.State { preload() { util.trace('BootstrapState::preload') game.load.image("loading","assets/sprites/loading.png") game.load.image("loadText","assets/GameLoading.png") game.load.bitmapFont("littera", "assets/fonts/litteraDefault.png", "assets/fonts/litteraDefault.xml") } create() { util.trace('BootstrapState::create') game.load.onFileComplete.add(this.fileComplete, this); game.scale.pageAlignHorizontally = true; game.scale.pageAlignVertically = true; game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.state.start('LoadingState') } fileComplete(progress, cacheKey, success, totalLoaded, totalFiles) { util.trace("BOOT| File Complete: " + progress + "% - " + totalLoaded + " out of " + totalFiles) } } export default BootstrapState;
module.exports = function(req, res) { res.render('index'); };
var TablePreviewCommandHandler = function(){ this.includeInAudit = false } TablePreviewCommandHandler.prototype.run = function(command, cParts, conn, screen, callback){ if(cParts.length < 2){ callback([1, "Invalid syntax! Try: '\\h' for help.", "message"]) return; } var limit = parseInt(cParts[2] && !isNaN(cParts[2]) ? cParts[2] : 10); conn.exec("conn", "SELECT * FROM " + cParts[1] + " LIMIT " + limit, function(err, data) { callback([err == null ? 0 : 1, err == null ? data : err, err == null ? "default" : "sql-error"]); }) } module.exports = TablePreviewCommandHandler;
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var FormValidation = __webpack_require__(1); document.addEventListener('DOMContentLoaded', function () { var registerForm = new FormValidation('.register-form'); }, false); /***/ }, /* 1 */ /***/ function(module, exports) { 'use strict'; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } var MANDATORY_CLASS = 'js-input-mandatory'; var EMAIL_CLASS = 'js-input-email'; var ERROR_CLASS = 'input-error'; var ERROR_EMPTY_CLASS = 'input-error--empty'; var ERROR_FORMAT_CLASS = 'input-error--format'; function _isValidMail(mail) { var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; return re.test(mail); } var FormValidation = (function () { _createClass(FormValidation, null, [{ key: 'isValidMail', value: function isValidMail(mail) { return _isValidMail(mail); } }]); function FormValidation(form) { _classCallCheck(this, FormValidation); this.form = document.querySelector(form); this.inputs = document.querySelectorAll(form + ' input:not([type="submit"])'); this.textareas = document.querySelectorAll(form + ' textarea'); this.bindEvents(); } _createClass(FormValidation, [{ key: 'bindEvents', value: function bindEvents() { var _this = this; this.form.addEventListener('submit', function (e) { e.preventDefault(); var error = false; console.log(_this); [].forEach.call(_this.inputs, function (input) { if (input.classList.contains(MANDATORY_CLASS) && !input.value) { error = true; input.classList.add(ERROR_CLASS, ERROR_EMPTY_CLASS); } else if (input.classList.contains(EMAIL_CLASS) && !_isValidMail(input.value)) { error = true; input.classList.add(ERROR_CLASS, ERROR_FORMAT_CLASS); } }); if (error) { e.preventDefault(); } }); } }]); return FormValidation; })(); module.exports = FormValidation; /***/ } /******/ ]);
import React from 'react'; import { shallow } from 'enzyme'; import NavBar from '../NavBar'; describe('NavBar Tests', () => { test('should render NavBar correctly', () => { const wrapper = shallow(<NavBar />); expect(wrapper).toMatchSnapshot(); }); test('should render NavBar with only the login button', () => { const logoutSpy = jest.fn(); const props = { user: { username: null }, isAuth: false, logout: logoutSpy }; const wrapper = shallow(<NavBar {...props} />); expect(wrapper).toMatchSnapshot(); }); test('should render NavBar for users who are logged in', () => { const spy = jest.fn(); const props = { user: { username: 'FusionAlliance' }, isAuth: true, logout: spy }; const wrapper = shallow(<NavBar {...props} />); expect(wrapper).toMatchSnapshot(); }); test('should render a UserMenuButton for users who are logged in', () => { const spy = jest.fn(); const props = { user: { username: 'FusionAlliance' }, isAuth: true, logout: spy }; const wrapper = shallow(<NavBar {...props} />); expect(wrapper.find('UserMenuButton')).toBeTruthy(); }); });
define([ 'jquery', 'backbone', 'collections/search_quick', 'views/layout/search_quick_item', 'views/layout/search_quick_heading', 'text!templates/layout/nav_search_quick.html', 'views/layout/player' ], function($, Backbone, SearchQuickCollection, QuickSearchItem, QuickSearchHeading, searchQuickTemplate, PlayerView){ var SearchQuickController = Backbone.View.extend({ searchContainer: '#searchQuick', tagName: 'ul', className: 'autocomplete drag-container', itemView: QuickSearchItem, itemHeadingView: QuickSearchHeading, inputField: '#searchQuick input[type="text"]', searchCollection: new SearchQuickCollection(), player: new PlayerView(), delay: 300, minLength: 2, currentQuery: '', lastAddedNamespace: null, initialize: function(options) { _.extend(this, options); this.filter = _.debounce(this.filter, this.delay); _.bindAll(this, 'hide'); }, render: function () { var self = this; console.log("controllers/SearchQuickController::render()"); $(this.searchContainer).html(_.template(searchQuickTemplate)); this.getInput() .keyup(this.keyup.bind(this)) .keydown(this.keydown.bind(this)); $(this.$el).appendTo(this.searchContainer); this.getInput().on('click', function(e) { e.stopPropagation(); }); this.getInput().focus(function() { self.show(); }); // prevents the menu from closing due to the global listener on the body closing it. $(this.$el).on('click', function(e) { e.stopPropagation(); }); }, keydown: function(e) { if (e.keyCode == 38) return this.move(-1); if (e.keyCode == 40) return this.move(+1); if (e.keyCode == 13) return this.onEnter(); if (e.keyCode == 27) return this.hide(); }, keyup: function(e) { var keyword = this.getInput().val(); if (this.isChanged(keyword)) { if (this.isValid(keyword)) { this.filter(keyword); } else { this.hide(); } } }, filter: function (keyword) { var keyword = keyword.toLowerCase(); this.searchCollection .setQuery(keyword) .fetch({ success: function () { this.loadResult(this.searchCollection, keyword); //init search draggable option. $('.autocomplete') .find('.item-wrapper') .draggable({ cursorAt: { left: 0, top: 0 }, appendTo: document.body, containment: 'window', tolerance: 'pointer', zIndex: '200', helper: this.player.getViewDragHelper(), // Custom UI object of the draggable tooltip connectToSortable: $('#queueList') }); }.bind(this) }); }, isValid: function (keyword) { return keyword.length > this.minLength; }, isChanged: function (keyword) { return this.currentQuery != keyword; }, move: function (position) { var current = this.$el.children('.active'), siblings = this.$el.children(), index = current.index() + position; if (siblings.eq(index).length) { current.removeClass('active'); siblings.eq(index).addClass('active'); } return false; }, onEnter: function () { this.$el.children('.active').click(); return false; }, loadResult: function (collections, keyword) { var collectionsList = { artists: collections.artists, albums: collections.albums, songs: collections.songs }, isNotEmpty = false; this.currentQuery = keyword; this.reset(); _.each(collectionsList, function(collection, namespace) { if (0 < collectionsList[namespace].length && isNotEmpty === false) isNotEmpty = true; _.each(collectionsList[namespace].models, function(model, key) { this.addItem(model, namespace); }, this); }, this); if (isNotEmpty) { this.show(); } else { this.hide(); } }, addItem: function (model, namespace) { if (this.lastAddedNamespace !== namespace) { this.lastAddedNamespace = namespace; this.$el.append(new this.itemHeadingView({ parent: this, namespace: namespace }).render().$el); } this.$el.append(new this.itemView({ model: model.toJSON(), parent: this, namespace: namespace }).render().$el); }, select: function (model) { var label = model.name; this.getInput().val(label); this.currentQuery = label; this.onSelect(model); }, reset: function () { this.$el.empty(); return this; }, hide: function () { var self = this; this.$el.fadeOut('fast'); $('body').off('click', this.hide); return this; }, show: function () { if (0 >= $(this.$el).find('li').size()) return; var self = this; this.$el.fadeIn('fast'); $('body').on('click', this.hide); return this; }, // callback definitions onSelect: function () {}, getInput: function() { return $(this.inputField); } }); return SearchQuickController; });