appcelerator-labs / appc-liveviewer-app Goto Github PK
View Code? Open in Web Editor NEWAn app to load and run Titanium and Alloy code from any URL, GitHub repositories and gists.
License: Other
An app to load and run Titanium and Alloy code from any URL, GitHub repositories and gists.
License: Other
[ERROR] Application raised an exception: TypeError: undefined is not a function (evaluating 't.match(/^http(s)?:\/\//)')
[ERROR]
[ERROR] file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1
[ERROR] t@file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1:268 (generated)
[ERROR] resource@file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1:952 (generated)
[ERROR] (generated)
[ERROR] completionHandler@./app.js:203:58 (generated)
[ERROR]
[ERROR] RAW EXCEPTION: {"message":"undefined is not a function (evaluating 't.match(/^http(s)?:\\/\\//)')","line":1,"column":268,"sourceURL":"file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js","stack":"t@file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1:268\nresource@file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1:952\n\ncompletionHandler@./app.js:203:58"}
[ERROR] SOURCEMAP RESULT: <no source map data>
This could be either a GitHub or Appcelerator account. The Appcelerator account could have the GitHub username (and perhaps even accessToken, if signed up for platform via GitHub). The app would then get a list of URLs form the user's GitHub repos, Gists or our own front-end (appcelerator-labs/appc-liveviewer-server#1).
http://esprima.org/doc/index.html
Much more simple AST
It would need to support:
liveviewer://load?url=https://gist.github.com/FokkeZB/3dd91b8eb07828b771c0
liveviewer://load?alloy=1&url=https://gist.github.com/FokkeZB/3dd91b8eb07828b771c0
liveviewer://load?code=Ti.UI.createWindow().open()
Hey @FokkeZB wow, great project you have here, congrats!
Before I download and start digging and test, this is functional at this date? As I saw you domain http://node.fokkezb.nl:8080 not working, so... :) Thanks
There are modules that allow setting programmatically.
Only other option I can think of is volume control, but then the app wouldn't be able to use that anymore, unless I can pass it on programmatically.
Would only need to go via Cloud if its Alloy.
Asked Marcel to add export endpoint.
Simpel example works, but with movies it doesn't get further then the splash.
Text showing "Downloading.." and if Alloy checked "Compiling..."
Make background black and fade out hide indicator when done so flow to starting app is better.
Could be because:
To replace this hack:
https://github.com/FokkeZB/appc-liveviewer-app/blob/master/Resources/ns.js
My thoughts about this:
Maybe fontFamily
can take full paths or it can be changed to support that.
It should load the JavaScript code in the QR code.
Load them at runtime using David's module:
Cache in app and fall back on included one.
The white box is confusing.
This happens because the server compiled the Alloy app with no i18n
folders, but the LiveViewer app might run in a different locale.
When it does not find app.js
but it does find an app folder or index.xml
etc then it should tell the user to flip the alloy switch.
ti.coremotion
(for movies)dk.napp.drawer
Maybe even close it, but then the back-button won't get you back to the dialog on Android.
Some options:
Theme.AppCompat.NoTitleBar
theme user must set on their windowtiapp.xml
for themes implying they want it hidden[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[WARN] New layout set while view [object imageview1] animating: Will relayout after animation.
[WARN] New layout set while view [object imageview1] animating: Will relayout after animation.
[DEBUG] resource unresolved: [object Object]
[WARN] New layout set while view [object imageview1] animating: Will relayout after animation.
[WARN] New layout set while view [object imageview1] animating: Will relayout after animation.
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
Ideally even a native module, handling dynamic font loading and possible other stuff to be more stable and also hide the implementation from users. Maybe we can also handle require()
more efficient.
var VM = require('ti.vm`);
var vm = new VM({
codebase: Ti.Filesystem.applicationDataDirectory + 'some/path'
});
vm.require('app');
For LiveView:
vm.setResourceHandler(function(id, callback) {
// fetch from fileserver
callback(null, codeOrPath);
});
e.g. https://github.com/appcelerator/movies/blob/master/app/lib/tests/ti-mocha.js
The proxy transformer will replace require() calls even if in the local scope where it is called it has been redefined by an override. Somehow, the transformer must be aware of that and not replace it.
The JSON would have 2 keys:
url
: The URL to loadsalloy
: To set the Alloy switchJust says #500 ... body has actual error.
Depends on https://github.com/FokkeZB/ti-proxy/issues/1
Jul 2 11:05:33 iPhone-Fokke LiveViewer[1282] <Warning>: [ERROR] Application received error: Unexpected token name «color», expected punc «,»
Now causes loading screen to stay up.
This error originated here:
https://github.com/appcelerator/movies/blob/720cf055d1a3b5d7ff7e5c94ec8f9e689c65a03e/app/lib/data.js#L22
But instead it says app.js
[ERROR] {
[ERROR] "message": "JSON Parse error: Unexpected EOF",
[ERROR] "line": 5,
[ERROR] "column": 26,
[ERROR] "stack": "parse@[native code]\nloadJsonFile\nget_config\ngetConfig\ninit\nController\ncreateController\ninit\nController\ncreateController\nanonymous\nrequire@file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Bundle/Application/656CDEE4-F05A-4DF7-BCE6-A1522DFE9D83/LiveViewer.app/proxy.js:85:7\nstart@file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Bundle/Application/656CDEE4-F05A-4DF7-BCE6-A1522DFE9D83/LiveViewer.app/codebase.js:66:16\nonXhr@file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Bundle/Application/656CDEE4-F05A-4DF7-BCE6-A1522DFE9D83/LiveViewer.app/codebase.js:89:19\nonLoad@file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Bundle/Application/656CDEE4-F05A-4DF7-BCE6-A1522DFE9D83/LiveViewer.app/xhr.js:37:21",
[ERROR] "filename": "/Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Data/Application/2FE3BF63-FD83-44A6-AF11-4B43FFC0B2F3/Documents/code/F8F58714-AB5E-4523-BDB7-F6C06C69E78E/Resources/iphone/app.js"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.