Skip to content
代码片段 群组 项目
该项目从 https://github.com/project-chip/zap 镜像。 拉取镜像更新于
  1. 7月 01, 2024
  2. 4月 11, 2024
    • Bharat Raju's avatar
      Revert "Revert a reverted multi-protocol commit 61d328ca" (#1299) · 203522dd
      Bharat Raju 创作于
      This reverts commit 61d328ca.
      
      Fixing Custom XML issues:
      - Cleaning up the custom xml UI update as well as the custom xml package uploading such that there are no duplicates
      - Fixing the custom xml UI for attributes, commands and events when cluster extensions are added through custom xml. Needed the custom xml package ids to be included
      - Fixing the duplicate attributes and commands which show up in the attribute and command UI when a custom cluster with custom attributes and commands is added. This is solved by using a set in : reduceAndConcatenateZclEntity(db, id, [...new Set([...standAlonePackageIds, clusterInfo.packageRef])],
      - Adding unique constraint to Attribute table and adding insert or replace to attribute insert query such that custom cluster extensions are not reloaded into the db.
      - Making sure the global attributes are part of the custom clusters in static-zcl.js while calling reduceAndConcatenateZclEntity
      - Making sure that session partition numbering is correct for the partitionNumber column
      - For loading custom cluster extensions such as attributes and commands. Making sure they are loaded into the database based on the top level zcl package loaded. This is needed for sdk upgrades or custom xml in multi-protocol. See changes to zcl-loader-silabs and zcl-loader
      - When adding custom xml, there are instances where multiple zcl packages are loaded for the same xml file. This was an issue with the mutation observer. Getting the load new package call out of the observer to fix this. Reproducer: Open zap, add custom xml from extensions, close extensions pane, add another xml from extensions and you will see two instances of the xml added. If you add another xml then you see 3 instances. This is fixed in ZclCustomZclView.vue
      - Making sure that the delete button appears across custom xml for removal and doing some minor UI cleanup
      - Add more unit tests for custom xml
      - Cleaning up zap toolbar UI for logos
      - JIRA: ZAPP-1351
      未验证
      203522dd
  3. 4月 04, 2024
    • paulr34's avatar
      Revert multi protocol (#1298) · 61d328ca
      paulr34 创作于
      * Revert "Fixing the theme based on the zcl package chosen (#1295)"
      
      This reverts commit 5cc76149.
      
      * Revert "Using getAllSessionPartitionInfoForSession instead of getSessionPartitionInfo for more stability (#1294)"
      
      This reverts commit c9ca9f71.
      
      * Revert "Fixing the ZAP GUI for blank configurations and opening category based configurations (#1289)"
      
      This reverts commit fba76592.
      
      * Revert "ZAP: Multi-protocol Configurator Integration (#1276)"
      
      This reverts commit 06d14282.
  4. 4月 03, 2024
  5. 3月 26, 2024
    • Bharat Raju's avatar
      ZAP: Multi-protocol Configurator Integration (#1276) · 06d14282
      Bharat Raju 创作于
      > - Schema changes such that sessions now have session partitions to allow multiple zcl and template config files.
      > - Session packages and endpoint types are now linked to a session partition such that generation and UI can be made exclusive to the device type selected on an endpoint
      > - All relevant queries have been updated with session partition
      > - imp-exp of .zap files is taken into account here as well
      > - ZAP Generation can now generate the corresponding templates based on the category of the device type and the category of the generation templates eg: matter or zigbee. The same goes for UI
      > - All existing tests pass with these changes
      - Fixing the cluster view when multiple zcl device types are selected
      - ZAP: Opening existing .zap files does not allow multi-device type selection
      - Fixing sessionAttempt in initialize.js and cleaning up the packages from the session in jsonDataLoader function in import-json fixed this
      - Other minor cleanup
      - Fixing CMP generation for command line in startup.js#generateSingleFile such that it generates for all generation template json files and not just one of them
      - bumping the feature level of zap
      - Adding the reference to parentEndpointRef in endpoint extended in db-mapping due to rebase and also fixing the selectAllEndpointsBasedOnTemplateCategory for the same
      - Cleaning up session package and session partitions to avoid having the wrong session packages and partitions in deleteAllSessionPackages
      - Cleaning up query-session#ensureBlankSession
      - Fixing the zap schema for command trigger warnings when adding endpoints
      - Fixing the parent-endpoint.test.js just like the rest with session partition info
      - Fixing the default attribute enablement based on catgeory such as matter/zigbee for global attributes
      other minor cleanup
      - Not showing the extensions tab in case of multi-protocol since it is currently not supported, see ZCLToolbar.vue
      - Showing all logos based on the categories from the zcl files selected, see ZCLToolbar.vue
      - Added multi-protocol tests, see multi-protocol.test.js, multi-protocol.zap, test-utils.js
      - Removed lo-devices.xml from the zcl-with-extensions.json matter file to test multi-protocol more efficiently since for generation as is the case in reality as well.
      - Fixing calls to insertEndpointType with device type params in query.test.js
      - Fix cypress tests for vue tour which was happening due to category(zigbee/matter) not being picked from zcl properties files. Also handling the default use case when category is not found
      - Calling this..dispatch('zap/updateClusters') in vue tour after update to endpoint type due to multi-protocol changes
      - Fixing the default use case for showing and not showing UI elements in ui-options.js
      - Fixing server-bare.test.js when inserting a package along with some other minor cleanup which is needed
      - Fix the server-bare.test.js
      - Improving the session creation and package selection process in the UI via ZapConfig.vue changes
      - Pre-selecting the package files which exist in ZapConfig.vue. Also now showing package selection view if the packages which exist in the db are the same as the ones in the .zap file.
      - Showing a warning in the custom xml page when a multi-proptocol config is open since custom xml is not currently supported for custom xml. See ZclCustomZclView.vue
      - JIRA: ZAPP-1216
  6. 11月 16, 2023
  7. 9月 14, 2023
    • Jing T's avatar
      + flag for auto disabling UC component when ZCL cluster is disabled · 7fbc3967
      Jing T 创作于
      + disableUcComponentOnZclClusterUpdate option flag 
      
      When running embedded as part of Studio, ZAP will enable the
      corresponding UC component if an ZCL cluster server/client is enabled.
      In reverse, similar behavior will apply.
      
      If there are only a single endpoint, disabling a ZCL cluster will cause
      an UC component to be disabled.
      
      If there are multiple endpoints, disabling the last enabled cluster
      across all endpoints will trigger the corresponding UC component to be
      disabled.
      
      * associate current sessionId with correct packageId, when multiple gen/zcl templates are loaded (e.g. zigbee + matter)
      * fix very well hiden dispatch issue
      * fix unit test error
      
      BUG: ZAPP-1254
      未验证
      7fbc3967
  8. 8月 10, 2023
  9. 8月 03, 2023
  10. 7月 18, 2023
    • paulr34's avatar
      init load (#1055) · 11e51dc8
      paulr34 创作于
      * Redoing session init process
      
      * moving getAppData into ZapConfig.vue so it can be part of the chain
      
      * updating feature level
      
      * reorg zapconfig and take out package deletion
      
      * add file path to url
      
      * parse url for file
      
      * loads only packages of category in file
      
      * passthrough files should work the same way except without the config page
      
      * properly load selected genTemplate and not just the default
      
      * Making session after user decides which package to use
      
      *rewrite session init for unit tests (co- authored @YanchengZhou )
      
      * fix matter codegen
      未验证
      11e51dc8
  11. 6月 04, 2023
  12. 6月 03, 2023
    • Timotej Ecimovic's avatar
      Add iterative templates. (#1046) · e404a421
      Timotej Ecimovic 创作于
      * Store the "iterator" property on an individual template.
      
      * Deal with the iterator key in the gen templates.
      
      * Add iterator over all available clusters.
      
      * Clean up the code a bit.
      
      * Add selectedCluster iterator and clean up the code a bit.
      
      * Add selectedCluster iterator.
      
      * Add more iterators.
      
      * Add pattern replacement for filenames for iterator files.
      
      * Clean up the "side" issue.
      未验证
      e404a421
  13. 1月 24, 2023
  14. 11月 22, 2022
  15. 11月 18, 2022
  16. 11月 16, 2022
    • Timotej Ecimovic's avatar
      Automatic loading of packages from zap files. (#806) · 63cd640a
      Timotej Ecimovic 创作于
      * Remove a bunch of useless logic for loading validator.
      
      * Clean up some mess of package loading, removing session where it is not needed.
      
      * Update negative case.
      
      * Fix the devserver execution for cypress.
      
      * Make packageMatch a non-boolean option.
      
      * Implement autoloading properly.
      
      * Add a package matching mode which simply ignores the packages in zap file, used in unit tests.
      
      * Clean up a unit test.
      
      * Fix the matter test file to no longer point to zigbee.
      
      * Simplify the analyze script.
      
      * Update the template loader to not try to reload package options.
      
      * Update docs.
      
      * Clean up a comment.
      
      * Remove unused argument.
      未验证
      63cd640a
  17. 10月 15, 2022
  18. 8月 18, 2022
  19. 8月 07, 2022
    • Timotej Ecimovic's avatar
      Matter cleanup (#641) · bff8d9eb
      Timotej Ecimovic 创作于
      This commit enables use of binary zap build for the Matter SDK. It bring the Matter JS code into the zap, cleans it up, and adds few new mechanisms to the templates.json files to support the Matter handling of yaml tests and test maintenance.
      
      It also adds categorization and aliasing of helpers, so that only a subset can be loaded.
      
      Furthermore, the handlebars instance is now no longer global, but it is created per-generation, and populated with the right subset of helpers.
      
      Individual commits:
      
      * Import: 07/29/2022
      * Lint cleanup.
      * Cleanup and alias few helpers.
      * Add more directories to import.
      * Use common aliases.
      * Cleaning up imports.
      * Import: add more files.
      * Further imports cleanup.
      * .js -> .ts
      * Add category for Matter helpers.
      * Comment, so I stop being confused.
      * Add missing import of dbenum.
      * Add the unit test for the helper loading via aliases.
      * Fix the unit test.
      * Cleanup the helpers api retrieval.
      * Include a missing js file.
      * Fix the api loading and testing.
      * Skip automatic loading of categorized or aliased helpers.
      * Add mechanism to auto-load helper categories and aliases.
      * Make category functionality from gen-templates.json work correctly.
      * Fix the bizarre mechanism of importing simulated clusters.
      * Shortcut the package loading in case of only one available.
      * Add more yaml files.
      * Remove pointless directory read.
      * Add the copying of the yaml files to copy script.
      * Skip the meta symbol.
      * Add the tests.
      * Import: 8/2/2022
      * Fix two small problems that accumulated into major problems.
      * Fix various Matter issues.
      * Remove stray require.
      * Clean up the initialization API.
      * Clean up the weird initialization of PICS.yaml.
      * Remove a console.log
      * Cleanup and alias another helper package.
      * Add mechanism to share resource paths from gen-templates.json.
      * Apply externalized resources to be able to remove all the yaml files.
      * Remove yaml copying. Will not need this again.
      * Import: 8/4/2022
      * Detect open handles.
      * Remove a useless test.
      * Temporarily lower the coverage requirements, before we bring in Matter unit tests.
      * Configure Matter code to stop doing ASI and instead put semicolons in the code.
      * Move the tests out into JSON files.
      * Move all the tests into ciTests json, deal with a more complex include+disable case.
      * Properly read relative path for the tests.json files.
      * Remove all tests code for matter.
      * Remove unneeded JSON files that moved to SDK.
      * Regen api baselines and remove references to test helpers.
      * Stray rebase problem.
      * Run cypress only once.
      未验证
      bff8d9eb
  20. 8月 02, 2022
  21. 7月 25, 2022
    • Timotej Ecimovic's avatar
      Fix the importer to properly assign packages. (#621) · cae2ce4d
      Timotej Ecimovic 创作于
      * Fix the importer to properly assign packages. Earlier, readFile() methods didn't even init packages.
      * Separate the logic to initialize session key values from package defaults.
      * Fix conversion process which suffered from double package init.
      * Clean up unit tests to eliminate double session initialization.
      未验证
      cae2ce4d
  22. 6月 25, 2022
  23. 6月 21, 2022
  24. 6月 11, 2022
  25. 6月 09, 2022
  26. 10月 12, 2021
  27. 8月 02, 2021
  28. 7月 13, 2021
  29. 7月 02, 2021
  30. 7月 01, 2021
  31. 6月 17, 2021
  32. 6月 14, 2021
  33. 6月 02, 2021
  34. 5月 22, 2021
  35. 5月 11, 2021
  36. 5月 06, 2021
加载中