diff --git a/js-framework/src/ui/declarative.ts b/js-framework/src/ui/declarative.ts index cbfaccfc..7eecbf2c 100644 --- a/js-framework/src/ui/declarative.ts +++ b/js-framework/src/ui/declarative.ts @@ -1,3 +1,18 @@ +/* + * Copyright [2019] [Doric.Pub] + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { Text, Image, LayoutConfig, View, IText, IImage } from './view' import { Stack, HLayout, VLayout } from './layout' diff --git a/js-framework/src/ui/layout.ts b/js-framework/src/ui/layout.ts index 18160f25..6cba6db9 100644 --- a/js-framework/src/ui/layout.ts +++ b/js-framework/src/ui/layout.ts @@ -1,3 +1,18 @@ +/* + * Copyright [2019] [Doric.Pub] + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { LayoutConfig, Group, Property, IView } from "./view"; import { Gravity } from "../util/gravity"; diff --git a/js-framework/src/ui/listview.ts b/js-framework/src/ui/listview.ts index ef10161a..78b9955e 100644 --- a/js-framework/src/ui/listview.ts +++ b/js-framework/src/ui/listview.ts @@ -1,8 +1,3 @@ -import { View, Property, SuperView, Group, LayoutSpec } from "./view"; -import { Model } from "../util/types"; -import { O_TRUNC } from "constants"; -import { Stack } from "./layout"; - /* * Copyright [2019] [Doric.Pub] * @@ -19,6 +14,10 @@ import { Stack } from "./layout"; * limitations under the License. */ +import { View, Property, SuperView, Group, LayoutSpec } from "./view"; +import { Model } from "../util/types"; +import { O_TRUNC } from "constants"; +import { Stack } from "./layout"; export function listItem(item: View) { return (new ListItem).also((it) => { it.layoutConfig = {