diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets index ebb4d20b0eb874525eed32c46df90eb30702d499..30da4250cf613d4feb259397cba9a44fb33c2188 100644 --- a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets +++ b/Ability/PageAbility/entry/src/main/ets/MainAbility/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. + */ + import router from '@system.router'; import featureAbility from '@ohos.ability.featureAbility'; import app from '@system.app' diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets index 75d38ac91a891e723a14079da09036fd8e320196..dedbc6a406e7c3e90dbef503adefcca571ec1f92 100644 --- a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets +++ b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.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 Second { diff --git a/ETSUI/CustomDialogEts/entry/src/main/ets/MainAbility/pages/index.ets b/ETSUI/CustomDialogEts/entry/src/main/ets/MainAbility/pages/index.ets index 6ddcab06a62d2cbc5455b3fe028117ff0218296b..f2c986930050d41da83928a6caed8e0863c8fe40 100644 --- a/ETSUI/CustomDialogEts/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ETSUI/CustomDialogEts/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,3 +1,17 @@ +/* + * 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. + */ @CustomDialog struct CustomDialogExample { controller: CustomDialogController diff --git a/ETSUI/PixelUnitsDemo/entry/src/main/ets/pages/index.ets b/ETSUI/PixelUnitsDemo/entry/src/main/ets/pages/index.ets index 7c99f0ac525a7daf885d48e8fbab6abf28df768e..dd07a7aa114a8048411a6e5999df7f66752b8296 100644 --- a/ETSUI/PixelUnitsDemo/entry/src/main/ets/pages/index.ets +++ b/ETSUI/PixelUnitsDemo/entry/src/main/ets/pages/index.ets @@ -23,7 +23,7 @@ struct Index { Row() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceEvenly }) { - TextButton({ content: '像素介绍' ,onclick: () => { + TextButton({ content: '像素介绍', onclick: () => { router.push({url: "pages/pixelUnitsPage",}) }}) TextButton({ content: '像素转换', onclick: () => { diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/ArsData.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/ArsData.ets index 96b1b9243a4d8107c2b66562e0fe7ecfcd2bcb9b..620b8f59f09a107703d74f6e8aa17143f85476a5 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/ArsData.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/ArsData.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. + */ + let NextId = 0; export class ArsData { id: string; diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsData.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsData.ets index 0ce700b72225f3a80016fd6bbda93eb6397630a8..617c29b6207ac186159623bc8fce226c1fb512d2 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsData.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsData.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. + */ + let NextId = 0; export class GoodsData { id: string; diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsDataModels.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsDataModels.ets index 7ac016b03996cca3f0b5377bcb275983a707acd5..7dcd422a84c156243374b611750db8835098e334 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsDataModels.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsDataModels.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 {GoodsData,IconImage} from './GoodsData' import {Menu1, ImageItem} from './Menu' import {ArsData} from './ArsData' diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/Menu.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/Menu.ets index 1eebdd5f5e72f6e9498357a88d64b36967790be7..7b0d4f6acdf6e475ed8eb56277c694540337af9e 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/Menu.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/Menu.ets @@ -1,4 +1,19 @@ +/* + * 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. + */ + let NextId = 0; export class Menu1 { id: string; diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/HomePage.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/HomePage.ets index d030793420ae4e2e76bd8b6ad16210e39ce77e6d..18fdc2075dba38e617ad8f76df2dbdafe4203d64 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/HomePage.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/HomePage.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 { GoodsData, IconImage } from '../model/GoodsData' import { initializeOnStartup, getIconPath, getIconPathSelect } from '../model/GoodsDataModels' import { ShoppingCart } from './ShoppingCartPage' diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/MyPage.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/MyPage.ets index 8c8085f105e998a7369decb6f953016ccc14a730..a2de032b58e215e5d24264e07de5fec76f0b19cc 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/MyPage.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/MyPage.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 {getMenu, getTrans, getMore} from '../model/GoodsDataModels' import {Menu1, ImageItem} from '../model/Menu' diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingCartPage.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingCartPage.ets index 13989a990569e416fda1d907e0a0d5cf83e0c70a..22f1a24239f525de2e7ceb252a51c179eb77bb7d 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingCartPage.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingCartPage.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 {GoodsData} from '../model/GoodsData' import {initializeOnStartup} from '../model/GoodsDataModels' import prompt from '@system.prompt'; diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingDetail.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingDetail.ets index 1b383e77def9cfb98c7ff9ccffb51ca804fd55c3..98861298f804324ff9baa0d1d76911ab02ac0b09 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingDetail.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingDetail.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 router from '@system.router'; import {ArsData} from '../model/ArsData' import {getArs, getDetailImages} from '../model/GoodsDataModels' diff --git a/ETSUI/SliderApplicationEts/entry/src/main/ets/MainAbility/pages/index.ets b/ETSUI/SliderApplicationEts/entry/src/main/ets/MainAbility/pages/index.ets index 69f2af57bcc7ef342b0e56bb69fdac171032db38..ef6a9ddc650902e7c42e4d87f6a943413cab9f02 100644 --- a/ETSUI/SliderApplicationEts/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ETSUI/SliderApplicationEts/entry/src/main/ets/MainAbility/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. + */ + @Entry @Component struct Index { diff --git a/ETSUI/TransitionAnimtaionEts/entry/src/main/ets/MainAbility/pages/index.ets b/ETSUI/TransitionAnimtaionEts/entry/src/main/ets/MainAbility/pages/index.ets index 6a850151ce5f172f1079559b063d59f9c80a9900..1c7623b578057fe8992fecc9da3462d861f4b31f 100644 --- a/ETSUI/TransitionAnimtaionEts/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ETSUI/TransitionAnimtaionEts/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,3 +1,17 @@ +/* + * 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 router from '@system.router' diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/Application/AbilityStage.ts b/Media/Audio_OH_ETS/entry/src/main/ets/Application/AbilityStage.ts index 32dfe93ccff0375201857794de902cec4d239442..2f96918c937982a919a3d818c59b58c0b48839c9 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/Application/AbilityStage.ts +++ b/Media/Audio_OH_ETS/entry/src/main/ets/Application/AbilityStage.ts @@ -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 AbilityStage from "@ohos.application.AbilityStage" export default class MyAbilityStage extends AbilityStage { diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/MainAbility/MainAbility.ts b/Media/Audio_OH_ETS/entry/src/main/ets/MainAbility/MainAbility.ts index 2fcd523850979edf2998174e4b5613540b9f71a5..76b3753ec6c51e590330f49014779212742d553b 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/Media/Audio_OH_ETS/entry/src/main/ets/MainAbility/MainAbility.ts @@ -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 Ability from '@ohos.application.Ability' export default class MainAbility extends Ability { diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/model/media/AudioPlay.ets b/Media/Audio_OH_ETS/entry/src/main/ets/model/media/AudioPlay.ets index cc6df6546d47b648482fc3a1fcb5790e587a87d7..0d8b108ec4fc37042bd0ff64f6f0b078c1f51a96 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/model/media/AudioPlay.ets +++ b/Media/Audio_OH_ETS/entry/src/main/ets/model/media/AudioPlay.ets @@ -1,4 +1,4 @@ -import prompt from '@system.prompt'; /* +/* * 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. @@ -13,6 +13,7 @@ import prompt from '@system.prompt'; /* * limitations under the License. */ +import prompt from '@system.prompt'; import media from '@ohos.multimedia.media'; import Song from '../media/been/SongInfo' diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/model/media/been/SongInfo.ets b/Media/Audio_OH_ETS/entry/src/main/ets/model/media/been/SongInfo.ets index 15c62c8f78a65ec86081881d94d29deaaf99422a..f8ca93180f2a18dff29a7e10f88cd9d215ec276d 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/model/media/been/SongInfo.ets +++ b/Media/Audio_OH_ETS/entry/src/main/ets/model/media/been/SongInfo.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. + */ + export default class SongInfo { private name: string private fileUri: string diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/pages/index.ets b/Media/Audio_OH_ETS/entry/src/main/ets/pages/index.ets index 1781da1092ef8f3c22f4ecf3076b25c967d39351..f27e673f5e60204075c42d00a8d64536fdf6ccca 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/pages/index.ets +++ b/Media/Audio_OH_ETS/entry/src/main/ets/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. + */ + import prompt from '@system.prompt'; import SysPermissionUtils from '../util/SysPermissionUtils' import DateTimeUtils from '../util/DateTimeUtils' diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/util/DataTypeUtils.ets b/Media/Audio_OH_ETS/entry/src/main/ets/util/DataTypeUtils.ets index 4ce0468a40a855abb0558e70217d9540c6c89f48..1f712adcb49af66383c47414615bd09fa591f77a 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/util/DataTypeUtils.ets +++ b/Media/Audio_OH_ETS/entry/src/main/ets/util/DataTypeUtils.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. + */ + /* *数据类型工具类 */ diff --git a/NativeAPI/NativeTemplateDemo/entry/src/main/cpp/hello.cpp b/NativeAPI/NativeTemplateDemo/entry/src/main/cpp/hello.cpp index 0d5c8d337f06fb1c99c807c786aece0c3213268d..62040c2b733ba7688c5da0ae76125d63eb7960b0 100644 --- a/NativeAPI/NativeTemplateDemo/entry/src/main/cpp/hello.cpp +++ b/NativeAPI/NativeTemplateDemo/entry/src/main/cpp/hello.cpp @@ -42,8 +42,6 @@ static napi_value hyPotC(napi_env env, napi_callback_info info) return sum; } - - EXTERN_C_START static napi_value Init(napi_env env, napi_value exports) { diff --git a/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/index.ets b/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/index.ets index 064b4a8d453b03532821bc3a0bf71275f7a65375..a707d8c512c8c4f4d9b27431d96ff9abcae83da7 100644 --- a/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/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. + */ + import router from "@system.router"; import {contact} from "@ohos/vcard"; import {VCardBuilder} from "@ohos/vcard"; diff --git a/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/there.ets b/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/there.ets index fc468ef5c81efd1d08ebe5318ebd0014b120c35c..e5aefe94d9d4cbd391f5f9263349701d509c8961 100644 --- a/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/there.ets +++ b/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/there.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. + */ + // @ts-nocheck import router from '@system.router';