q
BIN
MyApplication2/.gradle/6.3/executionHistory/executionHistory.bin
Normal file
BIN
MyApplication2/.gradle/6.3/fileChanges/last-build.bin
Normal file
BIN
MyApplication2/.gradle/6.3/fileContent/fileContent.lock
Normal file
BIN
MyApplication2/.gradle/6.3/fileHashes/fileHashes.bin
Normal file
BIN
MyApplication2/.gradle/6.3/fileHashes/fileHashes.lock
Normal file
BIN
MyApplication2/.gradle/6.3/fileHashes/resourceHashesCache.bin
Normal file
0
MyApplication2/.gradle/6.3/gc.properties
Normal file
BIN
MyApplication2/.gradle/6.3/javaCompile/classAnalysis.bin
Normal file
BIN
MyApplication2/.gradle/6.3/javaCompile/jarAnalysis.bin
Normal file
BIN
MyApplication2/.gradle/6.3/javaCompile/javaCompile.lock
Normal file
BIN
MyApplication2/.gradle/6.3/javaCompile/taskHistory.bin
Normal file
@ -0,0 +1,2 @@
|
||||
#Tue Dec 21 14:04:59 CST 2021
|
||||
gradle.version=6.3
|
BIN
MyApplication2/.gradle/buildOutputCleanup/outputFiles.bin
Normal file
BIN
MyApplication2/.gradle/checksums/checksums.lock
Normal file
0
MyApplication2/.gradle/vcs-1/gc.properties
Normal file
BIN
MyApplication2/.idea/caches/build_file_checksums.ser
generated
Normal file
9
MyApplication2/.idea/libraries/Gradle__hamcrest_core_1_3.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Gradle: hamcrest-core-1.3">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
MyApplication2/.idea/libraries/Gradle__junit_4_13.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Gradle: junit-4.13">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.13/e49ccba652b735c93bd6e6f59760d8254cf597dd/junit-4.13.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
MyApplication2/.idea/libraries/Gradle__junit_4_13_1.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Gradle: junit-4.13.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.13.1/cdd00374f1fee76b11e2a9d127405aa3f6be5b6a/junit-4.13.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
MyApplication2/.idea/libraries/Gradle__runner_1_0_0_200.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Gradle: runner-1.0.0.200">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.huawei.ohos.testkit/runner/1.0.0.200/db197b4a9c96bb98eb7888e957867588f55251a9/runner-1.0.0.200.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
MyApplication2/.idea/modules.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/MyApplication2.iml" filepath="$PROJECT_DIR$/.idea/modules/MyApplication2.iml" group="MyApplication2" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/entry/entry.iml" filepath="$PROJECT_DIR$/.idea/modules/entry/entry.iml" group="MyApplication2/entry" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
20
MyApplication2/.idea/modules/MyApplication2.iml
generated
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id="MyApplication2" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="java-gradle" name="Java-Gradle">
|
||||
<configuration>
|
||||
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/../../build" />
|
||||
<option name="BUILDABLE" value="false" />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$/../..">
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../.gradle" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../build" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
80
MyApplication2/.idea/modules/entry/entry.iml
generated
Normal file
@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id=":entry" external.linked.project.path="$MODULE_DIR$/../../../entry" external.root.project.path="$MODULE_DIR$/../../.." external.system.id="GRADLE" external.system.module.group="MyApplication2" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="android-gradle" name="Android-Gradle">
|
||||
<configuration>
|
||||
<option name="GRADLE_PROJECT_PATH" value=":entry" />
|
||||
<option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" />
|
||||
<option name="LAST_KNOWN_AGP_VERSION" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="java-gradle" name="Java-Gradle">
|
||||
<configuration>
|
||||
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/../../../entry/build" />
|
||||
<option name="BUILDABLE" value="false" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="harmony" name="harmony">
|
||||
<configuration>
|
||||
<option name="SELECTED_BUILD_VARIANT" value="debug" />
|
||||
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
|
||||
<option name="GENERATE_RESOURCES_TASK_NAME" value="generateDebugResources" />
|
||||
<option name="RESOURCES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/../../../entry/src/main/resources;file://$MODULE_DIR$/../../../entry/src/debug/resources" />
|
||||
<option name="OHOS_TEST_RESOURCES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/../../../entry/src/ohosTest/resources;file://$MODULE_DIR$/../../../entry/src/debugOhosTest/resources" />
|
||||
<option name="MODULE_TYPE" value="entry" />
|
||||
<option name="DEBUGGABLE" value="true" />
|
||||
<option name="HAP_OUTPUT_FOLDER_PATH" value="D:\Github\MyApplication2\entry\build\outputs\hap\debug" />
|
||||
<option name="PREVIEW_EXECUTE_TASK_NAME" value="generateDebugJsManifest" />
|
||||
<option name="JS_MANIFEST_PATH" value="D:\Github\MyApplication2\entry\build\intermediates\js\debug\jsManifest" />
|
||||
<option name="SUPERVISUAL_SOURCE_DIR_PATH" value="D:\Github\MyApplication2\entry\src\main\supervisual" />
|
||||
<option name="JS_SOURCE_DIR_PATH" value="D:\Github\MyApplication2\entry\src\main\js" />
|
||||
<option name="ETS_SOURCE_DIR_PATH" value="D:\Github\MyApplication2\entry\src\main\ets" />
|
||||
<option name="MERGE_JS_SRC" value="false" />
|
||||
<option name="COMPILE_MODE_TYPE" value="d8" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="ohos" name="Ohos">
|
||||
<configuration>
|
||||
<option name="configurationProperty" value="This is option under configuration" />
|
||||
<option name="gradleProjectPath" value=":entry" />
|
||||
<option name="moduleExternalName" value="entry" />
|
||||
<option name="moduleName" value="entry" />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/../../../entry/build/intermediates/javac/debug/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/../../../entry/build/intermediates/javac/debugTest/classes" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$/../../../entry">
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/build/generated/source/annotation/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/build/intermediates/original_res/debug" type="java-resource" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/main/js" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/ohosTest/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/ohosTest/js" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/ohosTest/resources" type="java-test-resource" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../entry/.cxx" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../entry/.gradle" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../entry/.preview" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../entry/build" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="SDK(API Version 5)" jdkType="SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="Gradle: hamcrest-core-1.3" level="project" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="Gradle: junit-4.13" level="project" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="Gradle: runner-1.0.0.200" level="project" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="Gradle: junit-4.13.1" level="project" />
|
||||
<orderEntry type="module-library">
|
||||
<library name="Gradle: ACE JS-common-2.1.1.21" type="ACE">
|
||||
<CLASSES />
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="file://$USER_HOME$/AppData/Local/Huawei/Sdk/js/2.1.1.21/api/common" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</orderEntry>
|
||||
</component>
|
||||
</module>
|
146
MyApplication2/.idea/workspace.xml
generated
Normal file
@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="3a486032-3093-4668-a274-44da2436ed90" name="Default Changelist" comment="" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="ExternalProjectsData">
|
||||
<projectState path="$PROJECT_DIR$">
|
||||
<ProjectState />
|
||||
</projectState>
|
||||
</component>
|
||||
<component name="GroovyConsoleState">
|
||||
<option name="list">
|
||||
<list>
|
||||
<Entry>
|
||||
<option name="url" value="file://$APPLICATION_CONFIG_DIR$/consoles/groovy/groovy_console.groovy" />
|
||||
</Entry>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="HiLogFilter">
|
||||
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="Show only selected application" />
|
||||
</component>
|
||||
<component name="ProjectId" id="22aDEY728fBYgpevTAMyVifSALz" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
||||
<property name="SAVED_PROJECT_CPP_SUPPORT" value="non-cpp" />
|
||||
<property name="auto_debug_app_id" value="786806777898347328" />
|
||||
<property name="auto_debug_bundleName" value="myapplication" />
|
||||
<property name="auto_debug_cert_list" value="786837812308627456" />
|
||||
<property name="auto_debug_device_list" value="786837178230525952 786730456077848576 14005787714578901339 14005787714578876729 14005787714578876728" />
|
||||
<property name="auto_debug_team_id" value="56657123" />
|
||||
<property name="last_csr_path" value="C:\Users\honor\key\xcl2048.csr" />
|
||||
<property name="last_keystore_path" value="C:\Users\honor\key\xcl2048.p12" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/entry/src/main/resources/base/media" />
|
||||
<property name="project.ide.version" value="3.0.0.601" />
|
||||
<property name="project.structure.select" value="Project" />
|
||||
<property name="settings.editor.selected.configurable" value="SdkWebView" />
|
||||
<property name="show.inlinked.gradle.project.popup" value="false" />
|
||||
</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="ohos.template.packageName">
|
||||
<recent name="com.xcl20481.myapplication" />
|
||||
</key>
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="D:\Github\MyApplication2\entry\src\main\resources\base\media" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunManager" selected="HarmonyOS App.entry">
|
||||
<configuration name="entry" type="OhosDebugTask" factoryName="HarmonyOS App" activateToolWindowBeforeRun="false">
|
||||
<module name="entry" />
|
||||
<option name="DEPLOY" value="true" />
|
||||
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
||||
<option name="DEPLOY_AS_INSTANT" value="false" />
|
||||
<option name="ARTIFACT_NAME" value="" />
|
||||
<option name="PM_INSTALL_OPTIONS" value="" />
|
||||
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="" />
|
||||
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
|
||||
<option name="MODE" value="default_activity" />
|
||||
<option name="CLEAR_LOGCAT" value="false" />
|
||||
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
|
||||
<option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
|
||||
<option name="FORCE_STOP_RUNNING_APP" value="true" />
|
||||
<option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
|
||||
<option name="DEBUGGER_TYPE" value="Auto" />
|
||||
<Auto />
|
||||
<Dual />
|
||||
<DualJs />
|
||||
<Java />
|
||||
<Js />
|
||||
<Native />
|
||||
<Profilers>
|
||||
<option name="ADVANCED_PROFILING_ENABLED" value="false" />
|
||||
<option name="STARTUP_CPU_PROFILING_ENABLED" value="false" />
|
||||
<option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Sample Java Methods" />
|
||||
</Profilers>
|
||||
<option name="DEEP_LINK" value="" />
|
||||
<option name="ACTIVITY_CLASS" value="" />
|
||||
<DEPLOY_MULTI_HAP>false</DEPLOY_MULTI_HAP>
|
||||
<REINSTALL_APPLICATION>false</REINSTALL_APPLICATION>
|
||||
<method v="2">
|
||||
<option name="Ohos.Build.BeforeRunTask" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<configuration name="Super App" type="OhosSuperAppDebugTask" factoryName="HarmonyOS Super App">
|
||||
<method v="2">
|
||||
<option name="Ohos.Build.BeforeRunTask" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="3a486032-3093-4668-a274-44da2436ed90" name="Default Changelist" comment="" />
|
||||
<created>1640066695579</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1640066695579</updated>
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="WindowStateProjectService">
|
||||
<state x="499" y="164" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog" timestamp="1640072825832">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state x="499" y="164" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.0.1536.834@0.0.1536.834" timestamp="1640072825832" />
|
||||
<state x="549" y="144" key="FileChooserDialogImpl" timestamp="1640068421727">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state x="549" y="144" key="FileChooserDialogImpl/0.0.1536.834@0.0.1536.834" timestamp="1640068421727" />
|
||||
<state width="746" height="171" key="GridCell.Tab.0.bottom" timestamp="1640073696680">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state width="746" height="171" key="GridCell.Tab.0.bottom/0.0.1536.834@0.0.1536.834" timestamp="1640073696680" />
|
||||
<state width="746" height="171" key="GridCell.Tab.0.center" timestamp="1640073696680">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state width="746" height="171" key="GridCell.Tab.0.center/0.0.1536.834@0.0.1536.834" timestamp="1640073696680" />
|
||||
<state width="746" height="171" key="GridCell.Tab.0.left" timestamp="1640073696679">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state width="746" height="171" key="GridCell.Tab.0.left/0.0.1536.834@0.0.1536.834" timestamp="1640073696679" />
|
||||
<state width="746" height="171" key="GridCell.Tab.0.right" timestamp="1640073696680">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state width="746" height="171" key="GridCell.Tab.0.right/0.0.1536.834@0.0.1536.834" timestamp="1640073696680" />
|
||||
<state x="93" y="93" width="1350" height="648" key="HVDManager" timestamp="1640071296659">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state x="93" y="93" width="1350" height="648" key="HVDManager/0.0.1536.834@0.0.1536.834" timestamp="1640071296659" />
|
||||
<state x="369" y="127" width="950" height="707" key="SettingsEditor" timestamp="1640070395207">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state x="369" y="127" width="950" height="707" key="SettingsEditor/0.0.1536.834@0.0.1536.834" timestamp="1640070395207" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,151 @@
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId]) {
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = true;
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
/******/
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = "D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js?entry");
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ "./lib/manifest-plugin.js!D:\\Github\\MyApplication2\\entry\\.preview\\jsManifest\\default\\manifest.json":
|
||||
/*!*********************************************************************************************************!*\
|
||||
!*** ./lib/manifest-plugin.js!D:/Github/MyApplication2/entry/.preview/jsManifest/default/manifest.json ***!
|
||||
\*********************************************************************************************************/
|
||||
/*! exports provided: appID, appName, versionName, versionCode, minPlatformVersion, pages, deviceType, window, default */
|
||||
/***/ (function(module) {
|
||||
|
||||
module.exports = JSON.parse("{\"appID\":\"com.xcl20481.myapplication\",\"appName\":\"$string:entry_MainAbility\",\"versionName\":\"1.0.0\",\"versionCode\":1000000,\"minPlatformVersion\":4,\"pages\":[\"pages/index/index\"],\"deviceType\":[\"phone\",\"tablet\",\"tv\",\"wearable\"],\"window\":{\"autoDesignWidth\":true,\"designWidth\":720}}");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/manifest-loader.js?path=D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js!D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js":
|
||||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./lib/script.js!./node_modules/babel-loader/lib?presets[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/preset-env&plugins[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/manifest-loader.js?path=D:/Github/MyApplication2/entry/src/main/js/default/app.js!D:/Github/MyApplication2/entry/src/main/js/default/app.js ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = function(module, exports, $app_require$){"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
var _default = {
|
||||
onCreate: function onCreate() {
|
||||
console.info('AceApplication onCreate');
|
||||
},
|
||||
onDestroy: function onDestroy() {
|
||||
console.info('AceApplication onDestroy');
|
||||
}
|
||||
};
|
||||
exports["default"] = _default;
|
||||
;
|
||||
(exports["default"] || module.exports).manifest = __webpack_require__(/*! !./lib/manifest-plugin.js!../../../../.preview/jsManifest/default/manifest.json */ "./lib/manifest-plugin.js!D:\\Github\\MyApplication2\\entry\\.preview\\jsManifest\\default\\manifest.json");}
|
||||
/* generated by ace-loader */
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js?entry":
|
||||
/*!***********************************************************************!*\
|
||||
!*** D:/Github/MyApplication2/entry/src/main/js/default/app.js?entry ***!
|
||||
\***********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var $app_script$ = __webpack_require__(/*! !./lib/script.js!./node_modules/babel-loader?presets[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/preset-env&plugins[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/manifest-loader.js?path=D:/Github/MyApplication2/entry/src/main/js/default/app.js!./app.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/manifest-loader.js?path=D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js!D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js")
|
||||
|
||||
$app_define$('@app-application/app', [], function($app_require$, $app_exports$, $app_module$) {
|
||||
|
||||
$app_script$($app_module$, $app_exports$, $app_require$)
|
||||
if ($app_exports$.__esModule && $app_exports$.default) {
|
||||
$app_module$.exports = $app_exports$.default
|
||||
}
|
||||
|
||||
})
|
||||
$app_bootstrap$('@app-application/app',undefined,undefined)
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
//# sourceMappingURL=app.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///D:/Github/MyApplication2/entry/src/main/js/default/app.js","webpack:///D:/Github/MyApplication2/entry/src/main/js/default/app.js?9973"],"names":["onCreate","console","info","onDestroy","exports","module","manifest","require"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eClFe;AACXA,UADW,sBACA;AACPC,WAAO,CAACC,IAAR,CAAa,yBAAb;AACH,GAHU;AAIXC,WAJW,uBAIC;AACRF,WAAO,CAACC,IAAR,CAAa,0BAAb;AACH;AANU,C;;AAQf;AAAC,CAACE,OAAO,WAAP,IAAmBC,MAAM,CAACD,OAA3B,EAAoCE,QAApC,GAA+CC,mBAAO,CAAC,iMAAD,CAAtD;;;;;;;;;;;;;ACRD,mBAAmB,mBAAO,CAAC,u6BAA+rB;;AAE1tB;;AAEA;AACA;AACA;AACA;;AAEA,OAAO;AACP,iE","file":"./app.js","sourceRoot":""}
|
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 210 KiB |
@ -0,0 +1,54 @@
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `fontSize` attribute does not support `fp`. The default unit is px @45:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `fontSize` attribute does not support `fp`. The default unit is px @60:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `height` attribute does not support `fp`. The default unit is px @11:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `height` attribute does not support `fp`. The default unit is px @19:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `height` attribute does not support `fp`. The default unit is px @25:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `height` attribute does not support `fp`. The default unit is px @31:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `height` attribute does not support `fp`. The default unit is px @39:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `height` attribute does not support `fp`. The default unit is px @3:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `height` attribute does not support `fp`. The default unit is px @50:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `height` attribute does not support `fp`. The default unit is px @54:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `letterSpacing` attribute does not support `fp`. The default unit is px @12:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `letterSpacing` attribute does not support `fp`. The default unit is px @20:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `marginBottom` attribute does not support `fp`. The default unit is px @14:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `marginBottom` attribute does not support `fp`. The default unit is px @42:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `marginLeft` attribute does not support `fp`. The default unit is px @33:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `marginTop` attribute does not support `fp`. The default unit is px @13:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `marginTop` attribute does not support `fp`. The default unit is px @21:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `marginTop` attribute does not support `fp`. The default unit is px @32:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `marginTop` attribute does not support `fp`. The default unit is px @41:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `width` attribute does not support `fp`. The default unit is px @10:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `width` attribute does not support `fp`. The default unit is px @18:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `width` attribute does not support `fp`. The default unit is px @24:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `width` attribute does not support `fp`. The default unit is px @2:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `width` attribute does not support `fp`. The default unit is px @30:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `width` attribute does not support `fp`. The default unit is px @38:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `width` attribute does not support `fp`. The default unit is px @49:5
|
||||
ERROR in D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css
|
||||
The `width` attribute does not support `fp`. The default unit is px @53:5
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"strings": {
|
||||
"hello": "Hello",
|
||||
"world": "World"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"strings": {
|
||||
"hello": "您好",
|
||||
"world": "世界"
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"appID": "com.xcl20481.myapplication",
|
||||
"appName": "$string:entry_MainAbility",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": 1000000,
|
||||
"minPlatformVersion": 4,
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"window": {
|
||||
"autoDesignWidth": true,
|
||||
"designWidth": 720
|
||||
}
|
||||
}
|
@ -0,0 +1,584 @@
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId]) {
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = true;
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
/******/
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = "D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.hml?entry");
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ "./lib/json.js!./lib/style.js!D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.css":
|
||||
/*!*************************************************************************************************************!*\
|
||||
!*** ./lib/json.js!./lib/style.js!D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css ***!
|
||||
\*************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = {
|
||||
".container": {
|
||||
"width": "454px",
|
||||
"height": "454px",
|
||||
"flexDirection": "column",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center"
|
||||
},
|
||||
".score": {
|
||||
"textAlign": "center",
|
||||
"width": "234px",
|
||||
"height": "30px",
|
||||
"letterSpacing": "0px",
|
||||
"marginTop": "4px",
|
||||
"marginBottom": "6px"
|
||||
},
|
||||
".best": {
|
||||
"textAlign": "center",
|
||||
"width": "234px",
|
||||
"height": "30px",
|
||||
"letterSpacing": "0px",
|
||||
"marginTop": "19px"
|
||||
},
|
||||
".tile-wrap": {
|
||||
"width": "300px",
|
||||
"height": "300px",
|
||||
"flexWrap": "wrap",
|
||||
"backgroundColor": "#FFFFFF"
|
||||
},
|
||||
".tile": {
|
||||
"width": "70px",
|
||||
"height": "70px",
|
||||
"marginTop": "4px",
|
||||
"marginLeft": "4px",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center"
|
||||
},
|
||||
".btn": {
|
||||
"width": "135px",
|
||||
"height": "45px",
|
||||
"backgroundColor": "#1F71FF",
|
||||
"marginTop": "10px",
|
||||
"marginBottom": "10px"
|
||||
},
|
||||
".text": {
|
||||
"fontSize": "30px",
|
||||
"color": "#000000"
|
||||
},
|
||||
".stack": {
|
||||
"width": "300px",
|
||||
"height": "300px"
|
||||
},
|
||||
".subcontainer": {
|
||||
"width": "300px",
|
||||
"height": "300px",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center",
|
||||
"backgroundColor": "rgba(0,0,0,0)"
|
||||
},
|
||||
".gameover": {
|
||||
"fontSize": "40px",
|
||||
"color": "#FF7500"
|
||||
}
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/json.js!./lib/template.js!D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.hml":
|
||||
/*!****************************************************************************************************************!*\
|
||||
!*** ./lib/json.js!./lib/template.js!D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.hml ***!
|
||||
\****************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = {
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:1",
|
||||
"className": "container"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"container"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:2",
|
||||
"className": "best",
|
||||
"value": function () {return 'Best:' + (this.best)}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"best"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:5",
|
||||
"className": "score",
|
||||
"value": function () {return 'Score:' + (this.score)}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"score"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:8",
|
||||
"className": "stack"
|
||||
},
|
||||
"type": "stack",
|
||||
"classList": [
|
||||
"stack"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:9",
|
||||
"className": "tile-wrap"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"tile-wrap"
|
||||
],
|
||||
"events": {
|
||||
"swipe": "onSwipe"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:10",
|
||||
"className": "tile"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"tile"
|
||||
],
|
||||
"repeat": function () {return this.tiles},
|
||||
"style": {
|
||||
"backgroundColor": "#000000"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:11",
|
||||
"className": "text",
|
||||
"value": function () {return this.$item.text}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"text"
|
||||
],
|
||||
"style": {
|
||||
"color": "#FFFFFF"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:16",
|
||||
"className": "subcontainer",
|
||||
"show": function () {return this.isShow}
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"subcontainer"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:17",
|
||||
"className": "gameover",
|
||||
"value": "Gameover!"
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"gameover"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:22",
|
||||
"className": "btn",
|
||||
"type": "button",
|
||||
"value": "Restart!"
|
||||
},
|
||||
"type": "input",
|
||||
"classList": [
|
||||
"btn"
|
||||
],
|
||||
"events": {
|
||||
"click": "onInit"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.js":
|
||||
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./lib/script.js!./node_modules/babel-loader/lib?presets[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/preset-env&plugins[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.js ***!
|
||||
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = function(module, exports, $app_require$){"use strict";
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _system = _interopRequireDefault(systemplugin.brightness);
|
||||
|
||||
var numbers, newNumbers;
|
||||
var _default = {
|
||||
data: {
|
||||
score: 0,
|
||||
best: 0,
|
||||
tiles: [],
|
||||
isShow: false
|
||||
},
|
||||
onInit: function onInit() {
|
||||
this.isShow = false;
|
||||
this.score = 0;
|
||||
this.tiles = [{
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}];
|
||||
numbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
this.supplyNumber();
|
||||
this.supplyNumber();
|
||||
this.updateView();
|
||||
|
||||
_system["default"].setKeepScreenOn({
|
||||
keepScreenOn: true
|
||||
});
|
||||
|
||||
_system["default"].setMode({
|
||||
mode: 1
|
||||
});
|
||||
},
|
||||
supplyNumber: function supplyNumber() {
|
||||
var positions = [];
|
||||
|
||||
for (var i = 0; i <= 15; i++) {
|
||||
if (!newNumbers[i]) positions.push(i);
|
||||
}
|
||||
|
||||
var h = Math.floor(Math.random() * positions.length);
|
||||
|
||||
if (Math.random() <= 0.8) {
|
||||
newNumbers[positions[h]] = 2;
|
||||
} else {
|
||||
newNumbers[positions[h]] = 4;
|
||||
}
|
||||
},
|
||||
onSwipe: function onSwipe(e) {
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
var start = 0,
|
||||
differ = 0,
|
||||
step = 0;
|
||||
|
||||
switch (e.direction) {
|
||||
case 'left':
|
||||
start = 0;
|
||||
differ = 1;
|
||||
step = 4;
|
||||
break;
|
||||
|
||||
case 'right':
|
||||
start = 3;
|
||||
differ = -1;
|
||||
step = 4;
|
||||
break;
|
||||
|
||||
case 'up':
|
||||
start = 0;
|
||||
differ = 4;
|
||||
step = 1;
|
||||
break;
|
||||
|
||||
case 'down':
|
||||
start = 12;
|
||||
differ = -4;
|
||||
step = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
var ids;
|
||||
|
||||
for (var j = 0; j <= 3; j++) {
|
||||
ids = this.getIds(start, differ);
|
||||
var before = null;
|
||||
var noZeros = 0;
|
||||
|
||||
for (var k = 0; k <= 3; k++) {
|
||||
var id = ids[k];
|
||||
var number = numbers[id];
|
||||
|
||||
if (number != 0) {
|
||||
if (number == before) {
|
||||
this.score += number * 2;
|
||||
newNumbers[ids[noZeros - 1]] *= 2;
|
||||
before = null;
|
||||
} else {
|
||||
newNumbers[ids[noZeros]] = number;
|
||||
before = number;
|
||||
noZeros += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
start += step;
|
||||
}
|
||||
|
||||
if (this.best >= this.score) {
|
||||
this.best = this.best;
|
||||
} else {
|
||||
this.best = this.score;
|
||||
}
|
||||
|
||||
if (numbers.toString() != newNumbers.toString()) {
|
||||
this.supplyNumber();
|
||||
this.updateView();
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
|
||||
if (this.isGameOver() == true) {
|
||||
this.isShow = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
getIds: function getIds(start, differ) {
|
||||
var ids = [];
|
||||
|
||||
for (var z = 4; z >= 1; z--) {
|
||||
ids.push(start);
|
||||
start += differ;
|
||||
}
|
||||
|
||||
return ids;
|
||||
},
|
||||
updateView: function updateView() {
|
||||
for (var x = 0; x <= 15; x++) {
|
||||
if (newNumbers[x] != 0) {
|
||||
this.tiles[x].text = newNumbers[x].toString();
|
||||
} else {
|
||||
this.tiles[x].text = "";
|
||||
}
|
||||
}
|
||||
|
||||
numbers = newNumbers;
|
||||
},
|
||||
isGameOver: function isGameOver() {
|
||||
if (this.isGridsFull() == true && this.isGridsNotMergeable() == true) return true;
|
||||
},
|
||||
isGridsFull: function isGridsFull() {
|
||||
if (numbers.indexOf(0) == -1) {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
isGridsNotMergeable: function isGridsNotMergeable() {
|
||||
for (var l = 0; l <= 15; l++) {
|
||||
if (l <= 14) {
|
||||
if (numbers[l] == numbers[l + 1] && (l + 1) % 4 != 0) return false;
|
||||
}
|
||||
|
||||
if (l <= 11) {
|
||||
if (numbers[l] == numbers[l + 4]) return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
exports["default"] = _default;
|
||||
var moduleOwn = exports.default || module.exports;
|
||||
var accessors = ['public', 'protected', 'private'];
|
||||
if (moduleOwn.data && accessors.some(function (acc) {
|
||||
return moduleOwn[acc];
|
||||
})) {
|
||||
throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.');
|
||||
} else if (!moduleOwn.data) {
|
||||
moduleOwn.data = {};
|
||||
moduleOwn._descriptor = {};
|
||||
accessors.forEach(function(acc) {
|
||||
var accType = typeof moduleOwn[acc];
|
||||
if (accType === 'object') {
|
||||
moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]);
|
||||
for (var name in moduleOwn[acc]) {
|
||||
moduleOwn._descriptor[name] = {access : acc};
|
||||
}
|
||||
} else if (accType === 'function') {
|
||||
console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.');
|
||||
}
|
||||
});
|
||||
}}
|
||||
/* generated by ace-loader */
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
||||
\**********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
"default": obj
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _interopRequireDefault;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.hml?entry":
|
||||
/*!**************************************************************************************!*\
|
||||
!*** D:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.hml?entry ***!
|
||||
\**************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var $app_template$ = __webpack_require__(/*! !./lib/json.js!./lib/template.js!./index.hml */ "./lib/json.js!./lib/template.js!D:\\Github\\MyApplication2\\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:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.css")
|
||||
var $app_script$ = __webpack_require__(/*! !./lib/script.js!./node_modules/babel-loader?presets[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/preset-env&plugins[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./index.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!D:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.js")
|
||||
|
||||
$app_define$('@app-component/index', [], function($app_require$, $app_exports$, $app_module$) {
|
||||
|
||||
$app_script$($app_module$, $app_exports$, $app_require$)
|
||||
if ($app_exports$.__esModule && $app_exports$.default) {
|
||||
$app_module$.exports = $app_exports$.default
|
||||
}
|
||||
|
||||
$app_module$.exports.template = $app_template$
|
||||
|
||||
$app_module$.exports.style = $app_style$
|
||||
|
||||
})
|
||||
$app_bootstrap$('@app-component/index',undefined,undefined)
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
//# sourceMappingURL=index.js.map
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"appID": "com.xcl20481.myapplication",
|
||||
"appName": "$string:entry_MainAbility",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": 1000000,
|
||||
"minPlatformVersion": 4,
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"window": {
|
||||
"autoDesignWidth": true,
|
||||
"designWidth": 720
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
.container{
|
||||
width: 227px;
|
||||
height: 227px;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.score{
|
||||
text-align: center;
|
||||
width: 70px;
|
||||
height: 17px;
|
||||
letter-spacing: 0px;
|
||||
font-size: 11px;
|
||||
margin-top: 1.8px;
|
||||
margin-bottom:3px;
|
||||
}
|
||||
.best{
|
||||
text-align: center;
|
||||
width: 60px;
|
||||
height: 17px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0px;
|
||||
margin-top: 8.5px;
|
||||
}
|
||||
.tile-wrap{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
flex-wrap: wrap;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.tile{
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
margin-top: 2px;
|
||||
margin-left: 2px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.btn{
|
||||
width: 61.5px;
|
||||
height: 20.5px;
|
||||
background-color: #155ddc;
|
||||
margin-top: 5px;
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.text{
|
||||
font-size: 13px;
|
||||
color: #000000;
|
||||
}
|
||||
.stack{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
}
|
||||
.subcontainer{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: transparent;
|
||||
}
|
||||
.gameover{
|
||||
font-size: 20px;
|
||||
color: #FF7500;
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
.container{
|
||||
width: 227px;
|
||||
height: 227px;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.score{
|
||||
text-align: center;
|
||||
width: 70px;
|
||||
height: 17px;
|
||||
letter-spacing: 0px;
|
||||
font-size: 11px;
|
||||
margin-top: 1.8px;
|
||||
margin-bottom:3px;
|
||||
}
|
||||
.best{
|
||||
text-align: center;
|
||||
width: 60px;
|
||||
height: 17px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0px;
|
||||
margin-top: 8.5px;
|
||||
}
|
||||
.tile-wrap{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
flex-wrap: wrap;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.tile{
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
margin-top: 2px;
|
||||
margin-left: 2px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.btn{
|
||||
width: 61.5px;
|
||||
height: 20.5px;
|
||||
background-color: #155ddc;
|
||||
margin-top: 5px;
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.text{
|
||||
font-size: 13px;
|
||||
color: #000000;
|
||||
}
|
||||
.stack{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
}
|
||||
.subcontainer{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: transparent;
|
||||
}
|
||||
.gameover{
|
||||
font-size: 20px;
|
||||
color: #FF7500;
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Automatically generated file. DO NOT MODIFY
|
||||
*/
|
||||
package com.xcl20481.myapplication;
|
||||
|
||||
public final class BuildConfig {
|
||||
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
||||
public static final String PACKAGE_NAME = "com.xcl20481.myapplication";
|
||||
public static final String BUILD_TYPE = "debug";
|
||||
public static final int COMPILE_SDK_VERSION = 5;
|
||||
public static final int VERSION_CODE = 1000000;
|
||||
public static final String VERSION_NAME = "1.0.1";
|
||||
public static final String BUNDLE_NAME = "com.xcl20481.myapplication";
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Automatically generated file. DO NOT MODIFY
|
||||
*/
|
||||
package com.xcl20481.myapplication;
|
||||
|
||||
public final class BuildConfig {
|
||||
public static final boolean DEBUG = false;
|
||||
public static final String PACKAGE_NAME = "com.xcl20481.myapplication";
|
||||
public static final String BUILD_TYPE = "release";
|
||||
public static final int COMPILE_SDK_VERSION = 5;
|
||||
public static final int VERSION_CODE = 1000000;
|
||||
public static final String VERSION_NAME = "1.0.0";
|
||||
public static final String BUNDLE_NAME = "com.xcl20481.myapplication";
|
||||
}
|
BIN
MyApplication2/entry/build/generated/source/r/R.jar
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright(c) Huawei Technologies Co., Ltd. 2019 - 2020. All rights reserved.
|
||||
* Description: This header was automatically generated by restool from the resource data it found.
|
||||
* It provides resource index information for applications, and should not be modified by hand.
|
||||
*/
|
||||
|
||||
package com.xcl20481.myapplication;
|
||||
|
||||
public final class ResourceTable {
|
||||
public static final int Media_icon = 0x1000002;
|
||||
public static final int Media_icon2 = 0x1000003;
|
||||
|
||||
public static final int String_mainability_description = 0x1000000;
|
||||
public static final int String_xcl2048 = 0x1000001;
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
D:\Github\MyApplication2\entry\build\intermediates\javac\debug\classes\com\xcl20481\myapplication\BuildConfig.class
|
||||
D:\Github\MyApplication2\entry\build\intermediates\javac\debug\classes\com\xcl20481\myapplication\MainAbility.class
|
||||
D:\Github\MyApplication2\entry\build\intermediates\javac\debug\classes\com\xcl20481\myapplication\MyApplication.class
|
||||
D:\Github\MyApplication2\entry\build\intermediates\javac\debug\classes\com\xcl20481\myapplication\ResourceTable.class
|
@ -0,0 +1,4 @@
|
||||
D:\Github\MyApplication2\entry\build\intermediates\javac\release\classes\com\xcl20481\myapplication\BuildConfig.class
|
||||
D:\Github\MyApplication2\entry\build\intermediates\javac\release\classes\com\xcl20481\myapplication\MainAbility.class
|
||||
D:\Github\MyApplication2\entry\build\intermediates\javac\release\classes\com\xcl20481\myapplication\MyApplication.class
|
||||
D:\Github\MyApplication2\entry\build\intermediates\javac\release\classes\com\xcl20481\myapplication\ResourceTable.class
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"appID": "com.xcl20481.myapplication",
|
||||
"appName": "$string:xcl2048",
|
||||
"versionName": "1.0.1",
|
||||
"versionCode": 1000000,
|
||||
"minPlatformVersion": 4,
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"window": {
|
||||
"autoDesignWidth": true,
|
||||
"designWidth": 720
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,151 @@
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId]) {
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = true;
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
/******/
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = "d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js?entry");
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ "./lib/manifest-plugin.js!d:\\Github\\MyApplication2\\entry\\build\\intermediates\\js\\debug\\jsManifest\\default\\manifest.json":
|
||||
/*!*****************************************************************************************************************************!*\
|
||||
!*** ./lib/manifest-plugin.js!d:/Github/MyApplication2/entry/build/intermediates/js/debug/jsManifest/default/manifest.json ***!
|
||||
\*****************************************************************************************************************************/
|
||||
/*! exports provided: appID, appName, versionName, versionCode, minPlatformVersion, pages, deviceType, window, default */
|
||||
/***/ (function(module) {
|
||||
|
||||
module.exports = JSON.parse("{\"appID\":\"com.xcl20481.myapplication\",\"appName\":\"$string:xcl2048\",\"versionName\":\"1.0.1\",\"versionCode\":1000000,\"minPlatformVersion\":4,\"pages\":[\"pages/index/index\"],\"deviceType\":[\"phone\",\"tablet\",\"tv\",\"wearable\"],\"window\":{\"autoDesignWidth\":true,\"designWidth\":720}}");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/manifest-loader.js?path=d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js!d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js":
|
||||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./lib/script.js!./node_modules/babel-loader/lib?presets[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/preset-env&plugins[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/manifest-loader.js?path=d:/Github/MyApplication2/entry/src/main/js/default/app.js!d:/Github/MyApplication2/entry/src/main/js/default/app.js ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = function(module, exports, $app_require$){"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
var _default = {
|
||||
onCreate: function onCreate() {
|
||||
console.info('AceApplication onCreate');
|
||||
},
|
||||
onDestroy: function onDestroy() {
|
||||
console.info('AceApplication onDestroy');
|
||||
}
|
||||
};
|
||||
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:\\Github\\MyApplication2\\entry\\build\\intermediates\\js\\debug\\jsManifest\\default\\manifest.json");}
|
||||
/* generated by ace-loader */
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js?entry":
|
||||
/*!***********************************************************************!*\
|
||||
!*** d:/Github/MyApplication2/entry/src/main/js/default/app.js?entry ***!
|
||||
\***********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var $app_script$ = __webpack_require__(/*! !./lib/script.js!./node_modules/babel-loader?presets[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/preset-env&plugins[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/manifest-loader.js?path=d:/Github/MyApplication2/entry/src/main/js/default/app.js!./app.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/manifest-loader.js?path=d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js!d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\app.js")
|
||||
|
||||
$app_define$('@app-application/app', [], function($app_require$, $app_exports$, $app_module$) {
|
||||
|
||||
$app_script$($app_module$, $app_exports$, $app_require$)
|
||||
if ($app_exports$.__esModule && $app_exports$.default) {
|
||||
$app_module$.exports = $app_exports$.default
|
||||
}
|
||||
|
||||
})
|
||||
$app_bootstrap$('@app-application/app',undefined,undefined)
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
//# sourceMappingURL=app.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///d:/Github/MyApplication2/entry/src/main/js/default/app.js","webpack:///d:/Github/MyApplication2/entry/src/main/js/default/app.js?220a"],"names":["onCreate","console","info","onDestroy","exports","module","manifest","require"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eClFe;AACXA,UADW,sBACA;AACPC,WAAO,CAACC,IAAR,CAAa,yBAAb;AACH,GAHU;AAIXC,WAJW,uBAIC;AACRF,WAAO,CAACC,IAAR,CAAa,0BAAb;AACH;AANU,C;;AAQf;AAAC,CAACE,OAAO,WAAP,IAAmBC,MAAM,CAACD,OAA3B,EAAoCE,QAApC,GAA+CC,mBAAO,CAAC,4OAAD,CAAtD;;;;;;;;;;;;;ACRD,mBAAmB,mBAAO,CAAC,u6BAA+rB;;AAE1tB;;AAEA;AACA;AACA;AACA;;AAEA,OAAO;AACP,iE","file":"./app.js","sourceRoot":""}
|
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 210 KiB |
@ -0,0 +1,6 @@
|
||||
{
|
||||
"strings": {
|
||||
"hello": "Hello",
|
||||
"world": "World"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"strings": {
|
||||
"hello": "您好",
|
||||
"world": "世界"
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"appID": "com.xcl20481.myapplication",
|
||||
"appName": "$string:xcl2048",
|
||||
"versionName": "1.0.1",
|
||||
"versionCode": 1000000,
|
||||
"minPlatformVersion": 4,
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"window": {
|
||||
"autoDesignWidth": true,
|
||||
"designWidth": 720
|
||||
}
|
||||
}
|
@ -0,0 +1,587 @@
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId]) {
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = true;
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
/******/
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = "d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.hml?entry");
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ "./lib/json.js!./lib/style.js!d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.css":
|
||||
/*!*************************************************************************************************************!*\
|
||||
!*** ./lib/json.js!./lib/style.js!d:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.css ***!
|
||||
\*************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = {
|
||||
".container": {
|
||||
"width": "227px",
|
||||
"height": "227px",
|
||||
"flexDirection": "column",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center"
|
||||
},
|
||||
".score": {
|
||||
"textAlign": "center",
|
||||
"width": "70px",
|
||||
"height": "17px",
|
||||
"letterSpacing": "0px",
|
||||
"fontSize": "11px",
|
||||
"marginTop": "1.8px",
|
||||
"marginBottom": "3px"
|
||||
},
|
||||
".best": {
|
||||
"textAlign": "center",
|
||||
"width": "60px",
|
||||
"height": "17px",
|
||||
"fontSize": "12px",
|
||||
"letterSpacing": "0px",
|
||||
"marginTop": "8.5px"
|
||||
},
|
||||
".tile-wrap": {
|
||||
"width": "150px",
|
||||
"height": "150px",
|
||||
"flexWrap": "wrap",
|
||||
"backgroundColor": "#FFFFFF"
|
||||
},
|
||||
".tile": {
|
||||
"width": "35px",
|
||||
"height": "35px",
|
||||
"marginTop": "2px",
|
||||
"marginLeft": "2px",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center"
|
||||
},
|
||||
".btn": {
|
||||
"width": "61.5px",
|
||||
"height": "20.5px",
|
||||
"backgroundColor": "#155ddc",
|
||||
"marginTop": "5px",
|
||||
"fontSize": "13px",
|
||||
"marginBottom": "3px"
|
||||
},
|
||||
".text": {
|
||||
"fontSize": "13px",
|
||||
"color": "#000000"
|
||||
},
|
||||
".stack": {
|
||||
"width": "150px",
|
||||
"height": "150px"
|
||||
},
|
||||
".subcontainer": {
|
||||
"width": "150px",
|
||||
"height": "150px",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center",
|
||||
"backgroundColor": "rgba(0,0,0,0)"
|
||||
},
|
||||
".gameover": {
|
||||
"fontSize": "20px",
|
||||
"color": "#FF7500"
|
||||
}
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/json.js!./lib/template.js!d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.hml":
|
||||
/*!****************************************************************************************************************!*\
|
||||
!*** ./lib/json.js!./lib/template.js!d:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.hml ***!
|
||||
\****************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = {
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:1",
|
||||
"className": "container"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"container"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:2",
|
||||
"className": "best",
|
||||
"value": function () {return 'Best:' + (this.best)}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"best"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:5",
|
||||
"className": "score",
|
||||
"value": function () {return 'Score:' + (this.score)}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"score"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:8",
|
||||
"className": "stack"
|
||||
},
|
||||
"type": "stack",
|
||||
"classList": [
|
||||
"stack"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:9",
|
||||
"className": "tile-wrap"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"tile-wrap"
|
||||
],
|
||||
"events": {
|
||||
"swipe": "onSwipe"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:10",
|
||||
"className": "tile"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"tile"
|
||||
],
|
||||
"repeat": function () {return this.tiles},
|
||||
"style": {
|
||||
"backgroundColor": "#000000"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:11",
|
||||
"className": "text",
|
||||
"value": function () {return this.$item.text}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"text"
|
||||
],
|
||||
"style": {
|
||||
"color": "#FFFFFF"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:16",
|
||||
"className": "subcontainer",
|
||||
"show": function () {return this.isShow}
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"subcontainer"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:17",
|
||||
"className": "gameover",
|
||||
"value": "Gameover!"
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"gameover"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:22",
|
||||
"className": "btn",
|
||||
"type": "button",
|
||||
"value": "Restart!"
|
||||
},
|
||||
"type": "input",
|
||||
"classList": [
|
||||
"btn"
|
||||
],
|
||||
"events": {
|
||||
"click": "onInit"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.js":
|
||||
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./lib/script.js!./node_modules/babel-loader/lib?presets[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/preset-env&plugins[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!d:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.js ***!
|
||||
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = function(module, exports, $app_require$){"use strict";
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _system = _interopRequireDefault(systemplugin.brightness);
|
||||
|
||||
var numbers, newNumbers;
|
||||
var _default = {
|
||||
data: {
|
||||
score: 0,
|
||||
best: 0,
|
||||
tiles: [],
|
||||
isShow: false
|
||||
},
|
||||
onInit: function onInit() {
|
||||
this.isShow = false;
|
||||
this.score = 0;
|
||||
this.tiles = [{
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}];
|
||||
numbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
this.supplyNumber();
|
||||
this.supplyNumber();
|
||||
this.updateView();
|
||||
|
||||
_system["default"].setKeepScreenOn({
|
||||
keepScreenOn: true
|
||||
});
|
||||
|
||||
_system["default"].setMode({
|
||||
mode: 1
|
||||
});
|
||||
},
|
||||
supplyNumber: function supplyNumber() {
|
||||
var positions = [];
|
||||
|
||||
for (var i = 0; i <= 15; i++) {
|
||||
if (!newNumbers[i]) positions.push(i);
|
||||
}
|
||||
|
||||
var h = Math.floor(Math.random() * positions.length);
|
||||
|
||||
if (Math.random() <= 0.8) {
|
||||
newNumbers[positions[h]] = 2;
|
||||
} else {
|
||||
newNumbers[positions[h]] = 4;
|
||||
}
|
||||
},
|
||||
onSwipe: function onSwipe(e) {
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
var start = 0,
|
||||
differ = 0,
|
||||
step = 0;
|
||||
|
||||
switch (e.direction) {
|
||||
case 'left':
|
||||
start = 0;
|
||||
differ = 1;
|
||||
step = 4;
|
||||
break;
|
||||
|
||||
case 'right':
|
||||
start = 3;
|
||||
differ = -1;
|
||||
step = 4;
|
||||
break;
|
||||
|
||||
case 'up':
|
||||
start = 0;
|
||||
differ = 4;
|
||||
step = 1;
|
||||
break;
|
||||
|
||||
case 'down':
|
||||
start = 12;
|
||||
differ = -4;
|
||||
step = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
var ids;
|
||||
|
||||
for (var j = 0; j <= 3; j++) {
|
||||
ids = this.getIds(start, differ);
|
||||
var before = null;
|
||||
var noZeros = 0;
|
||||
|
||||
for (var k = 0; k <= 3; k++) {
|
||||
var id = ids[k];
|
||||
var number = numbers[id];
|
||||
|
||||
if (number != 0) {
|
||||
if (number == before) {
|
||||
this.score += number * 2;
|
||||
newNumbers[ids[noZeros - 1]] *= 2;
|
||||
before = null;
|
||||
} else {
|
||||
newNumbers[ids[noZeros]] = number;
|
||||
before = number;
|
||||
noZeros += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
start += step;
|
||||
}
|
||||
|
||||
if (this.best >= this.score) {
|
||||
this.best = this.best;
|
||||
} else {
|
||||
this.best = this.score;
|
||||
}
|
||||
|
||||
if (numbers.toString() != newNumbers.toString()) {
|
||||
this.supplyNumber();
|
||||
this.updateView();
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
|
||||
if (this.isGameOver() == true) {
|
||||
this.isShow = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
getIds: function getIds(start, differ) {
|
||||
var ids = [];
|
||||
|
||||
for (var z = 4; z >= 1; z--) {
|
||||
ids.push(start);
|
||||
start += differ;
|
||||
}
|
||||
|
||||
return ids;
|
||||
},
|
||||
updateView: function updateView() {
|
||||
for (var x = 0; x <= 15; x++) {
|
||||
if (newNumbers[x] != 0) {
|
||||
this.tiles[x].text = newNumbers[x].toString();
|
||||
} else {
|
||||
this.tiles[x].text = "";
|
||||
}
|
||||
}
|
||||
|
||||
numbers = newNumbers;
|
||||
},
|
||||
isGameOver: function isGameOver() {
|
||||
if (this.isGridsFull() == true && this.isGridsNotMergeable() == true) return true;
|
||||
},
|
||||
isGridsFull: function isGridsFull() {
|
||||
if (numbers.indexOf(0) == -1) {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
isGridsNotMergeable: function isGridsNotMergeable() {
|
||||
for (var l = 0; l <= 15; l++) {
|
||||
if (l <= 14) {
|
||||
if (numbers[l] == numbers[l + 1] && (l + 1) % 4 != 0) return false;
|
||||
}
|
||||
|
||||
if (l <= 11) {
|
||||
if (numbers[l] == numbers[l + 4]) return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
exports["default"] = _default;
|
||||
var moduleOwn = exports.default || module.exports;
|
||||
var accessors = ['public', 'protected', 'private'];
|
||||
if (moduleOwn.data && accessors.some(function (acc) {
|
||||
return moduleOwn[acc];
|
||||
})) {
|
||||
throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.');
|
||||
} else if (!moduleOwn.data) {
|
||||
moduleOwn.data = {};
|
||||
moduleOwn._descriptor = {};
|
||||
accessors.forEach(function(acc) {
|
||||
var accType = typeof moduleOwn[acc];
|
||||
if (accType === 'object') {
|
||||
moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]);
|
||||
for (var name in moduleOwn[acc]) {
|
||||
moduleOwn._descriptor[name] = {access : acc};
|
||||
}
|
||||
} else if (accType === 'function') {
|
||||
console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.');
|
||||
}
|
||||
});
|
||||
}}
|
||||
/* generated by ace-loader */
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
||||
\**********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
"default": obj
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _interopRequireDefault;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.hml?entry":
|
||||
/*!**************************************************************************************!*\
|
||||
!*** d:/Github/MyApplication2/entry/src/main/js/default/pages/index/index.hml?entry ***!
|
||||
\**************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var $app_template$ = __webpack_require__(/*! !./lib/json.js!./lib/template.js!./index.hml */ "./lib/json.js!./lib/template.js!d:\\Github\\MyApplication2\\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:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.css")
|
||||
var $app_script$ = __webpack_require__(/*! !./lib/script.js!./node_modules/babel-loader?presets[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/preset-env&plugins[]=C:/Users/honor/AppData/Local/Huawei/Sdk/js/2.1.1.21/build-tools/ace-loader/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./index.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\2.1.1.21\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!d:\\Github\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.js")
|
||||
|
||||
$app_define$('@app-component/index', [], function($app_require$, $app_exports$, $app_module$) {
|
||||
|
||||
$app_script$($app_module$, $app_exports$, $app_require$)
|
||||
if ($app_exports$.__esModule && $app_exports$.default) {
|
||||
$app_module$.exports = $app_exports$.default
|
||||
}
|
||||
|
||||
$app_module$.exports.template = $app_template$
|
||||
|
||||
$app_module$.exports.style = $app_style$
|
||||
|
||||
})
|
||||
$app_bootstrap$('@app-component/index',undefined,undefined)
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
//# sourceMappingURL=index.js.map
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"appID": "com.xcl20481.myapplication",
|
||||
"appName": "$string:entry_MainAbility",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": 1000000,
|
||||
"minPlatformVersion": 5,
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"window": {
|
||||
"autoDesignWidth": true,
|
||||
"designWidth": 720
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 6.6 KiB |
@ -0,0 +1 @@
|
||||
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){var o=n(1);$app_define$("@app-application/app",[],(function(e,t,n){o(n,t,e),t.__esModule&&t.default&&(n.exports=t.default)})),$app_bootstrap$("@app-application/app",void 0,void 0)},function(e,t,n){e.exports=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={onCreate:function(){console.info("AceApplication onCreate")},onDestroy:function(){console.info("AceApplication onDestroy")}};t.default=r,(t.default||e.exports).manifest=n(2)}},function(e){e.exports=JSON.parse('{"appID":"com.xcl20481.myapplication","appName":"$string:entry_MainAbility","versionName":"1.0.0","versionCode":1000000,"minPlatformVersion":5,"pages":["pages/index/index"],"deviceType":["phone","tablet","tv","wearable"],"window":{"autoDesignWidth":true,"designWidth":720}}')}]);
|
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 210 KiB |
@ -0,0 +1,6 @@
|
||||
{
|
||||
"strings": {
|
||||
"hello": "Hello",
|
||||
"world": "World"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"strings": {
|
||||
"hello": "您好",
|
||||
"world": "世界"
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"appID": "com.xcl20481.myapplication",
|
||||
"appName": "$string:entry_MainAbility",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": 1000000,
|
||||
"minPlatformVersion": 5,
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"window": {
|
||||
"autoDesignWidth": true,
|
||||
"designWidth": 720
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([,,,function(t,e,n){var o=n(4),r=n(5),i=n(6);$app_define$("@app-component/index",[],(function(t,e,n){i(n,e,t),e.__esModule&&e.default&&(n.exports=e.default),n.exports.template=o,n.exports.style=r})),$app_bootstrap$("@app-component/index",void 0,void 0)},function(t,e){t.exports={attr:{},type:"div",classList:["container"],children:[{attr:{value:function(){return this.$t("strings.hello")+" "+this.title}},type:"text",classList:["title"]}]}},function(t,e){t.exports={".container":{flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},".title":{fontSize:"40px",color:"#000000",opacity:.9},"@MEDIA":[{condition:"screen and (device-type: tablet) and (orientation: landscape)",".title":{fontSize:"100px"}},{condition:"screen and (device-type: wearable)",".title":{fontSize:"28px",color:"#FFFFFF"}},{condition:"screen and (device-type: tv)",".container":{backgroundImage:"/common/images/Wallpaper.png",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},".title":{fontSize:"100px",color:"#FFFFFF"}},{condition:"screen and (device-type: phone) and (orientation: landscape)",".title":{fontSize:"60px"}}]}},function(t,e){t.exports=function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:{title:""},onInit:function(){this.title=this.$t("strings.world")}};var o=e.default||t.exports,r=["public","protected","private"];if(o.data&&r.some((function(t){return o[t]})))throw new Error("For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.");o.data||(o.data={},o._descriptor={},r.forEach((function(t){var e=typeof o[t];if("object"===e)for(var n in o.data=Object.assign(o.data,o[t]),o[t])o._descriptor[n]={access:t};else"function"===e&&console.warn("For VM objects, attribute "+t+" value must not be a function. Change the value to an object.")})))}}]);
|
@ -0,0 +1,72 @@
|
||||
{
|
||||
"app": {
|
||||
"bundleName": "com.xcl20481.myapplication",
|
||||
"vendor": "xcl20481",
|
||||
"apiVersion": {
|
||||
"compatible": 4,
|
||||
"target": 5,
|
||||
"releaseType": "Release"
|
||||
},
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.0.1"
|
||||
}
|
||||
},
|
||||
"deviceConfig": {
|
||||
"default": {
|
||||
"keepAlive": true,
|
||||
"debug": true
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"name": ".MyApplication",
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"distro": {
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry",
|
||||
"moduleType": "entry",
|
||||
"installationFree": false
|
||||
},
|
||||
"abilities": [
|
||||
{
|
||||
"name": "com.xcl20481.myapplication.MainAbility",
|
||||
"description": "$string:mainability_description",
|
||||
"icon": "$media:icon2",
|
||||
"label": "$string:xcl2048",
|
||||
"type": "page",
|
||||
"launchType": "standard",
|
||||
"visible": true,
|
||||
"skills": [
|
||||
{
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
],
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"homeAbility": true
|
||||
}
|
||||
],
|
||||
"js": [
|
||||
{
|
||||
"name": "default",
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"window": {
|
||||
"designWidth": 720,
|
||||
"autoDesignWidth": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"mainAbility": "com.xcl20481.myapplication.MainAbility",
|
||||
"package": "com.xcl20481.myapplication"
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
{
|
||||
"app": {
|
||||
"bundleName": "com.xcl20481.myapplication",
|
||||
"vendor": "xcl20481",
|
||||
"apiVersion": {
|
||||
"compatible": 4,
|
||||
"target": 5,
|
||||
"releaseType": "Release"
|
||||
},
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.0.0"
|
||||
}
|
||||
},
|
||||
"deviceConfig": {
|
||||
|
||||
},
|
||||
"module": {
|
||||
"name": ".MyApplication",
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"distro": {
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry",
|
||||
"moduleType": "entry",
|
||||
"installationFree": false
|
||||
},
|
||||
"abilities": [
|
||||
{
|
||||
"name": "com.xcl20481.myapplication.MainAbility",
|
||||
"description": "$string:mainability_description",
|
||||
"icon": "$media:icon",
|
||||
"label": "$string:entry_MainAbility",
|
||||
"type": "page",
|
||||
"launchType": "standard",
|
||||
"visible": true,
|
||||
"skills": [
|
||||
{
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
],
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"homeAbility": true
|
||||
}
|
||||
],
|
||||
"js": [
|
||||
{
|
||||
"name": "default",
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"window": {
|
||||
"designWidth": 720,
|
||||
"autoDesignWidth": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"mainAbility": "com.xcl20481.myapplication.MainAbility",
|
||||
"package": "com.xcl20481.myapplication"
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
"D:\Github\MyApplication2\entry\src\main"
|
@ -0,0 +1 @@
|
||||
"D:\Github\MyApplication2\entry\src\main"
|
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="mainability_description">"JS_Empty Ability"</string>
|
||||
<string name="xcl2048">"xcl2048"</string>
|
||||
</resources>
|
After Width: | Height: | Size: 6.6 KiB |
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="entry_MainAbility">"entry_MainAbility"</string>
|
||||
<string name="mainability_description">"JS_Empty Ability"</string>
|
||||
</resources>
|
@ -0,0 +1,72 @@
|
||||
{
|
||||
"app": {
|
||||
"apiVersion": {
|
||||
"compatible": 4,
|
||||
"releaseType": "Release",
|
||||
"target": 5
|
||||
},
|
||||
"vendor": "xcl20481",
|
||||
"bundleName": "com.xcl20481.myapplication",
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.0.1"
|
||||
}
|
||||
},
|
||||
"deviceConfig": {
|
||||
"default": {
|
||||
"keepAlive": true,
|
||||
"debug": true
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"abilities": [
|
||||
{
|
||||
"skills": [
|
||||
{
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
],
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"visible": true,
|
||||
"name": "com.xcl20481.myapplication.MainAbility",
|
||||
"icon": "$media:icon2",
|
||||
"description": "$string:mainability_description",
|
||||
"label": "$string:xcl2048",
|
||||
"type": "page",
|
||||
"launchType": "standard",
|
||||
"homeAbility": true
|
||||
}
|
||||
],
|
||||
"mainAbility": "com.xcl20481.myapplication.MainAbility",
|
||||
"distro": {
|
||||
"moduleType": "entry",
|
||||
"installationFree": false,
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry"
|
||||
},
|
||||
"package": "com.xcl20481.myapplication",
|
||||
"name": ".MyApplication",
|
||||
"js": [
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"name": "default",
|
||||
"window": {
|
||||
"designWidth": 720,
|
||||
"autoDesignWidth": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
{
|
||||
"app": {
|
||||
"apiVersion": {
|
||||
"compatible": 4,
|
||||
"releaseType": "Release",
|
||||
"target": 5
|
||||
},
|
||||
"vendor": "xcl20481",
|
||||
"bundleName": "com.xcl20481.myapplication",
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.0.0"
|
||||
}
|
||||
},
|
||||
"deviceConfig": {
|
||||
|
||||
},
|
||||
"module": {
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"abilities": [
|
||||
{
|
||||
"skills": [
|
||||
{
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
],
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"visible": true,
|
||||
"name": "com.xcl20481.myapplication.MainAbility",
|
||||
"icon": "$media:icon",
|
||||
"description": "$string:mainability_description",
|
||||
"label": "$string:entry_MainAbility",
|
||||
"type": "page",
|
||||
"launchType": "standard",
|
||||
"homeAbility": true
|
||||
}
|
||||
],
|
||||
"mainAbility": "com.xcl20481.myapplication.MainAbility",
|
||||
"distro": {
|
||||
"moduleType": "entry",
|
||||
"installationFree": false,
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry"
|
||||
},
|
||||
"package": "com.xcl20481.myapplication",
|
||||
"name": ".MyApplication",
|
||||
"js": [
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"name": "default",
|
||||
"window": {
|
||||
"designWidth": 720,
|
||||
"autoDesignWidth": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
media icon 0x1000002
|
||||
media icon2 0x1000003
|
||||
string mainability_description 0x1000000
|
||||
string xcl2048 0x1000001
|
@ -0,0 +1,75 @@
|
||||
{
|
||||
"app": {
|
||||
"apiVersion": {
|
||||
"compatible": 4,
|
||||
"releaseType": "Release",
|
||||
"target": 5
|
||||
},
|
||||
"vendor": "xcl20481",
|
||||
"bundleName": "com.xcl20481.myapplication",
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.0.1"
|
||||
}
|
||||
},
|
||||
"deviceConfig": {
|
||||
"default": {
|
||||
"debug": true,
|
||||
"keepAlive": true
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"abilities": [
|
||||
{
|
||||
"iconId": 16777219,
|
||||
"skills": [
|
||||
{
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
],
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"descriptionId": 16777216,
|
||||
"visible": true,
|
||||
"labelId": 16777217,
|
||||
"icon": "$media:icon2",
|
||||
"name": "com.xcl20481.myapplication.MainAbility",
|
||||
"description": "$string:mainability_description",
|
||||
"label": "$string:xcl2048",
|
||||
"type": "page",
|
||||
"homeAbility": true,
|
||||
"launchType": "standard"
|
||||
}
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"mainAbility": "com.xcl20481.myapplication.MainAbility",
|
||||
"distro": {
|
||||
"moduleType": "entry",
|
||||
"installationFree": false,
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry"
|
||||
},
|
||||
"package": "com.xcl20481.myapplication",
|
||||
"name": ".MyApplication",
|
||||
"js": [
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
],
|
||||
"name": "default",
|
||||
"window": {
|
||||
"designWidth": 720,
|
||||
"autoDesignWidth": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|