file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
public/index.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/img/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<meta name="theme-color" content="#000000" />
<title>Deployer</title>
</head>
... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
public/menu.js | JavaScript | const { app, dialog, Menu, shell } = require('electron');
const isWindows = process.platform === 'win32';
const appVersion = app.getVersion();
/**
* Sets the main menu
* @param mainWindow
*/
function setMainMenu(mainWindow) {
const template = [
{
label: isWindows ? 'File' : app.getName(),
submenu... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/components/App.js | JavaScript | import React, {Component} from 'react';
import {Redirect, Route, Switch, BrowserRouter as Router} from 'react-router-dom';
import Home from './Home';
import JobBuild from './JobBuild';
import Setting from './Setting';
import PageNotFound from './PageNotFound';
const PrivateRoute = ({component: Component, ...rest}) =>... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/components/Home.js | JavaScript | import {Link} from 'react-router-dom';
import React, {Component} from 'react';
import Header from './partials/Header';
import {getJobs} from '../services/jenkins';
class Home extends Component {
constructor(props) {
super(props);
this.state = {
jobs: [],
filteredJobs: [],
loadingJobs: true... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/components/JobBuild.js | JavaScript | import React, {Component} from 'react';
import {Redirect} from 'react-router-dom';
import Header from './partials/Header';
import {getJobParameter} from '../services/jenkins';
export default class JobBuild extends Component {
constructor(props) {
super(props);
const {match} = props;
this.state = {
... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/components/PageNotFound.js | JavaScript | import React from 'react';
import {Link} from 'react-router-dom';
export default function PageNotFound({location}) {
return (
<div className="container my-5">
<div className="card shadow-sm text-center">
<div className="card-body">
<p>Something went wrong!</p>
<p className="mb-0... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/components/Setting.js | JavaScript | import * as Yup from 'yup';
import React, {Component} from 'react';
import {Redirect} from 'react-router-dom';
import {ErrorMessage, Field, Form, Formik} from 'formik';
import logo from '../icons/logo.svg';
const SETTING_SCHEMA = Yup.object().shape({
name: Yup.string().required('Name is required field.'),
url: Yu... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/components/partials/Header.js | JavaScript | import { Link } from 'react-router-dom';
import React, { Component } from 'react';
class Header extends Component {
render() {
const { name: accountName } = JSON.parse(localStorage.getItem('setting'));
return (
<div>
<div className="py-4 bg-white">
<div className="container">
... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/global.scss | SCSS | @import "~bootstrap/dist/css/bootstrap.min.css";
@import '~@fortawesome/fontawesome-free/css/all.css';
body {
font-family: "Consolas";
background-color: #f8f9fa !important;
}
| ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/index.js | JavaScript | import React from 'react';
import ReactDOM from 'react-dom';
import './global.scss';
import App from './components/App';
ReactDOM.render(
<App />,
document.getElementById('root'),
);
| ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
src/services/jenkins.js | JavaScript | import Jenkins from 'jenkins';
const getJenkinsUrl = () => {
const setting = JSON.parse(localStorage.getItem('setting'));
const url = setting.url.replace(/https?:\/\//, '');
return `https://${setting.username}:${setting.key}@${url}`;
};
export const getJobs = async () => {
const url = getJenkinsUrl();
co... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
test/spec.js | JavaScript | const path = require('path');
const assert = require('assert');
const electron = require('electron');
const Application = require('spectron').Application;
describe('Application launch', function() {
this.timeout(10000);
beforeEach(() => {
this.app = new Application({
path: electron,
args: [path.jo... | ziishaned/deployer | 66 | Cross-platform application to deploy your applications through Jenkins. | JavaScript | ziishaned | Zeeshan Ahmad | |
__test__/dumper.test.js | JavaScript | const Dumper = require('../src/dumper');
describe('Dump class tests', () => {
generateDump = (item) => {
const dumper = new Dumper();
return dumper.generateDump(item).replace(/\u001b\[.*?m/g, '');
};
it('can dump strings', () => {
const stringsToTest = ['list of strings', '', ' '];
stringsToTes... | ziishaned/dumper.js | 2,754 | A better and pretty variable inspector for your Node.js applications | JavaScript | ziishaned | Zeeshan Ahmad | |
__test__/index.test.js | JavaScript | const {dd} = require('../index');
const {dump} = require('../index');
describe('dump helpers', () => {
it('should be variadic', () => {
const log = jest.spyOn(console, 'log').mockImplementation((any) => any);
dump(1, 'a', {b: 2});
expect(log).toHaveBeenCalled();
expect(log.mock.calls.length).toBe(2... | ziishaned/dumper.js | 2,754 | A better and pretty variable inspector for your Node.js applications | JavaScript | ziishaned | Zeeshan Ahmad | |
index.js | JavaScript | const dd = require('./src/dd');
const dump = require('./src/dump');
module.exports = {dd, dump};
| ziishaned/dumper.js | 2,754 | A better and pretty variable inspector for your Node.js applications | JavaScript | ziishaned | Zeeshan Ahmad | |
src/dd.js | JavaScript | /* eslint-disable no-console */
const callerId = require('caller-id');
const Dumper = require('./dumper');
function dd(obj) {
const dumper = new Dumper();
const caller = callerId.getData();
// Print the file path, line number and generated dump
console.log(`${caller.filePath}:${caller.lineNumber}:`);
conso... | ziishaned/dumper.js | 2,754 | A better and pretty variable inspector for your Node.js applications | JavaScript | ziishaned | Zeeshan Ahmad | |
src/dump.js | JavaScript | /* eslint-disable no-console */
const callerId = require('caller-id');
const Dumper = require('./dumper');
function dump(obj) {
const dumper = new Dumper();
const caller = callerId.getData();
// Print the file path, line number and generated dump
console.log(`${caller.filePath}:${caller.lineNumber}:`);
con... | ziishaned/dumper.js | 2,754 | A better and pretty variable inspector for your Node.js applications | JavaScript | ziishaned | Zeeshan Ahmad | |
src/dumper.js | JavaScript | const kindOf = require('kind-of');
const {decycle} = require('cycle');
const {red, cyan, blue, green, magenta, bold} = require('kleur');
/**
* Generate structured information about one or more objects that
* includes each item type and value.
*
* @author Zeeshan Ahmad <ziishaned@gmail.com>
*/
class Dumper {
/**... | ziishaned/dumper.js | 2,754 | A better and pretty variable inspector for your Node.js applications | JavaScript | ziishaned | Zeeshan Ahmad | |
emoji_clock.go | Go | package emojiclock
import (
"time"
)
var clocks = []rune("🕛🕧🕐🕜🕑🕝🕒🕞🕓🕟🕔🕠🕕🕖🕡🕗🕣🕢🕘🕤🕙🕥🕚🕦")
// TimeToEmoji pass the time string of which you want the clock emoji.
func TimeToEmoji(timeString string) (string, error) {
timestamp, err := time.Parse(time.RFC3339, timeString)
if err != nil {
re... | ziishaned/emoji-clock | 28 | Get the emoji clock face for a given time. | Go | ziishaned | Zeeshan Ahmad | |
emoji_clock_test.go | Go | package emojiclock
import (
"reflect"
"testing"
)
func TestItShouldReturnString(t *testing.T) {
currentTime := "2014-11-12T11:45:26.371Z"
emoji, _ := TimeToEmoji(currentTime)
if reflect.TypeOf(emoji).String() != "string" {
t.Errorf("Expected type was string but got %s", reflect.TypeOf(emoji).String())
}
}
fu... | ziishaned/emoji-clock | 28 | Get the emoji clock face for a given time. | Go | ziishaned | Zeeshan Ahmad | |
installer.sh | Shell | #!/usr/bin/env bash
## Clone the repo
git clone https://github.com/ziishaned/git-collab.git --depth=1 || { echo >&2 "Clone failed with $?"; exit 1; }
cd git-collab
make install || { echo >&2 "Clone failed with $?"; exit 1; }
cd ..
rm -rf git-collab
| ziishaned/git-collab | 26 | Make co-authored commits on github | Shell | ziishaned | Zeeshan Ahmad | |
src/downloader.ts | TypeScript | import mkdirp from 'mkdirp';
import {spinner} from './index';
import {existsSync, writeFileSync} from 'fs';
import fetch, {Headers, Response} from 'node-fetch';
import {parse as parsePath, ParsedPath, resolve as resolvePath} from 'path';
export const githubApiBaseUrl: string = 'https://api.github.com';
export const gi... | ziishaned/git-dld | 40 | Download files or folders from GitHub | TypeScript | ziishaned | Zeeshan Ahmad | |
src/index.ts | TypeScript | #!/usr/bin/env node
/// <reference path="./types/index.d.ts" />
/// <reference path="./types/is-github-url.d.ts" />
/// <reference path="./types/github-url-parse.d.ts" />
import ora from 'ora';
import yargs from 'yargs';
import {format} from 'util';
import isGithubUrl from 'is-github-url';
import {download, githubCon... | ziishaned/git-dld | 40 | Download files or folders from GitHub | TypeScript | ziishaned | Zeeshan Ahmad | |
src/types/github-url-parse.d.ts | TypeScript | declare module 'github-url-parse' {
type ParsedGithubUrl = {
user: string;
repo: string;
type: string;
path: string;
branch: string;
};
export default function parseGithubUrl(url: string): ParsedGithubUrl;
}
| ziishaned/git-dld | 40 | Download files or folders from GitHub | TypeScript | ziishaned | Zeeshan Ahmad | |
src/types/index.d.ts | TypeScript | type GithubBlob = {
sha?: string;
node_id?: string;
size?: number;
url?: string;
content?: string;
encoding?: string;
};
type GithubContent = {
name: string;
path: string;
sha: string;
size: number;
url: string;
html_url: string;
git_url: string;
download_url: string;
type: 'dir' | 'file';... | ziishaned/git-dld | 40 | Download files or folders from GitHub | TypeScript | ziishaned | Zeeshan Ahmad | |
src/types/is-github-url.d.ts | TypeScript | declare module 'is-github-url' {
export default function (url: string): boolean;
}
| ziishaned/git-dld | 40 | Download files or folders from GitHub | TypeScript | ziishaned | Zeeshan Ahmad | |
index.js | JavaScript | const core = require("@actions/core");
const { execSync } = require("child_process");
const { GitHub, context } = require("@actions/github");
const main = async () => {
const repoName = context.repo.repo;
const repoOwner = context.repo.owner;
const githubToken = core.getInput("github-token");
const testCommand... | ziishaned/jest-reporter-action | 49 | Comments a pull request with the jest code coverage | JavaScript | ziishaned | Zeeshan Ahmad | |
src/Exception/BaseException.php | PHP | <?php
namespace Ziishaned\PhpLicense\Exception;
use Exception;
class BaseException extends Exception
{
public function __construct($message, $code = 0, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
if ($openSSlErrorMessage = openssl_error_string()) {
... | ziishaned/php-license | 82 | PHP library for generating and parsing license | PHP | ziishaned | Zeeshan Ahmad | |
src/PhpLicense.php | PHP | <?php
namespace Ziishaned\PhpLicense;
use Ziishaned\PhpLicense\Exception\BaseException;
class PhpLicense
{
/**
* Generate license file.
*
* @param array $data
* @param string $privateKey
*
* @return string
* @throws \Ziishaned\PhpLicense\Exception\BaseException
*/
pub... | ziishaned/php-license | 82 | PHP library for generating and parsing license | PHP | ziishaned | Zeeshan Ahmad | |
tests/PhpLicenseTest.php | PHP | <?php
namespace Tests;
use PHPUnit\Framework\TestCase;
use Ziishaned\PhpLicense\PhpLicense;
use Ziishaned\PhpLicense\Exception\BaseException;
/**
* Class PhpLicenseTest
*
* @package Tests
* @author Zeeshan Ahmad <ziishaned@gmail.com>
*/
class PhpLicenseTest extends TestCase
{
/**
* @throws \Ziishaned\... | ziishaned/php-license | 82 | PHP library for generating and parsing license | PHP | ziishaned | Zeeshan Ahmad | |
src/extension.ts | TypeScript | import {ExtensionContext, commands} from 'vscode';
import {SnippetMaker} from './snippet-maker';
export const activate = (context: ExtensionContext) => {
let disposable = commands.registerCommand('snippetmaker.make_snippet', async () => {
let snippetMaker = new SnippetMaker();
await snippetMaker.createSnipp... | ziishaned/snippetmaker-vscode | 92 | Easily make code snippets in VS Code | TypeScript | ziishaned | Zeeshan Ahmad | |
src/helpers.ts | TypeScript | import * as os from 'os';
import {join} from 'path';
import {env} from 'vscode';
export const getVSCodeUserPath = (): string => {
const appName = env.appName || '';
const isDev = /dev/i.test(appName);
const isOSS = isDev && /oss/i.test(appName);
const isInsiders = /insiders/i.test(appName);
const vscodePath... | ziishaned/snippetmaker-vscode | 92 | Easily make code snippets in VS Code | TypeScript | ziishaned | Zeeshan Ahmad | |
src/snippet-maker.ts | TypeScript | import {promisify} from 'util';
import {readFile, writeFile} from 'fs';
import * as stripJsonComments from 'strip-json-comments';
import {TextEditor, window, languages, Selection} from 'vscode';
import {getVSCodeUserPath} from './helpers';
const readFileSync = promisify(readFile);
const writeFileSync = promis... | ziishaned/snippetmaker-vscode | 92 | Easily make code snippets in VS Code | TypeScript | ziishaned | Zeeshan Ahmad | |
sample/main.go | Go | package main
import (
"os"
"context"
"github.com/urfave/cli/v3"
)
func main() {
(&cli.Command{}).Run(context.Background(), os.Args)
}
| zimbatm/heretic-nix | 4 | Using __noChroot for good | Nix | zimbatm | Jonas Chevalier | numtide |
index.js | JavaScript | require('./src/zingchart-angularjs');
module.exports = 'zingchart-angularjs';
| zingchart/ZingChart-AngularJS | 78 | ZingChart AngularJS Directive | JavaScript | zingchart | ZingChart | |
karma.conf.js | JavaScript | // Karma configuration
// Generated on Thu Feb 26 2015 13:16:16 GMT-0800 (PST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... | zingchart/ZingChart-AngularJS | 78 | ZingChart AngularJS Directive | JavaScript | zingchart | ZingChart | |
src/zingchart-angularjs.js | JavaScript | /**
* File: zingchart-angularjs.js
* Version: v1.1.0
*/
(function(){
'use strict';
angular.module('zingchart-angularjs', [] )
.directive('zingchart', [function(){
var currentAutoId = 1;
return {
restrict : 'EA',
scope : {
id : '@',
zc... | zingchart/ZingChart-AngularJS | 78 | ZingChart AngularJS Directive | JavaScript | zingchart | ZingChart | |
test/defaults.js | JavaScript | describe('ZingChart Directive', function(){
this.timeout(5000);
beforeEach(module('zingchart-angularjs'));
var _$scope;
var _$compile;
beforeEach(function(done){
inject(function ($compile, $rootScope) {
_$scope = $rootScope.$new();
_$compile = $compile;
... | zingchart/ZingChart-AngularJS | 78 | ZingChart AngularJS Directive | JavaScript | zingchart | ZingChart | |
Gruntfile.js | JavaScript |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
clean: {
default: ["lib/*.js"]
},
concat: {
options: {
banner: '/*!\n <%= pkg.name %> <%= pkg.version %>\n' +
//' <%= pkg.repository.url %>\n\n' +
' C... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
examples/chart_demo.html | HTML | <!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>ZingChart Backbone Plugin - Simple Example</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
examples/chart_demo_extended.html | HTML | <!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>ZingChart Backbone Plugin - Simple Example</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
examples/chart_demo_json.html | HTML | <!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>ZingChart Backbone Plugin - Example using JSON</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
lib/backbone.zingchart.extended.js | JavaScript | /*!
backbone-zingchart 1.0.1
Copyright (c) 2023 ZingChart
Licensed under the MIT license.
*/
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(["underscore", "backbone"], function (_, Backbone) {
return (root.ZingChart = factory(_, Backbone));
});
} ... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
lib/backbone.zingchart.extended.min.js | JavaScript | !function(i,n){"function"==typeof define&&define.amd?define(["underscore","backbone"],function(e,t){return i.ZingChart=n(0,t)}):"object"==typeof exports?module.exports=n(require("underscore"),require("backbone")):i.ZingChart=n(i._,i.Backbone)}(this,function(e,t){var i={};return(i=void 0===i?{}:i).ZingChartModel=t.Model... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
lib/backbone.zingchart.js | JavaScript | /*!
backbone-zingchart 1.0.1
Copyright (c) 2023 ZingChart
Licensed under the MIT license.
*/
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(["underscore", "backbone"], function (_, Backbone) {
return (root.ZingChart = factory(_, Backbone));
});
} ... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
lib/backbone.zingchart.min.js | JavaScript | !function(i,n){"function"==typeof define&&define.amd?define(["underscore","backbone"],function(e,t){return i.ZingChart=n(0,t)}):"object"==typeof exports?module.exports=n(require("underscore"),require("backbone")):i.ZingChart=n(i._,i.Backbone)}(this,function(e,t){var i={};return(i=void 0===i?{}:i).ZingChartModel=t.Model... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
src/ZingChartModel.js | JavaScript | if (typeof ZingChart === 'undefined'){ZingChart = {}};
ZingChart.ZingChartModel = Backbone.Model.extend({
defaults:{
width: 640,
height: 480,
json: {},
data: [],
charttype: 'line',
defaults: {},
events: null
... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
src/ZingChartView.js | JavaScript | ZingChart.ZingChartView = Backbone.View.extend({
initialize: function() {
this.listenTo(this.model, "change:json", this.updateChartJSON);
this.listenTo(this.model, "change:data", this.updateChartData);
},
render: function() {
var data = this.mergeJSONData();
... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
src/ZingChartViewExtended.js | JavaScript |
ZingChart.SimpleView = ZingChart.ZingChartView;
ZingChart.ZingChartView = ZingChart.SimpleView.extend({
//Direct API Access ==============================================================
// DATA MANIPULATION ======================================================
addNode: functi... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
src/test/chart_test.html | HTML | <!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>ZingChart Backbone Plugin - Simple Example</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src... | zingchart/ZingChart-Backbone | 20 | Turn simple Models and Views into snazzy charts with our Backbone extension for ZingChart | JavaScript | zingchart | ZingChart | |
addon/components/ember-zingchart.js | JavaScript | import Ember from 'ember';
// https://www.zingchart.com/docs/api/events/
const EVENT_NAMES = [
// Animation Events
'animation_end',
'animation_start',
'animation_step',
// Data Manipulation Events
'modify',
'node_add',
'node_remove',
'plot_add',
'plot_modify',
'plot_remove',
'reload',
'setdata',
... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
app/components/ember-zingchart.js | JavaScript | import Ember from 'ember';
import EmberZingChartComponent from 'ember-zingchart/components/ember-zingchart';
export default EmberZingChartComponent; | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
blueprints/ember-zingchart/index.js | JavaScript | module.exports = {
normalizeEntityName: function() {},
afterInstall: function() {
return this.addBowerPackageToProject('zingchart');
}
};
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
config/ember-try.js | JavaScript | /*jshint node:true*/
module.exports = {
scenarios: [
{
name: 'ember-1.12.2',
bower: {
dependencies: {
'ember': '~1.12.2'
},
resolutions: {
'ember': '~1.12.2'
}
}
},
{
name: 'ember-1.13.13',
bower: {
dependencies: {
... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
config/environment.js | JavaScript | /*jshint node:true*/
'use strict';
module.exports = function(/* environment, appConfig */) {
return { };
};
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
ember-cli-build.js | JavaScript | /*jshint node:true*/
/* global require, module */
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
// Add options here
});
/*
This build file specifies the options for the dummy test app of this
addon, located ... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
index.js | JavaScript | /* jshint node: true */
'use strict';
module.exports = {
name: 'ember-zingchart',
included: function(app) {
this._super.included(app);
app.import(app.bowerDirectory + '/zingchart/client/zingchart.min.js');
app.import(app.bowerDirectory + '/zingchart/client/modules/*.js');
}
};
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
testem.js | JavaScript | /*jshint node:true*/
module.exports = {
"framework": "qunit",
"test_page": "tests/index.html?hidepassed",
"disable_watching": true,
"launch_in_ci": [
"PhantomJS"
],
"launch_in_dev": [
"PhantomJS",
"Chrome"
]
};
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/dummy/app/app.js | JavaScript | import Ember from 'ember';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';
let App;
Ember.MODEL_FACTORY_INJECTIONS = true;
App = Ember.Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePre... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/dummy/app/controllers/application.js | JavaScript | import Ember from 'ember';
let _renderOptions = {
height: 400,
width: "100%",
events: {
node_click:function(p) {
console.log(p);
}
},
data: {
"type":"line",
"title":{
"text":"Average Metric"
},
"series":[
{
"values":[69,68,54,48,70,74,98,70,72,68,49,69]
... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/dummy/app/index.html | HTML | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dummy</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
<link rel="stylesheet" href="as... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/dummy/app/resolver.js | JavaScript | import Resolver from 'ember-resolver';
export default Resolver;
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/dummy/app/router.js | JavaScript | import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
});
export default Router;
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/dummy/config/environment.js | JavaScript | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-contr... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/helpers/destroy-app.js | JavaScript | import Ember from 'ember';
export default function destroyApp(application) {
Ember.run(application, 'destroy');
}
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/helpers/module-for-acceptance.js | JavaScript | import { module } from 'qunit';
import startApp from '../helpers/start-app';
import destroyApp from '../helpers/destroy-app';
export default function(name, options = {}) {
module(name, {
beforeEach() {
this.application = startApp();
if (options.beforeEach) {
options.beforeEach.apply(this, ar... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/helpers/resolver.js | JavaScript | import Resolver from '../../resolver';
import config from '../../config/environment';
const resolver = Resolver.create();
resolver.namespace = {
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix
};
export default resolver;
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/helpers/start-app.js | JavaScript | import Ember from 'ember';
import Application from '../../app';
import config from '../../config/environment';
export default function startApp(attrs) {
let application;
let attributes = Ember.merge({}, config.APP);
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
Ember.run... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/index.html | HTML | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dummy Tests</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
{{content-for "test-head"}... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/integration/components/ember-zingchart-test.js | JavaScript | import { moduleForComponent, test } from 'ember-qunit';
//import hbs from 'htmlbars-inline-precompile';
moduleForComponent('ember-zingchart', 'Integration | Component | ember zingchart', {
integration: true
});
test('it renders', function(assert) {
assert.expect(0);
// Set any properties with this.set('myProper... | zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
tests/test-helper.js | JavaScript | import resolver from './helpers/resolver';
import {
setResolver
} from 'ember-qunit';
setResolver(resolver);
| zingchart/ZingChart-Ember | 19 | A ZingChart component for Ember CLI | JavaScript | zingchart | ZingChart | |
docs/index.html | HTML | <!DOCTYPE html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="../zingchart.min.js"></script>
<script src="../zingchart.jquery.js"></script>
<script>
$(document).ready( function() {
// ex... | zingchart/ZingChart-jQuery | 45 | Easy ZingChart manipulation and interactivity for jQuery users. | JavaScript | zingchart | ZingChart | |
docs/style.css | CSS | * {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body {
width: 60%;
margin: 0 auto;
}
.zingchart {
width: 500px;
height: 300px;
}
pre {
padding: 15px;
background-color: #E8E8E8;
font-family: 'Monaco', Courier, monospace;
}
code {
background-color: #E8E8E8;
font-family: 'Monaco... | zingchart/ZingChart-jQuery | 45 | Easy ZingChart manipulation and interactivity for jQuery users. | JavaScript | zingchart | ZingChart | |
docs/table-convert.html | HTML | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="../zingchart.min.js"></script>
<script src="../zingchart.jquery.js"></script>
<script src="../zingify/zingify.jquery.js... | zingchart/ZingChart-jQuery | 45 | Easy ZingChart manipulation and interactivity for jQuery users. | JavaScript | zingchart | ZingChart | |
zingchart.jquery.js | JavaScript | /* View the README.md for detailed documentation. */
/* Version 2.0.0 | Last Updated 19 Oct. 2016 */
(function ( $ ) {
/**********************************************************************
****************************** METHODS *******************************
***************************************************... | zingchart/ZingChart-jQuery | 45 | Easy ZingChart manipulation and interactivity for jQuery users. | JavaScript | zingchart | ZingChart | |
zingchart.jquery.min.js | JavaScript | !function(t){t.fn.zingchart=function(e){var n=this[0].id,i={id:n,height:"100%",width:"100%"};return t.extend(i,e),zingchart.render(i),this},t.fn.loadModules=function(t){return zingchart.loadModules(t),this},t.fn.addNode=function(t){return zingchart.exec(this[0].id,"addnode",t),this},t.fn.addPlot=function(t){return zing... | zingchart/ZingChart-jQuery | 45 | Easy ZingChart manipulation and interactivity for jQuery users. | JavaScript | zingchart | ZingChart | |
zingify/zingify.jquery.js | JavaScript | (function ( $ ) {
$.fn.zingify = function( options ) {
if (options === undefined) {
options = {};
}
if ( $(this).is('table') ) {
return convertToChart.call(this, 0, options);
} else {
var charts = [];
$(this).find('table').each( function(i) {
charts.push( convertToChart.call(t... | zingchart/ZingChart-jQuery | 45 | Easy ZingChart manipulation and interactivity for jQuery users. | JavaScript | zingchart | ZingChart | |
zingify/zingify.jquery.min.js | JavaScript | (function(t){t.fn.zingify=function(e){if(e===undefined){e={}}if(t(this).is("table")){return a.call(this,0,e)}else{var i=[];t(this).find("table").each(function(t){i.push(a.call(this,t,e))});return i}function a(e,i){console.log("convertToChart:");console.log(" options =",JSON.stringify(i));var a=undefined;if(i.target!==u... | zingchart/ZingChart-jQuery | 45 | Easy ZingChart manipulation and interactivity for jQuery users. | JavaScript | zingchart | ZingChart | |
test/readme.js | JavaScript | var mocha = require('mocha');
var chai = require('chai');
var expect = chai.expect;
var fs = require('fs');
describe('README', function () {
var readme;
var items;
before(function () {
readme = fs.readFileSync('./README.md', 'utf8');
});
it('should be in alphabetical order within each cate... | zingchart/awesome-charting | 2,073 | A curated list of the best charting and dataviz resources that developers may find useful, including the best JavaScript charting libraries | zingchart | ZingChart | ||
assets/editor.css | CSS | html,body{
margin: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
height: 100%;
width : 100%;
}
.zc-editor {
width:100%;
}
.zc-top{
white-space:nowrap;
width:100%;
height:30px;
border-bottom: 1px solid #c1c1c1;
}
.zc-top:after { content:''; display:block; clear:bo... | zingchart/gitbook-plugin-code-editor | 13 | Plugin for Gitbook that displays and runs code from external file. Code is displayed in an Ace editor. | JavaScript | zingchart | ZingChart | |
assets/editor.js | JavaScript | //2. Figure out css and js
require(["gitbook"], function(gitbook) {
gitbook.events.bind("page.change", initEditors);
});
function initEditors(){
var blocks = document.getElementsByClassName('zc-editor');
for (var i=0;i<blocks.length;i++){
initEditor(blocks[i].dataset.id, blocks[i].dataset.singleTab);
}
}... | zingchart/gitbook-plugin-code-editor | 13 | Plugin for Gitbook that displays and runs code from external file. Code is displayed in an Ace editor. | JavaScript | zingchart | ZingChart | |
assets/editorLoad.js | JavaScript | function loadTemplate(options) {
var str = `
<div class="zc-editor" data-id="${options.id}" data-single-tab="${options.singleTab}">`;
if (!options.singleTab) {
str += `
<div class="zc-top blue">
<div class="zc-actions">
<div class="zc-btn" data-text="JSFiddle" onclick="exportToCode... | zingchart/gitbook-plugin-code-editor | 13 | Plugin for Gitbook that displays and runs code from external file. Code is displayed in an Ace editor. | JavaScript | zingchart | ZingChart | |
index.js | JavaScript | var fs = require('fs');
var Q = require('q');
var htmlencode = require('htmlencode');
var path = require('path');
var editorLoad = require('./assets/editorLoad');
var _counter = 1;
var _currentPage;
module.exports = {
website: {
assets: "./assets",
js: [
"http://cdn.rawgit.com/google/c... | zingchart/gitbook-plugin-code-editor | 13 | Plugin for Gitbook that displays and runs code from external file. Code is displayed in an Ace editor. | JavaScript | zingchart | ZingChart | |
.configs/.mocharc.js | JavaScript | 'use strict';
// Here's a JavaScript-based config file.
// If you need conditional logic, you might want to use this type of config.
// Otherwise, JSON or YAML is recommended.
module.exports = {
diff: true,
extension: ['spec'],
opts: false,
exit: true, // end bash script when done
slow: 75,
timeout: 5000,... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
public/index.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created u... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
rollup.config.js | JavaScript | import babel from "rollup-plugin-babel";
import commonjs from "@rollup/plugin-commonjs";
import external from "rollup-plugin-peer-deps-external";
import postcss from "rollup-plugin-postcss";
import resolve from "@rollup/plugin-node-resolve";
import url from "@rollup/plugin-url";
import svgr from "@svgr/rollup";
import... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/App.css | CSS | .App {
text-align: center;
}
.App-header {
background-color: #c3c3c5;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 120%;
color: white;
}
.App-buttonbar {
display: flex;
flex-direction: row;
padding-bottom: 2em;
}
[class*="App-button-"] {
back... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/App.js | JavaScript | import React from "react";
import { NavLink, Route, Routes } from "react-router-dom";
import Simple from "./components/Simple.js";
import ModuleChart from "./components/ModuleChart.js";
import ModuleDrag from "./components/ModuleDrag.js";
import Dynamic from "./components/Dynamic.js";
import Events from "./components/... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/components/Dynamic.js | JavaScript | import React, { useState, useEffect } from "react";
import "zingchart/es6";
import ZingChart from "../lib/Zingchart";
/*
* A dynamically updating line plot. Demonstrates modifying the
* configuration of an existing ZingChart.
*/
function Dynamic() {
const nValues = 10;
const period = 1000; // milliseconds
/... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/components/Events.js | JavaScript | import React, { useState } from "react";
import "zingchart/es6";
import ZingChart from "../lib/Zingchart";
/*
* A line chart with events logged to a text box.
*/
function Events() {
const listOfEventListeners = ["complete", "node_mouseover"];
const events = listOfEventListeners.map((value, index) => (
<li k... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/components/License.js | JavaScript | import React, { useState } from "react";
import zingchart from "zingchart/es6";
import ZingChart from "../lib/Zingchart";
/*
* Demonstrate setting the license key and performance
* flags on the ZingChart object, as well as multiple
* plots in one chart.
*/
// Set performance flags on the ZingChart object
zingchar... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/components/Methods.js | JavaScript | import React, { useState, useRef } from "react";
import "zingchart/es6";
import ZingChart from "../lib/Zingchart";
/*
* A bar chart with a button that adds additional data. Demonstrates
* using a reference to a ZingChart element.
*/
function Methods() {
const nValues = 10;
// Return an array of `count` random... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/components/ModuleChart.js | JavaScript | import React, { useState } from "react";
import "zingchart/es6";
import ZingChart from "../lib/Zingchart";
import "zingchart/modules-es6/zingchart-maps.min.js";
import "zingchart/modules-es6/zingchart-maps-usa.min.js";
/*
* Vector map of the 48 US states. Demonstrates explicitly importing
* ZingChart modules.
*/
f... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/components/ModuleDrag.js | JavaScript | import React, { useState, useRef } from "react";
import "zingchart/es6";
import ZingChart from "../lib/Zingchart";
import "zingchart/modules-es6/zingchart-dragging.min.js";
/*
* Demonstrate interacting with a chart to change its data
* using the dragging module. Note that the module is imported
* and then passed as... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/components/Simple.js | JavaScript | import React from "react";
import "zingchart/es6";
import ZingChart from "../lib/Zingchart";
/*
* Simplest demo, just a bar chart of static data
*/
function Simple() {
const config = {
type: "bar",
series: [
{
values: [4, 5, 3, 4, 5, 3, 5, 4, 11],
},
],
};
return <ZingChart da... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/index.css | CSS | body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Mona... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/index.js | JavaScript | import React from "react";
import ReactDOM from "react-dom/client";
import reportWebVitals from "./reportWebVitals";
import { BrowserRouter } from "react-router-dom";
import "./index.css";
import App from "./App";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/lib/Zingchart.js | JavaScript | import React, { Component } from "react";
import zingchart from "zingchart";
import constants from "zingchart-constants";
const {
DEFAULT_WIDTH,
DEFAULT_HEIGHT,
DEFAULT_OUTPUT,
EVENT_NAMES,
METHOD_NAMES,
} = constants;
// One time setup globally to handle all zingchart-react objects in the app space.
if (!w... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
src/reportWebVitals.js | JavaScript | const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
})... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart | |
test/build.spec.js | JavaScript | const utils = require("./utils.js");
const chai = require("chai");
chai.use(require("chai-fs"));
// server/controllers/api/card.js
describe("Build", function () {
describe("dist/zingchart-react.js", function () {
// verify the ZingChart object exists
it(`zingchart-react.esm.js file should exist`, async funct... | zingchart/zingchart-react | 93 | Quickly create dynamic JavaScript charts with ZingChart & React. | JavaScript | zingchart | ZingChart |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.