Skip to content

Commit

Permalink
lander app display tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kustomzone committed Mar 9, 2017
1 parent 78566ea commit 75f6d7f
Show file tree
Hide file tree
Showing 35 changed files with 3,050 additions and 100 deletions.
68 changes: 52 additions & 16 deletions core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/content.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"address": "1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv",
"description": "",
"description": "Fuzium appstore",
"files": {
"css/fonts1.css": {
"sha512": "35ff40048b20035c2b13a6709de89fd9e93dd0e01d73415fa1534ddc8e021295",
"size": 149306
},
"css/lander.css": {
"sha512": "8aec2a6594a1d4f49ab7fe9b187a61047162abd32f7f6bdc689f82844f4e7674",
"size": 102025
"sha512": "745424e79a53c9ffeeb7f33ab02638eacce91904dbf65c73d2c9d287c86f2bf7",
"size": 102159
},
"data/lander.db": {
"sha512": "a8c4aeac4fa9ca2d692bfb75f28e07507be448b87d671721168d10cbcae790d9",
"sha512": "a24124fe7e5074f22ae03f9d539987a4b1deb3decfb0647a2e4e8f4ea9544d55",
"size": 462848
},
"data/users/1KdnTJVBGzEZrJppFZtzfG9chukuMv8xSb/data.json": {
"sha512": "ee2455c1a7af4a406c6db8baaa4a73d0b045fadef2aaedd5b45e996c47a5d209",
"size": 223862
"sha512": "4731c069542bede67989025c8be9c129a32f36024dfbe44da9d824ba11c831f3",
"size": 239730
},
"dbschema.json": {
"sha512": "296b23415168716f10d45abb30339d7571ae067f9aad1460dd2da1db86c9979b",
Expand Down Expand Up @@ -183,12 +183,12 @@
"size": 7073
},
"index.html": {
"sha512": "9349584e0ff46ba520d1abb8b5cc57065f022d488a3ad97fa6d1dce5ecb0d1f8",
"size": 5955
"sha512": "97fcbcc10dd49969418a7921ed0d6e6331cfb017184cd400ab0ca90c7ff33741",
"size": 6123
},
"js/all.js": {
"sha512": "2d7776d3ad1268486191ef9baceb8e13be22716f40abb9e52cdd4dd2cbdbe5f7",
"size": 89979
"sha512": "037e34b44bbc19e15048eb57647b4b59646122167b7c2198e764c69da5708eb2",
"size": 90486
},
"js/bookmarksHistory/fullTextSearch.js": {
"sha512": "38ff5bbd48c38e273ace0bf0b7876542f0a9e0fb5431a9a79e11d3a3aed44315",
Expand Down Expand Up @@ -263,13 +263,49 @@
"size": 693
},
"pages/all.html": {
"sha512": "b30bf72c965be33190735075f92f5799491cc2f395cefc6600b77996f468405c",
"size": 1395
"sha512": "6fadb559b7b7f656bb84e4bd403232c7035e060a4ad44366a8a2e555e4074593",
"size": 1469
},
"pages/anime.html": {
"sha512": "044927fb6df5013e5a76be7436e817a8156dd41a51d04bb23d8e58b791bb3233",
"size": 5227
},
"pages/apps.html": {
"sha512": "56f5ac7c9120fd998dbf904fed64e5329f8a7c1fdf7a418c482a8fc2998aded4",
"size": 1468
},
"pages/games.html": {
"sha512": "650e58e55671ac190ad5f570b844cc993cfafcd6dcc567ff64c15bc009974c30",
"size": 5227
},
"pages/help.html": {
"sha512": "82dcb556ffe1aca940034e01d2f3afa06fb413d1bc7420ca35ca851c04b4ee36",
"size": 5226
},
"pages/home.html": {
"sha512": "5e12079c49289af24684abf4506ffbb9b8325c2284c4dd6d39344fa4844742cc",
"size": 5226
},
"pages/misc.html": {
"sha512": "39e7eb042db8ba6a98acb0179349fc02d9df91524cf9b7a2c007be08eac74d7b",
"size": 5226
},
"pages/new.html": {
"sha512": "b1c5ae9007d653b081858bbe8b4b38060b83f1a69b809b4a3b971a43ac9a7e16",
"size": 9853
},
"pages/news.html": {
"sha512": "1854117fa1528b7ab3d97a517c210d26c78800e4e143b4ec09b0076048bf8be1",
"size": 5226
},
"pages/reviews.html": {
"sha512": "561613ad47fef15906bcab0eb9864182914c70aaeaf5f6385efecf10711464d7",
"size": 5229
},
"pages/vids.html": {
"sha512": "b806cf18e4a101493835fe3240593a86e3b49d7370844e50488ab18b0786a1c9",
"size": 5226
},
"pages/view-post.html": {
"sha512": "360c64d321cf3445a412ac177b4c39934ce8d8a4ec0311fbb41acc062f1eb1d9",
"size": 5194
Expand Down Expand Up @@ -415,14 +451,14 @@
}
},
"inner_path": "content.json",
"modified": 1488993520,
"modified": 1489044771,
"sign": [
16904090900107341152859511217262089504019583757059144258100744985478635620819,
33247439534382063138326717688246086308875385334938863906118330585390316845243
99423207240687963119412992121306590262746969417013540249419190259542394548979,
12217068071830796151062821130409065608921991957935134146128738840587738345452
],
"signers_sign": "G1Yf49FKrejMtJBkk8IZLDeTnXwEqBXb9jUmB47FdqU+aV464SGlImInLa5buPt4pAdkMtnbF7s384eHFPrsaPc=",
"signs": {
"1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv": "HHiO0HE3FEOtmsJu9PLRuqEy6Lp9iNrYjDL5P47gLfX67NtublTHoVi1Sbp8aoVUfEowg8K5xY3zRYIK3jsVW4o="
"1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv": "HMXFTrCZbLJTNbuX6guErKFJSlHngA50xWZG+MAY1Z8jb7MLLMc+3W7hj2YT6LHFTA6FJ8G8lal3H020Cv7CnV8="
},
"signs_required": 1,
"title": "Lander Apps",
Expand Down
14 changes: 11 additions & 3 deletions core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/css/lander.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ li {
background: url(../img/zite/no-app.png) no-repeat center center;
}

.app-header {
max-width: 110px;
max-height: 16px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.template { display: none !important; }

.block {
Expand Down Expand Up @@ -2355,7 +2363,7 @@ select#categorias option[value="help"] { background-position: 5px -1079
.icon.fones { background-position: -68px 0; }
.icon.study { background-position: -87px 0; }
.icon.comics { background-position: -103px 0; }
.icon.ebooks { background-position: -153px 0; }
.icon.ebooks { background-position: -34px -51px; }
.icon.community { background-position: -34px -51px; }
.icon.social { background-position: 0 -51px; }
.icon.reviews { background-position: 0 -68px; }
Expand Down Expand Up @@ -2391,9 +2399,9 @@ select#categorias option[value="help"] { background-position: 5px -1079
.icon.reviews { background-position: -239px -17px; }
.icon.health { background-position: -255px -17px; }
.icon.help { background-position: 0 -34px; }
.icon.misc { background-position: -51px -34; }
.icon.misc { background-position: -51px -34px; }
.icon.proxy { background-position: -34px -34px; }
.icon.tv { background-position: -51px -34; }
.icon.tv { background-position: -51px -34px; }
.icon.movies { background-position: -68px -34px; }
.icon.videos { background-position: -68px -34px; }
.icon.points { background-position: -85px -34px; }
Expand Down
Binary file modified core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/data/lander.db
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"address": "1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv",
"files": {
"1KdnTJVBGzEZrJppFZtzfG9chukuMv8xSb/data.json": {
"sha512": "ee2455c1a7af4a406c6db8baaa4a73d0b045fadef2aaedd5b45e996c47a5d209",
"size": 223862
"sha512": "edb67f529fd548d9b5e77287d6d6f87ed0a6e01787b31e67b035d763d08802c6",
"size": 233705
}
},
"inner_path": "data/users/content.json",
"modified": 1488993535,
"modified": 1489041432,
"signs": {
"1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv": "GwSGuN5clMmzaqwGc4tE3fKUsev96HYLehVnjPGmIzslFelpeDijTyx7boa+DjY1QTWDAzKlHBbYQgmeNrQBlKY="
"1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv": "G7ZKexeA0f91jqcs/RkPxyP2TZuRSYWejwA4DkCmVZclGVckX4/kKMSoVJ9iSiaAsiu3+QcEPZLyHN89nanl4qw="
}
}
27 changes: 14 additions & 13 deletions core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,25 +117,26 @@
<div id="menu-wrapper">
<div id="menu">
<ul class="clearfix">
<li><a href="#home"><i class="icon home"></i></a><span></span></li>
<li class="active"><a href="#apps">Apps</a></li>
<li><a href="#misc">Misc</a><img src="img/icon-new.png" style="margin:3px 0 0 -19px; pointer-events: none;"></li>
<li template="home" class="home"> <a href="#home"><i class="icon home"></i></a><span></span></li>
<li template="all" class="all active"> <a href="#apps">Apps</a></li>
<li template="misc" class="misc"> <a href="#misc">Misc</a>
<img src="img/icon-new.png" style="margin:3px 0 0 -19px; pointer-events: none;">
</li>
</ul>
</div>
</div>
<div id="submenu-wrapper">
<div id="submenu">
<ul class="clearfix">
<li template="new"> <a href="#new">New</a></li>
<li template="all" class="active"> <a href="#all">All</a></li>
<li template="apps"> <a href="#apps">Apps</a></li>
<li template="games"> <a href="#games">Games</a></li>
<li template="videos"> <a href="#vids">Vids</a></li>
<li template="anime"> <a href="#anime">Anime</a></li>
<li template="news"> <a href="#news">News</a></li>
<li template="reviews"> <a href="#reviews">Reviews</a></li>
<li template="help"> <a href="#help">Help</a></li>
</ul>
<li template="new" class="new"> <a href="#new">New</a></li>
<li template="all" class="all active"> <a href="#apps">All</a></li>
<li template="games" class="games"> <a href="#games">Games</a></li>
<li template="vids" class="vids"> <a href="#vids">Vids</a></li>
<li template="anime" class="anime"> <a href="#anime">Anime</a></li>
<li template="news" class="news"> <a href="#news">News</a></li>
<li template="reviews" class="reviews"> <a href="#reviews">Reviews</a></li>
<li template="help" class="help"> <a href="#help">Help</a></li>
</ul>
</div>
</div>
</nav>
Expand Down
39 changes: 28 additions & 11 deletions core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,17 @@ function ZeroFrame() {
// testing API...
ZeroAPI = new ZeroFrame();

// todo: back button
var lastTemplate = "";

function loadTemplate(ntemplate, data) {
// alert(ntemplate + " " + lastTemplate);

if (ntemplate != lastTemplate) {
if (ntemplate == "all") {
$("#menu > ul > li.active").toggleClass("active");
$("#menu > ul > li.all").toggleClass("active");
}
ZeroAPI.cmd("fileGet", {
"inner_path": "pages/" + ntemplate + ".html",
"required": false
Expand All @@ -258,24 +268,25 @@ function loadTemplate(ntemplate, data) {
$("section[n-template]").each(function() {
$(this).addClass("hide");
});
// alert($("[n-template=\"" + ntemplate + "\"]").length);

// hide previous
if($("[n-template=\"" + ntemplate + "\"]").length) {
$("[n-template=\"" + ntemplate + "\"]").toggleClass("hide");
$("[n-template=\"" + ntemplate + "\"]").toggleClass("hide");
}
// hack for old templates and double loading
if(ntemplate == "view-post" || ntemplate == "new") {
if(ntemplate == "view-post" || ntemplate == "new" || ntemplate == "misc") {
if($("[n-template=\"" + ntemplate + "\"]").length) {
$("[n-template=\"" + ntemplate + "\"]")[0].remove();
$("[n-template=\"" + ntemplate + "\"]")[0].remove();
}
}
// hack for double loading
if(ntemplate == "all") {
if(ntemplate == "apps") {
if($("[n-template=\"" + ntemplate + "\"]").length) {
$("[n-template=\"" + ntemplate + "\"]")[1].toggleClass("hide");
$("[n-template=\"" + ntemplate + "\"]")[1].toggleClass("hide");
}
}
lastTemplate = ntemplate;
}
}

ZeroAPI.cmd("siteInfo", {}, (function(site_info) {
Expand All @@ -301,7 +312,7 @@ ZeroAPI.cmd("dbQuery", ["SELECT posts.*, keyvalue.value AS cert_user_id FROM pos

// testing API forms...
$(document).ready(function() {
/* templates easy */
$(document).on("click", ".lastposts a", function () {
// alert($(this).attr("data-key"));
ZeroAPI.cmd("dbQuery", ["SELECT * FROM posts WHERE post_id = '" + $(this).attr("data-key") + "'"], (function(post_variables) {
Expand All @@ -311,20 +322,26 @@ $(document).ready(function() {
});

$(document).on("click", "[template]", function () {
var ntemplate = $(this).attr("template");
loadTemplate(ntemplate);
var ntemplate = $(this).attr("template");
loadTemplate(ntemplate);
});

/* menu */
$(document).on("click", "#menu > ul > li", function () {
$("#menu > ul > li.active").toggleClass("active");
$(this).toggleClass("active");
// menu & submenu sync
$("#submenu > ul > li.active").toggleClass("active");
$("#submenu > ul > li.all").toggleClass("active");
});

/* submenu */
/* submenu */
$(document).on("click", "#submenu > ul > li", function () {
$("#submenu > ul > li.active").toggleClass("active");
$(this).toggleClass("active");
// menu & submenu sync
$("#menu > ul > li.active").toggleClass("active");
$("#menu > ul > li.all").toggleClass("active");
});

/* create post */
Expand All @@ -340,7 +357,7 @@ $(document).ready(function() {
var form_url = $("input[name=url]").val();
var form_cuerpo = $("textarea[name=cuerpo]").val();
var form_parent = 'none';
var form_image_name = $("input[name=image]").val().replace('C:\\fakepath\\', '');
var form_image_name = $("input[name=image]").val().replace('C:\\fakepath\\', ''); // windows only!
var form_image_url = form_url + "/zite/thumbs/" + form_image_name;
var form_image_blob = $('#image_preview').attr('src');

Expand Down
8 changes: 6 additions & 2 deletions core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/pages/all.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

<!-- Main -->
<section id="derecha">
<div class="caja">
<div class="title">
Expand All @@ -7,9 +8,11 @@ <h2>Latest</h2>
<div class="container">
{{ #posts }}
<div class="lastposts colspan">
<i class="icon {{ post_cat }}"></i>&nbsp;
<div class="app-header">
<span class="icon {{ post_cat }}"></span>&nbsp;
<a href="#post-{{ post_id }}" id="open_post" data-key="{{ post_id }}">{{ post_title }}</a>
<a href="{{ post_url }}"><img class="apps" src="{{ post_image_blob }}"></a>
</div>
<a href="{{ post_url }}"><img class="apps" src="{{ post_image_blob }}"></a>
</div>
{{ /posts }}
</div>
Expand Down Expand Up @@ -51,3 +54,4 @@ <h2>Featured</h2>
</div>
</div>
</aside>
<!-- /Main -->

0 comments on commit 75f6d7f

Please sign in to comment.