Skip to content

Commit

Permalink
build v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
metagrover committed Jun 4, 2018
1 parent a9cc074 commit 561d8b9
Show file tree
Hide file tree
Showing 10 changed files with 5,532 additions and 4,576 deletions.
3 changes: 2 additions & 1 deletion app/app.component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/app.component.js.map

Large diffs are not rendered by default.

19 changes: 17 additions & 2 deletions app/shared/urlShare.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/shared/urlShare.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 19 additions & 3 deletions dist/angular/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ var AppComponent = (function () {
var config = null;
var isDefault = window.location.href.indexOf('#?default=true') > -1 ? true : false;
var isInputState = window.location.href.indexOf('input_state=') > -1 ? true : false;
var isApp = window.location.href.indexOf('app=') > -1 ? true : false;
if (isDefault) {
config = this.defaultApp;
return cb(config);
}
else if (!isInputState) {
else if (!isInputState && !isApp) {
return cb('learn');
}
else {
Expand Down Expand Up @@ -8829,6 +8830,18 @@ exports.UrlShare.prototype.decryptUrl = function (cb) {
resolve({ error: error, data: data });
});
}
else if (_this.queryParams && _this.queryParams.app) {
try {
var config = JSON.parse(_this.queryParams.app);
var data = {
config: config
};
resolve({ error: null, data: data });
}
catch (e) {
resolve({ error: e });
}
}
else {
resolve({ error: 'Empty url' });
}
Expand Down Expand Up @@ -8892,9 +8905,12 @@ exports.UrlShare.prototype.decompress = function (compressed, cb) {
}
};
exports.UrlShare.prototype.getQueryParameters = function (str) {
var hash = window.location.hash.split('#');
var tempurl = decodeURIComponent(window.location.href);
var hash = tempurl.split('#');
if (hash.length > 1) {
return (str || hash[1]).replace(/(^\?)/, '').split("&").map(function (n) { return n = n.split("="), this[n[0]] = n[1], this; }.bind({}))[0];
return (str || hash[1]).replace(/(^\?)/, '').split("&").map(function (n) {
return n = n.split("="), this[n[0]] = n[1], this;
}.bind({}))[0];
}
else {
return null;
Expand Down
22 changes: 11 additions & 11 deletions dist/angular/build.min.js

Large diffs are not rendered by default.

29 changes: 17 additions & 12 deletions dist/css/vendor.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9,929 changes: 5,424 additions & 4,505 deletions dist/js/vendor.js

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions dist/js/vendor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mirage.appcache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CACHE MANIFEST
# 1518196613899
# 1528100218587
./assets/images/favicon.ico
./dist/css/vendor.min.css
./dist/css/style.min.css
Expand Down

0 comments on commit 561d8b9

Please sign in to comment.