Async(bool firstRender) { if (firstRender) { module = await JS.InvokeAsync<IJSObjectReference>("import", "./scripts.js"); } } private async Task TriggerPrompt() => result = await Prompt("Provide text"); public async ValueTask<string?> Prompt(string message) => module is not null ?
constdbResponse =awaitthis.client.databases.createIfNotExists({id:this.databaseId })this.database = dbResponse.database debug('Setting up the database...done!') debug('Setting up the container...')constcoResponse =awaitthis.database.containers.createIfNotExists({id:this.collectionId })this...
if (!myFolder.exists) myFolder.create();var myDialog = new Window('dialog', 'GIVE NAME FOR THIS PSD');myDialog.size = {width:400, height:100};var myEditText = myDialog.add('edittext');myEditText.active = true;myEditText.preferred...
/hello public/index.htmlIf public/index.html exists, it becomes the default page instead of a 404 page, unless that pathname has a file extension.Using bun with Create React AppTo create a new React app:bun create react ./app cd app bun dev # start dev serverTo...
When the node_modules folder exists, before installing, bun checks if the "name" and "version" in package/package.json in the expected node_modules folder matches the expected name and version. This is how it determines whether or not it should install. It uses a custom JSON parser which ...
It will not be possible to use isolated storage for this purpose as the file only is/must be located on the server and I dont want to use the ActiveX. I simply wonder if it is possible to check if "~/Folder1/Picture1.bmp" exists on the server without the ActiveX component ? Sunday...
only('should return the index when present', function() { // this test will also be run }); it('should return -1 if called with a non-Array context', function() { // this test will not be run }); }); }); You may also choose multiple suites:...
"gL Print Preflight.jsx" is installed with password in Scripts/ folder Here is the javascript code. function loadActions () { var actionFile = new File(app.path+"/Presets/Actions/gL Print Preflight.atn"); if(!actionFile.exists){ alert("Action file d...
// Can we move the file to the upload folder? if( !move_uploaded_file( $_FILES[ 'uploaded' ][ 'tmp_name' ], $target_path ) ) { // No echo 'Your image was not uploaded.'; } else { // Yes! echo "{$target_path} succesfully uploaded!"; } } ?> 1. 2. 3. 4....
createQuery(); query.groupByFieldsForStatistics = ["Region"]; query.outStatistics = [consumeStatsByRegion, aggregatedExtent]; layer.queryFeatures(query).then((results) => { results.features.forEach((feature) => { if (feature.attributes.Region === "Midwest") { view.goTo(feature.aggregate...