diff --git a/BUILD.gn b/BUILD.gn index ea0dcd1a7a22bde1c169674b937f51ec7730ee52..c9cdb7a577af53e7ef5908112c9c1cb9b4722d37 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,3 +1,4 @@ +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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. */ # Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. import("//build/ohos.gni") diff --git a/compiler/.eslintrc b/compiler/.eslintrc index 4d857e85cafde8e72b9ce215bd7bf2b5cac85f48..0368f87585dd1a1f609298c5b27ca29ae8301bac 100644 --- a/compiler/.eslintrc +++ b/compiler/.eslintrc @@ -1,3 +1,4 @@ +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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. */ { "parserOptions": { "ecmaVersion": 7, diff --git a/compiler/examples/calendar/app.ets b/compiler/examples/calendar/app.ets deleted file mode 100644 index 0be61a623b0216ebbfacf77d8871f2fcaf1de68e..0000000000000000000000000000000000000000 --- a/compiler/examples/calendar/app.ets +++ /dev/null @@ -1,8 +0,0 @@ -export default { - onCreate() { - console.info('Application onCreate') - }, - onDestroy() { - console.info('Application onDestroy') - }, -} diff --git a/compiler/examples/calendar/manifest.json b/compiler/examples/calendar/manifest.json deleted file mode 100644 index 6a6087dcd4207b11c40b9d05d469a26960650d79..0000000000000000000000000000000000000000 --- a/compiler/examples/calendar/manifest.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "appID": "com.huawei.calendar", - "appName": "calendar", - "versionName": "1.0.0", - "versionCode": 1, - "minPlatformVersion": "2.0.0", - "pages": [ - "pages/calendar" - ] -} diff --git a/compiler/examples/calendar/pages/calendar.ets b/compiler/examples/calendar/pages/calendar.ets deleted file mode 100644 index fa9d39a550cd04b6e2091364f89d1363856e3c85..0000000000000000000000000000000000000000 --- a/compiler/examples/calendar/pages/calendar.ets +++ /dev/null @@ -1,147 +0,0 @@ -@Component -struct Title { - @Prop currentMonth: number - @Prop currentYear: number - private weekNames: string[] = ['日', '一', '二', '三', '四', '五', '六'] - build() { - Column() { - Column() { - Text(`${this.currentYear} 年 ${this.currentMonth+1} 月`) - .fontSize(17) - .fontWeight(FontWeight.Bold) - }.height(39) - Grid() { - ForEach( - this.weekNames, - item => { - GridItem() { - Text(item) - .fontSize(10) - } - }, - item => item - ) - }.rowsTemplate('1fr').columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr 1fr').height(34) - } - } -} - -@Component -struct Day { - @Prop day: number - @Prop month: number - @Prop lunarDay: string - @Prop lunarMonth: number - @Link private selectedDay?: number - @Link private selectedLunarMonth?: number - @Link private selectedLunarDay?: string - build() { - Column() { - Text(`${this.day}`) - .fontSize(17) - .fontWeight(FontWeight.Bold) - .color(this.selectedDay === this.day ? Color.Red : Color.Black) - Text(`${this.lunarDay}`) - .fontSize(10) - .color(this.selectedDay === this.day ? Color.Red : Color.Black) - }.height(72) - .alignItems(HorizontalAlign.Center) - .onClick(() => { - this.selectedLunarDay = this.lunarDay - this.selectedLunarMonth = this.lunarMonth - this.selectedDay = this.day - }) - } -} - -@Component -struct MonthView { - @Prop month: number - private lunarMonthDays: string[] = [ - '初一', '初二', '初三', '初四', '初五', '初六', '初七', '初八', '初九', '初十', - '十一', '十二', '十三', '十四', '十五', '十六', '十七', '十八', '十九', '二十', - '廿一', '廿二', '廿三', '廿四', '廿五', '廿六', '廿七', '廿八', '廿九', '三十'] - private lunarMonthNames: string[] = [ - '正月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '冬月', '腊月'] - @State selectedLunarDay: string = '初十' - @State selectedLunarMonth: number = new Date().getMonth() + 1 - @State selectedDay: number = new Date().getDate() - - build() { - Column() { - Row() { - Grid() { - ForEach( - Array.from({length: 35}, (a, i) => i + 1), - item => { - GridItem() { - Day({day: item, - month: this.month, - lunarDay: this.lunarMonthDays[item % 30], - lunarMonth: this.month, - selectedLunarDay: this.$selectedLunarDay, - selectedLunarMonth: this.$selectedLunarMonth, - selectedDay: this.$selectedDay}) - } - }, - item => item - ) - }.rowsTemplate('1fr 1fr 1fr 1fr 1fr').columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr 1fr').height(288) - }.alignItems(VerticalAlign.Center) - - Row() { - Column() { - Row() { - Text(`农历 ${this.lunarMonthNames[this.selectedLunarMonth]}${this.selectedLunarDay}`) - .fontSize(15) - .margin(10) - } - Row() { - Text('今日无日程') - .fontSize(15) - }.alignItems(VerticalAlign.Center) - } - }.alignItems(VerticalAlign.Center) - } - } -} - -@Component -struct SwiperView { - private monthList: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] - @Link private month?: number - @Link private year?: number - build() { - Swiper() { - ForEach( - this.monthList, - item => { - Column() { - MonthView({month: item}) - }.margin({left: 20, right: 20, bottom: 20, top: 3}) - }, - item => item) - }.indicator(false) - .index(this.month) - .onChange(e => { - this.month = e.index - }) - } - } -} - -@Entry -@Component -struct MyCalendar { - @State monthIdx: number = new Date().getMonth() - @State yearIdx: number = new Date().getFullYear() - build() { - Column() { - Row() { - Title({currentMonth:this.monthIdx, currentYear:this.yearIdx}) - }.height(72) - .margin({left: 20, right: 20, top: 20}) - SwiperView({month: this.$monthIdx, year: this.$yearIdx}) - } - } -} diff --git a/compiler/examples/taobao/app.ets b/compiler/examples/taobao/app.ets deleted file mode 100644 index 0be61a623b0216ebbfacf77d8871f2fcaf1de68e..0000000000000000000000000000000000000000 --- a/compiler/examples/taobao/app.ets +++ /dev/null @@ -1,8 +0,0 @@ -export default { - onCreate() { - console.info('Application onCreate') - }, - onDestroy() { - console.info('Application onDestroy') - }, -} diff --git a/compiler/examples/taobao/manifest.json b/compiler/examples/taobao/manifest.json deleted file mode 100644 index 28384141b02407514271ddbb21d3f6daeaa5f030..0000000000000000000000000000000000000000 --- a/compiler/examples/taobao/manifest.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "appID": "com.huawei.taobao", - "appName": "taobao", - "versionName": "1.0.0", - "versionCode": 1, - "minPlatformVersion": "2.0.0", - "pages": [ - "pages/index", - "pages/detail" - ] -} diff --git a/compiler/examples/taobao/pages/detail.ets b/compiler/examples/taobao/pages/detail.ets deleted file mode 100644 index c35c2cd8c5e0adab40c82482d928c89bd22ee0a5..0000000000000000000000000000000000000000 --- a/compiler/examples/taobao/pages/detail.ets +++ /dev/null @@ -1,72 +0,0 @@ -const detailList = [ - { - uri: 'resources/rawfile/table/list_one.jpg', - title: '创意日式环保原木纸巾架 榉木无漆卷纸收纳架 卫生纸柱厨房纸巾架' - }, - { - uri: 'resources/rawfile/table/list_two.jpg', - title: '展示篮海草编新中式收纳筐矮收纳盒藤编制把手托盘杂物家居整理篮' - }, - { - uri: 'resources/rawfile/table/list_three.jpg', - title: '门后挂钩金属门背后衣物挂架免钉无痕衣帽钩创意门上挂衣架挂衣钩' - }, - { - uri: 'resources/rawfile/table/list_four.jpg', - title: '可折叠桌面置物架分层小型架子厨房杂物整理落地收纳架衣柜隔层架' - }, - { - uri: 'resources/rawfile/table/list_five.jpg', - title: 'Castle Garden亲肤水貂绒3D立体树叶双层多功能绒毯 白' - }, - { - uri: 'resources/rawfile/table/list_six.jpg', - title: 'DORA HOUSE欧式法式复古木质烛台 仿古做旧酒吧别墅装饰配烛杯' - }, - { - uri: 'resources/rawfile/table/list_seven.jpg', - title: '美式装饰品北欧创意家居客厅书房电视柜发光地球仪样板房摆件礼品' - }, - { - uri: 'resources/rawfile/table/list_eight.jpg', - title: '树可珐琅 日式收纳筒加厚搪瓷筷子筒笔筒工具筒厨房收纳复古笔筒' - }, - { - uri: 'resources/rawfile/table/list_nine.jpg', - title: '包邮家用陶瓷盘子圆形菜盘 创意碗盘骨瓷西餐具牛扒盘 清新水果盘' - }, - { - uri: 'resources/rawfile/table/list_ten.jpg', - title: '朵颐创意北欧不锈钢西餐餐具黑柄手柄刀叉勺套装甜品叉勺主餐刀叉' - } -] - -@Entry -@Component -struct Detail { - build() { - Column() { - List() { - ForEach( - detailList, - (item) => { - ListItem() { - Column() { - Image(item.uri) - .width(275).height(300) - .borderRadius(15) - Text(item.title) - .fontSize(16) - .width(220).height(50) - }.width(300).height(400) - .borderRadius(15) - .alignItems(HorizontalAlign.Center) - }.height(410) - }, - item => item.title) - }.width(300) - }.width(360) - .backgroundColor(Color.White) - .alignItems(HorizontalAlign.Center) - } -} \ No newline at end of file diff --git a/compiler/examples/taobao/pages/index.ets b/compiler/examples/taobao/pages/index.ets deleted file mode 100644 index 1d909aaa21ed218d3795a3d5eb3e971eaaa6f8a2..0000000000000000000000000000000000000000 --- a/compiler/examples/taobao/pages/index.ets +++ /dev/null @@ -1,293 +0,0 @@ -const SelectItems = [ - { - uri1: 'class/type_new.png', title1: '天猫新品', uri2: 'class/type_recharge.png', title2: '充值中心' - }, - { - uri1: 'class/type_international.png', title1: '天猫国际', uri2: 'class/type_garden.png', title2: '金币庄园' - }, - { - uri1: 'class/type_order.png', title1: '饿了么', uri2: 'class/type_auction.png', title2: '阿里拍卖' - }, - { - uri1: 'class/type_market.png', title1: '天猫超市', uri2: 'class/type_eat.png', title2: '淘宝吃货' - }, - { - uri1: 'class/type_all.png', title1: '分类', uri2: 'class/type_used.png', title2: '咸鱼' - }, - { - uri1: 'class/type_food.png', title1: '天猫美食', uri2: 'class/type_vip.png', title2: '会员中心' - }, - { - uri1: 'class/type_health.png', title1: '阿里健康', uri2: 'class/type_movie.png', title2: '淘票票' - }, - { - uri1: 'class/type_life.png', title1: '口碑生活', uri2: 'class/type_membership.png', title2: '会员店' - }, -] - -const ProductItems = [ - { - uri1: 'table/list_one.jpg', description1: '创意日式环保原木纸巾架 榉木无漆卷纸收纳架 卫生纸柱厨房纸巾架', price1:'¥29.9', soldNumber1: '79人已购买', - uri2: 'table/list_two.jpg', description2: '展示篮海草编新中式收纳筐矮收纳盒藤编制把手托盘杂物家居整理篮', price2: '¥35.1', soldNumber2: '24人已购买' - }, - { - uri1: 'table/list_three.jpg', description1: '门后挂钩金属门背后衣物挂架免钉无痕衣帽钩创意门上挂衣架挂衣钩', price1: '¥27.9', soldNumber1: '214人已购买', - uri2: 'table/list_four.jpg', description2: '可折叠桌面置物架分层小型架子厨房杂物整理落地收纳架衣柜隔层架', price2: '¥8', soldNumber2: '1234人已购买' - }, - { - uri1: 'table/list_five.jpg', description1: 'Castle Garden亲肤水貂绒3D立体树叶双层多功能绒毯白', price1: '¥198.8', soldNumber1: '38人已购买', - uri2: 'table/list_six.jpg', description2: 'DORA HOUSE欧式法式复古木质烛台 仿古做旧酒吧别墅装饰配烛杯', price2: '¥168', soldNumber2: '82人已购买' - }, - { - uri1: 'table/list_seven.jpg', description1: '美式装饰品北欧创意家居客厅书房电视柜发光地球仪样板房摆件礼品', price1: '¥148', soldNumber1: '19人已购买', - uri2: 'table/list_eight.jpg', description2: '树可珐琅 日式收纳筒加厚搪瓷筷子筒笔筒工具筒厨房收纳复古笔筒', price2: '¥39', soldNumber2: '113人已购买' - }, - { - uri1: 'table/list_nine.jpg', description1: '包邮家用陶瓷盘子圆形菜盘 创意碗盘骨瓷西餐具牛扒盘 清新水果盘', price1: '¥24.9', soldNumber1: '21人已购买', - uri2: 'table/list_ten.jpg', description2: '朵颐创意北欧不锈钢西餐餐具黑柄手柄刀叉勺套装甜品叉勺主餐刀叉', price2: '¥19', soldNumber2: '25人已购买' - }, - { - uri1: 'table/list_eleven.jpg', description1: '「番茄设计出品 / 千鸟格纹路」设计师高靠背布艺软床', price1: '¥3,625', soldNumber1: '11人已购买', - uri2: 'table/list_twelve.jpg', description2: '复古做旧实木多肉花架 田园乡村置物架托盘 储物架 花园园艺杂货', price2: '¥275', soldNumber2: '8人已购买' - }, - { - uri1: 'table/list_thirteen.jpg', description1: '北欧简约胡桃木色门厅柜玄关柜鞋柜组合定做隔断柜镂空屏风鞋柜', price1: '¥2,290', soldNumber1: '78人已购买', - uri2: 'table/list_fourteen.jpg', description2: '厨房创意竹木陶瓷调味罐三件套胡椒盐罐味精瓶调料盒套装调味瓶罐', price2: '¥35', soldNumber2: '25人已购买' - }, - { - uri1: 'table/list_fifteen.jpg', description1: 'Moreover原创设计耐高温水杯玻璃杯饮料杯酒杯早餐杯牛奶杯简约', price1: '¥22', soldNumber1: '66人已购买', - uri2: 'table/list_sixteen.jpg', description2: '乐尚多功能碎菜器 家用手动蔬菜绞碎器 蒜肉搅碎机绞肉机饺子馅机', price2: '¥45', soldNumber2: '23人已购买' - }, - { - uri1: 'table/list_seventeen.jpg', description1: '满天星云南干花束雏菊小向日葵太阳花家居装饰插花送朋友满包邮', price1: '¥21.5', soldNumber1: '30人已购买', - uri2: 'table/list_eighteen.jpg', description2: '厨房创意竹木陶瓷调味罐三件套胡椒盐罐味精瓶调料盒套装调味瓶罐', price2: '¥16', soldNumber2: '23人已购买' - }, - { - uri1: 'table/list_ninteen.jpg', description1: '梵辰组装现代简约复古做旧靠背实木扶手酒店餐厅餐椅休闲网红椅子', price1: '¥229', soldNumber1: '382人已购买', - uri2: 'table/list_twenty.png', description2: '烘焙工具 软瓷裱花枪 家用奶油挤花器 蛋糕裱花笔diy套装', price2: '¥24.8', soldNumber2: '23人已购买' - }, - { - uri1: 'table/list_twentyone.jpg', description1: '汇安 实木床双人1.5m1.8米北欧日式经济型木床现代简约主卧家具', price1: '¥1,288', soldNumber1: '0人已购买', - uri2: 'table/list_twentytwo.jpg', description2: '旅侣 天然植物干花永生花黄金球金槌花花束搭配家居装饰摆拍道具', price2: '¥30.9', soldNumber2: '100人已购买' - }, - { - uri1: 'table/list_twentythree.jpg', description1: '北欧风格ins文艺范工作室店铺墙面铁丝网格照片装饰墙挂件收纳', price1: '¥88', soldNumber1: '15人已购买', - uri2: 'table/list_twentyfour.jpg', description2: '北欧餐椅现代简约家用实木靠背曲木椅奶茶店设计创意餐厅椅子ins', price2: '¥315', soldNumber2: '23人已购买' - }, - { - uri1: 'table/list_twentyfive.jpg', description1: '大号裱花嘴套装 不锈钢9头裱花咀超大八齿圆孔大玫瑰大寿桃大10齿', price1: '¥25', soldNumber1: '116人已购买', - uri2: 'table/list_twentysix.jpg', description2: '【Home deco】【现货】日本进口冰箱保鲜盒食品密封盒带盖收纳盒', price2: '¥18.5', soldNumber2: '67人已购买' - }, -] - -const resourcePath = 'resources/rawfile/' - -class ProductItem { - public uri1: string - public description1: string - public price1: string - public soldNumber1: string - public uri2: string - public description2: string - public price2: string - public soldNumber2: string -} - -@Entry -@Component -struct MainPage { - build() { - Column() { - List() { - ListItem() { - TopList() - } - ListItem() { - Banner() - } - ListItem() { - SelectItemList() - } - ListItem() { - SpecialItemList() - } - ListItem() { - Row() { - Image(resourcePath + 'double_twelve.gif') - .width(327).height(87) - .objectFit(ImageFit.Fill) - }.alignItems(VerticalAlign.Center).justifyContent(FlexAlign.Center) - } - ForEach( - ProductItems, - (item) => { - ListItem() { - ProductListItem({item: item}) - } - }, - item => item.uri1) - ForEach( - ProductItems, - (item) => { - ListItem() { - ProductListItem({item: item}) - } - }, - item => item.uri1) - ForEach( - ProductItems, - (item) => { - ListItem() { - ProductListItem({item: item}) - } - }, - item => item.uri1) - } - }.alignItems(HorizontalAlign.Center) - } -} - -@Component -struct TopList { - private topList: string[] = ['首页','生鲜','食品','女装','鞋靴','饰品','百货','母婴','箱包','男装','内衣','手机','美妆', - '家装','运动','电器','洗护','数码','车品','企业','保健'] - build() { - List() { - ForEach( - this.topList, - (item) => { - ListItem() { - Text(item) - .fontSize(14) - .width(39) - .textAlign(TextAlign.Center) - } - }, - item => item) - }.height(34) - .listDirection(ListDirection.Horizontal) - } -} - -@Component -struct Banner { - private bannerList: string[] = ['swiper/swiper_one.jpg','swiper/swiper_two.jpg', 'swiper/swiper_three.jpg', - 'swiper/swiper_four.jpg','swiper/swiper_five.jpg'] - build() { - Row() { - Swiper() { - ForEach( - this.bannerList, - (item) => { Image(resourcePath + item) }, - item => item) - }.width(288).height(96) - .autoPlay(true) - }.alignItems(VerticalAlign.Center) - } -} - -@Component -struct SelectItemList { - build() { - List() { - ForEach( - SelectItems, - (item) => { - ListItem() { - Column() { - Image(resourcePath + item.uri1) - .width(48).height(44) - Text(item.title1) - .fontSize(12) - Image(resourcePath + item.uri2) - .width(48).height(44) - Text(item.title2) - .fontSize(12) - }.width(68).height(130) - .alignItems(HorizontalAlign.Center) - } - }, - item => item.title1) - }.height(144).padding(8) - .listDirection(ListDirection.Horizontal) - } -} - -@Component -struct SpecialItemList { - private SpecialItems: Object[] = [ - {uri1: 'special/attention_doubletwelve.png', uri2:'special/attention_double_one.png', uri3: 'special/attention_double_two.jpg'}, - {uri1: 'special/attention_best.png', uri2:'special/attention_best_one.png', uri3: 'special/attention_best_two.jpg'}, - {uri1: 'special/attention_live.png', uri2:'special/attention_live_one.png', uri3: 'special/attention_live_two.jpg'}, - {uri1: 'special/attention_video.png', uri2:'special/attention_video_one.png', uri3: 'special/attention_video_two.png'}, - ] - - build() { - Column() { - Grid() { - ForEach( - this.SpecialItems, - (item) => { - GridItem() { - Column() { - Image(resourcePath + item.uri1) - .width(154).height(22) - .objectFit(ImageFit.Fill) - Row() { - Image(resourcePath + item.uri2) - .width(72).height(87) - .objectFit(ImageFit.Fill) - Image(resourcePath + item.uri3) - .width(72).height(87) - .objectFit(ImageFit.Fill) - }.justifyContent(FlexAlign.SpaceAround) - }.alignItems(HorizontalAlign.Center) - } - }, - item => item.uri1) - }.width(360).height(240) - .columnsTemplate('1fr, 1fr').rowsTemplate('1fr, 1fr') - }.width(360) - .alignItems(HorizontalAlign.Center) - } -} - -@Component -struct ProductListItem { - private item: ProductItem - - build() { - Row() { - Product({uri: this.item.uri1, description: this.item.description1, price: this.item.price1, soldNumber: this.item.soldNumber1}) - Product({uri: this.item.uri2, description: this.item.description2, price: this.item.price2, soldNumber: this.item.soldNumber2}) - } - } -} - -@Component -struct Product { - private uri: string - private description: string - private price: string - private soldNumber: string - build() { - Column() { - Image(resourcePath + this.uri) - .width(144).height(144) - .borderRadius(15) - Text(this.description) - .fontSize(15).height(63) - Row() { - Text(this.price) - .color(0xffff4500) - .fontSize(14).width(58) - .textAlign(TextAlign.Start) - Text(this.soldNumber) - .color(0xff808080) - .fontSize(11) - }.width(144).height(20) - .alignItems(VerticalAlign.Center) - }.width(168).height(245) - .alignItems(HorizontalAlign.Center) - } -} \ No newline at end of file diff --git a/compiler/examples/taobao/resources/rawfile/class/type_all.png b/compiler/examples/taobao/resources/rawfile/class/type_all.png deleted file mode 100644 index 36d319b954757d0691112de7704f8128e15bb96d..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_all.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_auction.png b/compiler/examples/taobao/resources/rawfile/class/type_auction.png deleted file mode 100644 index 428190a38f87942ffe04de5380d606faa04defa3..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_auction.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_eat.png b/compiler/examples/taobao/resources/rawfile/class/type_eat.png deleted file mode 100644 index 3dcf981133fd568a9d5b25f7b6a3dcd1fa04f673..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_eat.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_food.png b/compiler/examples/taobao/resources/rawfile/class/type_food.png deleted file mode 100644 index 73961a116873a7e49166a593cfbbe220c0fdd3d5..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_food.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_garden.png b/compiler/examples/taobao/resources/rawfile/class/type_garden.png deleted file mode 100644 index 6ffcfddbddc9a432df9a13fbb767d60df3d9f7cd..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_garden.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_health.png b/compiler/examples/taobao/resources/rawfile/class/type_health.png deleted file mode 100644 index 7d7d7727f027512f14729cb95ebf2a340ff4f4bc..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_health.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_international.png b/compiler/examples/taobao/resources/rawfile/class/type_international.png deleted file mode 100644 index c44a72445ce79d999a8cac4de1ab67c5ebf37d81..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_international.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_life.png b/compiler/examples/taobao/resources/rawfile/class/type_life.png deleted file mode 100644 index 7abd9ef7461dce010e63dc94a5325bbb45646497..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_life.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_market.png b/compiler/examples/taobao/resources/rawfile/class/type_market.png deleted file mode 100644 index aca69825175d93098032308b53cfae47649d1f9e..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_market.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_membership.png b/compiler/examples/taobao/resources/rawfile/class/type_membership.png deleted file mode 100644 index e1b1253c46382293bc914e9e62449f85b7e3bfb8..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_membership.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_movie.png b/compiler/examples/taobao/resources/rawfile/class/type_movie.png deleted file mode 100644 index 2feb7c7a6d1f348a31552c83499615577e4a75d1..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_movie.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_new.png b/compiler/examples/taobao/resources/rawfile/class/type_new.png deleted file mode 100644 index dc42939bfbe54e10f2e65e3dce89250ad1a66827..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_new.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_order.png b/compiler/examples/taobao/resources/rawfile/class/type_order.png deleted file mode 100644 index 1e17dcdf39b560b9b7aa287611d6d94c6d689c7f..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_order.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_recharge.png b/compiler/examples/taobao/resources/rawfile/class/type_recharge.png deleted file mode 100644 index ecfdf72fff61d462c65a958fb0758ff23fe3099f..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_recharge.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_today.png b/compiler/examples/taobao/resources/rawfile/class/type_today.png deleted file mode 100644 index e4cc8892d5d97f74856d85c32d14a937db93abae..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_today.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_travel.png b/compiler/examples/taobao/resources/rawfile/class/type_travel.png deleted file mode 100644 index 8367ea2ec96eb9c455c57851a8d5ffff0bf8460a..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_travel.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_used.png b/compiler/examples/taobao/resources/rawfile/class/type_used.png deleted file mode 100644 index bcf3d3b876f3ae22eb5b800a795d905b75d700c7..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_used.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/class/type_vip.png b/compiler/examples/taobao/resources/rawfile/class/type_vip.png deleted file mode 100644 index 7e531236bda3e018ca48c9a0f79731c28c3da6f7..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/class/type_vip.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/double_twelve.gif b/compiler/examples/taobao/resources/rawfile/double_twelve.gif deleted file mode 100644 index 5bafb2a89d7f3dcbacb566f8833864c4c6011c28..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/double_twelve.gif and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_best.png b/compiler/examples/taobao/resources/rawfile/special/attention_best.png deleted file mode 100644 index 8ebedcbb8af7dc2dcc3fd3eb38e4fe4abfa61754..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_best.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_best_one.png b/compiler/examples/taobao/resources/rawfile/special/attention_best_one.png deleted file mode 100644 index 536e7a3666b4b0d20548e17698b2682ef497efa6..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_best_one.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_best_two.jpg b/compiler/examples/taobao/resources/rawfile/special/attention_best_two.jpg deleted file mode 100644 index 3e3af0ec3dac8987de466ccf57c0bbe0f01c8662..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_best_two.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_discount.jpg b/compiler/examples/taobao/resources/rawfile/special/attention_discount.jpg deleted file mode 100644 index 946dc169b0f05f97aca402c6d3401d2c77f3cbdb..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_discount.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_double_one.png b/compiler/examples/taobao/resources/rawfile/special/attention_double_one.png deleted file mode 100644 index c905b723822ac1fe67a769222c08f1ecdc80d9db..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_double_one.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_double_two.jpg b/compiler/examples/taobao/resources/rawfile/special/attention_double_two.jpg deleted file mode 100644 index 496227d2e6616a53bf726a55f3596c3a29573dfb..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_double_two.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_doubletwelve.png b/compiler/examples/taobao/resources/rawfile/special/attention_doubletwelve.png deleted file mode 100644 index 539c8f489a107a4bcd62df09d5c10affc845bc86..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_doubletwelve.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_live.png b/compiler/examples/taobao/resources/rawfile/special/attention_live.png deleted file mode 100644 index 82f71df91ce8956fe637c63e748e73f80974d17c..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_live.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_live_one.png b/compiler/examples/taobao/resources/rawfile/special/attention_live_one.png deleted file mode 100644 index 273fad7cae257aa12d5aa000fcc86049e7bc98aa..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_live_one.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_live_two.jpg b/compiler/examples/taobao/resources/rawfile/special/attention_live_two.jpg deleted file mode 100644 index 2f933b787df6862c4fddcba346ebd754e2a7f300..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_live_two.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_packet.png b/compiler/examples/taobao/resources/rawfile/special/attention_packet.png deleted file mode 100644 index cc41e5afe57cc88e31b662b6eb8aed3b60bd8614..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_packet.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_packet_detail.png b/compiler/examples/taobao/resources/rawfile/special/attention_packet_detail.png deleted file mode 100644 index 6ba26adfa26dd7b1586a395de7fa209402bab255..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_packet_detail.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_rush.png b/compiler/examples/taobao/resources/rawfile/special/attention_rush.png deleted file mode 100644 index 031fa1f6fa6128bc9297c9e7b1953061fd076739..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_rush.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_rush_detail.png b/compiler/examples/taobao/resources/rawfile/special/attention_rush_detail.png deleted file mode 100644 index a4b354031a1f17731466f7336de20e6cfd767976..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_rush_detail.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_sale.png b/compiler/examples/taobao/resources/rawfile/special/attention_sale.png deleted file mode 100644 index 1865fb41b95a521cf7131a265250955896e8c33c..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_sale.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_sale_detail.jpg b/compiler/examples/taobao/resources/rawfile/special/attention_sale_detail.jpg deleted file mode 100644 index d1529b2d3536fe5537604644bbb5c0822a13e495..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_sale_detail.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_video.png b/compiler/examples/taobao/resources/rawfile/special/attention_video.png deleted file mode 100644 index 9c249b95a2269be2c68e8eb465cf3824237ebb77..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_video.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_video_one.png b/compiler/examples/taobao/resources/rawfile/special/attention_video_one.png deleted file mode 100644 index c16d66f49e87450c922425e9c346a0536afd7505..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_video_one.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/special/attention_video_two.png b/compiler/examples/taobao/resources/rawfile/special/attention_video_two.png deleted file mode 100644 index f0b72c14fd94cf79086304cf70aa2144eaa3ef8c..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/special/attention_video_two.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/swiper/swiper_five.jpg b/compiler/examples/taobao/resources/rawfile/swiper/swiper_five.jpg deleted file mode 100644 index bcd3d989f5a226e48c0eadf22844c21d3bfbfe9a..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/swiper/swiper_five.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/swiper/swiper_four.jpg b/compiler/examples/taobao/resources/rawfile/swiper/swiper_four.jpg deleted file mode 100644 index 2dfc55f8e56bc0c7946004d855ffb27be5d5056d..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/swiper/swiper_four.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/swiper/swiper_one.jpg b/compiler/examples/taobao/resources/rawfile/swiper/swiper_one.jpg deleted file mode 100644 index 967e2254d8d3700b77fb79aaee85765ca0d87991..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/swiper/swiper_one.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/swiper/swiper_three.jpg b/compiler/examples/taobao/resources/rawfile/swiper/swiper_three.jpg deleted file mode 100644 index 777ae5cbd8b885b85170919858fdb618dbcd71ef..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/swiper/swiper_three.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/swiper/swiper_two.jpg b/compiler/examples/taobao/resources/rawfile/swiper/swiper_two.jpg deleted file mode 100644 index 34d52e5ed7eeb48bbacfe61f6e16449e14502ef8..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/swiper/swiper_two.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_eight.jpg b/compiler/examples/taobao/resources/rawfile/table/list_eight.jpg deleted file mode 100644 index 98fd8b901fb116019f8f913f13fa2a742c74ebad..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_eight.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_eighteen.jpg b/compiler/examples/taobao/resources/rawfile/table/list_eighteen.jpg deleted file mode 100644 index 7bc5f03f727ca9819ff7eae173d8f88c37ce6440..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_eighteen.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_eleven.jpg b/compiler/examples/taobao/resources/rawfile/table/list_eleven.jpg deleted file mode 100644 index da49f0c5906f907e662299ad17ea099e2cf05a43..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_eleven.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_fifteen.jpg b/compiler/examples/taobao/resources/rawfile/table/list_fifteen.jpg deleted file mode 100644 index 57329f5ae8a2eff5136c043cbf27497a13d57657..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_fifteen.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_five.jpg b/compiler/examples/taobao/resources/rawfile/table/list_five.jpg deleted file mode 100644 index e10428ea3709e4ceec9a006143b923062c58d75d..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_five.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_four.jpg b/compiler/examples/taobao/resources/rawfile/table/list_four.jpg deleted file mode 100644 index 85e2a9d9582816e0a425733da05b61a8bff0eb4b..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_four.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_fourteen.jpg b/compiler/examples/taobao/resources/rawfile/table/list_fourteen.jpg deleted file mode 100644 index db08594b82db2506d210710dd06363efc9e1793a..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_fourteen.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_nine.jpg b/compiler/examples/taobao/resources/rawfile/table/list_nine.jpg deleted file mode 100644 index b314127111552455a646c1def7678e093879ee6c..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_nine.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_ninteen.jpg b/compiler/examples/taobao/resources/rawfile/table/list_ninteen.jpg deleted file mode 100644 index 4cbda8c2746815ca8cee38b3332011ebbc6c4060..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_ninteen.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_one.jpg b/compiler/examples/taobao/resources/rawfile/table/list_one.jpg deleted file mode 100644 index aa3d17664f238841466eca497f6c254b9d44cbf5..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_one.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_seven.jpg b/compiler/examples/taobao/resources/rawfile/table/list_seven.jpg deleted file mode 100644 index 3a50148ddc4d939bfef3faf0eb4159c68edbbce2..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_seven.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_seventeen.jpg b/compiler/examples/taobao/resources/rawfile/table/list_seventeen.jpg deleted file mode 100644 index 7f0e9763a5715737e861a7e9f94b19104ef30aca..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_seventeen.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_six.jpg b/compiler/examples/taobao/resources/rawfile/table/list_six.jpg deleted file mode 100644 index 67f8ba40135bca43c927b4d54470575d8e48e909..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_six.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_sixteen.jpg b/compiler/examples/taobao/resources/rawfile/table/list_sixteen.jpg deleted file mode 100644 index 9d548e4c56995c24582ab168be3400755c85acec..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_sixteen.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_ten.jpg b/compiler/examples/taobao/resources/rawfile/table/list_ten.jpg deleted file mode 100644 index 3e3af189aebc69a9c721149b1d37669b3150e430..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_ten.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_thirteen.jpg b/compiler/examples/taobao/resources/rawfile/table/list_thirteen.jpg deleted file mode 100644 index 43eb3dfe4c64484f1726122aec0a2a7935bff184..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_thirteen.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_three.jpg b/compiler/examples/taobao/resources/rawfile/table/list_three.jpg deleted file mode 100644 index a4153e0ea2f388169fe3558200b49b4c72be6e09..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_three.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twelve.jpg b/compiler/examples/taobao/resources/rawfile/table/list_twelve.jpg deleted file mode 100644 index fd13ef322470dfe014d8bbb1db23fa97c7cf98cd..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twelve.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twenty.png b/compiler/examples/taobao/resources/rawfile/table/list_twenty.png deleted file mode 100644 index 3b582efc5bb2a321843ca622c8709e7003a338c4..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twenty.png and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twentyfive.jpg b/compiler/examples/taobao/resources/rawfile/table/list_twentyfive.jpg deleted file mode 100644 index f9fe864defa4e8a5e02fcf7a318ebaf47c2d3001..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twentyfive.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twentyfour.jpg b/compiler/examples/taobao/resources/rawfile/table/list_twentyfour.jpg deleted file mode 100644 index aba732396bc314ec5990fe8f4304f70a0f0587d8..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twentyfour.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twentyone.jpg b/compiler/examples/taobao/resources/rawfile/table/list_twentyone.jpg deleted file mode 100644 index f0b3bbe48d4ee575996777b603d7ad51f382d487..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twentyone.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twentyseven.jpg b/compiler/examples/taobao/resources/rawfile/table/list_twentyseven.jpg deleted file mode 100644 index 966782332886121e21ac67d6f76df0e61e859cd1..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twentyseven.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twentysix.jpg b/compiler/examples/taobao/resources/rawfile/table/list_twentysix.jpg deleted file mode 100644 index 2b53eb39d32c09ba0e205621630f9d00617df076..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twentysix.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twentythree.jpg b/compiler/examples/taobao/resources/rawfile/table/list_twentythree.jpg deleted file mode 100644 index 0d10dfd19a4aa29fa47628ca373d0fd9d8407d94..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twentythree.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_twentytwo.jpg b/compiler/examples/taobao/resources/rawfile/table/list_twentytwo.jpg deleted file mode 100644 index 3c5c14bdc0e38a1ed761f3ca956961f98dea9532..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_twentytwo.jpg and /dev/null differ diff --git a/compiler/examples/taobao/resources/rawfile/table/list_two.jpg b/compiler/examples/taobao/resources/rawfile/table/list_two.jpg deleted file mode 100644 index 890525db31e87d5034d30ce351bd64947c824ca4..0000000000000000000000000000000000000000 Binary files a/compiler/examples/taobao/resources/rawfile/table/list_two.jpg and /dev/null differ diff --git a/compiler/sample/app.ets b/compiler/sample/app.ets index 30a1983810a7bd729f821e64efc93e0ffa2b6424..80a0395d87d2881cccb0b20b428aa88fbca44a96 100644 --- a/compiler/sample/app.ets +++ b/compiler/sample/app.ets @@ -1,8 +1,23 @@ -export default { - onCreate() { - console.info('Application onCreate') - }, - onDestroy() { - console.info('Application onDestroy') - }, -} +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +export default { + onCreate() { + console.info('Application onCreate') + }, + onDestroy() { + console.info('Application onDestroy') + }, +} diff --git a/compiler/sample/pages/home.ets b/compiler/sample/pages/home.ets index 0fce6542cd8bdb2ce744974a95ef3be677e037b4..3079671f16adc3851d7a76bbceec343c10929e9c 100644 --- a/compiler/sample/pages/home.ets +++ b/compiler/sample/pages/home.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct HomeComponent { diff --git a/compiler/sample/pages/home_preview.ets b/compiler/sample/pages/home_preview.ets index 9ae05aaf335a3db82cc286f11b625408b6d2e8ed..c4352e7190d2e6d4d5118477317f5a3e62c79b21 100644 --- a/compiler/sample/pages/home_preview.ets +++ b/compiler/sample/pages/home_preview.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct HomePreviewComponent { diff --git a/compiler/sample/pages/index.ets b/compiler/sample/pages/index.ets index 2f37ded2f7717821942bc0a93560585b3fe31eb5..2dd5eb53dad6ada0716d6ee513b0cbad26eff259 100644 --- a/compiler/sample/pages/index.ets +++ b/compiler/sample/pages/index.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component struct Banner { private value1: string = "hello world 4" diff --git a/compiler/sample/pages/testcases/component-01.ets b/compiler/sample/pages/testcases/component-01.ets index 44c4c183f02c5c61b92d0a3532be00504b25672a..27c1a6be7af03569a440504188aa6dbcda8020a2 100644 --- a/compiler/sample/pages/testcases/component-01.ets +++ b/compiler/sample/pages/testcases/component-01.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component @Entry struct MyComponent1 { diff --git a/compiler/sample/pages/testcases/componentGridTest.ets b/compiler/sample/pages/testcases/componentGridTest.ets index ef46eff71b79377a3d58f28e8d522047a0f2b072..54d1cd8e39fcebe5448c100049bdc8349b47fe04 100644 --- a/compiler/sample/pages/testcases/componentGridTest.ets +++ b/compiler/sample/pages/testcases/componentGridTest.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct GridRootView { diff --git a/compiler/sample/pages/testcases/componentListTest.ets b/compiler/sample/pages/testcases/componentListTest.ets index 361a80233f86e0d1be983be6ec4490b2ae11f692..37d42cfcb0ce0f2619dbace1ef6d7a112a0916e8 100644 --- a/compiler/sample/pages/testcases/componentListTest.ets +++ b/compiler/sample/pages/testcases/componentListTest.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct ListRootView { diff --git a/compiler/sample/pages/testcases/constructor-01.ets b/compiler/sample/pages/testcases/constructor-01.ets index f2befe6cb1c789ab8676d800f43dc9c3b82f27e9..139b5c496001d15415b3267f73a096376373bd19 100644 --- a/compiler/sample/pages/testcases/constructor-01.ets +++ b/compiler/sample/pages/testcases/constructor-01.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class DataModel{ private myData1: number = 0 } diff --git a/compiler/sample/pages/testcases/constructor-02.ets b/compiler/sample/pages/testcases/constructor-02.ets index 03b017c9f154889f751e9b296322be81ab21d0e5..72eb633272a43923f46f2afab68192f072cd84ac 100644 --- a/compiler/sample/pages/testcases/constructor-02.ets +++ b/compiler/sample/pages/testcases/constructor-02.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct MyLinkComponent { diff --git a/compiler/sample/pages/testcases/constructor-03.ets b/compiler/sample/pages/testcases/constructor-03.ets index 1d790e2acdf70c6119f5ba5019ab44db6c376c3b..4a482cb70b0401576ee1595d71294987dc5ca323 100644 --- a/compiler/sample/pages/testcases/constructor-03.ets +++ b/compiler/sample/pages/testcases/constructor-03.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct MyPropComponent { diff --git a/compiler/sample/pages/testcases/expected/component-01-expected.js b/compiler/sample/pages/testcases/expected/component-01-expected.js index 849492f2a944440c64727ad13c4dc2bd3d736b30..d9a41597ddc2f10af22ed64c26d5a993f5b5828c 100644 --- a/compiler/sample/pages/testcases/expected/component-01-expected.js +++ b/compiler/sample/pages/testcases/expected/component-01-expected.js @@ -1,11 +1,26 @@ -class MyComponent extends View { - constructor() { - super(); - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - console.info('into constructor'); - } - render() { return new Column(new Text(this.value1), new Text(this.value2), new Text(this.value3)); } -} -loadDocument(new MyComponent()); +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +class MyComponent extends View { + constructor() { + super(); + this.value1 = value1; + this.value2 = value2; + this.value3 = value3; + console.info('into constructor'); + } + render() { return new Column(new Text(this.value1), new Text(this.value2), new Text(this.value3)); } +} +loadDocument(new MyComponent()); diff --git a/compiler/sample/pages/testcases/expected/constructor-01-expected.js b/compiler/sample/pages/testcases/expected/constructor-01-expected.js index 76555d8b3c700e84cdc1686b80cad24dc22a0a3a..0dd9982885d93edc7aadb36287e298a4fb382bf1 100644 --- a/compiler/sample/pages/testcases/expected/constructor-01-expected.js +++ b/compiler/sample/pages/testcases/expected/constructor-01-expected.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class MyStateComponent extends View { constructor(inputParams) { super(); diff --git a/compiler/sample/pages/testcases/expected/constructor-02-expected.js b/compiler/sample/pages/testcases/expected/constructor-02-expected.js index c257a6b1653a81279550fa655b94dadeeb6f374b..6c5de4e0c4dddb0e6e804aed797b923e99b25eec 100644 --- a/compiler/sample/pages/testcases/expected/constructor-02-expected.js +++ b/compiler/sample/pages/testcases/expected/constructor-02-expected.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class MyLinkComponent extends View { constructor(inputParams) { super(); diff --git a/compiler/sample/pages/testcases/expected/constructor-03-expected.js b/compiler/sample/pages/testcases/expected/constructor-03-expected.js index ae75c757dd8d5be9f372047e3549e0417c12b277..67382c3d3f2678cf22c25f8fe17d61d5a5c458e0 100644 --- a/compiler/sample/pages/testcases/expected/constructor-03-expected.js +++ b/compiler/sample/pages/testcases/expected/constructor-03-expected.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class MyPropComponent extends View { constructor(inputParams) { super(); diff --git a/compiler/sample/pages/testcases/expected/link-01-expected.js b/compiler/sample/pages/testcases/expected/link-01-expected.js index 46c737697f8d459a3a230e390411faeb19ec4367..2d3a148a513f9b09af0b431e4236cadf3f5d2777 100644 --- a/compiler/sample/pages/testcases/expected/link-01-expected.js +++ b/compiler/sample/pages/testcases/expected/link-01-expected.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class MyLinkTestComponent extends View { constructor(inputParams) { super(); diff --git a/compiler/sample/pages/testcases/expected/new-01-expected.js b/compiler/sample/pages/testcases/expected/new-01-expected.js index 68c475807c92a9d8c5f2c1e60b11b0b52d5cf394..9d579b48ad93e2a04339cf61dd56ed16b7e69b48 100644 --- a/compiler/sample/pages/testcases/expected/new-01-expected.js +++ b/compiler/sample/pages/testcases/expected/new-01-expected.js @@ -1,10 +1,25 @@ -class MyComponent extends View { - constructor(value1 = "hello world 1", value2 = "hello world 2", value3 = "hello world 3") { - super(); - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - } - render() { return new Column(new Text(this.value1), new Text(this.value2), new Text(this.value3)); } -} -loadDocument(new MyComponent()); +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +class MyComponent extends View { + constructor(value1 = "hello world 1", value2 = "hello world 2", value3 = "hello world 3") { + super(); + this.value1 = value1; + this.value2 = value2; + this.value3 = value3; + } + render() { return new Column(new Text(this.value1), new Text(this.value2), new Text(this.value3)); } +} +loadDocument(new MyComponent()); diff --git a/compiler/sample/pages/testcases/expected/new-02-expected.js b/compiler/sample/pages/testcases/expected/new-02-expected.js index 68c475807c92a9d8c5f2c1e60b11b0b52d5cf394..9d579b48ad93e2a04339cf61dd56ed16b7e69b48 100644 --- a/compiler/sample/pages/testcases/expected/new-02-expected.js +++ b/compiler/sample/pages/testcases/expected/new-02-expected.js @@ -1,10 +1,25 @@ -class MyComponent extends View { - constructor(value1 = "hello world 1", value2 = "hello world 2", value3 = "hello world 3") { - super(); - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - } - render() { return new Column(new Text(this.value1), new Text(this.value2), new Text(this.value3)); } -} -loadDocument(new MyComponent()); +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +class MyComponent extends View { + constructor(value1 = "hello world 1", value2 = "hello world 2", value3 = "hello world 3") { + super(); + this.value1 = value1; + this.value2 = value2; + this.value3 = value3; + } + render() { return new Column(new Text(this.value1), new Text(this.value2), new Text(this.value3)); } +} +loadDocument(new MyComponent()); diff --git a/compiler/sample/pages/testcases/expected/new-03-expected.js b/compiler/sample/pages/testcases/expected/new-03-expected.js index 4f153f34b13189530a6e242ff82ec80ffb8dbfd3..9bf4eae84c9276e69ef908b5f7946966024e2f32 100644 --- a/compiler/sample/pages/testcases/expected/new-03-expected.js +++ b/compiler/sample/pages/testcases/expected/new-03-expected.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class Banner extends View { constructor(value1 = "hello world 2") { super(); diff --git a/compiler/sample/pages/testcases/expected/new-04-expected.js b/compiler/sample/pages/testcases/expected/new-04-expected.js index 4f153f34b13189530a6e242ff82ec80ffb8dbfd3..9bf4eae84c9276e69ef908b5f7946966024e2f32 100644 --- a/compiler/sample/pages/testcases/expected/new-04-expected.js +++ b/compiler/sample/pages/testcases/expected/new-04-expected.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class Banner extends View { constructor(value1 = "hello world 2") { super(); diff --git a/compiler/sample/pages/testcases/expected/struct-01-expected.js b/compiler/sample/pages/testcases/expected/struct-01-expected.js index 8df48157ba1d981fa2a00133569a080fde1bf3b9..18472ca131447605c7af2f8db4afec3dd496563b 100644 --- a/compiler/sample/pages/testcases/expected/struct-01-expected.js +++ b/compiler/sample/pages/testcases/expected/struct-01-expected.js @@ -1,6 +1,21 @@ -class MyComponent extends View { - render() { - } - constructor() { super(); } -} -loadDocument(new MyComponent()); +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +class MyComponent extends View { + render() { + } + constructor() { super(); } +} +loadDocument(new MyComponent()); diff --git a/compiler/sample/pages/testcases/expected/struct-02-expected.js b/compiler/sample/pages/testcases/expected/struct-02-expected.js index a9ba8932dcf2f4afbc116d1519df79962a74720e..7dfcd1bcd229d6529cab2869553ae8e6aaf031ac 100644 --- a/compiler/sample/pages/testcases/expected/struct-02-expected.js +++ b/compiler/sample/pages/testcases/expected/struct-02-expected.js @@ -1,4 +1,19 @@ -class MyComponent { - build() { - } -} +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +class MyComponent { + build() { + } +} diff --git a/compiler/sample/pages/testcases/forEachComplexModel.ets b/compiler/sample/pages/testcases/forEachComplexModel.ets index 64ad0c5046b615f6a9df4b4ec0a7a8439e7040db..5b0a58a805c2afa0b22cd223ebae7719645246f4 100644 --- a/compiler/sample/pages/testcases/forEachComplexModel.ets +++ b/compiler/sample/pages/testcases/forEachComplexModel.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + // class without @Component convert tool will not process. class Month { year: number = 2010; // why add assignment here, TS grammar required, if not it will omit by TSC. diff --git a/compiler/sample/pages/testcases/forEachSimpleModel.ets b/compiler/sample/pages/testcases/forEachSimpleModel.ets index f98c4e704a78f3f7cd0145fb83915fc4ff505e84..ad1a0a2de35cd5d216b2c6d1adf1f9969037d19e 100644 --- a/compiler/sample/pages/testcases/forEachSimpleModel.ets +++ b/compiler/sample/pages/testcases/forEachSimpleModel.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct MyComponent2 { diff --git a/compiler/sample/pages/testcases/image.ets b/compiler/sample/pages/testcases/image.ets index 1fc8380654d797295abef6207eb1092a32323ba5..632256b50b845e1aab7bf0df165da4143bbae525 100644 --- a/compiler/sample/pages/testcases/image.ets +++ b/compiler/sample/pages/testcases/image.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct UserView1 { diff --git a/compiler/sample/pages/testcases/import-api-01.ets b/compiler/sample/pages/testcases/import-api-01.ets index 2256c7e58601be023750fec011a0afb5b92cf204..7c1d6a6bc1c80c2517ab6c88a7728674eb701a7f 100644 --- a/compiler/sample/pages/testcases/import-api-01.ets +++ b/compiler/sample/pages/testcases/import-api-01.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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 fetch from '@system.fetch' import router from '@system.router' diff --git a/compiler/sample/pages/testcases/link-01.ets b/compiler/sample/pages/testcases/link-01.ets index 55ffc8ca530a694eb33b01756195f78b286dd801..1af77002e12cb719fda81c56b4da139ddc6141a5 100644 --- a/compiler/sample/pages/testcases/link-01.ets +++ b/compiler/sample/pages/testcases/link-01.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component struct MyLinkTestComponent { @Link myLink1?: any diff --git a/compiler/sample/pages/testcases/linkArrayModel.ets b/compiler/sample/pages/testcases/linkArrayModel.ets index 45a1d9ccfac971082df8e997acab8f126c722b07..882e7916998f12b80c9bdf0d63b62a492f0ae41a 100644 --- a/compiler/sample/pages/testcases/linkArrayModel.ets +++ b/compiler/sample/pages/testcases/linkArrayModel.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component @Entry struct Parent { diff --git a/compiler/sample/pages/testcases/linkPropCombo.ets b/compiler/sample/pages/testcases/linkPropCombo.ets index 7c689737d28d1be8f8680a869544fb6e5e9a78b8..8ba060e718598fd20df71a5233f0d2a0b1956f84 100644 --- a/compiler/sample/pages/testcases/linkPropCombo.ets +++ b/compiler/sample/pages/testcases/linkPropCombo.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component @Entry struct ParentView { diff --git a/compiler/sample/pages/testcases/linkSimpleModel.ets b/compiler/sample/pages/testcases/linkSimpleModel.ets index bf2ccc351bf40febb5f4a503fe2f0dcc40871dbb..c68c24863c25467144d51e9647bc5ea44e832740 100644 --- a/compiler/sample/pages/testcases/linkSimpleModel.ets +++ b/compiler/sample/pages/testcases/linkSimpleModel.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component @Entry struct Player { diff --git a/compiler/sample/pages/testcases/new-01.ets b/compiler/sample/pages/testcases/new-01.ets index 235c5dd3f751559c48e8d6b68f474bb5b14d8d73..cbe88d23a63c2a3d016078b45e7e1008ea3a29b2 100644 --- a/compiler/sample/pages/testcases/new-01.ets +++ b/compiler/sample/pages/testcases/new-01.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component @Entry struct MyComponent3 { diff --git a/compiler/sample/pages/testcases/new-0101.ets b/compiler/sample/pages/testcases/new-0101.ets index 235c5dd3f751559c48e8d6b68f474bb5b14d8d73..cbe88d23a63c2a3d016078b45e7e1008ea3a29b2 100644 --- a/compiler/sample/pages/testcases/new-0101.ets +++ b/compiler/sample/pages/testcases/new-0101.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component @Entry struct MyComponent3 { diff --git a/compiler/sample/pages/testcases/new-02.ets b/compiler/sample/pages/testcases/new-02.ets index ea285c94ff09bc9ca5a19dd2231380a43946a93f..d60117669f59c630651f365e7d815a79068aaf26 100644 --- a/compiler/sample/pages/testcases/new-02.ets +++ b/compiler/sample/pages/testcases/new-02.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component @Entry struct MyComponent4 { diff --git a/compiler/sample/pages/testcases/new-03.ets b/compiler/sample/pages/testcases/new-03.ets index fa0bc708c9c6dbbd681864a869b78fe7bcaaf9aa..de28fd142d9ebf6766f4bafb0bc5355c178c6894 100644 --- a/compiler/sample/pages/testcases/new-03.ets +++ b/compiler/sample/pages/testcases/new-03.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component struct Banner { private value1: string = "hello world 2"; diff --git a/compiler/sample/pages/testcases/new-04.ets b/compiler/sample/pages/testcases/new-04.ets index 73e6fff351673a89e14cdd08db640e0b50d9ed1c..b3e93de2cf4c499e2289ac3679fc05323a9223f4 100644 --- a/compiler/sample/pages/testcases/new-04.ets +++ b/compiler/sample/pages/testcases/new-04.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component struct Banner { private value1: string = "hello world 2"; diff --git a/compiler/sample/pages/testcases/onclicktest.ets b/compiler/sample/pages/testcases/onclicktest.ets index 2a11f36ed4acb1a59f33e9bc5d372ce1ef2c09a9..508d4619bc37237cc457d49b5c2d803fd14672f3 100644 --- a/compiler/sample/pages/testcases/onclicktest.ets +++ b/compiler/sample/pages/testcases/onclicktest.ets @@ -1,3 +1,4 @@ +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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. */ @Entry @Component diff --git a/compiler/sample/pages/testcases/propSimpleModel.ets b/compiler/sample/pages/testcases/propSimpleModel.ets index 5c1569bfc653f1be8838d007f2ca0c5649a75c56..6d7b371b0b5d3d10a0d09acbf9cde38a698a6a09 100644 --- a/compiler/sample/pages/testcases/propSimpleModel.ets +++ b/compiler/sample/pages/testcases/propSimpleModel.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component @Entry struct ParentComponent { diff --git a/compiler/sample/pages/testcases/showcaseCovid19.ets b/compiler/sample/pages/testcases/showcaseCovid19.ets index b92d5a3cd31d7d71fae704932413a43eecb67758..fe3f6abdfb958e854c2cc58e4414b7446d7d73f0 100644 --- a/compiler/sample/pages/testcases/showcaseCovid19.ets +++ b/compiler/sample/pages/testcases/showcaseCovid19.ets @@ -1,3 +1,4 @@ +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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. */ /** diff --git a/compiler/sample/pages/testcases/simpleText.ets b/compiler/sample/pages/testcases/simpleText.ets index 2d93d031800386184d77976df1dcfe1f5609db37..e05d17131fa4ca4f6c3118eb092ba10d48f595db 100644 --- a/compiler/sample/pages/testcases/simpleText.ets +++ b/compiler/sample/pages/testcases/simpleText.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Entry @Component struct UserView { diff --git a/compiler/sample/pages/testcases/stacktestsuite.ets b/compiler/sample/pages/testcases/stacktestsuite.ets index dfc9fcfd5329e9baee439f199ccb38855f6ca735..20235078e0fcc5cec27ee04e0c9f03f5caabfe48 100644 --- a/compiler/sample/pages/testcases/stacktestsuite.ets +++ b/compiler/sample/pages/testcases/stacktestsuite.ets @@ -1,3 +1,4 @@ +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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. */ class Test { align:number = 0; diff --git a/compiler/sample/pages/testcases/stateArrayReverse.ets b/compiler/sample/pages/testcases/stateArrayReverse.ets index d6a8903e44075a6d07d6f55191a97bcc1591fb04..09ab14f0e11eeccb92d2825421ef614a02c07325 100644 --- a/compiler/sample/pages/testcases/stateArrayReverse.ets +++ b/compiler/sample/pages/testcases/stateArrayReverse.ets @@ -1,3 +1,4 @@ +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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. */ /* StateArrayReverse test case diff --git a/compiler/sample/pages/testcases/stateArrayReverseCustomView.ets b/compiler/sample/pages/testcases/stateArrayReverseCustomView.ets index 5a1a8119cbb32c30a353042f7bb8593172192df1..b127cb00ed59acd6d678bd02849d3c34535a4e3b 100644 --- a/compiler/sample/pages/testcases/stateArrayReverseCustomView.ets +++ b/compiler/sample/pages/testcases/stateArrayReverseCustomView.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class Item{ id:number = 0; label:string = ''; diff --git a/compiler/sample/pages/testcases/stateComplexType.ets b/compiler/sample/pages/testcases/stateComplexType.ets index abbe5c6b224b450d68f9a05406d91c7298dc2ef6..0d58d8b94d794e32e73d30b8f6c0736515dc0a75 100644 --- a/compiler/sample/pages/testcases/stateComplexType.ets +++ b/compiler/sample/pages/testcases/stateComplexType.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + // Customize the status data class. class Model { value: string = ''; diff --git a/compiler/sample/pages/testcases/stateStateBindingProp.ets b/compiler/sample/pages/testcases/stateStateBindingProp.ets index d2ab7f71009dc46f3f25a0f6fa4db21859d443a1..6fdad55c49996405b7295000663e887b11fccac7 100644 --- a/compiler/sample/pages/testcases/stateStateBindingProp.ets +++ b/compiler/sample/pages/testcases/stateStateBindingProp.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + class GreenButtonState { width:number = 0; diff --git a/compiler/sample/pages/testcases/struct-01.ets b/compiler/sample/pages/testcases/struct-01.ets index 0c8c1b7892eb3b94624ec3813dde50efa62bd539..df92093238190fb16cdafa85b63f9225db6f9e3b 100644 --- a/compiler/sample/pages/testcases/struct-01.ets +++ b/compiler/sample/pages/testcases/struct-01.ets @@ -1,6 +1,21 @@ -@Component -@Entry -struct MyComponent7 { - build() { - } +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +@Component +@Entry +struct MyComponent7 { + build() { + } } \ No newline at end of file diff --git a/compiler/sample/pages/testcases/struct-02.ets b/compiler/sample/pages/testcases/struct-02.ets index ee57c9cde71ef7fb63e4f028d23506e74790ffa4..b1a1fa3fa3688d62779dc54c4be1da33144a909f 100644 --- a/compiler/sample/pages/testcases/struct-02.ets +++ b/compiler/sample/pages/testcases/struct-02.ets @@ -1,4 +1,19 @@ -struct MyComponent8 { - build() { - } +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +struct MyComponent8 { + build() { + } } \ No newline at end of file diff --git a/compiler/sample/pages/todo.ets b/compiler/sample/pages/todo.ets index f1b21f224a59140f5aca7560d5f538bfe8e4d71b..6e90358af8151272180cd9b16a0b5f4d77da80dd 100644 --- a/compiler/sample/pages/todo.ets +++ b/compiler/sample/pages/todo.ets @@ -1,3 +1,4 @@ +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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. */ /** * ACE @ Web Helsinki diff --git a/compiler/src/create.ts b/compiler/src/create.ts index f24f1443eaa757e77a69a90fce5ba052606c9736..127dd03db85ebb1a28a1bb75def7b4f89e164131 100644 --- a/compiler/src/create.ts +++ b/compiler/src/create.ts @@ -54,7 +54,7 @@ function createProject(dist: string) { }`; const manifest:string = `{ - "appID": "com.huawei.` + appID + `", + "id": "com.huawei.` + appID + `", "appName": "` + appName + `", "versionName": "1.0.0", "versionCode": 1, diff --git a/compiler/test/pages/AMDComponent.ets b/compiler/test/pages/AMDComponent.ets index ab714803e55a7d73f9bc43debbeab19b0fd4f844..3135f0d8598a2fa95ab5ae35ce0a036ab2a56bfd 100644 --- a/compiler/test/pages/AMDComponent.ets +++ b/compiler/test/pages/AMDComponent.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component struct AMDComponent { @Link AMDComponentLink1?: any diff --git a/compiler/test/pages/DefaultComponent.ets b/compiler/test/pages/DefaultComponent.ets index 94c842e7a0d22aaf4bbbe51638286c796970807b..d9e2d74f13d4b875c9289623c6ccad476e7767fe 100644 --- a/compiler/test/pages/DefaultComponent.ets +++ b/compiler/test/pages/DefaultComponent.ets @@ -1,16 +1,31 @@ -@Component -struct DefaultComponent { - @Link DefaultComponentLink1?: any - @Link DefaultComponentLink2?: number - @Link DefaultComponentLink3?: boolean - @Link DefaultComponentLink4?: string - - private myVar: number = 0 - private myVar2: number - - build() { - - } -} - -export default DefaultComponent +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +@Component +struct DefaultComponent { + @Link DefaultComponentLink1?: any + @Link DefaultComponentLink2?: number + @Link DefaultComponentLink3?: boolean + @Link DefaultComponentLink4?: string + + private myVar: number = 0 + private myVar2: number + + build() { + + } +} + +export default DefaultComponent diff --git a/compiler/test/pages/ExportComponent.ets b/compiler/test/pages/ExportComponent.ets index c8332c7f6dc3aa1a17bed7e9f648270e03472b0f..d3d65b4253d9265bbc82b4acc6533ca4df606039 100644 --- a/compiler/test/pages/ExportComponent.ets +++ b/compiler/test/pages/ExportComponent.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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 DefaultComponent from "./test/pages/DefaultComponent.ets" @Component diff --git a/compiler/test/pages/ExportStarComponent.ets b/compiler/test/pages/ExportStarComponent.ets index ada6303134ea7f88014baeeb65b0ec777900a49a..969e0fe71a67ae9494abfb5e81f7bbec3a81ea20 100644 --- a/compiler/test/pages/ExportStarComponent.ets +++ b/compiler/test/pages/ExportStarComponent.ets @@ -1 +1,16 @@ -export * as AllStarComponent from './test/pages/ExportComponent'; +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + +export * as AllStarComponent from './test/pages/ExportComponent'; diff --git a/compiler/test/pages/LinkComponent.ets b/compiler/test/pages/LinkComponent.ets index 1357500ba993e32068b1aead74541d300de1f5fa..ffcc6115539d450f7d75d472720071acd0882e41 100644 --- a/compiler/test/pages/LinkComponent.ets +++ b/compiler/test/pages/LinkComponent.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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 DefaultComponent from "./DefaultComponent.ets" @Component diff --git a/compiler/test/pages/NamespaceComponent.ets b/compiler/test/pages/NamespaceComponent.ets index 5f3b3e87a950633c0064aeda69933e2d0b800d12..5b33ec85f474c8347637964fac2159144331975d 100644 --- a/compiler/test/pages/NamespaceComponent.ets +++ b/compiler/test/pages/NamespaceComponent.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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. + */ + @Component struct NamespaceComponent1 { @Link NamespaceComponent1Link1?: any