Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #55 from Caleydo/release-1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh authored Feb 18, 2021
2 parents 7a44a88 + 49766a4 commit 988c2a1
Show file tree
Hide file tree
Showing 168 changed files with 112,339 additions and 10,818 deletions.
28 changes: 11 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,33 @@ jobs:
build:
working_directory: ~/phovea
docker:
- image: circleci/node:12-browsers
- image: circleci/node:12.13-buster-browsers
steps:
- checkout
- run:
name: Show Node.js and npm version
command: |
node -v
npm -v
- run:
name: NPM Force Resolutions
command: npx npm-force-resolutions
- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
- run:
name: Install npm dependencies
command: npm ci
# - run:
# name: Remove npm dependencies installed from git repositories (avoid caching of old commits)
# command: |
# (grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf
command: npm install
- run:
name: Remove npm dependencies installed from git repositories (avoid caching of old commits)
command: |
(grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf
- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- ./node_modules
# - run:
# name: Install npm dependencies from git repositories (always get latest commit)
# command: npm install
- run:
name: List node_modules directory
command: ls -la ./node_modules
name: Install npm dependencies from git repositories (always get latest commit)
command: npm install
- run:
name: Show installed npm dependencies
command: npm list --depth=2 || true
command: npm list --depth=1 || true
- run:
name: Build
command: npm run dist
Expand Down
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,10 @@ AUTHORS text
# with the python modules ``pickle``, ``dbm.*``,
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
# (among others).


# Mark compiled files as generated to hide them in PRs
/dist/** linguist-generated=true

# Hide compiled files from git diff and auto-replace them when merging different branches
/dist/** -diff -merge
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @thinkh
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/.tscache
/.idea
/build/
/dist/
/lib/
/dist/tsBuildInfoFile
node_modules/
/src/**/*.js
/tests/**/*.js
*.map
/src/**/*.map
/tests/**/*.map
*.css
*.log
/.cache-loader
/.awcache
/.cache-loader
package-lock.json
46 changes: 0 additions & 46 deletions .gitlab-ci.yml

This file was deleted.

28 changes: 24 additions & 4 deletions .yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
"generator-phovea": {
"type": "app",
"name": "vega_clue",
"app": "Vega CLUE",
"app": "vega_clue",
"author": "The Caleydo Team",
"githubAccount": "caleydo",
"clientOnly": false,
"entries": {
"app": "./src/index.ts"
"app": {
"js": "dist/initialize.js",
"template": "dist/index.template.ejs",
"html": "index.html",
"chunkName": "app"
}
},
"libraries": [
"d3"
Expand All @@ -17,8 +22,17 @@
"phovea_ui",
"phovea_clue"
],
"vendors": {
"others": "phovea.*|tdp_.*|tdp-.*|datavisyn.*",
"phovea": "phovea.*",
"tdp": "tdp_.|tdp-.*",
"dv": "datavisyn.*"
},
"filesToLoad": {
"file-loader": "404|robots"
},
"libraryAliases": {
"d3": "d3/d3"
"d3": "d3/d3.js"
},
"libraryExternals": [
"d3",
Expand All @@ -28,6 +42,12 @@
],
"ignores": [],
"extensions": [],
"today": "Tue, 13 Mar 2018 10:20:09 GMT"
"today": "Tue, 13 Mar 2018 10:20:09 GMT",
"promptValues": {
"authorName": "The Caleydo Team",
"authorEmail": "contact@caleydo.org",
"authorUrl": "https://caleydo.org",
"githubAccount": "caleydo"
}
}
}
46 changes: 46 additions & 0 deletions AppWrapper.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { ACLUEWrapper, CLUEGraphManager, IVisStateApp } from 'phovea_clue';
import { AppHeader } from 'phovea_ui';
import { ProvenanceGraph } from 'phovea_core';
import App from './internal/App';
export interface IView<T> {
init(): Promise<T>;
remove(): any;
}
export interface IAppWrapperOptions {
/**
* name of this application
*/
name: string;
/**
* prefix used for provenance graphs and used to identify matching provenance graphs
*/
prefix: string;
/**
* Show/hide the EU cookie disclaimer bar from `cookie-bar.eu`
*/
showCookieDisclaimer: boolean;
}
/**
* The main class for the App app
*/
export declare class AppWrapper<T extends IView<T> & IVisStateApp> extends ACLUEWrapper {
protected readonly options: IAppWrapperOptions;
protected app: Promise<App>;
protected header: AppHeader;
constructor(options?: Partial<IAppWrapperOptions>);
init(): Promise<void>;
protected buildImpl(body: HTMLElement): {
graph: Promise<ProvenanceGraph>;
manager: CLUEGraphManager;
storyVis: () => Promise<import("phovea_clue").VerticalStoryVis>;
provVis: () => Promise<import("phovea_clue").LayoutedProvVis>;
};
/**
* build the actual main application given the arguments
* @param {ProvenanceGraph} graph the resolved current provenance graph
* @param {CLUEGraphManager} manager its manager
* @param {HTMLElement} main root dom element
* @returns {PromiseLike<T> | T}
*/
protected createApp(graph: ProvenanceGraph, manager: CLUEGraphManager, main: HTMLElement): PromiseLike<App> | App;
}
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Vega CLUE [![Phovea][phovea-image]][phovea-url] [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Build Status][circleci-image]][circleci-url]
Vega CLUE
=====================
[![Phovea][phovea-image]][phovea-url] [![NPM version][npm-image]][npm-url] [![Build Status][circleci-image]][circleci-url]


[Vega examples](https://vega.github.io/vega/examples/) with [CLUE](https://github.com/phovea/phovea_clue)

Expand Down Expand Up @@ -44,9 +46,5 @@ This repository is part of **[Phovea](http://phovea.caleydo.org/)**, a platform
[phovea-url]: https://phovea.caleydo.org
[npm-image]: https://badge.fury.io/js/vega_clue.svg
[npm-url]: https://npmjs.org/package/vega_clue
[travis-image]: https://travis-ci.org/Caleydo/vega_clue.svg?branch=master
[travis-url]: https://travis-ci.org/Caleydo/vega_clue
[daviddm-image]: https://david-dm.org/Caleydo/vega_clue/status.svg
[daviddm-url]: https://david-dm.org/Caleydo/vega_clue
[circleci-image]: https://circleci.com/gh/Caleydo/vega_clue/tree/master.svg?style=svg
[circleci-url]: https://circleci.com/gh/Caleydo/vega_clue/tree/master
[circleci-image]: https://circleci.com/gh/Caleydo/vega_clue.svg?style=shield
[circleci-url]: https://circleci.com/gh/Caleydo/vega_clue
46 changes: 46 additions & 0 deletions dist/AppWrapper.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 988c2a1

Please sign in to comment.