First commit, version 0.1 beta base nibiru framework

This commit is contained in:
Stephan Kasdorf
2017-06-16 12:21:19 +02:00
parent 7d475ceb6b
commit 4bfe207b78
556 changed files with 113905 additions and 26 deletions

View File

@@ -0,0 +1,6 @@
{
"navigation" :
{
"Home": { "link": "/", "tooltip": "Home", "icon": "icon-home" }
}
}

View File

@@ -0,0 +1,27 @@
[SETTINGS]
debugbar = true
navigation = "navigation.json"
background.img[] = "public/img/nibiru3.jpg"
smarty[cache] = "application/view/cache/"
smarty[templates] = "application/view/templates/"
smarty[templates_c] = "application/view/templates_c/"
smarty[config_dir] = "application/view/configs/"
smarty[class_file] = "core/l/Smarty.class.php"
smarty.css[] = "public/css/roboto.css"
smarty.css[] = "public/css/toolkit-inverse.css"
smarty.css[] = "public/css/application.css"
smarty.css[] = "public/css/jquery-ui.css"
smarty.css[] = "public/css/nibiru-debug.css"
smarty.css[] = "public/css/tiamat-form.css"
smarty.js[] = "public/js/jquery.min.js"
smarty.js[] = "public/js/tether.min.js"
smarty.js[] = "public/js/jquery-ui.js"
smarty.js[] = "public/js/chart.js"
smarty.js[] = "public/js/tablesorter.min.js"
smarty.js[] = "public/js/toolkit.js"
smarty.js[] = "public/js/application.js"
smarty.js[] = "public/js/nibiru-debug.js"
[ROUTING]
route[index] = "/"
route[example] = "/example"

View File

@@ -0,0 +1,43 @@
[ENGINE]
;;name = "Dwoo"
name = "Smarty"
;;name = "Twig"
cache = "application/view/cache/"
templates = "application/view/templates/"
templates_c = "application/view/templates_c/"
config_dir = "application/view/configs/"
class_file = "core/l/Smarty/Smarty.class.php"
debugbar = false
[SETTINGS]
navigation = "navigation.json"
background.img[] = "public/img/nibiru3.jpg"
smarty.css[] = "public/css/v3/roboto.css"
smarty.css[] = "public/css/v3/toolkit-inverse.css"
smarty.css[] = "public/css/v3/application.css"
smarty.css[] = "public/css/v3/jquery-ui.css"
smarty.css[] = "public/css/v3/nibiru-debug.css"
smarty.css[] = "public/css/v3/tiamat-form.css"
smarty.js[] = "public/js/v3/jquery.min.js"
smarty.js[] = "public/js/v3/tether.min.js"
smarty.js[] = "public/js/v3/jquery-ui.js"
smarty.js[] = "public/js/v3/chart.js"
smarty.js[] = "public/js/v3/tablesorter.min.js"
smarty.js[] = "public/js/v3/toolkit.js"
smarty.js[] = "public/js/v3/application.js"
smarty.js[] = "public/js/v3/nibiru-debug.js"
[ROUTING]
route[index] = "/"
route[example] = "/example"
[DATABASE]
username = "YOURUSER"
password = "YOURPASSWORD"
hostname = "SERVERHOST"
basename = "DATABASENAME"
driver = "mysql"
port = "3306"
[SECURITY]
password_hash = "YOURPWHASH"

View File

@@ -0,0 +1,132 @@
{if $debuging==true}
<script>
$( function() {
$( "#tabs" ).tabs();
} );
</script>
<div id="nibiru-bar-open" class="closed">
<span class="nibiru-bar-logo"></span>
<p>{$ndbinfo}</p>
</div>
<div id="nibiru-debug" class="down">
<div id="tabs">
<ul>
<li><a href="#tabs-1">$_POST</a></li>
<li><a href="#tabs-2">$_GET</a></li>
<li><a href="#tabs-3">$_REQUEST</a></li>
<li><a href="#tabs-4">$_SERVER</a></li>
<li><a href="#tabs-5">$_ENV</a></li>
<li><a href="#tabs-6">$_FILES</a></li>
<li><a href="#tabs-7">$_COOKIE</a></li>
<li><a href="#tabs-8">$_SESSION</a></li>
<li><a href="#tabs-9">$GLOBALS</a></li>
<li><a href="#tabs-10">SMARTY Engine</a></li>
<li><a href="#tabs-11">Messages</a></li>
</ul>
{assign var="message" value="ERROR: no message defined!"}
<div id="tabs-1">
<p>
<!-- Smarty $_POST output -->
{if isset($ndbpost)}
{$ndbpost}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-2">
<p>
<!-- Smarty $_GET output -->
{if isset($ndbget)}
{$ndbget}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-3">
<p>
<!-- Smarty $_REQUEST output -->
{if isset($ndbrequest)}
{$ndbrequest}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-4">
<p>
<!-- Smarty $_SERVER output -->
{if isset($ndbserver)}
{$ndbserver}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-5">
<p>
<!-- Smarty $_ENV output -->
{if isset($ndbenv)}
{$ndbenv}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-6">
<p>
<!-- Smarty $_FILES output -->
{if isset($ndbfiles)}
{$ndbfiles}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-7">
<p>
<!-- Smarty $_COOKIE output -->
{if isset($ndbcookie)}
{$ndbcookie}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-8">
<p>
<!-- Smarty $_SESSION output -->
{if isset($ndbsession)}
{$ndbsession}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-9">
<p>
<!-- Smarty $GLOBALS output -->
{if isset($ndbglobals)}
{$ndbglobals}
{else}
{$message}
{/if}
</p>
</div>
<div id="tabs-10">
{debug}
</div>
<div id="tabs-11">
<p>
<!-- Smarty $raw output -->
{if isset($ndbraw_output)}
{$ndbraw_output}
{else}
{$message}
{/if}
</p>
</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,300 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<title>
{$title}
</title>
{foreach item=style from=$css}
<link href="{$style}" rel="stylesheet">
{/foreach}
<style>
/* note: this is a hack for ios iframe for bootstrap themes shopify page */
/* this chunk of css is not part of the toolkit :) */
body {
width: 1px;
min-width: 100%;
*width: 100%;
}
</style>
</head>
<body>
<div class="container">
<div class="with-iconav">
{include file="navigation.tpl"}
</div>
<div class="col-sm-12 content">
<div class="dashhead">
<div class="dashhead-titles">
<h6 class="dashhead-subtitle">Dashboards</h6>
<h2 class="dashhead-title">Order history</h2>
</div>
<div class="btn-toolbar dashhead-toolbar">
<div class="btn-toolbar-item input-with-icon">
<input type="text" value="01/01/15 - 01/08/15" class="form-control" data-provide="datepicker">
<span class="icon icon-calendar"></span>
</div>
</div>
</div>
<div class="flextable table-actions">
<div class="flextable-item flextable-primary">
<div class="btn-toolbar-item input-with-icon">
<input type="text" class="form-control input-block" placeholder="Search orders">
<span class="icon icon-magnifying-glass"></span>
</div>
</div>
<div class="flextable-item">
<div class="btn-group">
<button type="button" class="btn btn-primary-outline">
<span class="icon icon-pencil"></span>
</button>
<button type="button" class="btn btn-primary-outline">
<span class="icon icon-erase"></span>
</button>
</div>
</div>
</div>
<div class="table-full">
<div class="table-responsive">
<table class="table" data-sort="table">
<thead>
<tr>
<th><input type="checkbox" class="select-all" id="selectAll"></th>
<th>Order</th>
<th>Customer name</th>
<th>Description</th>
<th>Date</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10001</a></td>
<td>First Last</td>
<td>Admin theme, marketing theme</td>
<td>01/01/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10002</a></td>
<td>Firstname Lastname</td>
<td>Admin theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10003</a></td>
<td>Name Another</td>
<td>Personal blog theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10004</a></td>
<td>One More</td>
<td>Marketing theme, personal blog theme, admin theme</td>
<td>01/01/2015</td>
<td>$300.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10005</a></td>
<td>Name Right Here</td>
<td>Personal blog theme, admin theme</td>
<td>01/02/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10006</a></td>
<td>First Last</td>
<td>Admin theme, marketing theme</td>
<td>01/01/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10007</a></td>
<td>Firstname Lastname</td>
<td>Admin theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10008</a></td>
<td>Name Another</td>
<td>Personal blog theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10009</a></td>
<td>One More</td>
<td>Marketing theme, personal blog theme, admin theme</td>
<td>01/01/2015</td>
<td>$300.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10010</a></td>
<td>Name Right Here</td>
<td>Personal blog theme, admin theme</td>
<td>01/02/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10011</a></td>
<td>First Last</td>
<td>Admin theme, marketing theme</td>
<td>01/01/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10012</a></td>
<td>Firstname Lastname</td>
<td>Admin theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10013</a></td>
<td>Name Another</td>
<td>Personal blog theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10014</a></td>
<td>One More</td>
<td>Marketing theme, personal blog theme, admin theme</td>
<td>01/01/2015</td>
<td>$300.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10015</a></td>
<td>Name Right Here</td>
<td>Personal blog theme, admin theme</td>
<td>01/02/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10016</a></td>
<td>First Last</td>
<td>Admin theme, marketing theme</td>
<td>01/01/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10017</a></td>
<td>Firstname Lastname</td>
<td>Admin theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10018</a></td>
<td>Name Another</td>
<td>Personal blog theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10019</a></td>
<td>One More</td>
<td>Marketing theme, personal blog theme, admin theme</td>
<td>01/01/2015</td>
<td>$300.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10020</a></td>
<td>Name Right Here</td>
<td>Personal blog theme, admin theme</td>
<td>01/02/2015</td>
<td>$200.00</td>
</tbody>
</table>
</div>
</div>
<div class="text-center">
<ul class="pagination">
<li>
<a href="#" aria-label="Previous">
<span aria-hidden="true">&laquo;</span>
</a>
</li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li>
<a href="#" aria-label="Next">
<span aria-hidden="true">&raquo;</span>
</a>
</li>
</ul>
</div>
</div>
</div>
<div id="docsModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">Example modal</h4>
</div>
<div class="modal-body">
<p>You're looking at an example modal in the dashboard theme.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Cool, got it!</button>
</div>
</div>
</div>
</div>
{foreach item=script from=$js}
<script src="{$script}"></script>
{/foreach}
<script>
// execute/clear BS loaders for docs
$(function(){
while( window.BS&&window.BS.loader&&window.BS.loader.length )
{
(window.BS.loader.pop())()
}
})
</script>
{include file="debugbar.tpl"}
</body>
</html>

View File

@@ -0,0 +1,17 @@
<nav class="iconav">
<a class="iconav-brand" href="/">
<span class="icon icon-leaf iconav-brand-icon"></span>
</a>
<div class="iconav-slider">
<ul class="nav nav-pills iconav-nav">
{foreach $json as $naventry}
<li >
<a href="{$naventry.link}" title="{$naventry.tooltip}" data-toggle="tooltip" data-placement="right" data-container="body">
<span class="icon {$naventry.icon}"></span>
<small class="iconav-nav-label visible-xs-block">{$naventry.title}</small>
</a>
</li>
{/foreach}
</ul>
</div>
</nav>