diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/config.json b/dev/team_x/smart_safe_kitchen-gas_detection/config.json index e7abd3ecbed549fe71322d76696c37e5d7abd70b..c338e2b435da175e213c1329f1b5e212d5edfeb8 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/config.json +++ b/dev/team_x/smart_safe_kitchen-gas_detection/config.json @@ -110,22 +110,10 @@ "components": [ { "component": "hilog_lite", - "optional": "true" - } - ] - }, - { - "subsystem": "multimedia", - "components": [ - { - "component": "histreamer", + "optional": "true", "features": [ - "multimedia_histreamer_enable_plugin_hdi_adapter = true", - "multimedia_histreamer_enable_plugin_minimp3_adapter = true", - "multimedia_histreamer_enable_plugin_ffmpeg_adapter = false", - "config_ohos_multimedia_histreamer_stack_size = 65536", - "config_ohos_multimedia_media_lite_player_path = \"//vendor/bestechnic/mini_distributed_music_player/distributed_player_lite\"" - ] + "ohos_hiviewdfx_hiview_lite_hiview_service_stack_size = 61440" + ] } ] }, diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/BUILD.gn b/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/BUILD.gn deleted file mode 100755 index 5dcc4e56c359e006510d847989b9bc58d10fa5a8..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/BUILD.gn +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) 2020-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("//build/lite/config/component/lite_component.gni") -import("//build/lite/ndk/ndk.gni") -import("//foundation/ace/ace_engine_lite/ace_lite.gni") - -lite_library("distributed_player_lite") { - target_type = "static_library" - - sources = [ - "//foundation/multimedia/media_lite/interfaces/kits/player_lite/js/builtin/src/audio_player.cpp", - "audio_module.cpp", - "cpp_on_play_remote.cpp", - ] - - include_dirs = ace_lite_include_dirs - include_dirs += [ - ".", - "//foundation/multimedia/media_lite/interfaces/kits/player_lite", - "//foundation/multimedia/utils/lite/interfaces/kits", - ] - public_deps = [ - "//foundation/multimedia/media_lite/frameworks/player_lite", - "//foundation/multimedia/utils/lite:media_common", - "//third_party/bounds_checking_function:libsec_static", - ] -} diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_module.cpp b/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_module.cpp deleted file mode 100755 index 26246179e443623f65c35f496fffb31c7210aa87..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_module.cpp +++ /dev/null @@ -1,418 +0,0 @@ -/* - * Copyright (c) 2020-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. - */ -#include "audio_module.h" -#include "media_log.h" -#include "js_async_work.h" -#include -#include "serializer.h" -#include "hal_trace.h" - -extern "C" bool WriteInt32(IpcIo *io, int32_t value); -extern "C" void RpcClientTest(int32_t* progress); - -namespace OHOS { -namespace ACELite { -constexpr char PROP_SUCCESS[] = "success"; -constexpr char PROP_COMPLETE[] = "complete"; - -AudioCallbackInfo AudioModule::audiocallbackinfo_; - -void AudioModule::OnTerminate() -{ -} - -void AudioModule::DefineProperty(JSIValue target, - const char *propName, - JSIFunctionHandler getter, - JSIFunctionHandler setter) -{ - JSPropertyDescriptor descriptor; - descriptor.getter = getter; - descriptor.setter = setter; - JSI::DefineNamedProperty(target, propName, descriptor); -} - -JSIValue AudioModule::Play(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->Play()); -} - -JSIValue AudioModule::Pause(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->Pause()); -} - -JSIValue AudioModule::Stop(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->Stop()); -} - -JSIValue AudioModule::GetPlayState(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - - JSIValue options = args[0]; - if (!JSI::ValueIsObject(options)) { - MEDIA_ERR_LOG("invalid parameter."); - return JSI::CreateBoolean(false); - } - - JSIValue successCallback = JSI::GetNamedProperty(options, PROP_SUCCESS); - if (!JSI::ValueIsUndefined(successCallback)) { - AudioPlayer *audioPlayer = AudioPlayer::GetInstance(); - JSIValue data = JSI::CreateObject(); - JSI::SetStringProperty(data, "status", audioPlayer->GetStatus()); - JSI::SetStringProperty(data, "src", audioPlayer->GetSrc()); - JSI::SetNumberProperty(data, "currentTime", audioPlayer->GetCurrentTime()); - JSI::SetBooleanProperty(data, "autoplay", audioPlayer->GetAutoPlay()); - JSI::SetBooleanProperty(data, "loop", audioPlayer->IsLooping()); - JSI::SetNumberProperty(data, "volume", audioPlayer->GetVolume()); - JSI::SetBooleanProperty(data, "muted", audioPlayer->IsMuted()); - JSIValue params[1] = { data }; - JSI::CallFunction(successCallback, thisVal, params, 1); - JSI::ReleaseValue(successCallback); - } - - JSIValue completeCallback = JSI::GetNamedProperty(options, PROP_COMPLETE); - if (!JSI::ValueIsUndefined(completeCallback)) { - JSI::CallFunction(completeCallback, thisVal, nullptr, 0); - JSI::ReleaseValue(completeCallback); - } - - return JSI::CreateUndefined(); -} - -JSIValue AudioModule::SrcGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - char *src = AudioPlayer::GetInstance()->GetSrc(); - return (src == nullptr) ? JSI::CreateUndefined() : JSI::CreateString(src); -} - -JSIValue AudioModule::SrcSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - char *src = JSI::ValueToString(args[0]); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetSrc(src)); -} - -JSIValue AudioModule::CurrentTimeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateNumber(AudioPlayer::GetInstance()->GetCurrentTime()); -} - -JSIValue AudioModule::CurrentTimeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - - int64_t currentTime = static_cast(JSI::ValueToNumber(args[0])); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetCurrentTime(currentTime)); -} - -JSIValue AudioModule::DurationGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - int64_t duation = AudioPlayer::GetInstance()->GetDuration(); - return duation == -1 ? JSI::CreateNumberNaN() : JSI::CreateNumber(static_cast(duation)); -} - -JSIValue AudioModule::DurationSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateError(JsiErrorType::JSI_ERROR_COMMON, "duration is readonly."); -} - -JSIValue AudioModule::AutoPlayGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->GetAutoPlay()); -} - -JSIValue AudioModule::AutoPlaySetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - bool autoPlay = JSI::ValueToBoolean(args[0]); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetAutoPlay(autoPlay)); -} - -JSIValue AudioModule::LoopGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->IsLooping()); -} - -JSIValue AudioModule::LoopSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - - bool loop = JSI::ValueToBoolean(args[0]); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetLoop(loop)); -} - -JSIValue AudioModule::VolumeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateNumber(AudioPlayer::GetInstance()->GetVolume()); -} - -JSIValue AudioModule::VolumeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - float volume = static_cast(JSI::ValueToNumber(args[0])); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetVolume(volume)); -} - -JSIValue AudioModule::MutedGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->IsMuted()); -} - -JSIValue AudioModule::MutedSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - bool muted = JSI::ValueToBoolean(args[0]); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetMuted(muted)); -} - -JSIValue AudioModule::OnPlayGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnPlayListener()); -} - -JSIValue AudioModule::OnPlaySetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnPlayListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnPauseGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnPauseListener()); -} - -JSIValue AudioModule::OnPauseSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnPauseListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnStopGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnStopListener()); -} - -JSIValue AudioModule::OnStopSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnStopListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnLoadedDataGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnLoadedDataListener()); -} - -JSIValue AudioModule::OnLoadedDataSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnLoadedDataListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnEndedGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnEndedListener()); -} - -JSIValue AudioModule::OnEndedSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnEndedListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnErrorGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnErrorListener()); -} - -JSIValue AudioModule::OnErrorSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnErrorListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnTimeUpdateGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnTimeUpdateListener()); -} - -JSIValue AudioModule::OnTimeUpdateSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnTimeUpdateListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::GetEventCallback(const AudioEventListener *listener) -{ - return (listener == nullptr) ? JSI::CreateUndefined() : listener->GetCallback(); -} - -AudioEventListener *AudioModule::CreateAudioEventListener(const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return nullptr; - } - - JSIValue callback = args[0]; - if (!JSI::ValueIsFunction(callback)) { - MEDIA_ERR_LOG("a function is required."); - return nullptr; - } - - AudioEventListener *listener = new AudioEventListener(callback); - if (listener == nullptr) { - MEDIA_ERR_LOG("out of memory."); - } - - return listener; -} -//.............. -JSIValue AudioModule::Oncallback(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - TRACE(0, "%s %d", __func__, __LINE__); - audiocallbackinfo_.callback = JSI::AcquireValue(args[0]); - audiocallbackinfo_.thisVal_ = JSI::AcquireValue(thisVal); - - return JSI::CreateUndefined(); -} - -JSIValue AudioModule::PlayRemote(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - TRACE(0, "%s %d", __func__, __LINE__); - if (!JSI::ValueIsNumber(args[0])){ - return JSI::CreateUndefined(); - } - int32_t data = (int32_t)JSI::ValueToNumber(args[0]); - TRACE(0, "this progress: %d", data); - RpcClientTest(&data); - return JSI::CreateUndefined(); -} - -void AudioModule::OnPlayRemote(int32_t data) -{ - TRACE(0, "%s %d", __func__, __LINE__); - JSIValue dataOne = JSI::CreateObject(); - - JSI::SetNumberProperty(dataOne, "progress", (double)data); - - JSIValue param[1] = {dataOne}; - - FuncParams* params = new FuncParams(); - params->handlerRef = audiocallbackinfo_.callback; - params->thisVarRef_ = audiocallbackinfo_.thisVal_; - params->args = param; - params->argsSize = 1; - JsAsyncWork::DispatchAsyncWork(OnEventAsyncWorkFunc, reinterpret_cast(params)); -} - -void AudioModule::OnEventAsyncWorkFunc(void *data) -{ - TRACE(0, "%s %d", __func__, __LINE__); - FuncParams* params = reinterpret_cast(data); - JSI::CallFunction(params->handlerRef, params->thisVarRef_, params->args, params->argsSize); -} - -static int g_init = 0; -void InitAudioModule(JSIValue exports) -{ - - if (g_init == 0) { - AudioPlayer::GetInstance()->CreatePlayer(); - AudioPlayer::GetInstance()->ForkUpdateTimeThread(); - g_init = 1; - } - - JSI::SetOnTerminate(exports, AudioModule::OnTerminate); - JSI::SetModuleAPI(exports, "play", AudioModule::Play); - JSI::SetModuleAPI(exports, "pause", AudioModule::Pause); - JSI::SetModuleAPI(exports, "stop", AudioModule::Stop); - JSI::SetModuleAPI(exports, "getPlayState", AudioModule::GetPlayState); - - JSI::SetModuleAPI(exports, "onCallback", AudioModule::Oncallback); - JSI::SetModuleAPI(exports, "playRemote", AudioModule::PlayRemote); - - AudioModule::DefineProperty(exports, "src", AudioModule::SrcGetter, AudioModule::SrcSetter); - AudioModule::DefineProperty(exports, "currentTime", AudioModule::CurrentTimeGetter, AudioModule::CurrentTimeSetter); - AudioModule::DefineProperty(exports, "duration", AudioModule::DurationGetter, AudioModule::DurationSetter); - AudioModule::DefineProperty(exports, "autoplay", AudioModule::AutoPlayGetter, AudioModule::AutoPlaySetter); - AudioModule::DefineProperty(exports, "loop", AudioModule::LoopGetter, AudioModule::LoopSetter); - AudioModule::DefineProperty(exports, "volume", AudioModule::VolumeGetter, AudioModule::VolumeSetter); - AudioModule::DefineProperty(exports, "muted", AudioModule::MutedGetter, AudioModule::MutedSetter); - - AudioModule::DefineProperty(exports, "onplay", AudioModule::OnPlayGetter, AudioModule::OnPlaySetter); - AudioModule::DefineProperty(exports, "onpause", AudioModule::OnPauseGetter, AudioModule::OnPauseSetter); - AudioModule::DefineProperty(exports, "onstop", AudioModule::OnStopGetter, AudioModule::OnStopSetter); - AudioModule::DefineProperty(exports, "onloadeddata", AudioModule::OnLoadedDataGetter, - AudioModule::OnLoadedDataSetter); - AudioModule::DefineProperty(exports, "onended", AudioModule::OnEndedGetter, AudioModule::OnEndedSetter); - AudioModule::DefineProperty(exports, "onerror", AudioModule::OnErrorGetter, AudioModule::OnErrorSetter); - AudioModule::DefineProperty(exports, "ontimeupdate", AudioModule::OnTimeUpdateGetter, - AudioModule::OnTimeUpdateSetter); -} -} // namespace ACELite -} // namespace OHOS \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_module.h b/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_module.h deleted file mode 100755 index 76a5c0ee98e1e7ec34d427214872f82f0a821b95..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_module.h +++ /dev/null @@ -1,373 +0,0 @@ -/* - * Copyright (c) 2020-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. - */ - -#ifndef AUDIO_MODULE_H -#define AUDIO_MODULE_H - -#include "audio_player.h" - -namespace OHOS { -namespace ACELite { - -struct AudioCallbackInfo { - JSIValue thisVal_ = JSI::CreateUndefined(); - JSIValue callback = JSI::CreateUndefined(); -}; - -struct FuncParams { - JSIValue handlerRef = JSI::CreateUndefined(); - JSIValue thisVarRef_ = JSI::CreateUndefined(); - const JSIValue *args = nullptr; - uint8_t argsSize = 0; -}; - -class AudioModule final : public MemoryHeap { -public: - /** - * constructor - */ - AudioModule() = default; - - /** - * desconstructor - */ - ~AudioModule() = default; - - static JSIValue Oncallback(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - static JSIValue PlayRemote(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - static void OnPlayRemote(int32_t data); - - static void OnEventAsyncWorkFunc(void *data); - - /** - * Set volume, 0.0 means the no silcence, 1.0 means the original volume. - * - * @param volume Indicates the target volume to set, which ranges from 0.0 to 1.0 - * @return Returns {@code true} if setting is successful; returns {@code false} otherwise. - */ - static bool SetVolume(float volume); - - /** - * Call when the app is terminated - */ - static void OnTerminate(); - - /** - * define property - */ - static void - DefineProperty(JSIValue target, const char *propName, JSIFunctionHandler getter, JSIFunctionHandler setter); - - /** - * the play method of audio - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue Play(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the pause method of audio - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue Pause(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the stop method of audio - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue Stop(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getPlayState method of audio - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue GetPlayState(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio src property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue SrcGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio src property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue SrcSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio currentTime property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue CurrentTimeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio currentTime property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue CurrentTimeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio duration property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue DurationGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio duration property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue DurationSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio autoplay property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue AutoPlayGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio autoplay property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue AutoPlaySetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio loop property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue LoopGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio loop property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue LoopSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio volume property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue VolumeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio volume property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue VolumeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio muted property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue MutedGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio muted property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue MutedSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onplay event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnPlayGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onplay event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnPlaySetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onpause event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnPauseGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onpause event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnPauseSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onstop event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnStopGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onstop event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnStopSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onloadeddata event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnLoadedDataGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onloadeddata event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnLoadedDataSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onerror event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnEndedGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onerror event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnEndedSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onerror event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnErrorGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onerror event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnErrorSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio ontimeupdate event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnTimeUpdateGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio ontimeupdate event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnTimeUpdateSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - -private: - static JSIValue GetEventCallback(const AudioEventListener *listener); - - static AudioEventListener *CreateAudioEventListener(const JSIValue *args, uint8_t argsSize); - - static AudioCallbackInfo audiocallbackinfo_; -}; - -void InitAudioModule(JSIValue exports); -} // namespace ACELite -} // namespace OHOS -#endif // AUDIO_MODULE_H \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_player.h b/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_player.h deleted file mode 100755 index 90867b559fc54a0376bcc56bd6c4434e412778c3..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/audio_player.h +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright (c) 2020-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. - */ - -#ifndef AUDIO_PLAYER_H -#define AUDIO_PLAYER_H - -#include -#include "jsi.h" -#include "player.h" - -namespace OHOS { -namespace ACELite { -class AudioPlayer; - -class AudioEventListener { -public: - AudioEventListener() = default; - - explicit AudioEventListener(JSIValue callback); - - ~AudioEventListener(); - - JSIValue GetCallback() const; - - void OnTrigger() const; - -private: - JSIValue callback_; -}; - -void TriggerEventListener(const AudioEventListener *listener); -void AsyncExecuteCallback(void *arg); - -class AudioPlayerCallback : public Media::PlayerCallback { -public: - AudioPlayerCallback() = delete; - - explicit AudioPlayerCallback(AudioPlayer *audioPlayer); - - virtual ~AudioPlayerCallback() = default; - - void OnPlaybackComplete() override; - - void OnError(int32_t errorType, int32_t errorCode) override; - - void OnInfo(int type, int extra) override; - - void OnVideoSizeChanged(int width, int height) override; - - void OnRewindToComplete() override; - -private: - static void *PlaybackCompleteHandler(void *arg); - - AudioPlayer *audioPlayer_; -}; - -class AudioPlayer { -public: - static AudioPlayer *GetInstance(); - - void ForkUpdateTimeThread(); - - void StopUpdateTimeThread(); - - bool CreatePlayer(); - - bool DestoryPlayer(); - - bool ResetPlayer(); - - void ReleaseEventListeners(); - - void ReleaseSrc(); - - bool Play(); - - bool Pause(); - - bool Stop(); - - char *GetSrc() const; - - double GetCurrentTime() const; - - double GetDuration() const; - - bool GetAutoPlay() const; - - bool IsLooping() const; - - bool IsMuted() const; - - const char *GetStatus() const; - - double GetVolume() const; - - bool IsPlaying() const; - - bool SetSrc(char *src); - - bool SetCurrentTime(double currentTime) const; - - bool SetAutoPlay(bool autoPlay); - - bool SetLoop(bool loop) const; - - bool SetVolume(double volume); - - bool SetMuted(bool muted); - - const AudioEventListener *GetOnPlayListener() const; - - const AudioEventListener *GetOnPauseListener() const; - - const AudioEventListener *GetOnStopListener() const; - - const AudioEventListener *GetOnLoadedDataListener() const; - - const AudioEventListener *GetOnEndedListener() const; - - const AudioEventListener *GetOnErrorListener() const; - - const AudioEventListener *GetOnTimeUpdateListener() const; - - void SetOnPlayListener(AudioEventListener *onPlayListener); - - void SetOnPauseListener(AudioEventListener *onPauseListener); - - void SetOnStopListener(AudioEventListener *onStopListener); - - void SetOnLoadedDataListener(AudioEventListener *onLoadedDataListener); - - void SetOnEndedListener(AudioEventListener *onEndedListener); - - void SetOnErrorListener(AudioEventListener *onErrorListener); - - void SetOnTimeUpdateListener(AudioEventListener *onTimeUpdateListener); - -private: - AudioPlayer(); - - ~AudioPlayer() = default; - - static pthread_mutex_t lock_; - static pthread_cond_t condition_; - static void *UpdateTimeHandler(void *arg); - - Media::Player *player_; - std::shared_ptr callback_; - AudioEventListener *onPlayListener_; - AudioEventListener *onPauseListener_; - AudioEventListener *onStopListener_; - AudioEventListener *onLoadedDataListener_; - AudioEventListener *onEndedListener_; - AudioEventListener *onErrorListener_; - AudioEventListener *onTimeUpdateListener_; - char *src_; - char *status_; - double volume_; - bool autoPlay_; - bool muted_; - bool isRunning_; -}; -} // namespace ACELite -} // namespace OHOS -#endif // AUDIO_PLAYER_H \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/cpp_on_play_remote.cpp b/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/cpp_on_play_remote.cpp deleted file mode 100755 index b47164ed1da4ab8cdc5980ff0f1161abf4afb1d2..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-gas_detection/distributed_player_lite/cpp_on_play_remote.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2020-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. - */ - -#include "stdint.h" -#include "audio_module.h" - -using namespace OHOS::ACELite; - -#ifdef __cplusplus -extern "C" -{ -#endif - -void CallOnPlayRemote(int32_t data) -{ - AudioModule::OnPlayRemote(data); -} - -#ifdef __cplusplus -} -#endif \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/font.ttf b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/font.ttf index 1668f76b7e4ba0c54a27d21aee6eb974c0f32165..e0683c841a84016a5d31fb4a6e6395cb5325888a 100755 Binary files a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/font.ttf and b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/font.ttf differ diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/app.js b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/app.js index f4eb4dd602915079729f5c798776d77b584ec977..ef9e470f9ba483740cd64cedca9828846cd697fe 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/app.js +++ b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/app.js @@ -1,13 +1,13 @@ /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ "D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js?entry": -/*!********************************************************************************!*\ - !*** D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\app.js?entry ***! - \********************************************************************************/ +/***/ "D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js?entry": +/*!************************************************************************************************!*\ + !*** D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\app.js?entry ***! + \************************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\app.js!./app.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js") +var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\app.js!./app.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js") var options=$app_script$ if ($app_script$.__esModule) { @@ -17,10 +17,10 @@ module.exports=new ViewModel(options); /***/ }), -/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js": -/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\app.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\app.js ***! - \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js": +/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\app.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\app.js ***! + \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -40,7 +40,7 @@ var _default = { }; exports.default = _default; ; -(exports["default"] || module.exports).manifest = __webpack_require__(/*! !!./lib/manifest-plugin.js!../../../../build/intermediates/js/debug/jsManifest/default/manifest.json */ "./lib/manifest-plugin.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\build\\intermediates\\js\\debug\\jsManifest\\default\\manifest.json"); +(exports["default"] || module.exports).manifest = __webpack_require__(/*! !!./lib/manifest-plugin.js!../../../../build/intermediates/js/debug/jsManifest/default/manifest.json */ "./lib/manifest-plugin.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\build\\intermediates\\js\\debug\\jsManifest\\default\\manifest.json"); function requireModule(moduleName) { return requireNative(moduleName.slice(1)); @@ -49,10 +49,10 @@ function requireModule(moduleName) { /***/ }), -/***/ "./lib/manifest-plugin.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\build\\intermediates\\js\\debug\\jsManifest\\default\\manifest.json": -/*!**************************************************************************************************************************************!*\ - !*** ./lib/manifest-plugin.js!D:\HarmonyWorkSpace\SmokeDetector\entry\build\intermediates\js\debug\jsManifest\default\manifest.json ***! - \**************************************************************************************************************************************/ +/***/ "./lib/manifest-plugin.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\build\\intermediates\\js\\debug\\jsManifest\\default\\manifest.json": +/*!******************************************************************************************************************************************************!*\ + !*** ./lib/manifest-plugin.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\build\intermediates\js\debug\jsManifest\default\manifest.json ***! + \******************************************************************************************************************************************************/ /***/ (function(module) { "use strict"; @@ -91,7 +91,7 @@ module.exports = JSON.parse('{"manifest.json":"content"}'); /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __webpack_require__("D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js?entry"); +/******/ var __webpack_exports__ = __webpack_require__("D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\app.js?entry"); /******/ /******/ return __webpack_exports__; /******/ })() diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/dm/dm.js b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/dm/dm.js index a2a813ba14525d20d7935483977aca0a86166b95..0243790193f407ca1260a2a7513354346019b4f3 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/dm/dm.js +++ b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/dm/dm.js @@ -1,15 +1,15 @@ /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ "D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.hml?entry": -/*!*****************************************************************************************!*\ - !*** D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\dm\dm.hml?entry ***! - \*****************************************************************************************/ +/***/ "D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.hml?entry": +/*!*********************************************************************************************************!*\ + !*** D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\dm\dm.hml?entry ***! + \*********************************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var $app_template$ = __webpack_require__(/*! !!./lib/json.js!./lib/template.js!./dm.hml */ "./lib/json.js!./lib/template.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.hml") -var $app_style$ = __webpack_require__(/*! !!./lib/json.js!./lib/style.js!./dm.css */ "./lib/json.js!./lib/style.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.css") -var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./dm.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.js") +var $app_template$ = __webpack_require__(/*! !!./lib/json.js!./lib/template.js!./dm.hml */ "./lib/json.js!./lib/template.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.hml") +var $app_style$ = __webpack_require__(/*! !!./lib/json.js!./lib/style.js!./dm.css */ "./lib/json.js!./lib/style.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.css") +var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./dm.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.js") var options=$app_script$ if ($app_script$.__esModule) { @@ -21,23 +21,23 @@ module.exports=new ViewModel(options); /***/ }), -/***/ "./lib/json.js!./lib/style.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.css": -/*!****************************************************************************************************************!*\ - !*** ./lib/json.js!./lib/style.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\dm\dm.css ***! - \****************************************************************************************************************/ +/***/ "./lib/json.js!./lib/style.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.css": +/*!********************************************************************************************************************************!*\ + !*** ./lib/json.js!./lib/style.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\dm\dm.css ***! + \********************************************************************************************************************************/ /***/ (function(module) { -module.exports = {"classSelectors":{"container":{"width":454,"flexDirection":"column","height":454,"backgroundColor":1579034},"navigator":{"flexDirection":"row","justifyContent":"space-between","width":"100%","height":60,"backgroundColor":16747520},"navigator-title":{"fontSize":35},"newTitle":{"width":200,"fontSize":26,"height":50,"color":16777215,"marginLeft":20},"title":{"fontSize":50,"color":16777215},"title1":{"fontSize":50,"color":16777215,"paddingTop":30},"title-wrap":{"width":"100%","height":454,"display":"flex","flexDirection":"column","alignItems":"center","color":"#a6fcfcfc"},"title-wrap1":{"width":"100%","height":454,"display":"flex","flexDirection":"column","alignItems":"center","color":"#a6fcfcfc"},"content-wrap":{"width":320,"height":40,"flexDirection":"row","color":0,"marginTop":15},"main-pin":{"width":"100%","height":"100%","color":0},"title-tip":{"fontSize":30,"color":16777215,"paddingTop":30},"pin-numb":{"width":250,"height":60,"flexDirection":"row","justifyContent":"space-around","alignItems":"center"},"pin-numb-item":{"fontSize":30,"height":40,"paddingBottom":5,"width":30,"textAlign":"center","color":0},"pin-numb-line":{"width":240,"borderTopWidth":1,"borderRightWidth":1,"borderBottomWidth":1,"borderLeftWidth":1,"borderTopColor":11119017,"borderRightColor":11119017,"borderBottomColor":11119017,"borderLeftColor":11119017},"numb":{"fontSize":30,"height":40,"width":80,"textAlign":"center","color":0,"backgroundColor":16777215,"borderTopWidth":1,"borderRightWidth":1,"borderBottomWidth":1,"borderLeftWidth":1,"borderTopColor":0,"borderRightColor":0,"borderBottomColor":0,"borderLeftColor":0,"borderRadius":25},"input":{"flexDirection":"row","justifyContent":"space-around","alignItems":"center"},"join-pin > .pin":{"fontSize":50,"color":0},"join-authorize":{"width":"100%","height":"100%","paddingTop":50},"join-title":{"fontSize":30,"color":0},"join-auth-title":{"fontSize":25,"color":0,"paddingBottom":20},"button-wrap":{"width":400,"height":180,"flexDirection":"row","color":0,"marginTop":-10},"button-wrap1":{"width":480,"height":174,"flexDirection":"row","color":0,"marginTop":10},"button-wrap2":{"width":480,"height":174,"flexDirection":"row","color":0,"marginTop":7},"button-cancel":{"width":200,"marginTop":100,"fontSize":26,"marginLeft":40,"height":50,"color":2003199},"button-ok":{"borderTopWidth":1,"borderRightWidth":1,"borderBottomWidth":1,"borderLeftWidth":1,"borderTopColor":0,"borderRightColor":0,"borderBottomColor":0,"borderLeftColor":0,"textAlign":"center","borderRadius":25,"marginLeft":-40,"backgroundColor":2003199,"width":200,"marginTop":100,"fontSize":26,"height":50,"color":16777215},"Test-ok":{"borderTopWidth":1,"borderRightWidth":1,"borderBottomWidth":1,"borderLeftWidth":1,"borderTopColor":0,"borderRightColor":0,"borderBottomColor":0,"borderLeftColor":0,"textAlign":"center","borderRadius":25,"marginLeft":-100,"backgroundColor":2003199,"width":200,"marginTop":100,"fontSize":26,"height":50,"color":16777215},"join-auth":{"width":"100%","height":"100%","paddingTop":30,"color":16260863},"join-auth-image":{"width":"100%","height":"100%","paddingTop":30,"color":16260863},"join-pin":{"width":"100%","height":"100%","paddingTop":30,"color":16260863},"joinPinCancel":{"width":200,"marginTop":80,"fontSize":50,"marginLeft":150,"height":100,"color":2003199},"Heading":{"width":"100%","height":50,"textAlign":"center","marginTop":10,"justifyContent":"space-around"},"block-wrapper":{"width":"50%","justifyContent":"center","alignItems":"center"},"body":{"flexDirection":"column","width":"100%","height":"80%","backgroundColor":1579034},"swiper":{"width":"100%","height":"100%"},"swiper-item":{"width":"100%","height":"100%"},"row2":{"width":"100%","height":"50%"},"grid":{"flexDirection":"row","flexWrap":"wrap","width":"100%","height":"100%"},"icBack":{"width":36,"height":36,"marginLeft":20},"wifiBtn":{"width":38,"height":38,"marginLeft":100},"header":{"width":480,"height":84,"flexDirection":"row","alignItems":"center","backgroundColor":3816774},"imgTitle":{"width":120,"height":40,"marginLeft":20},"Card1":{"width":210,"height":174,"flexDirection":"row","alignItems":"center","backgroundColor":3816774,"boxShadow":"0px 1px 3px 0px rgba(0, 0, 0, 0.3)","borderRadius":24,"marginLeft":24},"Card2":{"width":210,"height":174,"flexDirection":"row","alignItems":"center","backgroundColor":3816774,"boxShadow":"0px 1px 3px 0px rgba(0, 0, 0, 0.3)","borderRadius":24,"marginLeft":12},"CardImg":{"width":64,"height":64},"CardText":{"width":200,"fontSize":26,"height":50,"color":16777215,"marginLeft":20}}} +module.exports = {"classSelectors":{"container":{"width":454,"flexDirection":"column","height":454,"backgroundColor":1579034},"navigator":{"flexDirection":"row","justifyContent":"space-between","width":"100%","height":60,"backgroundColor":16747520},"navigator-title":{"fontSize":35},"new-title":{"width":200,"fontSize":26,"height":50,"color":16777215,"marginLeft":20},"title":{"fontSize":50,"color":16777215},"title1":{"fontSize":50,"color":16777215,"paddingTop":30},"title-wrap":{"width":"100%","height":454,"display":"flex","flexDirection":"column","alignItems":"center","color":16579836},"title-wrap1":{"width":"100%","height":454,"display":"flex","flexDirection":"column","alignItems":"center","color":16579836},"content-wrap":{"width":320,"height":40,"flexDirection":"row","color":0,"marginTop":15},"main-pin":{"width":"100%","height":"100%","color":0},"title-tip":{"fontSize":30,"color":16777215,"paddingTop":30},"pin-numb":{"width":250,"height":60,"flexDirection":"row","justifyContent":"space-around","alignItems":"center"},"pin-numb-item":{"fontSize":30,"height":40,"paddingBottom":5,"width":30,"textAlign":"center","color":16777215},"pin-numb-line":{"width":240,"borderTopWidth":1,"borderRightWidth":1,"borderBottomWidth":1,"borderLeftWidth":1,"borderTopColor":11119017,"borderRightColor":11119017,"borderBottomColor":11119017,"borderLeftColor":11119017},"numb":{"fontSize":30,"height":40,"width":80,"textAlign":"center","color":0,"backgroundColor":16777215,"borderTopWidth":1,"borderRightWidth":1,"borderBottomWidth":1,"borderLeftWidth":1,"borderTopColor":0,"borderRightColor":0,"borderBottomColor":0,"borderLeftColor":0,"borderRadius":25},"input":{"flexDirection":"row","justifyContent":"space-around","alignItems":"center"},"join-pin > .pin":{"fontSize":50,"color":0},"join-authorize":{"width":"100%","height":"100%","paddingTop":50},"join-title":{"fontSize":30,"color":0},"join-auth-title":{"fontSize":25,"color":0,"paddingBottom":20},"button-wrap":{"width":400,"height":180,"flexDirection":"row","color":0,"marginTop":-10},"button-wrap1":{"width":480,"height":174,"flexDirection":"row","color":0,"marginTop":10},"button-wrap2":{"width":480,"height":174,"flexDirection":"row","color":0,"marginTop":7},"button-cancel":{"width":200,"marginTop":100,"fontSize":26,"marginLeft":40,"height":50,"color":2003199},"button-ok":{"borderTopWidth":1,"borderRightWidth":1,"borderBottomWidth":1,"borderLeftWidth":1,"borderTopColor":0,"borderRightColor":0,"borderBottomColor":0,"borderLeftColor":0,"textAlign":"center","borderRadius":25,"marginLeft":-40,"backgroundColor":2003199,"width":200,"marginTop":100,"fontSize":26,"height":50,"color":16777215},"join-auth":{"width":"100%","height":"100%","paddingTop":30,"color":16260863},"join-auth-image":{"width":"100%","height":"100%","paddingTop":30,"color":16260863},"join-pin":{"width":"100%","height":"100%","paddingTop":30,"color":16260863},"join-pin-cancel":{"width":200,"marginTop":80,"fontSize":50,"marginLeft":150,"height":100,"color":2003199},"block-wrapper":{"width":"50%","justifyContent":"center","alignItems":"center"},"body":{"flexDirection":"column","width":"100%","height":"80%","backgroundColor":1579034},"swiper":{"width":"100%","height":"100%"},"swiper-item":{"width":"100%","height":"100%"},"row2":{"width":"100%","height":"50%"},"grid":{"flexDirection":"row","flexWrap":"wrap","width":"100%","height":"100%"},"ic-back":{"width":36,"height":36,"marginLeft":20},"wifi-btn":{"width":38,"height":38,"marginLeft":100},"header":{"width":480,"height":84,"flexDirection":"row","alignItems":"center","backgroundColor":3816774},"card1":{"width":210,"height":174,"flexDirection":"row","alignItems":"center","backgroundColor":3816774,"boxShadow":"0px 1px 3px 0px rgba(0, 0, 0, 0.3)","borderRadius":24,"marginLeft":24},"card2":{"width":210,"height":174,"flexDirection":"row","alignItems":"center","backgroundColor":3816774,"boxShadow":"0px 1px 3px 0px rgba(0, 0, 0, 0.3)","borderRadius":24,"marginLeft":12}}} /***/ }), -/***/ "./lib/json.js!./lib/template.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.hml": -/*!*******************************************************************************************************************!*\ - !*** ./lib/json.js!./lib/template.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\dm\dm.hml ***! - \*******************************************************************************************************************/ +/***/ "./lib/json.js!./lib/template.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.hml": +/*!***********************************************************************************************************************************!*\ + !*** ./lib/json.js!./lib/template.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\dm\dm.hml ***! + \***********************************************************************************************************************************/ /***/ (function(module) { -module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('image', {'attrs' : {'src' : "common/ic_back.png"},'staticClass' : ["icBack"],'onBubbleEvents' : {'click' : _vm.back}} ),_c('text', {'attrs' : {'value' : "设备认证"},'staticClass' : ["newTitle"]} ),_c('image', {'attrs' : {'src' : "common/icon_wifi_on.png"},'staticClass' : ["wifiBtn"]} )] ),_c('div', {'staticClass' : ["body"]} , [_i((function () {return _vm.status=='start'}),function(){return _c('div', {'staticClass' : ["main-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('div', {'staticClass' : ["button-wrap1"]} , [_c('image', {'attrs' : {'src' : "common/icon_faxian.png"},'onBubbleEvents' : {'click' : _vm. startDevice},'staticClass' : ["Card1"]} ),_c('image', {'attrs' : {'src' : "common/icon_faqi.png"},'onBubbleEvents' : {'click' : _vm.AuthenticateDevice},'staticClass' : ["Card2"]} )] ),_c('div', {'staticClass' : ["button-wrap2"]} , [_c('image', {'attrs' : {'src' : "common/icon_yunxu.png"},'onBubbleEvents' : {'click' : _vm.joinAuthOk},'staticClass' : ["Card1"]} ),_c('image', {'attrs' : {'src' : "common/icon_shuru.png"},'onBubbleEvents' : {'click' : _vm.MymainInputPin},'staticClass' : ["Card2"]} )] )] )] )}),_i((function () {return _vm.status=='main-pin'}),function(){return _c('div', {'staticClass' : ["main-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "PIN码连接"},'staticClass' : ["title"]} ),_c('text', {'attrs' : {'value' : "请输入平板上显示的PIN码"},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["pin-numb"]} , [_c('text', {'attrs' : {'value' : function () {return _vm.pin[0]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[1]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[2]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[3]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[4]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[5]}},'staticClass' : ["pin-numb-item"]} )] ),_c('div', {'staticClass' : ["pin-numb-line"]} ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "1"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(1,evt)}}} ),_c('text', {'attrs' : {'value' : "2"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(2,evt)}}} ),_c('text', {'attrs' : {'value' : "3"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(3,evt)}}} ),_c('text', {'attrs' : {'value' : "4"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(4,evt)}}} )] ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "5"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(5,evt)}}} ),_c('text', {'attrs' : {'value' : "6"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(6,evt)}}} ),_c('text', {'attrs' : {'value' : "7"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(7,evt)}}} ),_c('text', {'attrs' : {'value' : "8"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(8,evt)}}} )] ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "9"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(9,evt)}}} ),_c('text', {'attrs' : {'value' : "0"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(0,evt)}}} ),_c('text', {'attrs' : {'value' : "删除"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : _vm.mainInputPinBack}} ),_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : _vm.mainInputPinCancel}} )] )] )] )}),_i((function () {return _vm.status=='join-authorize'}),function(){return _c('div', {'staticClass' : ["join-authorize"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('22%E6%98%AF%E5%90%A6%E5%85%81%E8%AE%B8') + (_vm.statusInfo.deviceName) + decodeURI('%E8%BF%9E%E6%8E%A5%E6%9C%AC%E6%9C%BA')}},'staticClass' : ["join-title"]} ),_c('text', {'attrs' : {'value' : "用于资源访问"},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthorizeCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthorizeOk}} )] )] )] )}),_i((function () {return _vm.status=='join-auth'}),function(){return _c('div', {'staticClass' : ["join-auth"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('11%E6%98%AF%E5%90%A6%E5%85%81%E8%AE%B8') + (_vm.statusInfo.appName)}},'staticClass' : ["join-auth-title"]} ),_c('text', {'attrs' : {'value' : "是否允许打开apply auth?"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return decodeURI('%E6%9D%A5%E8%87%AA') + (_vm.statusInfo.deviceName)}},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthOk}} )] )] )] )}),_i((function () {return _vm.status=='join-auth-image'}),function(){return _c('div', {'staticClass' : ["join-auth-image"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('image', {'attrs' : {'src' : function () {return _vm.statusInfo.appIcon}}} ),_c('text', {'attrs' : {'value' : function () {return _vm.statusInfo.appName}},'staticClass' : ["join-auth-title"]} ),_c('text', {'attrs' : {'value' : "是否允许打开apply auth?"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return decodeURI('%E6%9D%A5%E8%87%AA') + (_vm.statusInfo.deviceName)}},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthImageCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthImageOk}} )] )] )] )}),_i((function () {return _vm.status=='join-pin'}),function(){return _c('div', {'staticClass' : ["join-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "PIN码连接"},'staticClass' : ["title"]} ),_c('text', {'attrs' : {'value' : "请在主控端输入连接码进行验证"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.StatInfo.pinCode.split('').join(' ')}},'staticClass' : ["title"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["joinPinCancel"],'onBubbleEvents' : {'click' : _vm.joinPinCancel}} )] )] )] )}),_i((function () {return _vm.choiceDev=='DeviceType'}),function(){return _c('div', {'staticClass' : ["join-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "选择设备"},'staticClass' : ["dialog-title"]} ),_c('text', {'attrs' : {'value' : "本机"},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : _vm.btnClick}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID1}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : _vm.InAuthentication}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID2}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : function (evt) {_vm.btnClick(2,evt)}}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID2}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : function (evt) {_vm.btnClick(3,evt)}}} ),_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["dialog-button"],'onBubbleEvents' : {'click' : _vm.btnClick}} )] )] )})] )] ) } +module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('image', {'attrs' : {'src' : "common/ic_back.png"},'staticClass' : ["ic-back"],'onBubbleEvents' : {'click' : _vm.back}} ),_c('text', {'attrs' : {'value' : "设备认证"},'onBubbleEvents' : {'click' : _vm.back},'staticClass' : ["new-title"]} ),_c('image', {'attrs' : {'src' : "common/icon_wifi_on.png"},'staticClass' : ["wifi-btn"]} )] ),_c('div', {'staticClass' : ["body"]} , [_i((function () {return _vm.status=='start'}),function(){return _c('div', {'staticClass' : ["main-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('div', {'staticClass' : ["button-wrap1"]} , [_c('image', {'attrs' : {'src' : "common/icon_faxian.png"},'onBubbleEvents' : {'click' : _vm. startDevice},'staticClass' : ["card1"]} ),_c('image', {'attrs' : {'src' : "common/icon_faqi.png"},'onBubbleEvents' : {'click' : _vm.AuthenticateDevice},'staticClass' : ["card2"]} )] ),_c('div', {'staticClass' : ["button-wrap2"]} , [_c('image', {'attrs' : {'src' : "common/icon_yunxu.png"},'onBubbleEvents' : {'click' : _vm.joinAuthOk},'staticClass' : ["card1"]} ),_c('image', {'attrs' : {'src' : "common/icon_shuru.png"},'onBubbleEvents' : {'click' : _vm.MymainInputPin},'staticClass' : ["card2"]} )] )] )] )}),_i((function () {return _vm.status=='main-pin'}),function(){return _c('div', {'staticClass' : ["main-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "PIN码连接"},'staticClass' : ["title"]} ),_c('text', {'attrs' : {'value' : "请输入平板上显示的PIN码"},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["pin-numb"]} , [_c('text', {'attrs' : {'value' : function () {return _vm.pin[0]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[1]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[2]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[3]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[4]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[5]}},'staticClass' : ["pin-numb-item"]} )] ),_c('div', {'staticClass' : ["pin-numb-line"]} ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "1"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(1,evt)}}} ),_c('text', {'attrs' : {'value' : "2"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(2,evt)}}} ),_c('text', {'attrs' : {'value' : "3"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(3,evt)}}} ),_c('text', {'attrs' : {'value' : "4"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(4,evt)}}} )] ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "5"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(5,evt)}}} ),_c('text', {'attrs' : {'value' : "6"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(6,evt)}}} ),_c('text', {'attrs' : {'value' : "7"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(7,evt)}}} ),_c('text', {'attrs' : {'value' : "8"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(8,evt)}}} )] ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "9"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(9,evt)}}} ),_c('text', {'attrs' : {'value' : "0"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(0,evt)}}} ),_c('text', {'attrs' : {'value' : "删除"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : _vm.mainInputPinBack}} ),_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : _vm.mainInputPinCancel}} )] )] )] )}),_i((function () {return _vm.status=='join-authorize'}),function(){return _c('div', {'staticClass' : ["join-authorize"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('22%E6%98%AF%E5%90%A6%E5%85%81%E8%AE%B8') + (_vm.statusInfo.deviceName) + decodeURI('%E8%BF%9E%E6%8E%A5%E6%9C%AC%E6%9C%BA')}},'staticClass' : ["join-title"]} ),_c('text', {'attrs' : {'value' : "用于资源访问"},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthorizeCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthorizeOk}} )] )] )] )}),_i((function () {return _vm.status=='join-auth'}),function(){return _c('div', {'staticClass' : ["join-auth"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('11%E6%98%AF%E5%90%A6%E5%85%81%E8%AE%B8') + (_vm.statusInfo.appName)}},'staticClass' : ["join-auth-title"]} ),_c('text', {'attrs' : {'value' : "是否允许打开apply auth?"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return decodeURI('%E6%9D%A5%E8%87%AA') + (_vm.statusInfo.deviceName)}},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthOk}} )] )] )] )}),_i((function () {return _vm.status=='join-auth-image'}),function(){return _c('div', {'staticClass' : ["join-auth-image"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('image', {'attrs' : {'src' : function () {return _vm.statusInfo.appIcon}}} ),_c('text', {'attrs' : {'value' : function () {return _vm.statusInfo.appName}},'staticClass' : ["join-auth-title"]} ),_c('text', {'attrs' : {'value' : "是否允许打开apply auth?"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return decodeURI('%E6%9D%A5%E8%87%AA') + (_vm.statusInfo.deviceName)}},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthImageCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthImageOk}} )] )] )] )}),_i((function () {return _vm.status=='join-pin'}),function(){return _c('div', {'staticClass' : ["join-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "PIN码连接"},'staticClass' : ["title"]} ),_c('text', {'attrs' : {'value' : "请在主控端输入连接码进行验证"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.StatInfo.pinCode.split('').join(' ')}},'staticClass' : ["title"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["join-pin-cancel"],'onBubbleEvents' : {'click' : _vm.joinPinCancel}} )] )] )] )}),_i((function () {return _vm.choiceDev=='DeviceType'}),function(){return _c('div', {'staticClass' : ["join-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "选择设备"},'staticClass' : ["dialog-title"]} ),_c('text', {'attrs' : {'value' : "本机"},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : _vm.btnClick}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID1}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : _vm.InAuthentication}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID2}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : function (evt) {_vm.btnClick(2,evt)}}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID2}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : function (evt) {_vm.btnClick(3,evt)}}} ),_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["dialog-button"],'onBubbleEvents' : {'click' : _vm.btnClick}} )] )] )})] )] ) } /***/ }), @@ -91,10 +91,10 @@ function requireModule(moduleName) { /***/ }), -/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.js": -/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\dm\dm.js ***! - \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.js": +/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\dm\dm.js ***! + \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -358,7 +358,7 @@ function requireModule(moduleName) { /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __webpack_require__("D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.hml?entry"); +/******/ var __webpack_exports__ = __webpack_require__("D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\dm\\dm.hml?entry"); /******/ /******/ return __webpack_exports__; /******/ })() diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/dm/dm.js.map b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/dm/dm.js.map index 32fec26362aa464011dc8df6829a89cdeb20632f..172fcf47686e3389ba52d8e8f18bc5f28ab9e3c7 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/dm/dm.js.map +++ b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/dm/dm.js.map @@ -1 +1 @@ -{"version":3,"file":"./pages/dm/dm.js","mappings":";;;;;;;;;AAAA,qBAAqB,mBAAO,CAAC,yKAA8M;AAC3O,kBAAkB,mBAAO,CAAC,mKAA2M;AACrO,mBAAmB,mBAAO,CAAC,wzBAA6mB;AACxoB;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;ACVA,kBAAkB,kBAAkB,aAAa,4EAA4E,cAAc,6GAA6G,oBAAoB,cAAc,aAAa,uEAAuE,UAAU,+BAA+B,WAAW,+CAA+C,eAAe,gHAAgH,gBAAgB,gHAAgH,iBAAiB,uEAAuE,aAAa,yCAAyC,cAAc,+CAA+C,aAAa,oGAAoG,kBAAkB,sFAAsF,kBAAkB,4MAA4M,SAAS,qRAAqR,UAAU,4EAA4E,oBAAoB,wBAAwB,mBAAmB,+CAA+C,eAAe,wBAAwB,oBAAoB,2CAA2C,gBAAgB,yEAAyE,iBAAiB,wEAAwE,iBAAiB,uEAAuE,kBAAkB,sFAAsF,cAAc,6TAA6T,YAAY,8TAA8T,cAAc,gEAAgE,oBAAoB,gEAAgE,aAAa,gEAAgE,kBAAkB,uFAAuF,YAAY,+FAA+F,kBAAkB,8DAA8D,SAAS,iFAAiF,WAAW,+BAA+B,gBAAgB,+BAA+B,SAAS,8BAA8B,SAAS,uEAAuE,WAAW,uCAAuC,YAAY,wCAAwC,WAAW,8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ACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/dm/dm.hml?entry","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/dm/dm.css","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/dm/dm.hml","webpack:///c:/Users/xl/AppData/Local/Huawei/Sdk/js/3.0.0.0/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///c:/Users/xl/AppData/Local/Huawei/Sdk/js/3.0.0.0/build-tools/ace-loader/node_modules/@babel/runtime/helpers/newArrowCheck.js","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/dm/dm.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","_newArrowCheck","innerThis","boundThis","TypeError","TAG","data","status","subscribeId","pinToken","statusInfo","deviceId","deviceName","deviceTypeId","Devcinfo","pinTone","StatInfo","appName","appIcon","pinCode","pinNumb","count","pin","onShow","log","devicemanager","createDeviceManager","on","data0","data1","FondData","JSON","stringify","startDevice","console","info","Math","floor","random","startDeviceDiscovery","stopDevice","stopDeviceDiscovery","AuthenticateDevice","extraInfo","targetPkgName","appDescription","business","displayOwner","AuthParam","authType","appThumbnail","_this","authenticateDevice","success","fail","err0","err1","joinAuthOk","joinPin","initStatue","setUserOperation","mainInputPin","s","verifyAuthInfo","join","router","back","mainInputPinBack","mainInputPinCancel","replace","uri","getAuthenticationParam","pincode","packageName","MymainInputPin","m"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"./pages/dm/dm.js","mappings":";;;;;;;;;AAAA,qBAAqB,mBAAO,CAAC,0LAAoO;AACjQ,kBAAkB,mBAAO,CAAC,oLAAiO;AAC3P,mBAAmB,mBA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;AAGZC,QAAAA,OAAO,EAAE,IAHG;AAIZC,QAAAA,OAAO,EAAEb,IAAI,CAACqC,SAAL,CAAe6B,OAAf,GAAuB,EAJpB;AAKZ/D,QAAAA,QAAQ,EAAEH,IAAI,CAACqC,SAAL,CAAelC;AALb,OAAhB;AAOH;AACJ,GA/LU;AAgMXiE,EAAAA,cAhMW,4BAgMK;AACZ,SAAKnE,MAAL,GAAa,UAAb;AACH,GAlMU;AAoMXmD,EAAAA,OApMW,qBAoMD;AACN,SAAKnD,MAAL,GAAc,UAAd;AACH,GAtMU;AAuMX2D,EAAAA,IAvMW,kBAuMJ;AACHD,uBAAOI,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAE;AADM,KAAf;AAGH,GA3MU;AA4MX9C,EAAAA,GA5MW,eA4MPmD,CA5MO,EA4MJ;AACHzC,IAAAA,OAAO,CAACC,IAAR,CAAa9B,GAAG,GAAGsE,CAAnB;AACH;AA9MU;;;;;;;;;;;;UCrBf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/dm/dm.hml?entry","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/dm/dm.css","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/dm/dm.hml","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/newArrowCheck.js","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/dm/dm.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","_newArrowCheck","innerThis","boundThis","TypeError","TAG","data","status","subscribeId","pinToken","statusInfo","deviceId","deviceName","deviceTypeId","Devcinfo","pinTone","StatInfo","appName","appIcon","pinCode","pinNumb","count","pin","onShow","log","devicemanager","createDeviceManager","on","data0","data1","FondData","JSON","stringify","startDevice","console","info","Math","floor","random","startDeviceDiscovery","stopDevice","stopDeviceDiscovery","AuthenticateDevice","extraInfo","targetPkgName","appDescription","business","displayOwner","AuthParam","authType","appThumbnail","_this","authenticateDevice","success","fail","err0","err1","joinAuthOk","joinPin","initStatue","setUserOperation","mainInputPin","s","verifyAuthInfo","join","router","back","mainInputPinBack","mainInputPinCancel","replace","uri","getAuthenticationParam","pincode","packageName","MymainInputPin","m"],"sourceRoot":""} \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/index/index.js b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/index/index.js index af13b1679d75115d7b119598780835b4f09d45ce..d833db1ae77cc7c11fa3e9d8b0810fa5ed7ee36e 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/index/index.js +++ b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/index/index.js @@ -1,15 +1,15 @@ /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ "D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.hml?entry": -/*!***********************************************************************************************!*\ - !*** D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\index\index.hml?entry ***! - \***********************************************************************************************/ +/***/ "D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.hml?entry": +/*!***************************************************************************************************************!*\ + !*** D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\index\index.hml?entry ***! + \***************************************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var $app_template$ = __webpack_require__(/*! !!./lib/json.js!./lib/template.js!./index.hml */ "./lib/json.js!./lib/template.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.hml") -var $app_style$ = __webpack_require__(/*! !!./lib/json.js!./lib/style.js!./index.css */ "./lib/json.js!./lib/style.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.css") -var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./index.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.js") +var $app_template$ = __webpack_require__(/*! !!./lib/json.js!./lib/template.js!./index.hml */ "./lib/json.js!./lib/template.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.hml") +var $app_style$ = __webpack_require__(/*! !!./lib/json.js!./lib/style.js!./index.css */ "./lib/json.js!./lib/style.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.css") +var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./index.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.js") var options=$app_script$ if ($app_script$.__esModule) { @@ -21,23 +21,23 @@ module.exports=new ViewModel(options); /***/ }), -/***/ "./lib/json.js!./lib/style.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.css": -/*!**********************************************************************************************************************!*\ - !*** ./lib/json.js!./lib/style.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\index\index.css ***! - \**********************************************************************************************************************/ +/***/ "./lib/json.js!./lib/style.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.css": +/*!**************************************************************************************************************************************!*\ + !*** ./lib/json.js!./lib/style.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\index\index.css ***! + \**************************************************************************************************************************************/ /***/ (function(module) { -module.exports = {"classSelectors":{"container":{"width":"100%","height":"100%","flexDirection":"column","alignItems":"center","backgroundColor":1579034},"title":{"width":200,"fontSize":28,"textAlign":"center","color":16777215},"body":{"width":"100%","height":284,"backgroundColor":1579034},"header":{"width":"100%","height":84,"alignItems":"center","backgroundColor":3816774},"wifiBtn":{"width":38,"height":38,"marginLeft":150},"changePageBtn":{"width":38,"height":38,"marginLeft":20},"progressBtn":{"width":44,"height":44},"circularIma":{"width":214,"height":214},"windowImg":{"width":338,"height":251,"flexDirection":"row","justifyContent":"space-around","alignItems":"center"},"BottomCard":{"width":444,"height":96,"flexDirection":"row","justifyContent":"center","alignItems":"center","backgroundColor":3816774,"boxShadow":"0px 1px 3px 0px rgba(0,0,0,0.3)","borderRadius":24},"TextBody":{"width":106,"height":96,"fontSize":24,"flexDirection":"column","color":0,"alignItems":"center"},"testDis":{"marginTop":22,"width":106,"height":30,"fontSize":18,"textAlign":"center","color":16777215},"textConcentration":{"marginTop":22,"width":106,"height":45,"fontSize":25,"textAlign":"center","color":16777215},"testProgress":{"width":106,"height":22,"fontSize":15,"textAlign":"center","color":2527487},"progress":{"width":"100%","height":284,"centerX":123,"centerY":123,"radius":125,"startAngle":270,"totalAngle":180,"strokeWidth":5,"color":2527487,"backgroundColor":"#66ffffff","marginLeft":117,"marginTop":25},"bottomProgress":{"width":180,"strokeWidth":10,"color":2060799,"backgroundColor":15066614},"min-progress":{"width":246,"height":246},"disc-wrapper":{"width":214,"height":214,"borderRadius":102,"borderTopWidth":2,"borderRightWidth":2,"borderBottomWidth":2,"borderLeftWidth":2,"borderTopColor":"#4dffffff","borderRightColor":"#4dffffff","borderBottomColor":"#4dffffff","borderLeftColor":"#4dffffff","backgroundColor":3816774,"marginLeft":133,"marginTop":48,"alignItems":"center","flexDirection":"column","justifyContent":"center"}}} +module.exports = {"classSelectors":{"container":{"width":"100%","height":"100%","flexDirection":"column","alignItems":"center","backgroundColor":1579034},"title":{"width":200,"fontSize":28,"textAlign":"center","color":16777215},"body":{"width":"100%","height":284,"backgroundColor":1579034},"header":{"width":"100%","height":84,"alignItems":"center","backgroundColor":3816774},"wifi-btn":{"width":38,"height":38,"marginLeft":150},"change-page":{"width":38,"height":38,"marginLeft":20},"progress-btn":{"width":44,"height":44},"bottom-card":{"width":444,"height":96,"flexDirection":"row","justifyContent":"center","alignItems":"center","backgroundColor":3816774,"boxShadow":"0px 1px 3px 0px rgba(0,0,0,0.3)","borderRadius":24},"text-body":{"width":106,"height":96,"fontSize":24,"flexDirection":"column","color":0,"alignItems":"center"},"test-dis":{"marginTop":22,"width":106,"height":30,"fontSize":18,"textAlign":"center","color":16777215},"text-concentration":{"marginTop":22,"width":106,"height":45,"fontSize":25,"textAlign":"center","color":16777215},"test-progress":{"width":106,"height":22,"fontSize":15,"textAlign":"center","color":2527487},"progress":{"width":"100%","height":284,"centerX":123,"centerY":123,"radius":125,"startAngle":270,"totalAngle":180,"strokeWidth":5,"color":2527487,"backgroundColor":16777215,"marginLeft":117,"marginTop":25},"progress_warn":{"width":"100%","height":284,"centerX":123,"centerY":123,"radius":125,"startAngle":270,"totalAngle":180,"strokeWidth":5,"color":2527487,"backgroundColor":16711680,"marginLeft":117,"marginTop":25},"bottom-progress":{"width":180,"strokeWidth":10,"color":2060799,"backgroundColor":15066614},"min-progress":{"width":246,"height":246},"disc-wrapper":{"width":214,"height":214,"borderRadius":102,"borderTopWidth":2,"borderRightWidth":2,"borderBottomWidth":2,"borderLeftWidth":2,"borderTopColor":16777215,"borderRightColor":16777215,"borderBottomColor":16777215,"borderLeftColor":16777215,"backgroundColor":3816774,"marginLeft":133,"marginTop":48,"alignItems":"center","flexDirection":"column","justifyContent":"center"},"disc-wrapper_warn":{"width":214,"height":214,"borderRadius":102,"borderTopWidth":2,"borderRightWidth":2,"borderBottomWidth":2,"borderLeftWidth":2,"borderTopColor":16777215,"borderRightColor":16777215,"borderBottomColor":16777215,"borderLeftColor":16777215,"backgroundColor":16711680,"marginLeft":133,"marginTop":48,"alignItems":"center","flexDirection":"column","justifyContent":"center"}}} /***/ }), -/***/ "./lib/json.js!./lib/template.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.hml": -/*!*************************************************************************************************************************!*\ - !*** ./lib/json.js!./lib/template.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\index\index.hml ***! - \*************************************************************************************************************************/ +/***/ "./lib/json.js!./lib/template.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.hml": +/*!*****************************************************************************************************************************************!*\ + !*** ./lib/json.js!./lib/template.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\index\index.hml ***! + \*****************************************************************************************************************************************/ /***/ (function(module) { -module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('text', {'attrs' : {'value' : "燃气报警器"},'staticClass' : ["title"]} ),_c('image', {'attrs' : {'src' : function () {return _vm.isWifi?'/common/icon_wifi_on.png':'/common/icon_wifi_off.png'}},'staticClass' : ["wifiBtn"]} ),_c('image', {'attrs' : {'src' : "common/icon_liuzhuan.png"},'staticClass' : ["changePageBtn"],'onBubbleEvents' : {'click' : _vm.changePage}} )] ),_c('stack', {'staticClass' : ["body"]} , [_c('div', {'staticClass' : ["disc-wrapper"]} , [_c('text', {'attrs' : {'value' : function () {return (_vm.currentValue) + decodeURI('ppm')}},'staticClass' : ["textConcentration"]} ),_c('text', {'attrs' : {'value' : "燃气浓度"},'staticClass' : ["testDis"]} )] ),_c('progress', {'attrs' : {'type' : "arc",'percent' : function () {return _vm.progressPercent}},'staticClass' : ["progress"]} )] ),_c('div', {'staticClass' : ["BottomCard"]} , [_c('div', {'staticClass' : ["TextBody"]} , [_c('text', {'attrs' : {'value' : "报警阀值"},'staticClass' : ["testDis"]} ),_c('text', {'attrs' : {'value' : function () {return (_vm.humidityMax) + decodeURI('ppm')}},'staticClass' : ["testProgress"]} )] ),_c('image', {'attrs' : {'src' : "common/icon_jian_sel.png"},'staticClass' : ["progressBtn"],'onBubbleEvents' : {'click' : _vm.reduceProgress}} ),_c('progress', {'attrs' : {'type' : "horizontal",'percent' : function () {return _vm.setProgress}},'staticClass' : ["bottomProgress"]} ),_c('image', {'attrs' : {'src' : "common/icon_jia_sel.png"},'staticClass' : ["progressBtn"],'onBubbleEvents' : {'click' : _vm.addProgress}} )] )] ) } +module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('text', {'attrs' : {'value' : "燃气报警器"},'staticClass' : ["title"]} ),_c('image', {'attrs' : {'src' : function () {return _vm.isWifi?'/common/icon_wifi_on.png':'/common/icon_wifi_off.png'}},'staticClass' : ["wifi-btn"]} ),_c('image', {'attrs' : {'src' : "common/icon_liuzhuan.png"},'staticClass' : ["change-page"],'onBubbleEvents' : {'click' : _vm.changePage}} )] ),_c('stack', {'attrs' : {'show' : function () {return !_vm.isChange}},'staticClass' : ["body"]} , [_c('div', {'staticClass' : ["disc-wrapper"]} , [_c('text', {'attrs' : {'value' : function () {return (_vm.currentValue) + decodeURI('ppm')}},'staticClass' : ["text-concentration"]} ),_c('text', {'attrs' : {'value' : "燃气浓度"},'staticClass' : ["test-dis"]} )] ),_c('progress', {'attrs' : {'type' : "arc",'percent' : function () {return _vm.progressPercent}},'staticClass' : ["progress"]} )] ),_c('stack', {'attrs' : {'show' : function () {return _vm.isChange}},'staticClass' : ["body"]} , [_c('div', {'staticClass' : ["disc-wrapper_warn"]} , [_c('text', {'attrs' : {'value' : function () {return (_vm.currentValue) + decodeURI('ppm')}},'staticClass' : ["text-concentration"]} ),_c('text', {'attrs' : {'value' : "燃气告警!"},'staticClass' : ["test-dis"]} )] ),_c('progress', {'attrs' : {'type' : "arc",'percent' : function () {return _vm.progressPercent}},'staticClass' : ["progress_warn"]} )] ),_c('div', {'staticClass' : ["bottom-card"]} , [_c('div', {'staticClass' : ["text-body"]} , [_c('text', {'attrs' : {'value' : "报警阀值"},'staticClass' : ["test-dis"]} ),_c('text', {'attrs' : {'value' : function () {return (_vm.PresetValue) + decodeURI('ppm')}},'staticClass' : ["test-progress"]} )] ),_c('image', {'attrs' : {'src' : "common/icon_jian_sel.png"},'staticClass' : ["progress-btn"],'onBubbleEvents' : {'click' : _vm.reduceProgress}} ),_c('progress', {'attrs' : {'type' : "horizontal",'percent' : function () {return _vm.setProgress}},'staticClass' : ["bottom-progress"]} ),_c('image', {'attrs' : {'src' : "common/icon_jia_sel.png"},'staticClass' : ["progress-btn"],'onBubbleEvents' : {'click' : _vm.addProgress}} )] )] ) } /***/ }), @@ -91,10 +91,10 @@ function requireModule(moduleName) { /***/ }), -/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.js": -/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\index\index.js ***! - \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.js": +/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\index\index.js ***! + \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -116,7 +116,7 @@ var _system2 = _interopRequireDefault(requireModule("@system.CommunicationKit")) var _default = { data: { isPowerOn: true, - humidityMax: 80, + PresetValue: 80, progressPercent: 0, setProgress: 0, currentValue: 0, @@ -127,6 +127,7 @@ var _default = { onInit: function onInit() { var _this = this; + this.setProgress = this.PresetValue / 300 * 100; setTimeout(function () { var _this2 = this; @@ -134,30 +135,30 @@ var _default = { setInterval(function () { (0, _newArrowCheck2["default"])(this, _this2); return this.GetKey(); - }.bind(this), 500); + }.bind(this), 2000); }.bind(this), 3000); }, addProgress: function addProgress() { - if (this.humidityMax >= 300) { - this.humidityMax = 300; + if (this.PresetValue >= 300) { + this.PresetValue = 300; } else { - this.humidityMax = parseInt(this.humidityMax) + 20; + this.PresetValue = parseInt(this.PresetValue) + 20; } this.isChange = false; - this.setProgress = this.humidityMax / 300 * 100; - this.SetKey('GasThreshold', this.humidityMax); + this.setProgress = this.PresetValue / 300 * 100; + this.SetKey('GasThreshold', this.PresetValue); }, reduceProgress: function reduceProgress() { - if (this.humidityMax <= 0) { - this.humidityMax = 0; + if (this.PresetValue <= 0) { + this.PresetValue = 0; } else { - this.humidityMax = parseInt(this.humidityMax) - 20; + this.PresetValue = parseInt(this.PresetValue) - 20; } this.isChange = false; - this.setProgress = this.humidityMax / 300 * 100; - this.SetKey('GasThreshold', this.humidityMax); + this.setProgress = this.PresetValue / 300 * 100; + this.SetKey('GasThreshold', this.PresetValue); }, SetKey: function SetKey(key1, value1) { _system2["default"].set({ @@ -184,12 +185,8 @@ var _default = { this.currentValue = res.CurrentGasCONC; this.progressPercent = this.currentValue / 300 * 100; - if (this.currentValue > this.humidityMax && !this.isChange) { + if (this.currentValue > this.PresetValue && !this.isChange) { this.isChange = true; - - _system["default"].replace({ - uri: "pages/warn/warn" - }); } } @@ -255,7 +252,7 @@ function requireModule(moduleName) { /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __webpack_require__("D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.hml?entry"); +/******/ var __webpack_exports__ = __webpack_require__("D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\index\\index.hml?entry"); /******/ /******/ return __webpack_exports__; /******/ })() diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/index/index.js.map b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/index/index.js.map index 59ee70ef30ad120c7c9028d7d580aeca74cda112..21eae1bbc239e3e3f1dc4eba26f2ca242abc967c 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/index/index.js.map +++ b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/index/index.js.map @@ -1 +1 @@ -{"version":3,"file":"./pages/index/index.js","mappings":";;;;;;;;;AAA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,WAAxB,IAAuC,CAAC,KAAKI,QAAhD,EAAyD;AACrD,iBAAKA,QAAL,GAAgB,IAAhB;;AACA2B,+BAAOC,OAAP,CAAe;AACXC,cAAAA,GAAG,EAAC;AADO,aAAf;AAGH;AAEJ;;AAED,YAAIN,GAAG,CAACO,IAAR,EAAc;AACV,cAAGP,GAAG,CAACO,IAAJ,IAAY,WAAf,EAA4B;AACxB,iBAAK5B,MAAL,GAAc,IAAd;AACH,WAFD,MAEO;AACH,iBAAKA,MAAL,GAAc,KAAd;AACH;AACJ;AAEJ,OAvBM,WAFH;AA0BJkB,MAAAA,IAAI,EAAE,cAAS1B,IAAT,EAAe2B,IAAf,EAAqB;AACvBH,QAAAA,OAAO,CAACC,GAAR,CAAY,kCAAkCE,IAAlC,GAAyC,UAAzC,GAAsD3B,IAAlE;AACH,OA5BG;AA6BJqC,MAAAA,QAAQ,EAAE,oBAAW;AACjBb,QAAAA,OAAO,CAACC,GAAR,CAAY,eAAZ;AACH;AA/BG,KAAR;AAiCH,GAzFU;AA4FXa,EAAAA,UA5FW,sBA4FAC,SA5FA,EA4FW;AAClBN,uBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAC;AADO,KAAf;AAGH;AAhGU;;;;;;;;;;;;UCHf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/index/index.hml?entry","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/index/index.css","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/index/index.hml","webpack:///c:/Users/xl/AppData/Local/Huawei/Sdk/js/3.0.0.0/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///c:/Users/xl/AppData/Local/Huawei/Sdk/js/3.0.0.0/build-tools/ace-loader/node_modules/@babel/runtime/helpers/newArrowCheck.js","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/index/index.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","_newArrowCheck","innerThis","boundThis","TypeError","data","isPowerOn","humidityMax","progressPercent","setProgress","currentValue","isChange","index","isWifi","onInit","setTimeout","setInterval","GetKey","addProgress","parseInt","SetKey","reduceProgress","key1","value1","com","set","key","value","success","console","log","fail","code","get","res","JSON","parse","CurrentGasCONC","router","replace","uri","wifi","complete","changePage","operation"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"./pages/index/index.js","mappings":";;;;;;;;;AAAA,qBAAqB,mBAAO,CAAC,mMAAuO;AACpQ,kBAAkB,mBAAO,CAAC,6LAAoO;AAC9P,mBAAmB,mBAAO,CAAC,83BAAuqB;AAClsB;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;ACVA,kBAAkB,kBAAkB,aAAa,wGAAwG,UAAU,gEAAgE,SAAS,sDAAsD,WAAW,2EAA2E,aAAa,wCAAwC,gBAAgB,uCAAuC,iBAAiB,uBAAuB,gBAAgB,wLAAwL,cAAc,+FAA+F,aAAa,2FAA2F,uBAAuB,2FAA2F,kBAAkB,2EAA2E,aAAa,kMAAkM,kBAAkB,kMAAkM,oBAAoB,wEAAwE,iBAAiB,yBAAyB,iBAAiB,+WAA+W,sBAAsB;;;;;;;;;;ACAvjE,iCAAiC,sBAAsB,kBAAkB,+BAA+B,cAAc,4BAA4B,eAAe,WAAW,kBAAkB,4BAA4B,eAAe,WAAW,qBAAqB,0EAA0E,+BAA+B,eAAe,WAAW,mCAAmC,qDAAqD,2BAA2B,kBAAkB,WAAW,sBAAsB,sBAAsB,2BAA2B,cAAc,kCAAkC,eAAe,WAAW,uBAAuB,8CAA8C,yCAAyC,cAAc,WAAW,iBAAiB,+BAA+B,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AAW;AACjBV,QAAAA,OAAO,CAACC,GAAR,CAAY,eAAZ;AACH;AA/BG,KAAR;AAiCH,GA1FU;AA6FXU,EAAAA,UA7FW,sBA6FAC,SA7FA,EA6FW;AAClBC,uBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAC;AADO,KAAf;AAGH;AAjGU;;;;;;;;;;;;UCpBf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/index/index.hml?entry","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/index/index.css","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/index/index.hml","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/newArrowCheck.js","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/index/index.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","_newArrowCheck","innerThis","boundThis","TypeError","data","isPowerOn","PresetValue","progressPercent","setProgress","currentValue","isChange","index","isWifi","onInit","setTimeout","setInterval","GetKey","addProgress","parseInt","SetKey","reduceProgress","key1","value1","com","set","key","value","success","console","log","fail","code","get","res","JSON","parse","CurrentGasCONC","wifi","complete","changePage","operation","router","replace","uri"],"sourceRoot":""} \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/warn/warn.js b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/warn/warn.js index 11e97e5e3ea53f9189c95d0123caf2cc5355663a..1074a34a1511bf5b02bc324e282470bb347948bc 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/warn/warn.js +++ b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/warn/warn.js @@ -1,15 +1,15 @@ /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ "D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.hml?entry": -/*!*********************************************************************************************!*\ - !*** D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\warn\warn.hml?entry ***! - \*********************************************************************************************/ +/***/ "D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.hml?entry": +/*!*************************************************************************************************************!*\ + !*** D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\warn\warn.hml?entry ***! + \*************************************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var $app_template$ = __webpack_require__(/*! !!./lib/json.js!./lib/template.js!./warn.hml */ "./lib/json.js!./lib/template.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.hml") -var $app_style$ = __webpack_require__(/*! !!./lib/json.js!./lib/style.js!./warn.css */ "./lib/json.js!./lib/style.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.css") -var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./warn.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.js") +var $app_template$ = __webpack_require__(/*! !!./lib/json.js!./lib/template.js!./warn.hml */ "./lib/json.js!./lib/template.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.hml") +var $app_style$ = __webpack_require__(/*! !!./lib/json.js!./lib/style.js!./warn.css */ "./lib/json.js!./lib/style.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.css") +var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./warn.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.js") var options=$app_script$ if ($app_script$.__esModule) { @@ -21,23 +21,23 @@ module.exports=new ViewModel(options); /***/ }), -/***/ "./lib/json.js!./lib/style.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.css": -/*!********************************************************************************************************************!*\ - !*** ./lib/json.js!./lib/style.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\warn\warn.css ***! - \********************************************************************************************************************/ +/***/ "./lib/json.js!./lib/style.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.css": +/*!************************************************************************************************************************************!*\ + !*** ./lib/json.js!./lib/style.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\warn\warn.css ***! + \************************************************************************************************************************************/ /***/ (function(module) { -module.exports = {"classSelectors":{"container":{"width":"100%","height":"100%","flexDirection":"column"},"title":{"width":200,"fontSize":26,"height":50,"color":16777215,"marginLeft":20},"body":{"width":"100%","height":"100%","flexDirection":"column","alignItems":"center","backgroundColor":1579034},"header":{"width":480,"height":84,"flexDirection":"row","alignItems":"center","backgroundColor":3816774},"wifiBtn":{"width":38,"height":38,"marginLeft":100},"changePageBtn":{"width":38,"height":38,"marginLeft":20},"warnImg":{"width":250,"height":250,"justifyContent":"space-around","alignItems":"center","marginTop":20,"marginBottom":38},"icBack":{"width":36,"height":36,"marginLeft":20},"warnText":{"width":200,"height":56,"fontSize":40,"color":15220774,"textAlign":"center"}}} +module.exports = {"classSelectors":{"container":{"width":"100%","height":"100%","flexDirection":"column"},"title":{"width":200,"fontSize":26,"height":50,"color":16777215,"marginLeft":20},"body":{"width":"100%","height":"100%","flexDirection":"column","alignItems":"center","backgroundColor":1579034},"header":{"width":480,"height":84,"flexDirection":"row","alignItems":"center","backgroundColor":3816774},"wifi-btn":{"width":38,"height":38,"marginLeft":100},"change-page":{"width":38,"height":38,"marginLeft":20},"warn-img":{"width":250,"height":250,"justifyContent":"space-around","alignItems":"center","marginTop":20,"marginBottom":38},"ic-back":{"width":36,"height":36,"marginLeft":20},"warn-text":{"width":200,"height":56,"fontSize":40,"color":15220774,"textAlign":"center"}}} /***/ }), -/***/ "./lib/json.js!./lib/template.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.hml": -/*!***********************************************************************************************************************!*\ - !*** ./lib/json.js!./lib/template.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\warn\warn.hml ***! - \***********************************************************************************************************************/ +/***/ "./lib/json.js!./lib/template.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.hml": +/*!***************************************************************************************************************************************!*\ + !*** ./lib/json.js!./lib/template.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\warn\warn.hml ***! + \***************************************************************************************************************************************/ /***/ (function(module) { -module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('image', {'attrs' : {'src' : "common/ic_back.png"},'staticClass' : ["icBack"],'onBubbleEvents' : {'click' : _vm.back}} ),_c('text', {'attrs' : {'value' : "燃气报警器"},'staticClass' : ["title"]} ),_c('image', {'attrs' : {'src' : "common/icon_wifi_on.png"},'staticClass' : ["wifiBtn"]} ),_c('image', {'attrs' : {'src' : "common/icon_liuzhuan.png"},'staticClass' : ["changePageBtn"],'onBubbleEvents' : {'click' : _vm.changePage}} )] ),_c('div', {'staticClass' : ["body"]} , [_c('image', {'attrs' : {'src' : "common/icon_jingbao.png"},'staticClass' : ["warnImg"]} ),_c('text', {'attrs' : {'value' : "警报"},'staticClass' : ["warnText"]} )] )] ) } +module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('image', {'attrs' : {'src' : "common/ic_back.png"},'staticClass' : ["ic-back"],'onBubbleEvents' : {'click' : _vm.back}} ),_c('text', {'attrs' : {'value' : "燃气报警器"},'onBubbleEvents' : {'click' : _vm.back},'staticClass' : ["title"]} ),_c('image', {'attrs' : {'src' : "common/icon_wifi_on.png"},'staticClass' : ["wifi-btn"]} ),_c('image', {'attrs' : {'src' : "common/icon_liuzhuan.png"},'staticClass' : ["change-page"],'onBubbleEvents' : {'click' : _vm.changePage}} )] ),_c('div', {'staticClass' : ["body"]} , [_c('image', {'attrs' : {'src' : "common/icon_jingbao.png"},'staticClass' : ["warn-img"]} ),_c('text', {'attrs' : {'value' : "警报"},'staticClass' : ["warn-text"]} )] )] ) } /***/ }), @@ -66,10 +66,10 @@ function requireModule(moduleName) { /***/ }), -/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\xl\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.js": -/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\xl\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\HarmonyWorkSpace\SmokeDetector\entry\src\main\js\default\pages\warn\warn.js ***! - \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\Administrator\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.1\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.js": +/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.1\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!D:\DevEcoStudioProjects\OpenHarmony\SmokeDetector\entry\src\main\js\default\pages\warn\warn.js ***! + \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -139,7 +139,7 @@ function requireModule(moduleName) { /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __webpack_require__("D:\\HarmonyWorkSpace\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.hml?entry"); +/******/ var __webpack_exports__ = __webpack_require__("D:\\DevEcoStudioProjects\\OpenHarmony\\SmokeDetector\\entry\\src\\main\\js\\default\\pages\\warn\\warn.hml?entry"); /******/ /******/ return __webpack_exports__; /******/ })() diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/warn/warn.js.map b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/warn/warn.js.map index dd97560e88e82d4662156376c6f9f69fb353eb9f..b1eb0e11135ea4f2c801ec617740db19178fdd96 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/warn/warn.js.map +++ b/dev/team_x/smart_safe_kitchen-gas_detection/fs/data/data/js/pages/warn/warn.js.map @@ -1 +1 @@ -{"version":3,"file":"./pages/warn/warn.js","mappings":";;;;;;;;;AAAA,qBAAqB,mBAAO,CAAC,+KAAgN;AAC7O,kBAAkB,mBAAO,CAAC,yKAA6M;AACvO,mBAAmB,mBAAO,CAAC,8zBAA+mB;AAC1oB;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;ACVA,kBAAkB,kBAAkB,aAAa,wDAAwD,UAAU,uEAAuE,SAAS,wGAAwG,WAAW,8FAA8F,YAAY,wCAAwC,kBAAkB,uCAAuC,YAAY,gHAAgH,WAAW,uCAAuC,aAAa;;;;;;;;;;ACA5rB,iCAAiC,sBAAsB,kBAAkB,+BAA+B,cAAc,4BAA4B,gBAAgB,WAAW,6BAA6B,gDAAgD,qBAAqB,cAAc,WAAW,kBAAkB,4BAA4B,eAAe,WAAW,kCAAkC,8BAA8B,eAAe,WAAW,mCAAmC,uDAAuD,2BAA2B,gBAAgB,0BAA0B,gBAAgB,WAAW,kCAAkC,8BAA8B,cAAc,WAAW,eAAe,+BAA+B;;;;;;;;;;;;;ACA3wB,SAASA,sBAAT,CAAgCC,GAAhC,EAAqC;AACnC,SAAOA,GAAG,IAAIA,GAAG,CAACC,UAAX,GAAwBD,GAAxB,GAA8B;AACnC,eAAWA;AADwB,GAArC;AAGD;;AAEDE,MAAM,CAACC,OAAP,GAAiBJ,sBAAjB;AACAG,sBAAA,GAA4BA,MAAM,CAACC,OAAnC,EAA4CD,yBAAA,GAA4B,IAAxE;;;;;;;;;;;;;;;;;;;;;;;;;ACPA;;eAEe;AACXE,EAAAA,IAAI,EAAE;AACFC,IAAAA,KAAK,EAAE;AADL,GADK;AAKXC,EAAAA,IALW,kBAKJ;AACHC,uBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAE;AADM,KAAf;AAGH,GATU;AAUXC,EAAAA,UAVW,sBAUAC,SAVA,EAUW;AAClBJ,uBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAC;AADO,KAAf;AAGH;AAdU;;;;;;;;;;;;UCFf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/warn/warn.hml?entry","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/warn/warn.css","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/warn/warn.hml","webpack:///c:/Users/xl/AppData/Local/Huawei/Sdk/js/3.0.0.0/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///d:/HarmonyWorkSpace/SmokeDetector/entry/src/main/js/default/pages/warn/warn.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","data","title","back","router","replace","uri","changePage","operation"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"./pages/warn/warn.js","mappings":";;;;;;;;;AAAA,qBAAqB,mBAAO,CAAC,gMAAsO;AACnQ,kBAAkB,mBAAO,CAAC,0LAAmO;AAC7P,mBAAmB,mBAAO,CAAC,23BAAsqB;AACjsB;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;ACVA,kBAAkB,kBAAkB,aAAa,wDAAwD,UAAU,uEAAuE,SAAS,wGAAwG,WAAW,8FAA8F,aAAa,wCAAwC,gBAAgB,uCAAuC,aAAa,gHAAgH,YAAY,uCAAuC,cAAc;;;;;;;;;;ACA9rB,iCAAiC,sBAAsB,kBAAkB,+BAA+B,cAAc,4BAA4B,gBAAgB,WAAW,6BAA6B,iDAAiD,qBAAqB,cAAc,WAAW,kBAAkB,qBAAqB,mBAAmB,4BAA4B,eAAe,WAAW,kCAAkC,+BAA+B,eAAe,WAAW,mCAAmC,qDAAqD,2BAA2B,gBAAgB,0BAA0B,gBAAgB,WAAW,kCAAkC,+BAA+B,cAAc,WAAW,eAAe,gCAAgC;;;;;;;;;;;;;ACArzB,SAASA,sBAAT,CAAgCC,GAAhC,EAAqC;AACnC,SAAOA,GAAG,IAAIA,GAAG,CAACC,UAAX,GAAwBD,GAAxB,GAA8B;AACnC,eAAWA;AADwB,GAArC;AAGD;;AAEDE,MAAM,CAACC,OAAP,GAAiBJ,sBAAjB;AACAG,sBAAA,GAA4BA,MAAM,CAACC,OAAnC,EAA4CD,yBAAA,GAA4B,IAAxE;;;;;;;;;;;;;;;;;;;;;;;;;ACSA;;eAEe;AACXE,EAAAA,IAAI,EAAE;AACFC,IAAAA,KAAK,EAAE;AADL,GADK;AAKXC,EAAAA,IALW,kBAKJ;AACHC,uBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAE;AADM,KAAf;AAGH,GATU;AAUXC,EAAAA,UAVW,sBAUAC,SAVA,EAUW;AAClBJ,uBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAC;AADO,KAAf;AAGH;AAdU;;;;;;;;;;;;UClBf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/warn/warn.hml?entry","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/warn/warn.css","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/warn/warn.hml","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///d:/DevEcoStudioProjects/OpenHarmony/SmokeDetector/entry/src/main/js/default/pages/warn/warn.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","data","title","back","router","replace","uri","changePage","operation"],"sourceRoot":""} \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/softbus_demo_gas_detection/gas_detection/gas_detection.c b/dev/team_x/smart_safe_kitchen-gas_detection/softbus_demo_gas_detection/gas_detection/gas_detection.c index 5eb60cebb13dde66228de5fead67c7182bc25367..7932689f8f78cc6dad1d21f5516fd55e92fe229f 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/softbus_demo_gas_detection/gas_detection/gas_detection.c +++ b/dev/team_x/smart_safe_kitchen-gas_detection/softbus_demo_gas_detection/gas_detection/gas_detection.c @@ -32,8 +32,8 @@ #include "math.h" #define max_len 128 -#define CONFIG_SENSOR_SAMPLE_CYCLE 10000 -#define CONFIG_GAS_MEASURE_DELAY 500 +#define CONFIG_SENSOR_SAMPLE_CYCLE 4000 +#define CONFIG_GAS_MEASURE_DELAY 100 #define CN_LAMP_EVENT_ALL (CN_SWITCH_EVENT_SETSTATUS) #define CN_SWITCH_EVENT_SETSTATUS (1<<0) #define CONFIG_LOCAL_TIMEZONE 8 @@ -88,7 +88,12 @@ float GetGasMeasureVoltage(void) } osDelay(Time2Tick(CONFIG_GAS_MEASURE_DELAY)); hal_gpadc_get_volt(HAL_GPADC_CHAN_0, &voltageTemp); - + + if (voltageTemp == 0) { + voltageTemp = g_voltData; + } else { + g_voltData = voltageTemp; + } printf("%s voltageTemp :%d\n", __func__, voltageTemp); return (float)voltageTemp * 1.8 * 4 / 4096.0; @@ -213,7 +218,7 @@ static void MainTaskEntry(void *arg) if (g_appController.CurrentGasCONC > g_appController.GasThreshold) { remoteFlag = 1; RpcClientTest(&remoteFlag); - } else { + } else if ((remoteFlag == 1) && (g_appController.CurrentGasCONC <= g_appController.GasThreshold)) { remoteFlag = 0; RpcClientTest(&remoteFlag); } @@ -235,4 +240,4 @@ void StartMainThread(void) if (osThreadNew((osThreadFunc_t)MainTaskEntry, NULL, &attr) == NULL) { printf("Failed to create gas_detection_main thread\r\n"); } -} \ No newline at end of file +} diff --git a/dev/team_x/smart_safe_kitchen-gas_detection/softbus_demo_gas_detection/wifi/wifi_sta.c b/dev/team_x/smart_safe_kitchen-gas_detection/softbus_demo_gas_detection/wifi/wifi_sta.c index 17b13c9032472ddc1c0485afb26826ecff28dc6d..1c901e18d13c5a4aa797e5f71599a0ed025ce6bd 100755 --- a/dev/team_x/smart_safe_kitchen-gas_detection/softbus_demo_gas_detection/wifi/wifi_sta.c +++ b/dev/team_x/smart_safe_kitchen-gas_detection/softbus_demo_gas_detection/wifi/wifi_sta.c @@ -22,7 +22,7 @@ #include "wifi_error_code.h" #include "wifi_sta.h" -#define SELECT_WIFI_SSID "test_wifi" +#define SELECT_WIFI_SSID "test_wifi123" #define SELECT_WIFI_PASSWORD "12345678" #define SELECT_WIFI_SECURITYTYPE WIFI_SEC_TYPE_PSK diff --git a/dev/team_x/smart_safe_kitchen-smart_window/config.json b/dev/team_x/smart_safe_kitchen-smart_window/config.json index 8c959d744f69a6aab96c3c69db344a7f6f1bc30e..22926784c525058b4df5de9c7b0798218759ae8a 100755 --- a/dev/team_x/smart_safe_kitchen-smart_window/config.json +++ b/dev/team_x/smart_safe_kitchen-smart_window/config.json @@ -111,21 +111,9 @@ "components": [ { "component": "hilog_lite", - "optional": "true" - } - ] - }, - { - "subsystem": "multimedia", - "components": [ - { - "component": "histreamer", - "features": [ - "multimedia_histreamer_enable_plugin_hdi_adapter = true", - "multimedia_histreamer_enable_plugin_minimp3_adapter = true", - "multimedia_histreamer_enable_plugin_ffmpeg_adapter = false", - "config_ohos_multimedia_histreamer_stack_size = 65536", - "config_ohos_multimedia_media_lite_player_path = \"//vendor/bestechnic/mini_distributed_music_player/distributed_player_lite\"" + "optional": "true", + "features": [ + "ohos_hiviewdfx_hiview_lite_hiview_service_stack_size = 61440" ] } ] diff --git a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/BUILD.gn b/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/BUILD.gn deleted file mode 100755 index 5dcc4e56c359e006510d847989b9bc58d10fa5a8..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/BUILD.gn +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) 2020-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("//build/lite/config/component/lite_component.gni") -import("//build/lite/ndk/ndk.gni") -import("//foundation/ace/ace_engine_lite/ace_lite.gni") - -lite_library("distributed_player_lite") { - target_type = "static_library" - - sources = [ - "//foundation/multimedia/media_lite/interfaces/kits/player_lite/js/builtin/src/audio_player.cpp", - "audio_module.cpp", - "cpp_on_play_remote.cpp", - ] - - include_dirs = ace_lite_include_dirs - include_dirs += [ - ".", - "//foundation/multimedia/media_lite/interfaces/kits/player_lite", - "//foundation/multimedia/utils/lite/interfaces/kits", - ] - public_deps = [ - "//foundation/multimedia/media_lite/frameworks/player_lite", - "//foundation/multimedia/utils/lite:media_common", - "//third_party/bounds_checking_function:libsec_static", - ] -} diff --git a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_module.cpp b/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_module.cpp deleted file mode 100755 index 26246179e443623f65c35f496fffb31c7210aa87..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_module.cpp +++ /dev/null @@ -1,418 +0,0 @@ -/* - * Copyright (c) 2020-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. - */ -#include "audio_module.h" -#include "media_log.h" -#include "js_async_work.h" -#include -#include "serializer.h" -#include "hal_trace.h" - -extern "C" bool WriteInt32(IpcIo *io, int32_t value); -extern "C" void RpcClientTest(int32_t* progress); - -namespace OHOS { -namespace ACELite { -constexpr char PROP_SUCCESS[] = "success"; -constexpr char PROP_COMPLETE[] = "complete"; - -AudioCallbackInfo AudioModule::audiocallbackinfo_; - -void AudioModule::OnTerminate() -{ -} - -void AudioModule::DefineProperty(JSIValue target, - const char *propName, - JSIFunctionHandler getter, - JSIFunctionHandler setter) -{ - JSPropertyDescriptor descriptor; - descriptor.getter = getter; - descriptor.setter = setter; - JSI::DefineNamedProperty(target, propName, descriptor); -} - -JSIValue AudioModule::Play(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->Play()); -} - -JSIValue AudioModule::Pause(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->Pause()); -} - -JSIValue AudioModule::Stop(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->Stop()); -} - -JSIValue AudioModule::GetPlayState(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - - JSIValue options = args[0]; - if (!JSI::ValueIsObject(options)) { - MEDIA_ERR_LOG("invalid parameter."); - return JSI::CreateBoolean(false); - } - - JSIValue successCallback = JSI::GetNamedProperty(options, PROP_SUCCESS); - if (!JSI::ValueIsUndefined(successCallback)) { - AudioPlayer *audioPlayer = AudioPlayer::GetInstance(); - JSIValue data = JSI::CreateObject(); - JSI::SetStringProperty(data, "status", audioPlayer->GetStatus()); - JSI::SetStringProperty(data, "src", audioPlayer->GetSrc()); - JSI::SetNumberProperty(data, "currentTime", audioPlayer->GetCurrentTime()); - JSI::SetBooleanProperty(data, "autoplay", audioPlayer->GetAutoPlay()); - JSI::SetBooleanProperty(data, "loop", audioPlayer->IsLooping()); - JSI::SetNumberProperty(data, "volume", audioPlayer->GetVolume()); - JSI::SetBooleanProperty(data, "muted", audioPlayer->IsMuted()); - JSIValue params[1] = { data }; - JSI::CallFunction(successCallback, thisVal, params, 1); - JSI::ReleaseValue(successCallback); - } - - JSIValue completeCallback = JSI::GetNamedProperty(options, PROP_COMPLETE); - if (!JSI::ValueIsUndefined(completeCallback)) { - JSI::CallFunction(completeCallback, thisVal, nullptr, 0); - JSI::ReleaseValue(completeCallback); - } - - return JSI::CreateUndefined(); -} - -JSIValue AudioModule::SrcGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - char *src = AudioPlayer::GetInstance()->GetSrc(); - return (src == nullptr) ? JSI::CreateUndefined() : JSI::CreateString(src); -} - -JSIValue AudioModule::SrcSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - char *src = JSI::ValueToString(args[0]); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetSrc(src)); -} - -JSIValue AudioModule::CurrentTimeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateNumber(AudioPlayer::GetInstance()->GetCurrentTime()); -} - -JSIValue AudioModule::CurrentTimeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - - int64_t currentTime = static_cast(JSI::ValueToNumber(args[0])); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetCurrentTime(currentTime)); -} - -JSIValue AudioModule::DurationGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - int64_t duation = AudioPlayer::GetInstance()->GetDuration(); - return duation == -1 ? JSI::CreateNumberNaN() : JSI::CreateNumber(static_cast(duation)); -} - -JSIValue AudioModule::DurationSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateError(JsiErrorType::JSI_ERROR_COMMON, "duration is readonly."); -} - -JSIValue AudioModule::AutoPlayGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->GetAutoPlay()); -} - -JSIValue AudioModule::AutoPlaySetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - bool autoPlay = JSI::ValueToBoolean(args[0]); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetAutoPlay(autoPlay)); -} - -JSIValue AudioModule::LoopGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->IsLooping()); -} - -JSIValue AudioModule::LoopSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - - bool loop = JSI::ValueToBoolean(args[0]); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetLoop(loop)); -} - -JSIValue AudioModule::VolumeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateNumber(AudioPlayer::GetInstance()->GetVolume()); -} - -JSIValue AudioModule::VolumeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - float volume = static_cast(JSI::ValueToNumber(args[0])); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetVolume(volume)); -} - -JSIValue AudioModule::MutedGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return JSI::CreateBoolean(AudioPlayer::GetInstance()->IsMuted()); -} - -JSIValue AudioModule::MutedSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return JSI::CreateBoolean(false); - } - bool muted = JSI::ValueToBoolean(args[0]); - return JSI::CreateBoolean(AudioPlayer::GetInstance()->SetMuted(muted)); -} - -JSIValue AudioModule::OnPlayGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnPlayListener()); -} - -JSIValue AudioModule::OnPlaySetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnPlayListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnPauseGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnPauseListener()); -} - -JSIValue AudioModule::OnPauseSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnPauseListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnStopGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnStopListener()); -} - -JSIValue AudioModule::OnStopSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnStopListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnLoadedDataGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnLoadedDataListener()); -} - -JSIValue AudioModule::OnLoadedDataSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnLoadedDataListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnEndedGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnEndedListener()); -} - -JSIValue AudioModule::OnEndedSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnEndedListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnErrorGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnErrorListener()); -} - -JSIValue AudioModule::OnErrorSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnErrorListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::OnTimeUpdateGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - return GetEventCallback(AudioPlayer::GetInstance()->GetOnTimeUpdateListener()); -} - -JSIValue AudioModule::OnTimeUpdateSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - AudioEventListener *listener = CreateAudioEventListener(args, argsSize); - if (listener == nullptr) { - return JSI::CreateBoolean(false); - } - AudioPlayer::GetInstance()->SetOnTimeUpdateListener(listener); - return JSI::CreateBoolean(true); -} - -JSIValue AudioModule::GetEventCallback(const AudioEventListener *listener) -{ - return (listener == nullptr) ? JSI::CreateUndefined() : listener->GetCallback(); -} - -AudioEventListener *AudioModule::CreateAudioEventListener(const JSIValue *args, uint8_t argsSize) -{ - if (argsSize < 1) { - MEDIA_ERR_LOG("1 argument is required."); - return nullptr; - } - - JSIValue callback = args[0]; - if (!JSI::ValueIsFunction(callback)) { - MEDIA_ERR_LOG("a function is required."); - return nullptr; - } - - AudioEventListener *listener = new AudioEventListener(callback); - if (listener == nullptr) { - MEDIA_ERR_LOG("out of memory."); - } - - return listener; -} -//.............. -JSIValue AudioModule::Oncallback(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - TRACE(0, "%s %d", __func__, __LINE__); - audiocallbackinfo_.callback = JSI::AcquireValue(args[0]); - audiocallbackinfo_.thisVal_ = JSI::AcquireValue(thisVal); - - return JSI::CreateUndefined(); -} - -JSIValue AudioModule::PlayRemote(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize) -{ - TRACE(0, "%s %d", __func__, __LINE__); - if (!JSI::ValueIsNumber(args[0])){ - return JSI::CreateUndefined(); - } - int32_t data = (int32_t)JSI::ValueToNumber(args[0]); - TRACE(0, "this progress: %d", data); - RpcClientTest(&data); - return JSI::CreateUndefined(); -} - -void AudioModule::OnPlayRemote(int32_t data) -{ - TRACE(0, "%s %d", __func__, __LINE__); - JSIValue dataOne = JSI::CreateObject(); - - JSI::SetNumberProperty(dataOne, "progress", (double)data); - - JSIValue param[1] = {dataOne}; - - FuncParams* params = new FuncParams(); - params->handlerRef = audiocallbackinfo_.callback; - params->thisVarRef_ = audiocallbackinfo_.thisVal_; - params->args = param; - params->argsSize = 1; - JsAsyncWork::DispatchAsyncWork(OnEventAsyncWorkFunc, reinterpret_cast(params)); -} - -void AudioModule::OnEventAsyncWorkFunc(void *data) -{ - TRACE(0, "%s %d", __func__, __LINE__); - FuncParams* params = reinterpret_cast(data); - JSI::CallFunction(params->handlerRef, params->thisVarRef_, params->args, params->argsSize); -} - -static int g_init = 0; -void InitAudioModule(JSIValue exports) -{ - - if (g_init == 0) { - AudioPlayer::GetInstance()->CreatePlayer(); - AudioPlayer::GetInstance()->ForkUpdateTimeThread(); - g_init = 1; - } - - JSI::SetOnTerminate(exports, AudioModule::OnTerminate); - JSI::SetModuleAPI(exports, "play", AudioModule::Play); - JSI::SetModuleAPI(exports, "pause", AudioModule::Pause); - JSI::SetModuleAPI(exports, "stop", AudioModule::Stop); - JSI::SetModuleAPI(exports, "getPlayState", AudioModule::GetPlayState); - - JSI::SetModuleAPI(exports, "onCallback", AudioModule::Oncallback); - JSI::SetModuleAPI(exports, "playRemote", AudioModule::PlayRemote); - - AudioModule::DefineProperty(exports, "src", AudioModule::SrcGetter, AudioModule::SrcSetter); - AudioModule::DefineProperty(exports, "currentTime", AudioModule::CurrentTimeGetter, AudioModule::CurrentTimeSetter); - AudioModule::DefineProperty(exports, "duration", AudioModule::DurationGetter, AudioModule::DurationSetter); - AudioModule::DefineProperty(exports, "autoplay", AudioModule::AutoPlayGetter, AudioModule::AutoPlaySetter); - AudioModule::DefineProperty(exports, "loop", AudioModule::LoopGetter, AudioModule::LoopSetter); - AudioModule::DefineProperty(exports, "volume", AudioModule::VolumeGetter, AudioModule::VolumeSetter); - AudioModule::DefineProperty(exports, "muted", AudioModule::MutedGetter, AudioModule::MutedSetter); - - AudioModule::DefineProperty(exports, "onplay", AudioModule::OnPlayGetter, AudioModule::OnPlaySetter); - AudioModule::DefineProperty(exports, "onpause", AudioModule::OnPauseGetter, AudioModule::OnPauseSetter); - AudioModule::DefineProperty(exports, "onstop", AudioModule::OnStopGetter, AudioModule::OnStopSetter); - AudioModule::DefineProperty(exports, "onloadeddata", AudioModule::OnLoadedDataGetter, - AudioModule::OnLoadedDataSetter); - AudioModule::DefineProperty(exports, "onended", AudioModule::OnEndedGetter, AudioModule::OnEndedSetter); - AudioModule::DefineProperty(exports, "onerror", AudioModule::OnErrorGetter, AudioModule::OnErrorSetter); - AudioModule::DefineProperty(exports, "ontimeupdate", AudioModule::OnTimeUpdateGetter, - AudioModule::OnTimeUpdateSetter); -} -} // namespace ACELite -} // namespace OHOS \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_module.h b/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_module.h deleted file mode 100755 index 76a5c0ee98e1e7ec34d427214872f82f0a821b95..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_module.h +++ /dev/null @@ -1,373 +0,0 @@ -/* - * Copyright (c) 2020-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. - */ - -#ifndef AUDIO_MODULE_H -#define AUDIO_MODULE_H - -#include "audio_player.h" - -namespace OHOS { -namespace ACELite { - -struct AudioCallbackInfo { - JSIValue thisVal_ = JSI::CreateUndefined(); - JSIValue callback = JSI::CreateUndefined(); -}; - -struct FuncParams { - JSIValue handlerRef = JSI::CreateUndefined(); - JSIValue thisVarRef_ = JSI::CreateUndefined(); - const JSIValue *args = nullptr; - uint8_t argsSize = 0; -}; - -class AudioModule final : public MemoryHeap { -public: - /** - * constructor - */ - AudioModule() = default; - - /** - * desconstructor - */ - ~AudioModule() = default; - - static JSIValue Oncallback(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - static JSIValue PlayRemote(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - static void OnPlayRemote(int32_t data); - - static void OnEventAsyncWorkFunc(void *data); - - /** - * Set volume, 0.0 means the no silcence, 1.0 means the original volume. - * - * @param volume Indicates the target volume to set, which ranges from 0.0 to 1.0 - * @return Returns {@code true} if setting is successful; returns {@code false} otherwise. - */ - static bool SetVolume(float volume); - - /** - * Call when the app is terminated - */ - static void OnTerminate(); - - /** - * define property - */ - static void - DefineProperty(JSIValue target, const char *propName, JSIFunctionHandler getter, JSIFunctionHandler setter); - - /** - * the play method of audio - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue Play(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the pause method of audio - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue Pause(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the stop method of audio - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue Stop(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getPlayState method of audio - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue GetPlayState(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio src property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue SrcGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio src property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue SrcSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio currentTime property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue CurrentTimeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio currentTime property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue CurrentTimeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio duration property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue DurationGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio duration property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue DurationSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio autoplay property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue AutoPlayGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio autoplay property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue AutoPlaySetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio loop property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue LoopGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio loop property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue LoopSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio volume property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue VolumeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio volume property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue VolumeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio muted property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue MutedGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio muted property - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue MutedSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onplay event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnPlayGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onplay event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnPlaySetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onpause event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnPauseGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onpause event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnPauseSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onstop event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnStopGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onstop event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnStopSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onloadeddata event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnLoadedDataGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onloadeddata event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnLoadedDataSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onerror event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnEndedGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onerror event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnEndedSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio onerror event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnErrorGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio onerror event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnErrorSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the getter of audio ontimeupdate event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnTimeUpdateGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - - /** - * the setter of audio ontimeupdate event - * - * @param thisVal Indicates function execute context - * @param args Indicates the function arguments - * @param argsSize Indicates the size of function arguments - */ - static JSIValue OnTimeUpdateSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize); - -private: - static JSIValue GetEventCallback(const AudioEventListener *listener); - - static AudioEventListener *CreateAudioEventListener(const JSIValue *args, uint8_t argsSize); - - static AudioCallbackInfo audiocallbackinfo_; -}; - -void InitAudioModule(JSIValue exports); -} // namespace ACELite -} // namespace OHOS -#endif // AUDIO_MODULE_H \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_player.h b/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_player.h deleted file mode 100755 index 90867b559fc54a0376bcc56bd6c4434e412778c3..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/audio_player.h +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright (c) 2020-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. - */ - -#ifndef AUDIO_PLAYER_H -#define AUDIO_PLAYER_H - -#include -#include "jsi.h" -#include "player.h" - -namespace OHOS { -namespace ACELite { -class AudioPlayer; - -class AudioEventListener { -public: - AudioEventListener() = default; - - explicit AudioEventListener(JSIValue callback); - - ~AudioEventListener(); - - JSIValue GetCallback() const; - - void OnTrigger() const; - -private: - JSIValue callback_; -}; - -void TriggerEventListener(const AudioEventListener *listener); -void AsyncExecuteCallback(void *arg); - -class AudioPlayerCallback : public Media::PlayerCallback { -public: - AudioPlayerCallback() = delete; - - explicit AudioPlayerCallback(AudioPlayer *audioPlayer); - - virtual ~AudioPlayerCallback() = default; - - void OnPlaybackComplete() override; - - void OnError(int32_t errorType, int32_t errorCode) override; - - void OnInfo(int type, int extra) override; - - void OnVideoSizeChanged(int width, int height) override; - - void OnRewindToComplete() override; - -private: - static void *PlaybackCompleteHandler(void *arg); - - AudioPlayer *audioPlayer_; -}; - -class AudioPlayer { -public: - static AudioPlayer *GetInstance(); - - void ForkUpdateTimeThread(); - - void StopUpdateTimeThread(); - - bool CreatePlayer(); - - bool DestoryPlayer(); - - bool ResetPlayer(); - - void ReleaseEventListeners(); - - void ReleaseSrc(); - - bool Play(); - - bool Pause(); - - bool Stop(); - - char *GetSrc() const; - - double GetCurrentTime() const; - - double GetDuration() const; - - bool GetAutoPlay() const; - - bool IsLooping() const; - - bool IsMuted() const; - - const char *GetStatus() const; - - double GetVolume() const; - - bool IsPlaying() const; - - bool SetSrc(char *src); - - bool SetCurrentTime(double currentTime) const; - - bool SetAutoPlay(bool autoPlay); - - bool SetLoop(bool loop) const; - - bool SetVolume(double volume); - - bool SetMuted(bool muted); - - const AudioEventListener *GetOnPlayListener() const; - - const AudioEventListener *GetOnPauseListener() const; - - const AudioEventListener *GetOnStopListener() const; - - const AudioEventListener *GetOnLoadedDataListener() const; - - const AudioEventListener *GetOnEndedListener() const; - - const AudioEventListener *GetOnErrorListener() const; - - const AudioEventListener *GetOnTimeUpdateListener() const; - - void SetOnPlayListener(AudioEventListener *onPlayListener); - - void SetOnPauseListener(AudioEventListener *onPauseListener); - - void SetOnStopListener(AudioEventListener *onStopListener); - - void SetOnLoadedDataListener(AudioEventListener *onLoadedDataListener); - - void SetOnEndedListener(AudioEventListener *onEndedListener); - - void SetOnErrorListener(AudioEventListener *onErrorListener); - - void SetOnTimeUpdateListener(AudioEventListener *onTimeUpdateListener); - -private: - AudioPlayer(); - - ~AudioPlayer() = default; - - static pthread_mutex_t lock_; - static pthread_cond_t condition_; - static void *UpdateTimeHandler(void *arg); - - Media::Player *player_; - std::shared_ptr callback_; - AudioEventListener *onPlayListener_; - AudioEventListener *onPauseListener_; - AudioEventListener *onStopListener_; - AudioEventListener *onLoadedDataListener_; - AudioEventListener *onEndedListener_; - AudioEventListener *onErrorListener_; - AudioEventListener *onTimeUpdateListener_; - char *src_; - char *status_; - double volume_; - bool autoPlay_; - bool muted_; - bool isRunning_; -}; -} // namespace ACELite -} // namespace OHOS -#endif // AUDIO_PLAYER_H \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/cpp_on_play_remote.cpp b/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/cpp_on_play_remote.cpp deleted file mode 100755 index b47164ed1da4ab8cdc5980ff0f1161abf4afb1d2..0000000000000000000000000000000000000000 --- a/dev/team_x/smart_safe_kitchen-smart_window/distributed_player_lite/cpp_on_play_remote.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2020-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. - */ - -#include "stdint.h" -#include "audio_module.h" - -using namespace OHOS::ACELite; - -#ifdef __cplusplus -extern "C" -{ -#endif - -void CallOnPlayRemote(int32_t data) -{ - AudioModule::OnPlayRemote(data); -} - -#ifdef __cplusplus -} -#endif \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/font.ttf b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/font.ttf index 1668f76b7e4ba0c54a27d21aee6eb974c0f32165..e0683c841a84016a5d31fb4a6e6395cb5325888a 100755 Binary files a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/font.ttf and b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/font.ttf differ diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_guanchuang.bin b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_guanchuang.bin index a512617462c272e2b94ff73e858c48752ac032da..64ba1e339dd4e45ab7a60dea2cb245e5060a501c 100755 Binary files a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_guanchuang.bin and b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_guanchuang.bin differ diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_guanchuang.png b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_guanchuang.png index 599462a26e46c5a7b54729f5aeda069a758ae7c8..4b6e43dbc940e44898fdcf54fe55451e0764ed45 100755 Binary files a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_guanchuang.png and b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_guanchuang.png differ diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_kaichuang.bin b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_kaichuang.bin index c7c55435c36e72e151062326039a62542f370112..04ed0c2232e416c63203192ca46ead000a55091b 100755 Binary files a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_kaichuang.bin and b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_kaichuang.bin differ diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_kaichuang.png b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_kaichuang.png index a9e010f120cb7e26e151b9a66fa3e5c13a1a401c..34dc0f9acdaa663a993741f99468453060b0a934 100755 Binary files a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_kaichuang.png and b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/common/img_kaichuang.png differ diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/dm/dm.js b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/dm/dm.js index 4680cac66b8b1daa34e701f1bd758ce1a0f0db1c..c423ea4fd58c51d401561e137518ae045df96b3a 100755 --- a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/dm/dm.js +++ b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/dm/dm.js @@ -37,7 +37,7 @@ module.exports = {"classSelectors":{"container":{"width":454,"flexDirection":"co \*****************************************************************************************************************/ /***/ (function(module) { -module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('image', {'attrs' : {'src' : "common/ic_back.png"},'staticClass' : ["ic-back"],'onBubbleEvents' : {'click' : _vm.back}} ),_c('text', {'attrs' : {'value' : "设备认证"},'staticClass' : ["new-title"]} ),_c('image', {'attrs' : {'src' : "common/icon_wifi_on.png"},'staticClass' : ["wifi-btn"]} )] ),_c('div', {'staticClass' : ["body"]} , [_i((function () {return _vm.status=='start'}),function(){return _c('div', {'staticClass' : ["main-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('div', {'staticClass' : ["button-wrap1"]} , [_c('image', {'attrs' : {'src' : "common/icon_faxian.png"},'onBubbleEvents' : {'click' : _vm. startDevice},'staticClass' : ["card1"]} ),_c('image', {'attrs' : {'src' : "common/icon_faqi.png"},'onBubbleEvents' : {'click' : _vm.AuthenticateDevice},'staticClass' : ["card2"]} )] ),_c('div', {'staticClass' : ["button-wrap2"]} , [_c('image', {'attrs' : {'src' : "common/icon_yunxu.png"},'onBubbleEvents' : {'click' : _vm.joinAuthOk},'staticClass' : ["card1"]} ),_c('image', {'attrs' : {'src' : "common/icon_shuru.png"},'onBubbleEvents' : {'click' : _vm.MymainInputPin},'staticClass' : ["card2"]} )] )] )] )}),_i((function () {return _vm.status=='main-pin'}),function(){return _c('div', {'staticClass' : ["main-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "PIN码连接"},'staticClass' : ["title"]} ),_c('text', {'attrs' : {'value' : "请输入平板上显示的PIN码"},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["pin-numb"]} , [_c('text', {'attrs' : {'value' : function () {return _vm.pin[0]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[1]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[2]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[3]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[4]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[5]}},'staticClass' : ["pin-numb-item"]} )] ),_c('div', {'staticClass' : ["pin-numb-line"]} ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "1"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(1,evt)}}} ),_c('text', {'attrs' : {'value' : "2"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(2,evt)}}} ),_c('text', {'attrs' : {'value' : "3"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(3,evt)}}} ),_c('text', {'attrs' : {'value' : "4"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(4,evt)}}} )] ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "5"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(5,evt)}}} ),_c('text', {'attrs' : {'value' : "6"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(6,evt)}}} ),_c('text', {'attrs' : {'value' : "7"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(7,evt)}}} ),_c('text', {'attrs' : {'value' : "8"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(8,evt)}}} )] ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "9"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(9,evt)}}} ),_c('text', {'attrs' : {'value' : "0"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(0,evt)}}} ),_c('text', {'attrs' : {'value' : "删除"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : _vm.mainInputPinBack}} ),_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : _vm.mainInputPinCancel}} )] )] )] )}),_i((function () {return _vm.status=='join-authorize'}),function(){return _c('div', {'staticClass' : ["join-authorize"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('22%E6%98%AF%E5%90%A6%E5%85%81%E8%AE%B8') + (_vm.statusInfo.deviceName) + decodeURI('%E8%BF%9E%E6%8E%A5%E6%9C%AC%E6%9C%BA')}},'staticClass' : ["join-title"]} ),_c('text', {'attrs' : {'value' : "用于资源访问"},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthorizeCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthorizeOk}} )] )] )] )}),_i((function () {return _vm.status=='join-auth'}),function(){return _c('div', {'staticClass' : ["join-auth"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('11%E6%98%AF%E5%90%A6%E5%85%81%E8%AE%B8') + (_vm.statusInfo.appName)}},'staticClass' : ["join-auth-title"]} ),_c('text', {'attrs' : {'value' : "是否允许打开apply auth?"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return decodeURI('%E6%9D%A5%E8%87%AA') + (_vm.statusInfo.deviceName)}},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthOk}} )] )] )] )}),_i((function () {return _vm.status=='join-auth-image'}),function(){return _c('div', {'staticClass' : ["join-auth-image"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('image', {'attrs' : {'src' : function () {return _vm.statusInfo.appIcon}}} ),_c('text', {'attrs' : {'value' : function () {return _vm.statusInfo.appName}},'staticClass' : ["join-auth-title"]} ),_c('text', {'attrs' : {'value' : "是否允许打开apply auth?"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return decodeURI('%E6%9D%A5%E8%87%AA') + (_vm.statusInfo.deviceName)}},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthImageCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthImageOk}} )] )] )] )}),_i((function () {return _vm.status=='join-pin'}),function(){return _c('div', {'staticClass' : ["join-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "PIN码连接"},'staticClass' : ["title"]} ),_c('text', {'attrs' : {'value' : "请在主控端输入连接码进行验证"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.StatInfo.pinCode.split('').join(' ')}},'staticClass' : ["title"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["join-pin-cancel"],'onBubbleEvents' : {'click' : _vm.joinPinCancel}} )] )] )] )}),_i((function () {return _vm.choiceDev=='DeviceType'}),function(){return _c('div', {'staticClass' : ["join-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "选择设备"},'staticClass' : ["dialog-title"]} ),_c('text', {'attrs' : {'value' : "本机"},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : _vm.btnClick}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID1}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : _vm.InAuthentication}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID2}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : function (evt) {_vm.btnClick(2,evt)}}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID2}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : function (evt) {_vm.btnClick(3,evt)}}} ),_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["dialog-button"],'onBubbleEvents' : {'click' : _vm.btnClick}} )] )] )})] )] ) } +module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('image', {'attrs' : {'src' : "common/ic_back.png"},'staticClass' : ["ic-back"],'onBubbleEvents' : {'click' : _vm.back}} ),_c('text', {'attrs' : {'value' : "设备认证"},'onBubbleEvents' : {'click' : _vm.back},'staticClass' : ["new-title"]} ),_c('image', {'attrs' : {'src' : "common/icon_wifi_on.png"},'staticClass' : ["wifi-btn"]} )] ),_c('div', {'staticClass' : ["body"]} , [_i((function () {return _vm.status=='start'}),function(){return _c('div', {'staticClass' : ["main-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('div', {'staticClass' : ["button-wrap1"]} , [_c('image', {'attrs' : {'src' : "common/icon_faxian.png"},'onBubbleEvents' : {'click' : _vm. startDevice},'staticClass' : ["card1"]} ),_c('image', {'attrs' : {'src' : "common/icon_faqi.png"},'onBubbleEvents' : {'click' : _vm.AuthenticateDevice},'staticClass' : ["card2"]} )] ),_c('div', {'staticClass' : ["button-wrap2"]} , [_c('image', {'attrs' : {'src' : "common/icon_yunxu.png"},'onBubbleEvents' : {'click' : _vm.joinAuthOk},'staticClass' : ["card1"]} ),_c('image', {'attrs' : {'src' : "common/icon_shuru.png"},'onBubbleEvents' : {'click' : _vm.MymainInputPin},'staticClass' : ["card2"]} )] )] )] )}),_i((function () {return _vm.status=='main-pin'}),function(){return _c('div', {'staticClass' : ["main-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "PIN码连接"},'staticClass' : ["title"]} ),_c('text', {'attrs' : {'value' : "请输入平板上显示的PIN码"},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["pin-numb"]} , [_c('text', {'attrs' : {'value' : function () {return _vm.pin[0]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[1]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[2]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[3]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[4]}},'staticClass' : ["pin-numb-item"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.pin[5]}},'staticClass' : ["pin-numb-item"]} )] ),_c('div', {'staticClass' : ["pin-numb-line"]} ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "1"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(1,evt)}}} ),_c('text', {'attrs' : {'value' : "2"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(2,evt)}}} ),_c('text', {'attrs' : {'value' : "3"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(3,evt)}}} ),_c('text', {'attrs' : {'value' : "4"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(4,evt)}}} )] ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "5"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(5,evt)}}} ),_c('text', {'attrs' : {'value' : "6"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(6,evt)}}} ),_c('text', {'attrs' : {'value' : "7"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(7,evt)}}} ),_c('text', {'attrs' : {'value' : "8"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(8,evt)}}} )] ),_c('div', {'staticClass' : ["content-wrap"]} , [_c('text', {'attrs' : {'value' : "9"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(9,evt)}}} ),_c('text', {'attrs' : {'value' : "0"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : function (evt) {_vm.mainInputPin(0,evt)}}} ),_c('text', {'attrs' : {'value' : "删除"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : _vm.mainInputPinBack}} ),_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["numb"],'onBubbleEvents' : {'click' : _vm.mainInputPinCancel}} )] )] )] )}),_i((function () {return _vm.status=='join-authorize'}),function(){return _c('div', {'staticClass' : ["join-authorize"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('22%E6%98%AF%E5%90%A6%E5%85%81%E8%AE%B8') + (_vm.statusInfo.deviceName) + decodeURI('%E8%BF%9E%E6%8E%A5%E6%9C%AC%E6%9C%BA')}},'staticClass' : ["join-title"]} ),_c('text', {'attrs' : {'value' : "用于资源访问"},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthorizeCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthorizeOk}} )] )] )] )}),_i((function () {return _vm.status=='join-auth'}),function(){return _c('div', {'staticClass' : ["join-auth"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('11%E6%98%AF%E5%90%A6%E5%85%81%E8%AE%B8') + (_vm.statusInfo.appName)}},'staticClass' : ["join-auth-title"]} ),_c('text', {'attrs' : {'value' : "是否允许打开apply auth?"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return decodeURI('%E6%9D%A5%E8%87%AA') + (_vm.statusInfo.deviceName)}},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthOk}} )] )] )] )}),_i((function () {return _vm.status=='join-auth-image'}),function(){return _c('div', {'staticClass' : ["join-auth-image"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('image', {'attrs' : {'src' : function () {return _vm.statusInfo.appIcon}}} ),_c('text', {'attrs' : {'value' : function () {return _vm.statusInfo.appName}},'staticClass' : ["join-auth-title"]} ),_c('text', {'attrs' : {'value' : "是否允许打开apply auth?"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return decodeURI('%E6%9D%A5%E8%87%AA') + (_vm.statusInfo.deviceName)}},'staticClass' : ["title-tip"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : function () {return decodeURI('%E5%8F%96%E6%B6%88%EF%BC%88') + (_vm.timeRemaining) + decodeURI('%EF%BC%89')}},'staticClass' : ["button-cancel"],'onBubbleEvents' : {'click' : _vm.joinAuthImageCancel}} ),_c('text', {'attrs' : {'value' : "允许"},'staticClass' : ["button-ok"],'onBubbleEvents' : {'click' : _vm.joinAuthImageOk}} )] )] )] )}),_i((function () {return _vm.status=='join-pin'}),function(){return _c('div', {'staticClass' : ["join-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "PIN码连接"},'staticClass' : ["title"]} ),_c('text', {'attrs' : {'value' : "请在主控端输入连接码进行验证"},'staticClass' : ["title-tip"]} ),_c('text', {'attrs' : {'value' : function () {return _vm.StatInfo.pinCode.split('').join(' ')}},'staticClass' : ["title"]} ),_c('div', {'staticClass' : ["button-wrap"]} , [_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["join-pin-cancel"],'onBubbleEvents' : {'click' : _vm.joinPinCancel}} )] )] )] )}),_i((function () {return _vm.choiceDev=='DeviceType'}),function(){return _c('div', {'staticClass' : ["join-pin"]} , [_c('div', {'staticClass' : ["title-wrap"]} , [_c('text', {'attrs' : {'value' : "选择设备"},'staticClass' : ["dialog-title"]} ),_c('text', {'attrs' : {'value' : "本机"},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : _vm.btnClick}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID1}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : _vm.InAuthentication}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID2}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : function (evt) {_vm.btnClick(2,evt)}}} ),_c('text', {'attrs' : {'value' : function () {return _vm.showdeviceID.deviceID2}},'staticClass' : ["dialog-item"],'onBubbleEvents' : {'click' : function (evt) {_vm.btnClick(3,evt)}}} ),_c('text', {'attrs' : {'value' : "取消"},'staticClass' : ["dialog-button"],'onBubbleEvents' : {'click' : _vm.btnClick}} )] )] )})] )] ) } /***/ }), diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/dm/dm.js.map b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/dm/dm.js.map index 23683c4f84692bea861594bc10c574a0d9d11feb..db98cfa4748977ba520be582b7b40f22f2fea033 100755 --- a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/dm/dm.js.map +++ b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/dm/dm.js.map @@ -1 +1 @@ -{"version":3,"file":"./pages/dm/dm.js","mappings":";;;;;;;;;AAAA,qBAAqB,mBAAO,CAAC,uKAAoO;AACjQ,kBAAkB,mBAAO,CAAC,iKAAiO;AAC3P,mBAAmB,mBAAO,CAAC,k2BAAoqB;AAC/rB;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;ACVA,kBAAkB,kBAAkB,aAAa,4EAA4E,cAAc,6GAA6G,oBAAoB,cAAc,cAAc,uEAAuE,UAAU,+BAA+B,WAAW,+CAA+C,eAAe,6GAA6G,gBAAgB,6GAA6G,iBAAiB,uEAAuE,aAAa,yCAAyC,cAAc,+CAA+C,aAAa,oGAAoG,kBAAkB,6FAA6F,kBAAkB,4MAA4M,SAAS,qRAAqR,UAAU,4EAA4E,oBAAoB,wBAAwB,mBAAmB,+CAA+C,eAAe,wBAAwB,oBAAoB,2CAA2C,gBAAgB,yEAAyE,iBAAiB,wEAAwE,iBAAiB,uEAAuE,kBAAkB,sFAAsF,cAAc,6TAA6T,cAAc,gEAAgE,oBAAoB,g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OAAO,CAACC,IAAR,CAAa9B,GAAG,GAAGsE,CAAnB;AACH;AA9MU;;;;;;;;;;;;UCrBf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/dm/dm.hml?entry","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/dm/dm.css","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/dm/dm.hml","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/newArrowCheck.js","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/dm/dm.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","_newArrowCheck","innerThis","boundThis","TypeError","TAG","data","status","subscribeId","pinToken","statusInfo","deviceId","deviceName","deviceTypeId","Devcinfo","pinTone","StatInfo","appName","appIcon","pinCode","pinNumb","count","pin","onShow","log","devicemanager","createDeviceManager","on","data0","data1","FondData","JSON","stringify","startDevice","console","info","Math","floor","random","startDeviceDiscovery","stopDevice","stopDeviceDiscovery","AuthenticateDevice","extraInfo","targetPkgName","appDescription","business","displayOwner","AuthParam","authType","appThumbnail","_this","authenticateDevice","success","fail","err0","err1","joinAuthOk","joinPin","initStatue","setUserOperation","mainInputPin","s","verifyAuthInfo","join","router","back","mainInputPinBack","mainInputPinCancel","replace","uri","getAuthenticationParam","pincode","packageName","MymainInputPin","m"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"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AACZJ,QAAAA,UAAU,EAAEN,IAAI,CAACqC,SAAL,CAAe8B,WADf;AAEZxD,QAAAA,OAAO,EAAEX,IAAI,CAACqC,SAAL,CAAe1B,OAFZ;AAGZC,QAAAA,OAAO,EAAE,IAHG;AAIZC,QAAAA,OAAO,EAAEb,IAAI,CAACqC,SAAL,CAAe6B,OAAf,GAAuB,EAJpB;AAKZ/D,QAAAA,QAAQ,EAAEH,IAAI,CAACqC,SAAL,CAAelC;AALb,OAAhB;AAOH;AACJ,GA/LU;AAgMXiE,EAAAA,cAhMW,4BAgMK;AACZ,SAAKnE,MAAL,GAAa,UAAb;AACH,GAlMU;AAoMXmD,EAAAA,OApMW,qBAoMD;AACN,SAAKnD,MAAL,GAAc,UAAd;AACH,GAtMU;AAuMX2D,EAAAA,IAvMW,kBAuMJ;AACHD,uBAAOI,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAE;AADM,KAAf;AAGH,GA3MU;AA4MX9C,EAAAA,GA5MW,eA4MPmD,CA5MO,EA4MJ;AACHzC,IAAAA,OAAO,CAACC,IAAR,CAAa9B,GAAG,GAAGsE,CAAnB;AACH;AA9MU;;;;;;;;;;;;UCrBf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/dm/dm.hml?entry","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/dm/dm.css","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/dm/dm.hml","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/newArrowCheck.js","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/dm/dm.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","_newArrowCheck","innerThis","boundThis","TypeError","TAG","data","status","subscribeId","pinToken","statusInfo","deviceId","deviceName","deviceTypeId","Devcinfo","pinTone","StatInfo","appName","appIcon","pinCode","pinNumb","count","pin","onShow","log","devicemanager","createDeviceManager","on","data0","data1","FondData","JSON","stringify","startDevice","console","info","Math","floor","random","startDeviceDiscovery","stopDevice","stopDeviceDiscovery","AuthenticateDevice","extraInfo","targetPkgName","appDescription","business","displayOwner","AuthParam","authType","appThumbnail","_this","authenticateDevice","success","fail","err0","err1","joinAuthOk","joinPin","initStatue","setUserOperation","mainInputPin","s","verifyAuthInfo","join","router","back","mainInputPinBack","mainInputPinCancel","replace","uri","getAuthenticationParam","pincode","packageName","MymainInputPin","m"],"sourceRoot":""} \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/index/index.js b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/index/index.js index f4a3526232bd640870da7a28baf517c74727f81c..3bab55ee3d2a11612aef2db3c906c55598414ccc 100755 --- a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/index/index.js +++ b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/index/index.js @@ -27,7 +27,7 @@ module.exports=new ViewModel(options); \********************************************************************************************************************/ /***/ (function(module) { -module.exports = {"classSelectors":{"container":{"width":"100%","height":"100%","flexDirection":"column","backgroundColor":3816774},"title":{"width":200,"fontSize":26,"height":50,"color":16777215,"marginLeft":20},"body":{"width":"100%","height":396,"flexDirection":"column","justifyContent":"center","alignItems":"center","backgroundColor":1579034},"header":{"width":480,"height":84,"flexDirection":"row","alignItems":"center","backgroundColor":3816774},"wifi-btn":{"width":38,"height":38,"marginLeft":150},"change-page":{"width":38,"height":38,"marginLeft":20},"window-img":{"width":338,"height":251,"backgroundColor":1579034},"bottom-card":{"width":444,"height":96,"flexDirection":"row","alignItems":"center","backgroundColor":3816774,"boxShadow":"0px 1px 3px 0px rgba(0, 0, 0, 0.3)","borderRadius":24},"show-state":{"width":106,"height":60,"fontSize":24,"textAlign":"center","color":16777215},"switch-image":{"width":60,"height":36,"marginLeft":260,"marginTop":9}}} +module.exports = {"classSelectors":{"container":{"width":"100%","height":"100%","flexDirection":"column","backgroundColor":3816774},"title":{"width":200,"fontSize":26,"height":50,"color":16777215,"marginLeft":20},"body":{"width":"100%","height":396,"flexDirection":"column","justifyContent":"center","alignItems":"center","backgroundColor":1579034},"header":{"width":480,"height":84,"flexDirection":"row","alignItems":"center","backgroundColor":3816774},"wifi-btn":{"width":38,"height":38,"marginLeft":150},"change-page":{"width":38,"height":38,"marginLeft":20},"window-img":{"width":338,"height":251,"backgroundColor":1579034},"bottom-card":{"width":444,"height":96,"flexDirection":"row","alignItems":"center","backgroundColor":3816774,"boxShadow":"0px 1px 3px 0px rgba(0, 0, 0, 0.3)","borderRadius":24},"show-state":{"width":106,"height":60,"fontSize":24,"textAlign":"center","color":16777215},"switch-image":{"width":60,"height":36,"marginLeft":240}}} /***/ }), @@ -128,7 +128,7 @@ var _default = { setInterval(function () { (0, _newArrowCheck2["default"])(this, _this2); return this.GetKey(); - }.bind(this), 500); + }.bind(this), 2000); }.bind(this), 6000); }, clickPower: function clickPower() { diff --git a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/index/index.js.map b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/index/index.js.map index 0c3a42d7407fbfd4db0c1413d67bcf6ebbcc1698..91eddc7abc08e1fd9d17b2a54cbbcb2a799d084f 100755 --- a/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/index/index.js.map +++ b/dev/team_x/smart_safe_kitchen-smart_window/fs/data/data/js/pages/index/index.js.map @@ -1 +1 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qB,GAAG,GAAGC,IAAI,CAACC,KAAL,CAAWvB,IAAX,CAAV;;AAEA,YAAIqB,GAAG,CAACR,GAAR,EAAa;AACT,cAAGQ,GAAG,CAACR,GAAJ,IAAW,IAAd,EAAmB;AACf,iBAAKZ,SAAL,GAAiB,IAAjB;AACH,WAFD,MAEK;AACD,iBAAKA,SAAL,GAAiB,KAAjB;AACH;AACJ;;AAED,YAAIoB,GAAG,CAACG,IAAR,EAAc;AACV,cAAGH,GAAG,CAACG,IAAJ,IAAY,WAAf,EAA4B;AACxB,iBAAKtB,MAAL,GAAc,IAAd;AACH,WAFD,MAEO;AACH,iBAAKA,MAAL,GAAc,KAAd;AACH;AACJ;AAEJ,OAnBM,WAFH;AAsBJgB,MAAAA,IAAI,EAAE,cAASlB,IAAT,EAAemB,IAAf,EAAqB;AACvBH,QAAAA,OAAO,CAACC,GAAR,CAAY,kCAAkCE,IAAlC,GAAyC,UAAzC,GAAsDnB,IAAlE;AACH,OAxBG;AAyBJyB,MAAAA,QAAQ,EAAE,oBAAW;AACjBT,QAAAA,OAAO,CAACC,GAAR,CAAY,eAAZ;AACH;AA3BG,KAAR;AA6BH,GAjEU;AAoEXS,EAAAA,UApEW,sBAoEAC,SApEA,EAoEW;AAClBC,wBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAC;AADO,KAAf;AAGH;AAxEU;;;;;;;;;;;;UCnBf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/index/index.hml?entry","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/index/index.css","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/index/index.hml","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/newArrowCheck.js","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/index/index.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","_newArrowCheck","innerThis","boundThis","TypeError","data","isPowerOn","isWifi","onInit","setTimeout","setInterval","GetKey","clickPower","SetKey","key1","value1","com","set","key","value","success","console","log","fail","code","get","res","JSON","parse","wifi","complete","changePage","operation","router","replace","uri"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"./pages/index/index.js","mappings":";;;;;;;;;AAAA,qBAAqB,mBAAO,CAAC,gLAAuO;AACpQ,kBAAkB,mBAAO,CAAC,0KAAoO;AAC9P,mBAAmB,mBAAO,CAAC,22BAAuqB;AAClsB;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;ACVA,kBAAkB,kBAAkB,aAAa,kFAAkF,UAAU,uEAAuE,SAAS,+HAA+H,WAAW,8FAA8F,aAAa,wCAAwC,gBAAgB,uCAAuC,eAAe,mDAAmD,gBAAgB,iKAAiK,eAAe,4EAA4E,iBAAiB;;;;;;;;;;ACAh5B,iCAAiC,sBAAsB,kBAAkB,+BAA+B,cAAc,4BAA4B,eAAe,WAAW,iBAAiB,4BAA4B,eAAe,WAAW,qBAAqB,0EAA0E,+BAA+B,eAAe,WAAW,mCAAmC,qDAAqD,2BAA2B,gBAAgB,0BAA0B,gBAAgB,WAAW,qBAAqB,+EAA+E,iCAAiC,aAAa,iCAAiC,eAAe,WAAW,uBAAuB,gCAAgC,iCAAiC,eAAe,WAAW,qBAAqB,uEAAuE,qBAAqB,yBAAyB,mCAAmC;;;;;;;;;;;;;ACA/iC,SAASA,sBAAT,CAAgCC,GAAhC,EAAqC;AACnC,S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C,wBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAC;AADO,KAAf;AAGH;AAxEU;;;;;;;;;;;;UCnBf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/index/index.hml?entry","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/index/index.css","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/index/index.hml","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///c:/Users/Administrator/AppData/Local/Huawei/Sdk/js/3.0.0.1/build-tools/ace-loader/node_modules/@babel/runtime/helpers/newArrowCheck.js","webpack:///d:/HarmonyWorkSpace/SmartWindow/entry/src/main/js/default/pages/index/index.js","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":["_interopRequireDefault","obj","__esModule","module","exports","_newArrowCheck","innerThis","boundThis","TypeError","data","isPowerOn","isWifi","onInit","setTimeout","setInterval","GetKey","clickPower","SetKey","key1","value1","com","set","key","value","success","console","log","fail","code","get","res","JSON","parse","wifi","complete","changePage","operation","router","replace","uri"],"sourceRoot":""} \ No newline at end of file diff --git a/dev/team_x/smart_safe_kitchen-smart_window/softbus_demo_window/wifi/wifi_sta.c b/dev/team_x/smart_safe_kitchen-smart_window/softbus_demo_window/wifi/wifi_sta.c index 17b13c9032472ddc1c0485afb26826ecff28dc6d..1c901e18d13c5a4aa797e5f71599a0ed025ce6bd 100755 --- a/dev/team_x/smart_safe_kitchen-smart_window/softbus_demo_window/wifi/wifi_sta.c +++ b/dev/team_x/smart_safe_kitchen-smart_window/softbus_demo_window/wifi/wifi_sta.c @@ -22,7 +22,7 @@ #include "wifi_error_code.h" #include "wifi_sta.h" -#define SELECT_WIFI_SSID "test_wifi" +#define SELECT_WIFI_SSID "test_wifi123" #define SELECT_WIFI_PASSWORD "12345678" #define SELECT_WIFI_SECURITYTYPE WIFI_SEC_TYPE_PSK