diff --git a/externs/mobile.txt b/externs/mobile.txt new file mode 100644 index 0000000000..c26926d170 --- /dev/null +++ b/externs/mobile.txt @@ -0,0 +1,87 @@ +require +DEBUG +convertFileSrc +getPlatform +handleError +isLoggingEnabled +isNative +isNativePlatform +isPluginAvailable +platform +pluginMethodNoop +registerPlugin +registerHelper +Pass +showHint +createRef +call +setState +forceUpdate +memo +createElement +render +unmount +createContext +createPortal +createRef +createElement +ref +path +current +useState +useReducer +useEffect +useLayoutEffect +useCallback +useMemo +useRef +renderToString +idb-keyval +newStore +isError +value +CodeMirror +over +forEachNode +on +getTextArea +setUser +nativeEvent +which +multipliedBy +minus +plus +isInteger +isPositive +isLessThan +toNumber +modulo +exponentiatedBy +dividedBy +multipliedBy +negated +isZero +isGreaterThanOrEqualTo +isLessThan +shiftedBy +s +dividedToIntegerBy +abs +toFraction +e +getCursor +getLineTokens +getTokenAt +getValue +completionActive +state +mime +getWrapperElement +doc +lastLine +getLine +setOption +string +dispose +path +base64String diff --git a/package.json b/package.json index 212b153bf5..fa823ad7ce 100644 --- a/package.json +++ b/package.json @@ -78,8 +78,8 @@ "gulp:mobile-watch": "gulp watchMobile", "css:mobile-build": "postcss tailwind.mobile.css -o static/mobile/style.css --verbose --env production", "css:mobile-watch": "cross-env TAILWIND_MODE=watch postcss tailwind.mobile.css -o static/mobile/style.css --verbose --watch", - "cljs:mobile-watch": "clojure -M:cljs watch mobile workers", - "cljs:release-mobile": "clojure -M:cljs release mobile workers", + "cljs:mobile-watch": "clojure -M:cljs watch mobile workers --config-merge \"{:output-dir \\\"./static/mobile/js\\\" :asset-path \\\"/static/mobile/js\\\" :release {:asset-path \\\"http://localhost\\\"}}\"", + "cljs:release-mobile": "clojure -M:cljs release mobile workers --config-merge \"{:output-dir \\\"./static/mobile/js\\\" :asset-path \\\"/static/mobile/js\\\" :release {:asset-path \\\"http://localhost\\\"}}\"", "cljs:dev-watch": "clojure -M:cljs watch app workers electron mobile", "cljs:app-watch": "clojure -M:cljs watch app workers", "cljs:electron-watch": "clojure -M:cljs watch app workers electron --config-merge \"{:asset-path \\\"./js\\\"}\"", diff --git a/resources/mobile/index.html b/resources/mobile/index.html index 7f6ee8cba1..08867f47a4 100644 --- a/resources/mobile/index.html +++ b/resources/mobile/index.html @@ -37,7 +37,6 @@ const portal = new MagicPortal(worker); -