]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Added the standard sqlite license header to the the fiddle JS files. Minor internal...
authorstephan <stephan@noemail.net>
Fri, 20 May 2022 13:50:04 +0000 (13:50 +0000)
committerstephan <stephan@noemail.net>
Fri, 20 May 2022 13:50:04 +0000 (13:50 +0000)
FossilOrigin-Name: 67e40d99ff84a6cb23c68bf0722a4f9dee29b8ad18d9e7aac7d1665e99901ba1

ext/fiddle/fiddle.in.html
ext/fiddle/module-post.js
ext/fiddle/module-pre.js
manifest
manifest.uuid

index d82f2e523af480f5682b480d5e007281a42e52c5..efa73ae6abdc7010082587703e10d5b330f95617 100644 (file)
           flex-direction: column;
           align-items: stretch;
       }
-      #jqterminal {
+      #view-terminal {
       }
       .app-view {
           flex: 20 1 auto;
       <progress value="0" max="100" id="progress" hidden='1'></progress>  
     </div>
 
-    <div id='jqterminal' class='app-view hidden initially-hidden'>
+    <div id='view-terminal' class='app-view hidden initially-hidden'>
       This is a placeholder for a terminal-like view.
     </div>
 
index c303322bb05c89a022e0e76360f79b0a2832586f..c32f482418b225cfc825f8297ef1e5c012e3fc1e 100644 (file)
@@ -1,14 +1,26 @@
-/* This is the --post-js file for emcc. It gets appended to the
-   generated fiddle.js. It should contain all app-level code.
+/*
+  2022-05-20
 
-   Maintenance achtung: do not call any wasm-bound functions from
-   outside of the onRuntimeInitialized() function. They are not
-   permitted to be called until after the module init is complete,
-   which does not happen until after this file is processed. Once that
-   init is finished, Module.onRuntimeInitialized() will be
-   triggered. All app-level init code should go into that callback or
-   be triggered via it.  Calling wasm-bound functions before that
-   callback is run will trigger an assertion in the wasm environment.
+  The author disclaims copyright to this source code.  In place of a
+  legal notice, here is a blessing:
+
+  *   May you do good and not evil.
+  *   May you find forgiveness for yourself and forgive others.
+  *   May you share freely, never taking more than you give.
+
+  ***********************************************************************
+
+  This is the --post-js file for emcc. It gets appended to the
+  generated fiddle.js. It should contain (or load) all app-level code.
+
+  Maintenance achtung: do not call any wasm-bound functions from
+  outside of the onRuntimeInitialized() function. They are not
+  permitted to be called until after the module init is complete,
+  which does not happen until after this file is processed. Once that
+  init is finished, Module.onRuntimeInitialized() will be
+  triggered. All app-level init code should go into that callback or
+  be triggered via it.  Calling wasm-bound functions before that
+  callback is run will trigger an assertion in the wasm environment.
 */
 window.Module.onRuntimeInitialized = function(){
     'use strict';
@@ -210,23 +222,22 @@ window.Module.onRuntimeInitialized = function(){
     Module.print(null/*clear any output generated by the init process*/);
     if(window.jQuery && window.jQuery.terminal){
         /* Set up the terminal-style view... */
-        const eTerm = window.jQuery('#jqterminal').empty();
+        const eTerm = window.jQuery('#view-terminal').empty();
         Module.jqTerm = eTerm.terminal(doExec,{
             prompt: 'sqlite> ',
             greetings: false /* note that the docs incorrectly call this 'greeting' */
         });
-        //Module.jqTerm.clear(/*remove the "greeting"*/);
         /* Set up a button to toggle the views... */
         const head = E('header#titlebar');
-        const btnToggleView = jQuery("<button>Toggle View</button>")[0];
-        head.appendChild(btnToggleView);
+        const btnToggleView = document.createElement('button');
+        btnToggleView.appendChild(document.createTextNode("Toggle View"));
         btnToggleView.addEventListener('click',function f(){
             EAll('.app-view').forEach(e=>e.classList.toggle('hidden'));
             if(document.body.classList.toggle('terminal-mode')){
                 ForceResizeKludge();
             }
         }, false);
-        btnToggleView.click();
+        btnToggleView.click()/*default to terminal view*/;
     }
     doExec(null/*init the db and output the header*/);
     Module.print('\nThis experimental app is provided in the hope that it',
index ebd812ef9984c4f753783c164927764522f6574f..6a59c9e7daf4e3bd6c9d81e0b682f0acc51a6bbe 100644 (file)
@@ -1,6 +1,19 @@
-/* This is the --pre-js file for emcc. It gets prepended to the
-   generated fiddle.js. It should contain only code which is relevant
-   to the setup and initialization of the wasm module. */
+/*
+  2022-05-20
+
+  The author disclaims copyright to this source code.  In place of a
+  legal notice, here is a blessing:
+
+  *   May you do good and not evil.
+  *   May you find forgiveness for yourself and forgive others.
+  *   May you share freely, never taking more than you give.
+
+  ***********************************************************************
+
+  This is the --pre-js file for emcc. It gets prepended to the
+  generated fiddle.js. It should contain only code which is relevant
+  to the setup and initialization of the wasm module.
+*/
 (function(){
     'use strict';
 
index 12e9202189de4deab297fd140670e2cd40690ab0..c9e770215297e862735b33069aaca0804131dd29 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C #if'd\sout\sthe\s'.nonce'\sand\s'.check'\scommends\sin\sWASM\sbuilds.
-D 2022-05-19T22:04:23.547
+C Added\sthe\sstandard\ssqlite\slicense\sheader\sto\sthe\sthe\sfiddle\sJS\sfiles.\sMinor\sinternal\srenamings\sin\sthose\ssame\sfiles.
+D 2022-05-20T13:50:04.114
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
 F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@ -56,10 +56,10 @@ F ext/expert/sqlite3expert.c 6ca30d73b9ed75bd56d6e0d7f2c962d2affaa72c505458619d0
 F ext/expert/sqlite3expert.h ca81efc2679a92373a13a3e76a6138d0310e32be53d6c3bfaedabd158ea8969b
 F ext/expert/test_expert.c d56c194b769bdc90cf829a14c9ecbc1edca9c850b837a4d0b13be14095c32a72
 F ext/fiddle/Makefile b2904d52c10a7c984cfab95c54fb85f33aa8a6b2653faf1527d08ce57114be46
-F ext/fiddle/fiddle.in.html 715ae6d60f7a6575ec2df7495ff7ab25d758d63398ce6a1056265453c06441e7
+F ext/fiddle/fiddle.in.html 7291529917c60d176068f13f9c1b46a88dabdc19a204f608da594b45b8b9e736
 F ext/fiddle/index.md d9c1c308d8074341bc3b11d1d39073cd77754cb3ca9aeb949f23fdd8323d81cf
-F ext/fiddle/module-post.js fe8b5589fa2b71d7adf21b555f161018a2d0bffe4051694660f671b42d7ff184
-F ext/fiddle/module-pre.js a7b046c0f764b100a5bedd3880bece8e6fb5908fb73cb91fb7a9b692bc938862
+F ext/fiddle/module-post.js 9c49cf8350b8757ee234fce470e45fd1ccd31f1641b8359bed601562d5e777f0
+F ext/fiddle/module-pre.js baee03024cff65ea70ae8d67116e9c0b44723217005e04400930ad4b48be51f4
 F ext/fts1/README.txt 20ac73b006a70bcfd80069bdaf59214b6cf1db5e
 F ext/fts1/ft_hash.c 3927bd880e65329bdc6f506555b228b28924921b
 F ext/fts1/ft_hash.h 06df7bba40dadd19597aa400a875dbc2fed705ea
@@ -1959,8 +1959,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P fa391868dd626ffdb220bed6834d0a10c7336f0fc4ca56055147784de1a4f99d
-R ecfaf227f75d4bef58737ff0c6c5c4c5
+P 326f79ea54566a9302be99d920856f13b48f2c2ed265fa87d78ced367d4b1946
+R 76d9a4819c4f6ef4f9e021cade27fd08
 U stephan
-Z c416bbcbbdae88d64354eab148e9450d
+Z 966630693783fc252ee07d3554d16c4c
 # Remove this line to create a well-formed Fossil manifest.
index 19989f10f82286e9afffcf480f027abfc30c7029..5dacd119dc2cc07019556afe444bba05d1e5355b 100644 (file)
@@ -1 +1 @@
-326f79ea54566a9302be99d920856f13b48f2c2ed265fa87d78ced367d4b1946
\ No newline at end of file
+67e40d99ff84a6cb23c68bf0722a4f9dee29b8ad18d9e7aac7d1665e99901ba1
\ No newline at end of file