Skip to content

Commit

Permalink
framework deps
Browse files Browse the repository at this point in the history
  • Loading branch information
one-more committed Jun 25, 2019
1 parent 7f3b275 commit 0f60c77
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "x-componensts",
"private": true,
"private": false,
"devDependencies": {
"lerna": "^3.15.0"
}
Expand Down
21 changes: 21 additions & 0 deletions packages/framework/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Dmitry Nikolaev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
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.
3 changes: 1 addition & 2 deletions packages/framework/content.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {Component, retrieve, store} from "../core";
import {Component, retrieve, store} from "@x-components/core";
import {Subscription} from "./models";
import {addHistoryChangeListener} from "./history";
import {instanceOf} from "prop-types";

const pageLoadingKey = Symbol("pageLoading");
const loadingPromiseKey = Symbol("pageLoadingPromise");
Expand Down
10 changes: 5 additions & 5 deletions packages/framework/link.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as React from "react"
import {Component} from "~/core";
import styled from "styled-components"
import * as React from "react";
import {Component} from "@x-components/core";
import styled from "styled-components";
import {SyntheticEvent} from "react";
import {addHistoryChangeListener, pushState} from "./history";
import {renderReact} from "~/framework/render-react";
import {Subscription} from "~/framework/models";
import {renderReact} from "./render-react";
import {Subscription} from "./models";

export class XLink extends Component {
static getName(): string {
Expand Down
21 changes: 21 additions & 0 deletions packages/framework/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@x-components/framework",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "MIT",
"peerDependencies": {
"@x-components/core": "github:one-more/@x-components/core",
"react": "^16.8.6",
"vue": "^2.6.10",
"react-dom": "^16.8.6"
},
"dependencies": {
"styled-components": "^4.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/framework/render-vue.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {VueConstructor} from "vue";
import Vue from 'vue'
import Vue from 'vue';

Vue.config.productionTip = false;
Vue.config.devtools = false;
Expand Down

0 comments on commit 0f60c77

Please sign in to comment.