1/* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export const INFODATA: Array<{ 17 name: Resource, 18 info: string, 19 image: Resource, 20 value: Resource, 21 flag: boolean, 22 index: number, 23 uri: string 24}> = 25 [ 26 { 27 name: $r('app.string.wlan'), 28 info: 'WlanExtAbility', 29 image: $r('app.media.wlan'), 30 value: $r('app.string.ux'), 31 flag: true, 32 index: 0, 33 uri: 'pages/Wlan' 34 }, 35 { 36 name: $r('app.string.bluetooth'), 37 info: 'BluetoothExtAbility', 38 image: $r('app.media.bluetooth'), 39 value: $r('app.string.start'), 40 flag: true, 41 index: 1, 42 uri: 'pages/Bluetooth' 43 }, 44 { 45 name: $r('app.string.mobile_network'), 46 info: 'MobileDataExtAbility', 47 image: $r('app.media.mobiledata'), 48 value: undefined, 49 flag: false, 50 index: 2, 51 uri: 'pages/MobileData' 52 } 53 ] 54 55export const WLANDATA: Array<{ 56 text: Resource, 57 info: Resource, 58 img: Resource 59}> = 60 [ 61 { text: $r('app.string.ux'), info: $r('app.string.save'), img: $r('app.media.wlanLock') }, 62 { text: $r('app.string.aaa'), info: $r('app.string.encryption'), img: $r('app.media.wlanLock') }, 63 { text: $r('app.string.bbb'), info: $r('app.string.encryption_not'), img: $r('app.media.noneWlan') }, 64 { text: $r('app.string.ux_5g'), info: $r('app.string.open'), img: $r('app.media.openWlan') }, 65 ] 66 67export const RESOURCES: Resource[] = [$r('app.string.mobile_network'), $r('app.string.sim_manager'), $r('app.string.personal_hotspot')]