Commit f5e5b1bd authored by Laurent Wouters's avatar Laurent Wouters
Browse files

Factorizing common API

parent bf8fc6026190
......@@ -22,7 +22,7 @@
* Externalise some regitration to JS because the typescript version is faulty
*/
declare module "register" {
declare module "fallback" {
/**
* Registers some navigation events
* @param onBeforeNavigate Event after tab navigation occurred
......
......@@ -29,9 +29,9 @@ import {
DataSource,
tryNegotiateData,
MimeInfo
} from "../common/api";
/// <reference path="./register.d.ts"/>
let F = require("./register");
} from "../common/data";
/// <reference path="./fallback.d.ts"/>
let F = require("./fallback");
import "chrome";
/**
......
......@@ -18,7 +18,7 @@
* with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
/// <reference path="../../common/rdflib-interface.d.ts"/>
/// <reference path="./rdflib-interface.d.ts"/>
import { RdfStore } from "rdflib";
/**
......
......@@ -18,7 +18,7 @@
* with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import { RawContent, TabData, fetchSource } from "./api";
import { RawContent, TabData, fetchSource } from "./data";
/// <reference path="./rdflib-interface.d.ts"/>
import { RDF, RdfStore, Term } from "rdflib";
......
......@@ -18,10 +18,10 @@
* with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
/// <reference path="../../common/rdflib-interface.d.ts"/>
/// <reference path="./rdflib-interface.d.ts"/>
import { RdfStore } from "rdflib";
import { ReactNode } from "react";
import { Application } from "./interface";
import { Application } from "./application";
/**
* The metadata of a view
......
......@@ -23,7 +23,7 @@ import {
ViewDescriptor,
ViewRenderer,
REGISTRY
} from "../framework/registry";
} from "../../common/registry";
/// <reference path="../../common/rdflib-interface.d.ts"/>
import { RdfStore } from "rdflib";
import * as React from "react";
......
......@@ -23,7 +23,7 @@ import {
ViewDescriptor,
ViewRenderer,
REGISTRY
} from "../framework/registry";
} from "../../common/registry";
/// <reference path="../../common/rdflib-interface.d.ts"/>
import { RdfStore, Triple, Term, NamedNode, BlankNode, Literal } from "rdflib";
import * as React from "react";
......
......@@ -22,8 +22,8 @@ import * as React from "react";
/// <reference path="../../common/rdflib-interface.d.ts"/>
import { RdfStore } from "rdflib";
import { Application } from "../framework/interface";
import { REGISTRY, ViewRenderer } from "../framework/registry";
import { Application } from "../../common/application";
import { REGISTRY, ViewRenderer } from "../../common/registry";
import { register as registerViewDefaults } from "./ViewDefaults";
import { register as registerViewDbPedia } from "./ViewDbPedia";
registerViewDefaults();
......
......@@ -19,7 +19,7 @@
******************************************************************************/
/// <reference path="../../common/rdflib-interface.d.ts"/>
import { Application } from "../framework/interface";
import { Application } from "../../common/application";
import * as React from "react";
import * as ReactDOM from "react-dom";
......
......@@ -18,9 +18,9 @@
* with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import { TabData, Link, NO_DATA } from "../common/api";
import { TabData, Link, NO_DATA } from "../common/data";
import { loadRdfStore } from "../common/rdf";
import * as App from "./app/index";
import * as App from "./app";
import "chrome";
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment