Commit Graph

43 Commits

Author SHA1 Message Date
Ralph Wessel bd0be2bb42 Changed model card dagtabase tag to "models"
Minor namespace tweaks
2024-08-29 14:07:01 +01:00
Ralph Wessel c218da359f Logging working cross-platform 2024-08-28 23:22:44 +01:00
Ralph Wessel 4202e9f92c Removed temp DarkTheme tag from ConnectorConfig
Added code to log send/receive activity in JSBaseTransport
JSBaseTransport can export null
2024-08-28 23:13:37 +01:00
Ralph Wessel 9232b205d9 Fixed testBinding name
Added TEST_MODE macro for testBinding
RunMethod now return null for methods that don't return anything
2024-08-28 14:05:20 +01:00
Ralph Wessel 8e0d0f5c27 Updated VS project
Added ConnectorConfig.darkTheme (check if this is required)
JSArgType wrapper uses embedded value for serialisation
2024-08-28 00:53:57 +01:00
Ralph Wessel 550e9caa9c Argument for BrowserBridge methods is stringified JSON array of stringified JSON parameters - updated to facilitate import:
- Classes potentially used as JS argument templates can define this state by subclassing JSArgumentBase
- JSBridgeArgumentWrap now unpacks and deserialises each stringified parameter
- Argument template state automatically applied as argument types are defined
2024-08-27 23:47:30 +01:00
Ralph Wessel 2ca1713766 Added JSArgTye copy constructor 2024-08-27 22:46:58 +01:00
Ralph Wessel 3c5097e950 Updated VS projects 2024-08-27 17:40:48 +01:00
Jedd Morgan c0e46f1d23 small tweaks (#1) 2024-08-27 17:08:46 +01:00
Jedd Morgan 674ef928e0 escape buildresAC.bat (#2) 2024-08-27 17:08:31 +01:00
Ralph Wessel 696a4ea870 Added TestBinding and implemented associated test methods
Added speckle::utility::Exception
Added ErrorReport for BrowserBridge method execution
JSBridgeArgument is capable of capturing error conditions for later reporting
Implemented additional exception handling and return report to JS on method execution failure
2024-08-27 16:48:42 +01:00
Ralph Wessel 2d6412efd1 Fixed resource inputs 2024-08-22 17:05:08 +01:00
Ralph Wessel fe42f29275 Linked baseBinding to Speckle pallete 2024-08-22 16:50:47 +01:00
Ralph Wessel d5f7d0b2a7 Updated VS projects
Linked GetDocumentState to baseBinding
Minor tweaks for VS compiler
2024-08-22 15:59:07 +01:00
Ralph Wessel e5568a3f08 Implemented baseBinding (untested - fresh code)
Removed redundant Cloner inheritance from JS function classes
Added versioning to connector
Exposed connector() function for future access to databases related to connector operations, e.g. model cards etc
2024-08-22 15:36:37 +01:00
Ralph Wessel 882e12d24d Added skeleton for unit tests - to be fleshed out as time allows 2024-08-22 09:16:39 +01:00
Ralph Wessel 5f1ee05979 Connected ConfigBridge with Speckle palette - config response now returned 2024-08-22 08:45:56 +01:00
Ralph Wessel 8eca4acd91 Removed redundant function 2024-08-21 21:01:26 +01:00
Ralph Wessel 9b26265dfa Added ConfigBridge 2024-08-21 19:02:53 +01:00
Ralph Wessel b3699fdc61 GetCallResult returns results serialised as JSON in a single string 2024-08-20 17:41:14 +01:00
Ralph Wessel ac39198ab3 Interim commit (non-building)
Updated GetCalResult to receive a single single string input and return a single string
2024-08-20 16:12:19 +01:00
Ralph Wessel f9014acebd Testing 2024-08-20 15:02:44 +01:00
Ralph Wessel 6790730f6f BrowserBridge failed to initialise result cache
U[dated JSBridgeArgumentWrap to receive incoming argument as an array rather than an object
Updated JS function argument handling to have no object name and receive arguments as a JSON string (NB: need to handle deserialisation of this string)
Completed JSBaseTransport::readValue
2024-08-20 13:08:43 +01:00
Ralph Wessel b3b99ab4b4 Updated JSBridgeArgument to receive args as a JS array rather than an object 2024-08-20 08:45:16 +01:00
Ralph Wessel a2000eb8a8 Misnamed variable 2024-08-20 08:43:18 +01:00
Ralph Wessel 5030ba1bd7 JSBaseTransport.send should take reference to destination to retain result 2024-08-19 23:04:09 +01:00
Ralph Wessel 3ee3210d87 Omit scratch log files 2024-08-19 22:40:57 +01:00
Ralph Wessel 6c6230ba32 Added try/catch in JSPortal for installing/executing JS functions
Docs
2024-08-19 22:35:30 +01:00
Ralph Wessel c454191ab5 Fixed misnamed variable 2024-08-19 22:10:52 +01:00
Ralph Wessel 8287b73148 Updated VS project 2024-08-19 20:48:15 +01:00
Ralph Wessel cf44012617 Updated namespace for VS 2024-08-19 20:25:33 +01:00
Ralph Wessel 7482926e76 Updated VS project 2024-08-19 20:19:46 +01:00
Ralph Wessel 7106a64de3 JS engine tied to BrowserControl object 2024-08-19 19:05:57 +01:00
Ralph Wessel d16c217b9a Set the correct JS object name for AccountsBridge
Added GetAccounts method to AccountsBridge
Added GetCallResult function to BrowserBridge
Fix to BrowserBridge::addMethod
Other minor template fixes
2024-08-19 15:29:31 +01:00
Ralph Wessel 543ed9e96d Fixed issues with parameter/return values in JS bridge function execution 2024-08-19 14:08:47 +01:00
Ralph Wessel 2b03f56293 AccountBridge installed into BrowserPalette
Added missing functions
Fixed type errors
2024-08-19 12:51:02 +01:00
Ralph Wessel 9a132383ba Defined AccountBridge and associated methods
Created base Record class and derived Account class
Various additions/fixes/improvements to JS interaction and BrowserBridge functionality
2024-08-18 21:47:08 +01:00
Ralph Wessel f200790500 Updated registration of BrowserBridge methods and arguments 2024-08-17 00:50:06 +01:00
Ralph Wessel 1624828724 GetCallResult browser bridge function implemented
JSBridgeArgumentWrap added to support method-defined arguments
JSBaseTransporter updated
2024-08-17 00:21:27 +01:00
Ralph Wessel 9c6680399c Interim commit - BrowserBridge in development
Added Browser JS interface including:
- JS interfaces
- Bridge class
- Bridge functions
Added JSBaseTransport (in progress)
'GetCallResult' to be implemented
2024-08-15 23:00:42 +01:00
Ralph Wessel 9f8b7dd2f9 Updated VS projects and resources 2024-08-10 13:48:20 +01:00
Ralph Wessel c3282d5452 initial commit - Xcode projects defined 2024-08-09 23:24:27 +01:00
Ralph Wessel 4356641bac Create .gitignore 2024-08-09 23:13:59 +01:00