Commit 522745ec authored by Jacob Durrant's avatar Jacob Durrant

Updated copyright information.

parent 1cf261c8
......@@ -168,27 +168,3 @@ incurred by, or claims asserted against, such Contributor by reason of your
accepting any such warranty or additional liability.
_END OF TERMS AND CONDITIONS_
### APPENDIX: How to apply the Apache License to your work
To apply the Apache License to your work, attach the following boilerplate
notice, with the fields enclosed by brackets `[]` replaced with your own
identifying information. (Don't include the brackets!) The text should be
enclosed in the appropriate comment syntax for the file format. We also
recommend that a file or class name and description of purpose be included on
the same “printed page” as the copyright notice for easier identification within
third-party archives.
Copyright 2019 Jacob Durrant
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
......@@ -591,16 +591,12 @@ if (ENVIRONMENT_IS_PTHREAD) {} else {
if (WEBINA_Module["wasmMemory"]) {
wasmMemory = WEBINA_Module["wasmMemory"]
} else {
try {
wasmMemory = new WebAssembly.Memory({
"initial": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"maximum": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"shared": true
});
WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer, "requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")
} catch(error) {
WEBINA_Module["catchError"]({"message": "Problem using shared memory, likely because your browser does not have WebAssembly threads support. Please use a different browser, such as Google Chrome."});
}
wasmMemory = new WebAssembly.Memory({
"initial": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"maximum": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"shared": true
});
WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer, "requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")
}
}
if (wasmMemory) {
......
......@@ -47,8 +47,7 @@ function writeArrayToMemory(a,b){WEBINA_assert(0<=a.length,"writeArrayToMemory a
function updateGlobalBufferAndViews(a){buffer=a;WEBINA_Module.HEAP8=HEAP8=new Int8Array(a);WEBINA_Module.HEAP16=HEAP16=new Int16Array(a);WEBINA_Module.HEAP32=HEAP32=new Int32Array(a);WEBINA_Module.HEAPU8=HEAPU8=new Uint8Array(a);WEBINA_Module.HEAPU16=HEAPU16=new Uint16Array(a);WEBINA_Module.HEAPU32=HEAPU32=new Uint32Array(a);WEBINA_Module.HEAPF32=HEAPF32=new Float32Array(a);WEBINA_Module.HEAPF64=HEAPF64=new Float64Array(a)}
if(!ENVIRONMENT_IS_PTHREAD){var STACK_BASE=85136,STACK_MAX=5328016,DYNAMIC_BASE=5328016,DYNAMICTOP_PTR=84128;WEBINA_assert(0===STACK_BASE%16,"stack must start aligned");WEBINA_assert(0===DYNAMIC_BASE%16,"heap must start aligned")}var TOTAL_STACK=5242880;WEBINA_Module.TOTAL_STACK&&WEBINA_assert(TOTAL_STACK===WEBINA_Module.TOTAL_STACK,"the stack size can no longer be determined at runtime");var INITIAL_TOTAL_MEMORY=WEBINA_Module.TOTAL_MEMORY||1073741824;
Object.getOwnPropertyDescriptor(WEBINA_Module,"TOTAL_MEMORY")||Object.defineProperty(WEBINA_Module,"TOTAL_MEMORY",{configurable:!0,get:function(){abort("WEBINA_Module.TOTAL_MEMORY has been replaced with plain INITIAL_TOTAL_MEMORY")}});WEBINA_assert(INITIAL_TOTAL_MEMORY>=TOTAL_STACK,"TOTAL_MEMORY should be larger than TOTAL_STACK, was "+INITIAL_TOTAL_MEMORY+"! (TOTAL_STACK="+TOTAL_STACK+")");
WEBINA_assert("undefined"!==typeof Int32Array&&"undefined"!==typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support");
if(!ENVIRONMENT_IS_PTHREAD)if(WEBINA_Module.wasmMemory)wasmMemory=WEBINA_Module.wasmMemory;else try{wasmMemory=new WebAssembly.Memory({initial:INITIAL_TOTAL_MEMORY/WASM_PAGE_SIZE,maximum:INITIAL_TOTAL_MEMORY/WASM_PAGE_SIZE,shared:!0}),WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer,"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")}catch(a){WEBINA_Module.catchError({message:"Problem using shared memory, likely because your browser does not have WebAssembly threads support. Please use a different browser, such as Google Chrome."})}
WEBINA_assert("undefined"!==typeof Int32Array&&"undefined"!==typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support");ENVIRONMENT_IS_PTHREAD||(WEBINA_Module.wasmMemory?wasmMemory=WEBINA_Module.wasmMemory:(wasmMemory=new WebAssembly.Memory({initial:INITIAL_TOTAL_MEMORY/WASM_PAGE_SIZE,maximum:INITIAL_TOTAL_MEMORY/WASM_PAGE_SIZE,shared:!0}),WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer,"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")));
wasmMemory&&(buffer=wasmMemory.buffer);INITIAL_TOTAL_MEMORY=buffer.byteLength;WEBINA_assert(0===INITIAL_TOTAL_MEMORY%WASM_PAGE_SIZE);updateGlobalBufferAndViews(buffer);ENVIRONMENT_IS_PTHREAD||(HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE);function writeStackCookie(){WEBINA_assert(0==(STACK_MAX&3));HEAPU32[(STACK_MAX>>2)-1]=34821223;HEAPU32[(STACK_MAX>>2)-2]=2310721022;HEAP32[0]=1668509029}
function checkStackCookie(){var a=HEAPU32[(STACK_MAX>>2)-1],b=HEAPU32[(STACK_MAX>>2)-2];34821223==a&&2310721022==b||abort("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x"+b.toString(16)+" "+a.toString(16));1668509029!==HEAP32[0]&&abort("Runtime error: The application has corrupted its heap memory area (address zero)!")}
function abortStackOverflow(a){abort("Stack overflow! Attempted to allocate "+a+" bytes on the stack, but stack has only "+(STACK_MAX-stackSave()+a)+" bytes available!")}(function(){var a=new Int16Array(1),b=new Int8Array(a.buffer);a[0]=25459;if(115!==b[0]||99!==b[1])throw"Runtime error: expected the system to be little-endian!";})();
......
/**
* Webina Copyright 2019 Jacob Durrant
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function(){'use strict';function C(m){var e=0;return function(){return e<m.length?{done:!1,value:m[e++]}:{done:!0}}}function D(m){var e="undefined"!=typeof Symbol&&Symbol.iterator&&m[Symbol.iterator];return e?e.call(m):{next:C(m)}}var E="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,F="function"==typeof Object.defineProperties?Object.defineProperty:function(m,e,g){m!=Array.prototype&&m!=Object.prototype&&(m[e]=g.value)};
function G(m,e){if(e){var g=E;m=m.split(".");for(var n=0;n<m.length-1;n++){var r=m[n];r in g||(g[r]={});g=g[r]}m=m[m.length-1];n=g[m];e=e(n);e!=n&&null!=e&&F(g,m,{configurable:!0,writable:!0,value:e})}}
G("Promise",function(m){function e(b){this.i=0;this.o=void 0;this.g=[];var d=this.j();try{b(d.resolve,d.reject)}catch(a){d.reject(a)}}function g(){this.g=null}function n(b){return b instanceof e?b:new e(function(d){d(b)})}if(m)return m;g.prototype.i=function(b){if(null==this.g){this.g=[];var d=this;this.j(function(){d.o()})}this.g.push(b)};var r=E.setTimeout;g.prototype.j=function(b){r(b,0)};g.prototype.o=function(){for(;this.g&&this.g.length;){var b=this.g;this.g=[];for(var d=0;d<b.length;++d){var a=
......
......@@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Webina</title>
<link rel="shortcut icon" href="favicon.ico"><link href="vendors.bd77c123eb479d460be1.1.css" rel="stylesheet"><link href="styles.bd77c123eb479d460be1.3.css" rel="stylesheet"></head>
<link rel="shortcut icon" href="favicon.ico"><link href="vendors.855da08c5d0a31c2e6e9.1.css" rel="stylesheet"><link href="styles.855da08c5d0a31c2e6e9.3.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
......@@ -19,6 +19,6 @@
<script src="vue.min.js"></script>
<script src="vuex.min.js"></script>
<script src="bootstrap-vue.min.js"></script>
<script type="text/javascript" src="runtime.bd77c123eb479d460be1.js"></script><script type="text/javascript" src="vendors.bd77c123eb479d460be1.js"></script><script type="text/javascript" src="app.bd77c123eb479d460be1.js"></script><script type="text/javascript" src="styles.bd77c123eb479d460be1.js"></script><script type="text/javascript" src="styles.css.bd77c123eb479d460be1.js"></script></body>
<script type="text/javascript" src="runtime.855da08c5d0a31c2e6e9.js"></script><script type="text/javascript" src="vendors.855da08c5d0a31c2e6e9.js"></script><script type="text/javascript" src="app.855da08c5d0a31c2e6e9.js"></script><script type="text/javascript" src="styles.855da08c5d0a31c2e6e9.js"></script><script type="text/javascript" src="styles.css.855da08c5d0a31c2e6e9.js"></script></body>
</html>
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
declare var FileSaver;
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
import * as Utils from "../../Utils";
declare var Vue;
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var $3Dmol;
declare var Vue;
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
import * as Store from "../Vue/Store";
import * as Utils from "../Utils";
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
declare var Vue;
export function setup(): void {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
// For functions that don't really need to be within the Vue framework.
export function getNewObjWithUpdate(obj: any, key: string, val: any): any {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
export let VERSION = "1.0.0";
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
import * as NumericInput from "../UI/Forms/NumericInput";
import * as CheckBox from "../UI/Forms/CheckBox";
import * as FileInput from "../UI/Forms/FileInput";
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
import * as Utils from "../Utils";
import * as ThreeDMol from "../UI/ThreeDMol";
......
......@@ -591,16 +591,12 @@ if (ENVIRONMENT_IS_PTHREAD) {} else {
if (WEBINA_Module["wasmMemory"]) {
wasmMemory = WEBINA_Module["wasmMemory"]
} else {
try {
wasmMemory = new WebAssembly.Memory({
"initial": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"maximum": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"shared": true
});
WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer, "requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")
} catch(error) {
WEBINA_Module["catchError"]({"message": "Problem using shared memory, likely because your browser does not have WebAssembly threads support. Please use a different browser, such as Google Chrome."});
}
wasmMemory = new WebAssembly.Memory({
"initial": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"maximum": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"shared": true
});
WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer, "requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")
}
}
if (wasmMemory) {
......
......@@ -47,8 +47,7 @@ function writeArrayToMemory(a,b){WEBINA_assert(0<=a.length,"writeArrayToMemory a
function updateGlobalBufferAndViews(a){buffer=a;WEBINA_Module.HEAP8=HEAP8=new Int8Array(a);WEBINA_Module.HEAP16=HEAP16=new Int16Array(a);WEBINA_Module.HEAP32=HEAP32=new Int32Array(a);WEBINA_Module.HEAPU8=HEAPU8=new Uint8Array(a);WEBINA_Module.HEAPU16=HEAPU16=new Uint16Array(a);WEBINA_Module.HEAPU32=HEAPU32=new Uint32Array(a);WEBINA_Module.HEAPF32=HEAPF32=new Float32Array(a);WEBINA_Module.HEAPF64=HEAPF64=new Float64Array(a)}
if(!ENVIRONMENT_IS_PTHREAD){var STACK_BASE=85136,STACK_MAX=5328016,DYNAMIC_BASE=5328016,DYNAMICTOP_PTR=84128;WEBINA_assert(0===STACK_BASE%16,"stack must start aligned");WEBINA_assert(0===DYNAMIC_BASE%16,"heap must start aligned")}var TOTAL_STACK=5242880;WEBINA_Module.TOTAL_STACK&&WEBINA_assert(TOTAL_STACK===WEBINA_Module.TOTAL_STACK,"the stack size can no longer be determined at runtime");var INITIAL_TOTAL_MEMORY=WEBINA_Module.TOTAL_MEMORY||1073741824;
Object.getOwnPropertyDescriptor(WEBINA_Module,"TOTAL_MEMORY")||Object.defineProperty(WEBINA_Module,"TOTAL_MEMORY",{configurable:!0,get:function(){abort("WEBINA_Module.TOTAL_MEMORY has been replaced with plain INITIAL_TOTAL_MEMORY")}});WEBINA_assert(INITIAL_TOTAL_MEMORY>=TOTAL_STACK,"TOTAL_MEMORY should be larger than TOTAL_STACK, was "+INITIAL_TOTAL_MEMORY+"! (TOTAL_STACK="+TOTAL_STACK+")");
WEBINA_assert("undefined"!==typeof Int32Array&&"undefined"!==typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support");
if(!ENVIRONMENT_IS_PTHREAD)if(WEBINA_Module.wasmMemory)wasmMemory=WEBINA_Module.wasmMemory;else try{wasmMemory=new WebAssembly.Memory({initial:INITIAL_TOTAL_MEMORY/WASM_PAGE_SIZE,maximum:INITIAL_TOTAL_MEMORY/WASM_PAGE_SIZE,shared:!0}),WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer,"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")}catch(a){WEBINA_Module.catchError({message:"Problem using shared memory, likely because your browser does not have WebAssembly threads support. Please use a different browser, such as Google Chrome."})}
WEBINA_assert("undefined"!==typeof Int32Array&&"undefined"!==typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support");ENVIRONMENT_IS_PTHREAD||(WEBINA_Module.wasmMemory?wasmMemory=WEBINA_Module.wasmMemory:(wasmMemory=new WebAssembly.Memory({initial:INITIAL_TOTAL_MEMORY/WASM_PAGE_SIZE,maximum:INITIAL_TOTAL_MEMORY/WASM_PAGE_SIZE,shared:!0}),WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer,"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")));
wasmMemory&&(buffer=wasmMemory.buffer);INITIAL_TOTAL_MEMORY=buffer.byteLength;WEBINA_assert(0===INITIAL_TOTAL_MEMORY%WASM_PAGE_SIZE);updateGlobalBufferAndViews(buffer);ENVIRONMENT_IS_PTHREAD||(HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE);function writeStackCookie(){WEBINA_assert(0==(STACK_MAX&3));HEAPU32[(STACK_MAX>>2)-1]=34821223;HEAPU32[(STACK_MAX>>2)-2]=2310721022;HEAP32[0]=1668509029}
function checkStackCookie(){var a=HEAPU32[(STACK_MAX>>2)-1],b=HEAPU32[(STACK_MAX>>2)-2];34821223==a&&2310721022==b||abort("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x"+b.toString(16)+" "+a.toString(16));1668509029!==HEAP32[0]&&abort("Runtime error: The application has corrupted its heap memory area (address zero)!")}
function abortStackOverflow(a){abort("Stack overflow! Attempted to allocate "+a+" bytes on the stack, but stack has only "+(STACK_MAX-stackSave()+a)+" bytes available!")}(function(){var a=new Int16Array(1),b=new Int8Array(a.buffer);a[0]=25459;if(115!==b[0]||99!==b[1])throw"Runtime error: expected the system to be little-endian!";})();
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
// There are a few variables and functions from vina.js that I want to easily
// access from here.
......
......@@ -591,16 +591,12 @@ if (ENVIRONMENT_IS_PTHREAD) {} else {
if (WEBINA_Module["wasmMemory"]) {
wasmMemory = WEBINA_Module["wasmMemory"]
} else {
try {
wasmMemory = new WebAssembly.Memory({
"initial": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"maximum": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"shared": true
});
WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer, "requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")
} catch(error) {
WEBINA_Module["catchError"]({"message": "Problem using shared memory, likely because your browser does not have WebAssembly threads support. Please use a different browser, such as Google Chrome."});
}
wasmMemory = new WebAssembly.Memory({
"initial": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"maximum": INITIAL_TOTAL_MEMORY / WASM_PAGE_SIZE,
"shared": true
});
WEBINA_assert(wasmMemory.buffer instanceof SharedArrayBuffer, "requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag")
}
}
if (wasmMemory) {
......
// This file is part of Webina, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2019 Jacob D. Durrant.
import * as UI from "./UI/UI";
import * as VueSetup from "./Vue/Setup";
import { VERSION } from "./Version";
......
......@@ -19,6 +19,28 @@ cd dist
ls vendors*js runtime*js styles*js | awk '{print "echo Compiling " $1 ";node ../node_modules/google-closure-compiler/cli.js " $1 " > t; mv t " $1}' | bash
cd -
# Add the license to the top of the app..js file. Tries using @license, but
# closure compiler didn't put it right at the top.
cd dist
echo "/**
* Webina Copyright 2019 Jacob Durrant
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/" > t
ls app.*js | awk '{print "cat t > " $1 ".tmp; cat " $1 " >> " $1 ".tmp; mv " $1 ".tmp " $1}' | bash
rm t
cd -
# Also create a ZIP file of the dist directory, for convenient distribution.
mv dist webina
zip -r webina.zip webina
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment