code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Article = mongoose.model('Article'),
_ = require('lodash');
/**
* Create a article
*/
exports.create = function(req, res) {
var article = new Article(req.body);
article.user =... | wupicheng/test | app/controllers/articles.server.controller.js | JavaScript | mit | 2,398 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "m13 11.07 2-1.2V4h-2zM9 4v5.87l2 1.2V4z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M17 10.43V2H7v8.43c0 .35.18.68.49.86l4.18 2.51-.99 2.34... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/MilitaryTechTwoTone.js | JavaScript | mit | 513 |
'use strict';
var Buffer = require('buffer').Buffer;
var extend = require('xtend');
var send = require('./index')
var CONTENT_TYPE_HEADER = {
'content-type': 'text/html'
};
module.exports = sendHtml
function sendHtml(req, res, opts, callback) {
if (typeof opts === 'string' || Buffer.isBuffer(opts)) {
... | Matt-Esch/send-data | html.js | JavaScript | mit | 495 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M21 2h-6.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H3v20h18V2zm-9 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"
}), 'ContentPasteShar... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/ContentPasteSharp.js | JavaScript | mit | 324 |
$(function() {
/**
* @description ボタンをローディングかつクリック不可にする
* @param {mixed} selector
* @return void
*/
var loadingButton = function(selector) {
$(selector).text('通信中');
$(selector).attr('disabled', 'disabled');
};
/**
* @description ボタンのローディング表示を解除する
* @param {mixed} selector
* @retur... | owl/owl | public/js/stock.change.js | JavaScript | mit | 1,855 |
/************************************************************************
*************************************************************************
@Name : QapTcha - jQuery Plugin
@Revison : 4.2
@Date : 06/09/2012 - dd/mm/YYYY
@Author: ALPIXEL Agency - (www.myjqueryplugins.com - www.alpixel.fr)
@Lic... | justincolangelo/EdgeInstallerTest | DirigoEdge/Scripts/jquery/plugins/qaptcha/QapTcha.jquery.js | JavaScript | mit | 3,170 |
'use strict'
const Schema = use('Schema')
class CommentsTableSchema extends Schema {
up () {
this.create('comments', (table) => {
table.increments()
table.integer('user_id').unsigned().references('id').inTable('users')
table.integer('recipe_id').unsigned().references('id').inTable('recipes')
... | lffeitosaleite/lemenu-api | database/migrations/1496633562869_create_comments_table.js | JavaScript | mit | 490 |
define([
// The dojo/dom module is required by this module, so it goes
// in this list of dependencies.
'dojo/dom',
'dojo/fx'
], function(dom, fx){
// Once all modules in the dependency list have loaded, this
// function is called to define the demo/myModule module.
//
// The dojo/dom mo... | BrianKolowitz/infsci2560_web | web/samples/dojo/demo/myModule.js | JavaScript | mit | 1,305 |
var http = require('http');
var Q = require('q');
var _ = require('lodash');
var sqlServerBase = require('volos-connectors-common').sqlServerBase;
var MySqlConnector = function(options) {
// rowCallback, rowCallbackContext
this.applicationName = "volos-mysql";
var connector = this;
this.restMap = opti... | apigee-127/volos-connectors | volos-mysql/mysqlConnector.js | JavaScript | mit | 3,706 |
/*
This is an example implementation of the Leaflet.js map to fulfill the
requirements for this assignment. This is provided as an aid to help you get
unstuck. This example does not implement the full set of requirements, so
you cannot just copy/paste this example into your `main.js` file to
success... | maricrisp78/wats1020-add-a-map | js/example-leaflet.js | JavaScript | mit | 2,125 |
var request = require(__dirname + '/../helpers/request');
var logger = require(__dirname + '/../helpers/log');
var globals = require(__dirname + '/../helpers/globals');
var GOOGLE_DM = {};
GOOGLE_DM.options = {
host: 'maps.googleapis.com',
port: 443,
method: 'GET',
path: ''
};
var TIMEOUT_COUNTER = gl... | raze1392/TaxistopDesktop | modules/helpers/googleDistance.js | JavaScript | mit | 6,536 |
function Plane(){
this.airborne = true;
}
Plane.prototype.changeStatus = function(){
if (this.airborne === true) {
this.airborne = false;
} else if (this.airborne === false) {
this.airborne = true;
}
};
| 2blastoff/JavaScript-Airport-challenge | src/Plane.js | JavaScript | mit | 220 |
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "production",
entry: "./index",
stats: {
all: false,
assets: true,
ids: true,
entrypoints: true,
chunkGroupChildren: true,
chunkRelations: true,
chunks: true
}
};
| SimenB/webpack | test/statsCases/prefetch/webpack.config.js | JavaScript | mit | 255 |
import {PluginView} from '../plugin.view';
import {isString, isEqual} from '@grid/core/utility';
import * as validationService from '@grid/core/validation/validation.service';
export class ValidatorView extends PluginView {
constructor(model, context) {
super(model);
this.oldErrors = [];
this.context = context... | klumba12/qgrid | plugin/validation/validator.view.js | JavaScript | mit | 1,119 |
var UI = {
MainMenu: {
init: function () {
var launcher = document.querySelector(".sh"),
up = document.querySelector(".up"),
settings = document.querySelector(".sort"),
create = document.querySelector(".create");
if (!! launcher) {
launcher.addEventListener("click", function (event) {
app.... | SpaceHexagon/datahexagon | web/app/js/ui.js | JavaScript | mit | 3,533 |
/*Router.route('/', function () {
this.render('home');
SEO.set({ title: 'Home -' + Meteor.App.NAME });
});*/
| sahkalit/boilerplate | routes/mainRoutes.js | JavaScript | mit | 115 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M14 4.5c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm3.22 13.4 1.93.63-.46 1.43-3.32-1.08-.47 1.42 3.32 1.08c1.31.43 2.72-.29 3.15-1.61.43-1.31-.29-2.72-1.61... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/SleddingSharp.js | JavaScript | mit | 695 |
define([
"./_BusyButtonMixin",
"dijit/form/DropDownButton",
"dojo/_base/declare"
], function(_BusyButtonMixin, DropDownButton, declare){
return declare("dojox.form.BusyDropDownButton", [DropDownButton, _BusyButtonMixin], {});
});
| beeant0512/spring | spring-sitemesh-dojo-bootstrap/src/main/webapp/assets/dojo/dojox/form/BusyDropDownButton.js | JavaScript | mit | 233 |
import {
ComputeClass,
DependencyTracker,
dependencyMatch,
} from 'cerebral/internal'
function compatConfig(config, prev = '') {
return [].concat(
...Object.keys(config).map(key => {
const conf = config[key]
if (typeof conf === 'string') {
return [{ path: prev + key, signal: conf }]
... | fopsdev/cerebral | packages/node_modules/@cerebral/router/src/utils.js | JavaScript | mit | 3,416 |
/**
* Module dependencies.
*/
var jade = require('../')
, assert = require('assert')
, fs = require('fs');
var perfTest = fs.readFileSync(__dirname + '/fixtures/perf.jade', 'utf8')
describe('jade', function(){
describe('.properties', function(){
it('should have exports', function(){
assert.equal(... | fangyuanziti/hum | test/jade.test.js | JavaScript | mit | 33,545 |
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
* The date defaul... | vsoft-lab/vsoft.vn | vErp/scripts/helpers/ultils.js | JavaScript | mit | 11,759 |
import {expect} from 'chai';
import {parseAndGetBindExpression} from '../../../utils';
describe('BindExpression', () => {
it('should return correct type', () => {
expect(parseAndGetBindExpression('foo::bar').type).to.equal('BindExpression');
});
it('works without spaces', () => {
const ex... | cst/cst | test/lib/elements/types/BindExpression.js | JavaScript | mit | 4,612 |
version https://git-lfs.github.com/spec/v1
oid sha256:830291fc34efe0f32bb6d2bbf19fe6b0f1113d6fe9674bed490e564f5a02111f
size 1570
| yogeshsaroya/new-cdnjs | ajax/libs/mathjax/2.5.1/jax/output/SVG/fonts/Neo-Euler/Alphabets/Regular/Main.js | JavaScript | mit | 129 |
var async = require('async'),
_ = require('underscore'),
patchit = require('./lib/patchit'),
middleware = require('./lib/middleware'),
sources = require('./lib/sources'),
errors = require('./lib/errors'),
git = require('./lib/git'),
fs = require('fs'),
clientLib = _.template(fs.readFileSync(__dirname ... | DynoSRC/dynosrc | index.js | JavaScript | mit | 5,196 |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc.5-master-2ddeb91
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.chips
*/
/*
* @see js folder for chips implementation
*/
angular.module('material.component... | rebeccaForster/ThinkTank | Iteration5_Prototype/v1.2/node_modules/angular-material/modules/js/chips/chips.js | JavaScript | mit | 48,477 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M14.47 13.5L11 20v-5.5H9l.53-1H7V22h10v-8.5h-2.53z" /><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v9.5h2.53L13 7v5.5h2l-.53 1H17V4z" /></g></R... | Kagami/material-ui | packages/material-ui-icons/src/BatteryCharging50Sharp.js | JavaScript | mit | 364 |
/**
* Copyright <%= year %> Telerik AD
*
* 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 agr... | acoudeyras/WakendoCore | lib/telerik.kendoui.core/src/js/cultures/kendo.culture.az.js | JavaScript | mit | 2,912 |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import App from './App';
AppRegistry.registerComponent('rnrf_relay_example', () => App);
| r0b1n/rnrf-relay-example | index.ios.js | JavaScript | mit | 269 |
// eslint-disable-next-line
import { setContext, beforeUpdate } from 'svelte';
export const setReactiveContext = (name, getValue) => {
const contextCallbacks = [];
const contextSubscribe = (callback) => {
contextCallbacks.push(callback);
};
const contextUnsubscribe = (callback) => {
if (contextCallback... | framework7io/Framework7 | src/svelte/shared/set-reactive-context.js | JavaScript | mit | 729 |
// TODO: This example breaks illustrator, because the line is too long...
var artboardBounds = jQuery('.artboard')[0].getBoundingClientRect();
var margin = {top: 20, right: 20, bottom: 30, left: 40},
width = artboardBounds.width - margin.left - margin.right,
height = artboardBounds.height - margin.top - margin.bo... | alex-r-bigelow/hanpuku | examples/scripts/lineChart.js | JavaScript | mit | 1,858 |
'use strict';
module.exports = function (t, a) { a(Array.isArray(t), true); };
| medikoo/dbjs-ext | test/string/string-line/_countries-list.js | JavaScript | mit | 80 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z" /><path fill="none" d="M0 0h24v24H0z" /><... | Kagami/material-ui | packages/material-ui-icons/src/Scanner.js | JavaScript | mit | 351 |
/**
* @author José Lorente <jose.lorente.martin@gmail.com>
* @license The MIT License (MIT)
* @copyright José Lorente
* @version 1.0
*/
!function(t,a,e){var l=function(l){var n={label:{tag:"p",id:null,"class":"char-counter",invalidClass:"error"},text:"{n}"},l=t.extend(n,l);return this.each(function(... | jlorente/jquery-remaining-characters | remaining_characters.min.js | JavaScript | mit | 898 |
/**
* 初始化每个节点的动画配置
* @param {[type]} allDomEvents [description]
* @param {[type]} Loader) { function initAnimation(node) { var self [description]
* @return {[type]} [description]
*/
define([
'./util'
], function(util) {
/**
* 解析bx-animation配置,挨个执行命令
* 规则:
* - 分号... | chongzhi/brix-animation | src/brix/animation/parse.js | JavaScript | mit | 4,098 |
import React, { PropTypes, PureComponent } from 'react';
import { get } from 'lodash';
import { appLocales } from '../../../i18n';
import { DEFAULT_LOCALE } from '../../../modules/locales/locales.constants';
export default class LanguageSelector extends PureComponent {
static propTypes = {
language: PropTypes.... | wojciech-panek/apptension-react-boilerplate | app/routes/home/languageSelector/languageSelector.component.js | JavaScript | mit | 1,318 |
var spawn = require("child_process").spawn;
try {
var platform_cli = require('atomic-cli-mac');
}
catch (e) {
}
try {
var platform_cli = require('atomic-cli-windows');
}
catch (e) {
}
var atomiceditor = function (flags, opts) {
opts = opts || {};
opts.detached = true;
opts.stdio = ["ignore", "ignore", "ign... | rsredsq/AtomicGameEngine | CLI/atomic-cli/lib/atomiceditor.js | JavaScript | mit | 444 |
const MessageStream = require('./messagestream');
test.expect(21);
const server = {notes: {}};
exports.get_pool(server);
const pool_name = '25:localhost:300:no_user';
test.equals(1, Object.keys(server.notes.pool).length);
test.equals(pool_name, Object.keys(server.notes.pool)[0]);
test.equals(0, server.notes.pool[pool... | haraka/Haraka | tests/smtp_client/basic.js | JavaScript | mit | 3,230 |
describe("b-hello-world", function() {
var hello = document.createElement('b-hello-world');
document.body.appendChild(hello);
it("have 'Hello World!' content", function() {
expect(hello.innerHTML).to.contain("Hello world!");
});
}); | bosonic-labs/b-hello-world | test/b-hello-world.js | JavaScript | mit | 257 |
/**
* Copyright 2015 Telerik AD
*
* 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 ... | walgheraibi/StemCells | ui/js/bower_components/kendo-ui-core/src/js/cultures/kendo.culture.ca-ES.js | JavaScript | mit | 2,932 |
import '../findParameter'
function processPathParameter(app, parameters, name, pattern, optional) {
let parameter = findParameter(parameters, name)
if (parameter === null) {
const binding = app.routes.bindings[name]
if (!binding.isNil && !binding.context.isNil && !binding.context.swagger.isNil) {
parameter ... | shnhrrsn/grind-framework | packages/swagger/src/Inference/route.js | JavaScript | mit | 886 |
// # CacheControl Middleware
// Usage: cacheControl(profile), where profile is one of 'public' or 'private'
// After: checkIsPrivate
// Before: routes
// App: Admin|Site|API
//
// Allows each app to declare its own default caching rules
var _ = require('lodash'),
config = require('../config'),
cacheControl;
... | BlueHatbRit/Ghost | core/server/middleware/cache-control.js | JavaScript | mit | 1,050 |
/**
* Oileus - A JavaScript frametype
* Project repository: https://github.com/codingdash/Oileus, requires jQuery
* v1.5 or later
* @version 1.0.0
* @license http://oileus.codingdash.com#copyright-and-license Licensed under
* the MIT licences
* @author Ritesh Shrivastav<ritesh@codingdash.com>
* @copyright 201... | codingdash/Oileus | src/oileus-1.0.0.js | JavaScript | mit | 57,597 |
import { HTML } from 'meteor/htmljs';
import { createTemplateForComponent } from '../reactAdapters';
createTemplateForComponent('DiscussionMessageList', () => import('./Discussions/ContextualBar/List'), {
renderContainerView: () => HTML.DIV({ class: 'contextual-bar' }), // eslint-disable-line new-cap
});
createTemp... | Sing-Li/Rocket.Chat | client/channel/adapters.js | JavaScript | mit | 686 |
/**
* Insight search plugin
* @author PPOffice { @link https://github.com/ppoffice }
*/
(function ($, CONFIG) {
var $main = $('.ins-search');
var $input = $main.find('.ins-search-input');
var $wrapper = $main.find('.ins-section-wrapper');
var $container = $main.find('.ins-section-container');
$ma... | iTimeTraveler/hexo-theme-hiker | source/js/insight.js | JavaScript | mit | 9,036 |
angular.module('snapApp')
.controller('TrouveMoiCtrl', function ($scope, $ionicLoading) {
var vm = this;
vm.test = "test";
console.log(vm.test);
$scope.mapCreated = function(map) {
$scope.map = map;
$scope.centerOnMe();
};
$scope.centerOnMe = function () {
console.log("C... | rchsantos/Snap-Park-V1 | platforms/ios/www/src/maps/TrouveMoiCtrl.js | JavaScript | mit | 972 |
/* Window */
global.window = global;
/* Location */
global.location = {
protocol: "chrome-extension:"
} | waltzio/waltz | test/helpers/browser.js | JavaScript | mit | 105 |
"use strict";
const isStandardSyntaxRule = require("../../utils/isStandardSyntaxRule");
const report = require("../../utils/report");
const ruleMessages = require("../../utils/ruleMessages");
const styleSearch = require("style-search");
const validateOptions = require("../../utils/validateOptions");
const whitespaceCh... | mirotik666/-web-project-portfol | node_modules/stylelint/lib/rules/selector-list-comma-newline-after/index.js | JavaScript | mit | 2,479 |
function PluginManager(core, base_url, creation_listener, ready_listener)
{
var self = this;
this.base_url = base_url;
this.core = core;
this.keybyid = {};
this.release_mode = false;
this.lid = 1;
this.context_menu = null;
this.total = 0;
this.loaded = 0;
this.failed = 0;
this.register_plugin = function(... | engijs/engi | browser/scripts/plugin-manager.js | JavaScript | mit | 2,238 |
/* ------------------------------- Primitives ------------------------------- */
export const DEFAULT_VIEW_MARGIN = 0;
export const DEFAULT_VIEW_PADDING = 5;
export const DEFAULT_CONTAINER_PADDING_X = 10;
export const DEFAULT_CONTAINER_PADDING_Y = 10;
export const MAX_CLICK_DELAY = 300;
export const MOUSE_TOOL_MO... | hms-dbmi/higlass | app/scripts/configs/index.js | JavaScript | mit | 2,164 |
!function($){
"use strict";
var Typed = function(el, options){
// for variable scope's sake
self = this;
// chosen element to manipulate text
self.el = $(el);
// options
self.options = $.extend({}, $.fn.typed.defaults, options);
// text content of element
self.text = self.el.text();
// typing ... | zzeleznick/zzeleznick.github.io | cat/assets/js/add/attention.js | JavaScript | mit | 5,989 |
// Copyright (c) 2018 Steven Enten. All rights reserved. Licensed under the MIT license.
module.exports = {
autoRestart: false,
hmr: {
enable: true,
configs: undefined, // restrict HMR to configs which has its name in that option
entries: ['main', 'index'], // restrict HMR to entries which has its name... | enten/udk | examples/webpack-v4/udk.config.js | JavaScript | mit | 4,002 |
$(document).ready(function() {
var typingTimerMembers;
var doneTypingInterval = 500;
// Send requests to server to obtain organization names and show in available members column
$('#authorize_user')
.find('#available_update_owners_users')
.bind('keyup input', function(e) {
var input = $(this).val... | Fiware/security.Idm | public/javascripts/organizations/handle_manage_members.js | JavaScript | mit | 10,630 |
/* eslint-disable */
;(function(root, factory) {
if (typeof define === 'function' && define.amd) { // AMD
define(['./core'], factory);
} else if (typeof exports === 'object') { // Node.js
module.exports = factory(require('./core'));
} else { // Browser
root.Blockly.Blocks = factory(root.Blockly);
}
... | cdnjs/cdnjs | ajax/libs/blockly/3.20200123.1/blocks.js | JavaScript | mit | 76,030 |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var utils = require('primereact/utils');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLega... | cdnjs/cdnjs | ajax/libs/primereact/6.5.0-rc.2/avatar/avatar.cjs.js | JavaScript | mit | 8,655 |
module.exports = {
env: {
NODE_ENV: '"production"'
},
defineConstants: {
},
mini: {},
h5: {
/**
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
* 参考代码如下:
* webpackChain (chain) {
* chain.plugin('analyzer')
* .use(require('webpack-bundle-analyzer').BundleAnalyzer... | wxyyxc1992/Webpack-Boilerplate | taro/taro-ts-minimal/config/prod.js | JavaScript | cc0-1.0 | 423 |
/*
*
*/
Ext.define("core.store.UserStore", {
extend: 'Ext.data.Store',
model: 'core.model.UserModel',
pageSize: 10, //每页显示5条记录
//autoSync:true,//与服务器同步
proxy: {
type: "ajax",
url: "user/list_user.do",
reader: {
type: "json",
root: "rows",
totalProperty: 'totalCo... | argqzh/qzh | src/main/webapp/core/coreApp/user/store/UserStore.js | JavaScript | gpl-2.0 | 429 |
/**
* Kunena Component
* @package Kunena.Template.Blue_Eagle
*
* @copyright (C) 2008 - 2016 Kunena Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.org
**/
/*
* Fix some Mootools bugs
*
* provides: [Element.Forms]
*/
Element.implement({
tidy: fun... | githubupttik/upttik | components/com_kunena/template/blue_eagle/js/editor.js | JavaScript | gpl-2.0 | 24,759 |
dojo._xdResourceLoaded(function(dojo, dijit, dojox){
return {depends: [["provide", "dijit.form.nls.sk.ComboBox"]],
defineResource: function(dojo, dijit, dojox){dojo.provide("dijit.form.nls.sk.ComboBox");dojo._xdLoadFlattenedBundle("dijit.form", "ComboBox", "sk", {"previousMessage":"Predchádzajúce voľby","nextMessage":"... | fedora-infra/packagedb | pkgdb/static/js/dijit/form/nls/sk/ComboBox.xd.js | JavaScript | gpl-2.0 | 349 |
'use strict';
define(['angular'], function(angular) {
var dropdown = angular.module('dropdown', []);
dropdown.directive('dropdown', function() {
return {
restrict: 'E',
replace: true,
transclude: true,
scope: {
title: '@',
m... | Franciscowxp/Weather | weather/static/lib/other/dropdown.js | JavaScript | gpl-2.0 | 2,496 |
/*global VuFind, finna, Donut */
finna.organisationInfoPageConsortium = (function organisationInfoPageConsortium() {
var holder = false;
var parent = false;
function initSectorUsageInfo(id, callback) {
// Resolve building sector
var url = 'https://api.finna.fi/v1/search?';
var params = {
'filte... | NatLibFi/NDL-VuFind2 | themes/finna2/js/finna-organisation-info-page-consortium.js | JavaScript | gpl-2.0 | 7,595 |
'use strict';
/**
* @ngdoc directive
* @name adminApp.directive:stringPlugin
* @description
* # stringPlugin
*/
angular.module('adminApp')
.directive('tags', function () {
return {
templateUrl: 'views/directives/tags.html',
replace: true,
restrict: 'E',
scope: {
content: '='
... | pmdevers/CMS | src/Panther.CMS.Admin/app/scripts/directives/tags.js | JavaScript | gpl-2.0 | 344 |
jQuery( document ).ready(
function( $ ) {
var display = localStorage.getItem( 'display-type' );
if ( 'list' === display ) {
$( '.grid-item' ).addClass( 'col-lg-12' );
$( '.card-img-top' ).addClass( 'hidden' );
}
if ( 'grid' === display ) {
$( '.post-metadata' ).addClass( 'hidden' ... | pjhampton/BigBooty | static/js/app.js | JavaScript | gpl-2.0 | 1,239 |
module.exports = function( grunt ) {
'use strict';
var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n';
// Project configuration
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
addtex... | yuiti/excel-report-maker | Gruntfile.js | JavaScript | gpl-2.0 | 1,183 |
(function($)
{
"use strict";
$(document).ready(function()
{
//global variables that are used on several ocassions
$.avia_utilities = $.avia_utilities || {};
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && 'ontouchstart' in document.do... | erikdukker/medisom | wp-content/themes/enfold/js/shortcodes.js | JavaScript | gpl-2.0 | 140,063 |
// package metadata file for Meteor.js
/* jshint strict:false */
/* global Package:true */
Package.describe({
name: 'twbs:bootstrap', // http://atmospherejs.com/twbs/bootstrap
summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',
version: '3.3.5',
git: ... | BigBoss424/eqpublishing | v1/production/bootstrap-3.3.5/package.js | JavaScript | gpl-2.0 | 815 |
$(window).load(function(){FusionCharts.ready(function () {
var salaryDistribution = new FusionCharts({
type: 'boxandwhisker2d',
renderAt: 'chart-container',
width: '500',
height: '350',
dataFormat: 'json',
dataSource:
{
"chart": {
"... | sguha-work/fiddletest | fiddles/Chart/Data-plots/Configuring-data-plots-in-Box-And-Whisker-chart_399/demo.js | JavaScript | gpl-2.0 | 2,716 |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCanvas3D module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding val... | qtproject/qtcanvas3d | tests/manual/commandthroughput/qml/commandthroughput/commandthroughput.js | JavaScript | gpl-2.0 | 16,444 |
/*global define*/
define([
'config/browse_by_domain/Config'
],function (C) {
'use strict';
var i18n = C.i18n || {};
return {
"relatedViews" : [
{
title: i18n.tab_ghg_main,
id: 'GE'
},
{
title: i18n.projection... | FAOSTAT/faostat-ui | config/browse_by_domain/prod/views/GE-PROJ.js | JavaScript | gpl-2.0 | 11,409 |
/*
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.charting.plot3d.Bars"]){ //_hasResource checks added by build. Do not use _hasResource directl... | fedora-infra/packagedb | pkgdb/static/js/dojox/charting/plot3d/Bars.js | JavaScript | gpl-2.0 | 2,272 |
import assert from 'assert';
import React from 'react'; // jshint ignore:line
import ListEmpty from 'misago/components/threads/list-empty'; // jshint ignore:line
import * as testUtils from 'misago/utils/test-utils';
describe("Threads List Empty Message", function() {
afterEach(function() {
testUtils.unmountCompo... | 1905410/Misago | frontend/tests/components/threads/list-empty.js | JavaScript | gpl-2.0 | 1,621 |
var login_txt=false;
function dologin()
{
var permanent=false;
if ((document.getElementById('login_email').value == '') || (document.getElementById('login_email').value == l[195]))
{
alert(l[197]);
}
else if (checkMail(document.getElementById('login_email').value))
{
alert(l[198]);
}
else if ((document.... | MaGrosseGitHub/AEC2 | Tests/Mega/js/login.js | JavaScript | gpl-3.0 | 2,688 |
var versions = {
JS_BEZIER : { f:"jsBezier", v:"0.7" },
BILTONG : { f:"biltong", v:"0.2" },
MOTTLE : {f:"mottle", v:"0.6" },
KATAVORIO : {f:"katavorio", v:"0.7" }
},
get = function(name) { return "lib/" + versions[name].f + "-" + versions[name].v + ".js"; },
renderers = [ "... | Timathom/timathom.github.io | discovery/resources/js/jsPlumb-1.7.6/Gruntfile.js | JavaScript | gpl-3.0 | 13,236 |
function marker_clusterer(marker_small, marker_medium, marker_big, marker_disabled, marker_selected, opts ) {
var that = this;
// obtain paths
var current_path = $('script[src$="/marker_clusterer.js"]').attr('src').replace("marker_clusterer.js", "");
that.marker_big = new Object({
anchor:[11,11], ... | montenoso/cartografia | js/vendor/tiny_map_utilities/marker_clusterer/marker_clusterer.js | JavaScript | gpl-3.0 | 25,552 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colordialog', 'hi', {
clear: 'Clear', // MISSING
highlight: 'Highlight', // MISSING
options: 'Color Options', // MISSING
selected: 'Selected Co... | tsmaryka/hitc | public/javascripts/ckeditor/plugins/colordialog/lang/hi.js | JavaScript | gpl-3.0 | 377 |
import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import {withRouter} from 'react-router';
import BotButtonComponent from '../components/BotButtonComponent';
import * as Actions from '../actions';
import * as Utils from '../utils';
class PageHeaderComponent extends Comp... | codemeow5/Carnival | Server/app/assets/javascripts/components/PageHeaderComponent.js | JavaScript | gpl-3.0 | 5,549 |
function on_page(page)
{
add_tags_to_form_var()
var frm = document.getElementById(asp_form_id);
frm.actn.value = "page";
frm.new_page.value = page
frm.submit();
}
function on_sort(col)
{
add_tags_to_form_var()
var frm = document.getElementById(asp_form_id);
frm.actn.value = "sort";
frm.sort.value = col;
... | mksmbrtsh/BugTrackerNet | www/bug_list.js | JavaScript | gpl-3.0 | 7,370 |
import React from 'react';
import {Row, Col, BackTop} from 'antd';
import MobileHeader from './mobile_header';
import MobileFooter from './mobile_footer';
import CommonComments from './common_comments';
export default class MobileNewsDetails extends React.Component {
constructor() {
super();
this.state = {
news... | ZSMingNB/react-news | src/js/components/mobile_news_details.js | JavaScript | gpl-3.0 | 1,254 |
// Timing variables
var MILLIS_PER_SEC = 1000;
var updateTimer = null;
//Turn autoupdate on or off based on config setting.
function setAutoUpdate() {
if (controller.autorefresh == true && updateTimer === null) { //timer is not running
updateTimer = window.setInterval(updateCall,Math.abs(MILLIS_PER_SEC * control... | JoePelz/SAM | sam/static/js/liveUpdate.js | JavaScript | gpl-3.0 | 2,122 |
var Dodecahedron = new function()
{
this.meshbuilder = null;
this.create = function(meshObject)
{
this.meshBuilder = new MeshBuilder();
this.meshBuilder.addVertex(new Vector3(-1,-1,-1)); // 0
this.meshBuilder.addVertex(new Vector3(-1,-1, 1)); // 1
this.meshBuilder.addVertex(... | adrianogil/adrianogil.github.io | webgl/gen/wireframe/dodecahedron.js | JavaScript | gpl-3.0 | 2,922 |
/*
jPlay: A usefull, practical and sexy Jamendo player
Copyright (C) 2012 - bkfox.net >
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later ... | lordblackfox/jplay | config.js | JavaScript | gpl-3.0 | 1,873 |
/*
* This file is part of Moeditor.
*
* Copyright (c) 2016 Menci <huanghaorui301@gmail.com>
*
* Moeditor is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | Moeditor/Moeditor | views/main/moe-math.js | JavaScript | gpl-3.0 | 3,096 |
import React from 'react'
import { reduxForm } from 'redux-form'
import { edit } from '../actions'
import {
FormRedux,
SubmitButton,
FormGroup,
FormControl,
ControlLabel,
UploadImageField,
SuccessMessage
} from '../../Dashboard/Forms'
import { FloatLayout } from '../../Dashboard/Grids'
const MailchimpP... | igr-santos/hub-client | app/scripts/Community/pages/MailchimpPage.js | JavaScript | gpl-3.0 | 1,435 |
(function () {
//
// hiless - LESS Syntax Highlighter
//
// Copyright (c) 2010 Alexis Sellier
//
// All elements which match this will be syntax highlighted.
var selector = 'code';
if (!Object.keys || ![].forEach) { return }
// Syntax definition
// The key becomes the class name of the <span>
// around the matched b... | rafaelgou/the-phpjs-local-docs-collection | less/js/hiless.js | JavaScript | gpl-3.0 | 2,926 |
var searchData=
[
['genereretiquettes',['genererEtiquettes',['../class_stock.html#acc0aa27555b76282135378d40d101dbb',1,'Stock']]],
['getform',['getForm',['../class_produits.html#af201a3de2a76a0a96ff5481fcb523546',1,'Produits']]],
['getfournisseur',['getFournisseur',['../class_fournisseurs.html#a3bfecdcb4cde7b56ee... | kbiyo/pfr | application/controllers/html/search/functions_67.js | JavaScript | gpl-3.0 | 787 |
$(function() {
"use strict";
/* ==========================================================================
Sub Form
========================================================================== */
$('#mc-form').ajaxChimp({
callback: callbackFunction,
url: 'http://csmtheme... | hirootkit/inely | frontend/web/js/main.js | JavaScript | gpl-3.0 | 8,235 |
var Promise = require('bluebird'); // jshint ignore:line
var electron = require('electron');
var app = electron.app;
var request = require('request-json');
var r = require('request');
var progress = require('request-progress');
var path = require('path');
var exec = require('child_process').exec;
var client = request.c... | Bravify/Bravify | API/Autoupdate.js | JavaScript | gpl-3.0 | 4,385 |
import { shallow } from 'enzyme';
import Helmet from 'react-helmet';
import * as React from 'react';
import ServerHtml from 'core/components/ServerHtml';
import FakeApp, {
fakeAssets,
fakeSRIData,
} from 'tests/unit/core/server/fakeApp';
import { getFakeConfig } from 'tests/unit/helpers';
import { RTL } from 'core... | kumar303/addons-frontend | tests/unit/core/components/TestServerHtml.js | JavaScript | mpl-2.0 | 11,500 |
define(function(require) {
var SotaDispatcher = require('sota-dispatcher'),
_ = require('underscore'),
db = require('../stores/db'),
checkExists = require('../mixins/check-exists'),
sendRequest = require('../mixins/send-request');
var Handler = (function() {
this.dispatchCallback = fu... | PDXostc/rvi_sota_server | web-server/app/assets/javascripts/handlers/firmware.js | JavaScript | mpl-2.0 | 737 |
import config from '../config/config.cfg';
const sharedFunctions = {
anyCase: (value) => {
return new RegExp('^' + value + '$', 'ig');
},
windowResolution: (fix, type = 'desktop') => {
let width, height;
if (type === 'mobile') {
width = config.resolution.mobileResolution.width;
height = ... | MitocGroup/www | tests/e2e/helpers/shared-func.js | JavaScript | mpl-2.0 | 630 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
define(function (require, exports, module) {
'use strict';
var Account = require('models/account');
var Aut... | swatilk/fxa-content-server | app/tests/spec/views/mixins/avatar-mixin.js | JavaScript | mpl-2.0 | 9,761 |
/*
Highcharts JS v8.1.0 (2020-05-05)
Plugin for displaying a message when there is no data visible in chart.
(c) 2010-2019 Highsoft AS
Author: Oystein Moseng
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&... | burki/jewish-history-online | web/vendor/highcharts/modules/no-data-to-display.js | JavaScript | agpl-3.0 | 1,733 |
/*
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 The Collaborative Software Foundation
#
# This file is part of TriSano.
#
# TriSano is free software: you can redistribute it and/or modify it under the
# terms of the GNU Affero General Public License as published by the
# Free Software Foundation, either ver... | JayBoyer/new-trisano | webapp/public/javascripts/trisano/trisano_layout.js | JavaScript | agpl-3.0 | 3,098 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Observable_1 = require("../../Observable");
var timestamp_1 = require("../../operator/timestamp");
Observable_1.Observable.prototype.timestamp = timestamp_1.timestamp;
| n0rad/housecream | public/vendor/npm/rxjs/src/add/operator/timestamp.js | JavaScript | agpl-3.0 | 249 |
OC.L10N.register(
"news",
{
"Feed contains invalid XML" : "Потокът съдържа невалидно XML съдържание",
"Detected feed format is not supported" : "Форматът на намереният поток не е поддържан",
"SSL Certificate is invalid" : "Невалиден SSL Сертификат",
"Website not found" : "Страницата не е открита... | itstar4tech/news | l10n/bg_BG.js | JavaScript | agpl-3.0 | 11,566 |
import React, { Component } from 'react'
if (process.env.BROWSER) {
require('./Header.css')
}
export default class Header extends Component {
constructor(props) {
super(props)
}
render() {
return (
<div className="uh" />
)
}
}
Header.propTypes = { }
| hanyulo/twreporter-react | src/components/Header.js | JavaScript | agpl-3.0 | 281 |
/*******************************************************************************
jquery.mb.components
Copyright (c) 2001-2010. Matteo Bicocchi (Pupunzi); Open lab srl, Firenze - Italy
email: mbicocchi@open-lab.com
site: http://pupunzi.com
Licences: MIT, GPL
http://www.opensource.org/licenses/mit-license.php
htt... | theprestig3/cloudrealms-1 | interface/scripts/mbContainer.js | JavaScript | agpl-3.0 | 34,040 |
'use strict';
angular.module('myprojApp')
.controller('AdminCtrl', function ($scope, $http, Auth, User) {
// Use the User $resource to fetch all users
$scope.users = User.query();
$scope.delete = function(user) {
User.remove({ id: user._id });
angular.forEach($scope.users, function(u, i) {
... | oksanar/share-yourself | client/app/admin/admin.controller.js | JavaScript | agpl-3.0 | 416 |
angular.module('talon.beneficiary', [
'ui.router',
'datatables',
'datatables.bootstrap',
'talon.dataAccess',
'talon.common',
'dialogs.main',
'ngFileUpload'
].concat(ALL_IMPORTS))
.config(function config($stateProvider) {
$stateProvider
.state('beneficiaries', {
url: '/beneficiary',
... | reyrodrigues/TalonSMS | TalonAdmin/Angular/src/app/beneficiary/beneficiary.js | JavaScript | agpl-3.0 | 10,398 |
module.exports = {
"default": {
options: {
compress: false,
paths: "less/"
},
files: {
"css/junto.css": "less/junto.less"
}
},
dist: {
options: {
compress: true,
paths: "less/"
},
files: {
"css/junto.css": "less/junto.less"
}
}
};
| metamaps/junto | grunt/less.js | JavaScript | agpl-3.0 | 270 |
// Global registration of all Vue components in folder components/form/base
import ECheckbox from '@/components/form/base/ECheckbox.vue'
import EColorPicker from '@/components/form/base/EColorPicker.vue'
import EDatePicker from '@/components/form/base/EDatePicker.vue'
import ERichtext from '@/components/form/base/ERic... | ecamp/ecamp3 | frontend/src/plugins/formBaseComponents.js | JavaScript | agpl-3.0 | 1,125 |