Navigation Menu

Skip to content

Commit

Permalink
Add licenses (#39)
Browse files Browse the repository at this point in the history
* Added basic license header injector

* Updated header and added license check to precommit

* Added licenses to source files

* Updated the license file
  • Loading branch information
stopyoukid committed Sep 6, 2018
1 parent d8bd712 commit 5b10fce
Show file tree
Hide file tree
Showing 180 changed files with 747 additions and 7 deletions.
8 changes: 5 additions & 3 deletions LICENSE
@@ -1,6 +1,8 @@
MIT License
charticulator
Copyright (c) Microsoft Corporation.
All rights reserved.

Copyright (c) Microsoft Corporation. All rights reserved.
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +20,4 @@
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
SOFTWARE.
2 changes: 2 additions & 0 deletions header.txt
@@ -0,0 +1,2 @@
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
19 changes: 16 additions & 3 deletions package.json
Expand Up @@ -21,13 +21,16 @@
"lint": "tslint 'src/**/*.{ts,tsx}'",
"prettify": "prettier 'src/**/*.{ts,tsx}'",
"unit_test": "NODE_PATH=. mocha dist/scripts/tests",
"test": "run-s lint dev unit_test"
"test": "run-s lint dev unit_test",
"add_licenses": "license-check-and-add"
},
"lint-staged": {
"*.{ts,tsx}": [
"tslint --fix",
"prettier --write"
]
"prettier --write",
"license-check-and-add"
],
"*.{js,jsx}": "license-check-and-add"
},
"dependencies": {
"d3-dsv": "^1.0.8",
Expand All @@ -40,6 +43,15 @@
"react": "16.3.2",
"react-dom": "16.3.2"
},
"license-check-and-add-config": {
"folder": ".",
"license": "header.txt",
"exact_paths_method": "INCLUDE",
"exact_paths": ["src"],
"file_type_method": "INCLUDE",
"file_types": [".js", ".tsx", ".ts"],
"insert_license": true
},
"devDependencies": {
"@types/chai": "4.0.1",
"@types/d3": "4.9.0",
Expand All @@ -56,6 +68,7 @@
"http-server": "0.11.1",
"husky": "^0.14.3",
"js-yaml": "3.11.0",
"license-check-and-add": "^2.3.6",
"lint-staged": "^7.1.0",
"mocha": "5.0.5",
"multirun": "2.0.0",
Expand Down
4 changes: 4 additions & 0 deletions src/app/actions/actions.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import {
Dataset,
Point,
Expand Down
4 changes: 4 additions & 0 deletions src/app/actions/drag_data.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { Dataset } from "../../core";
import { Value } from "../../core/expression/classes";

Expand Down
4 changes: 4 additions & 0 deletions src/app/actions/index.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as Actions from "./actions";
import * as DragData from "./drag_data";

Expand Down
4 changes: 4 additions & 0 deletions src/app/application.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import * as ReactDOM from "react-dom";

Expand Down
4 changes: 4 additions & 0 deletions src/app/backend/abstract.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
export interface ItemMetadata {
[name: string]: string | number | boolean;
name?: string;
Expand Down
4 changes: 4 additions & 0 deletions src/app/backend/indexedDB.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import {
AbstractBackend,
ItemData,
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/buttons.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";

import { classNames } from "../utils";
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/color_picker.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import {
Color,
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/draggable.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";

import * as globals from "../globals";
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/dropdown.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";

import { SVGImageIcon } from "./icons";
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/editable_text_view.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import { ButtonFlat } from "./buttons";
import * as R from "../resources";
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/error_boundary.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import { ButtonRaised } from "./index";

Expand Down
4 changes: 4 additions & 0 deletions src/app/components/hcl_color_picker.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import {
Color,
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/icons.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";

import { classNames } from "../utils";
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/index.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
export * from "./icons";
export * from "./buttons";
export * from "./draggable";
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/minimizable_panel.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import { getSVGIcon } from "../resources";
import { SVGImageIcon } from "./icons";
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/scroll_view.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import * as Hammer from "hammerjs";

Expand Down
4 changes: 4 additions & 0 deletions src/app/components/selecting.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import * as Hammer from "hammerjs";

Expand Down
4 changes: 4 additions & 0 deletions src/app/components/split_panes.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";

export interface SplitPaneViewProps {}
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/zoomable.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import * as Hammer from "hammerjs";

Expand Down
4 changes: 4 additions & 0 deletions src/app/config.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { CharticulatorCoreConfig, getConfig as coreGetConfig } from "../core";

export interface CharticulatorAppConfig extends CharticulatorCoreConfig {
Expand Down
4 changes: 4 additions & 0 deletions src/app/context_component.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import { MainStore } from "./stores/main_store";
import { Action } from "./actions/actions";
Expand Down
4 changes: 4 additions & 0 deletions src/app/controllers/drag_controller.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import * as Hammer from "hammerjs";

Expand Down
4 changes: 4 additions & 0 deletions src/app/controllers/index.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
export * from "./drag_controller";
export * from "./popup_controller";
export * from "./resize_observer";
4 changes: 4 additions & 0 deletions src/app/controllers/popup_controller.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import { EventEmitter, EventSubscription } from "../../core";
import { classNames } from "../utils";
Expand Down
4 changes: 4 additions & 0 deletions src/app/controllers/resize_observer.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
class ElementInfo {
public element: Element;
public previousWidth: number;
Expand Down
4 changes: 4 additions & 0 deletions src/app/extension/abstract.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { Dispatcher } from "../../core";
import { Action } from "../actions/actions";
import { MainStore } from "../stores/main_store";
Expand Down
4 changes: 4 additions & 0 deletions src/app/extension/index.ts
@@ -1 +1,5 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
export { ExtensionContext, Extension } from "./abstract";
4 changes: 4 additions & 0 deletions src/app/globals.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { Actions } from "./actions";
import {
DragController,
Expand Down
4 changes: 4 additions & 0 deletions src/app/index.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
// The entry JavaScript file for the web app.

import * as React from "react";
Expand Down
4 changes: 4 additions & 0 deletions src/app/main_view.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import * as ReactDOM from "react-dom";

Expand Down
4 changes: 4 additions & 0 deletions src/app/renderer/index.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";

import { Graphics, Color, shallowClone } from "../../core";
Expand Down
4 changes: 4 additions & 0 deletions src/app/resources/icons.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
const iconRegistry = new Map<string, string>();

export function addSVGIcon(path: string | string[], svgDataURL: string) {
Expand Down
4 changes: 4 additions & 0 deletions src/app/resources/index.ts
@@ -1,2 +1,6 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
export * from "./icons";
export * from "./palettes";
4 changes: 4 additions & 0 deletions src/app/resources/palettes.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { Color, colorFromHTMLColor, getColorConverter } from "../../core";

/** A color scheme is a source of colors for categorical/ordinal/numerical scales */
Expand Down
4 changes: 4 additions & 0 deletions src/app/stores/chart.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { deepClone, EventEmitter, Expression, setField } from "../../core";

import {
Expand Down
4 changes: 4 additions & 0 deletions src/app/stores/dataset.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { EventEmitter } from "../../core";

import { Dataset, Expression } from "../../core";
Expand Down
4 changes: 4 additions & 0 deletions src/app/stores/index.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
export { BaseStore } from "../../core/store/base";

export { MainStore } from "./main_store";
Expand Down
4 changes: 4 additions & 0 deletions src/app/stores/main_store.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { deepClone, EventEmitter, Specification } from "../../core";
import { Dispatcher } from "../../core";

Expand Down
4 changes: 4 additions & 0 deletions src/app/stores/mark.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { EventEmitter } from "../../core";

import {
Expand Down
4 changes: 4 additions & 0 deletions src/app/template/index.ts
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { Dataset, deepClone, Prototypes, Specification } from "../../core";

export interface ExportTemplateTargetProperty {
Expand Down
4 changes: 4 additions & 0 deletions src/app/test.tsx
@@ -1,3 +1,7 @@
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import * as React from "react";
import * as ReactDOM from "react-dom";

Expand Down

0 comments on commit 5b10fce

Please sign in to comment.