Skip to content

Commit 1853ad8

Browse files
author
Sergey Surkov
committed
First version
0 parents  commit 1853ad8

79 files changed

Lines changed: 4978 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/css/app.css

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
2+
html,body{
3+
margin: 0;
4+
padding: 0;
5+
width: 100%;
6+
height: 100%;
7+
}
8+
body{background-color:#444;color:#e1e1e1;}
9+
body,td,th{ font: 9pt Lucida,Verdana;margin:0;vertical-align:top;color:#e1e1e1; }
10+
table.info{ color:#fff;background-color:#222; }
11+
span,h1,a{ color: #55e844 !important; }
12+
span{ font-weight: bolder; }
13+
h1{ border-left:5px solid #df5;padding: 2px 5px;font: 14pt Verdana;background-color:#222;margin:0; }
14+
div.content{ padding: 5px;margin-left:5px;background-color:#333; }
15+
form,ul,ol {margin: 0;padding: 0;}
16+
ul li ,ol li{list-style-type: none;}
17+
a{ text-decoration:none; }
18+
a:hover{ text-decoration:underline; }
19+
.ml1{ border:1px solid #444;padding:5px;margin:0;overflow: auto; }
20+
.bigarea{ width:100%;height:300px; }
21+
input,textarea,select{ margin:0;color:#fff;background-color:#555;border:1px solid #ff8303; font: 9pt Monospace; }
22+
#toolsTbl{ text-align:center; }
23+
.toolsInp{ width: 300px }
24+
.strips th{text-align:left;background-color:#5e5e5e;}
25+
.strips tr:hover{background-color:#5e5e5e}
26+
.strips tr:nth-child(odd){background-color:#444}
27+
.strips tr:nth-child(even){background-color:#333}
28+
.red-m, .red-m a ,.modules-menu th a{ color: #ff8f00 !important; }
29+
.strips tr:hover td {
30+
background-color: #3a2c20;
31+
}
32+
.red{color: #f00 !important;}
33+
.green{color: #55e844 !important;}
34+
pre{font-family:Courier,Monospace;}
35+
.min-width {width: 1%;}
36+
.menu { text-align: center;
37+
margin: 5px 0;}
38+
ul.menu-h {}
39+
ul.menu-h li {
40+
display: inline-block;
41+
}
42+
ul.menu-h li a {
43+
margin-left: 5px;
44+
display: block;
45+
background-color: #222222;
46+
padding: 5px 10px;
47+
}
48+
ul.menu-v {}
49+
ul.menu-v li {
50+
list-style: none;
51+
}
52+
#load_bar {
53+
width: 100%;
54+
background: #000;
55+
position: fixed;
56+
top:0;
57+
padding: 3px;
58+
59+
box-shadow: inset 0px 1px 3px rgba(0,0,0,0.2);
60+
-webkit-box-shadow: inset 0px 1px 3px rgba(0,0,0,0.2);
61+
}
62+
63+
#load_bar_fill {
64+
height: 10px;
65+
display: inline-block;
66+
vertical-align: top;
67+
background: cornflowerblue;
68+
width: 0%;
69+
text-align: right;
70+
font-size: 8px;
71+
padding-right: 2px;
72+
color:#000 !important;
73+
transition: width 0.8s ease;
74+
-webkit-transition: width 0.8s ease;
75+
}
76+
.circle_loader,
77+
.circle_loader:after {
78+
border-radius: 50%;
79+
width:8px;
80+
height: 8px;
81+
}
82+
.circle_loader {
83+
margin: -1px auto;
84+
margin-left: 2px;
85+
font-size: 2px;
86+
display: inline-block;
87+
position: relative;
88+
text-indent: -9999em;
89+
border-top: 1.1em solid rgba(100, 255, 141, 0.2);
90+
border-right: 1.1em solid rgba(100, 255, 141, 0.2);
91+
border-bottom: 1.1em solid rgba(100, 255, 141, 0.2);
92+
border-left: 1.1em solid rgb(117, 255, 101);
93+
-webkit-transform: translateZ(0);
94+
-ms-transform: translateZ(0);
95+
transform: translateZ(0);
96+
-webkit-animation: load8 1.1s infinite linear;
97+
animation: load8 1.1s infinite linear;
98+
}
99+
@-webkit-keyframes load8 {
100+
0% {
101+
-webkit-transform: rotate(0deg);
102+
transform: rotate(0deg);
103+
}
104+
100% {
105+
-webkit-transform: rotate(360deg);
106+
transform: rotate(360deg);
107+
}
108+
}
109+
@keyframes load8 {
110+
0% {
111+
-webkit-transform: rotate(0deg);
112+
transform: rotate(0deg);
113+
}
114+
100% {
115+
-webkit-transform: rotate(360deg);
116+
transform: rotate(360deg);
117+
}
118+
}

assets/css/backend/default.css

Whitespace-only changes.

assets/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Included Demo/assets/js/app.js!')

assets/js/backend/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Backend app js loaded!!!');

composer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "dissonance/develop",
3+
"require": {
4+
"dissonance/ui_backend": "dev-master"
5+
},
6+
"license": "MIT",
7+
"version": "1.0.0",
8+
"autoload": {
9+
"psr-4": {
10+
"Dissonance\\Develop\\": "src/"
11+
},
12+
"files": [
13+
"src/functions.php"
14+
]
15+
},
16+
"extra": {
17+
"dissonance": {
18+
"id": "develop",
19+
"app": {
20+
"id": "develop",
21+
"name": "Develop",
22+
"routing": "\\Dissonance\\Develop\\Routing",
23+
"controllers_namespace": "\\Dissonance\\Develop\\Controllers",
24+
"version": "1.0.0",
25+
"requires": [],
26+
"providers": [
27+
"\\Dissonance\\Develop\\Providers\\AppProvider"
28+
]
29+
}
30+
}
31+
}
32+
}

resources/stubs/assets/css/app.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* @file PACKAGE_ROOT/assets/css/app.css
3+
*
4+
* @link /FRAMEWORK_ROOT/#APP_ID#/assets/css/app.css
5+
*/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* @file PACKAGE_ROOT/assets/css/backend/app.css
3+
*
4+
* @link /FRAMEWORK_ROOT/#APP_ID#/assets/css/backend/app.css
5+
*/

resources/stubs/assets/js/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* @file PACKAGE_ROOT/assets/js/app.js
3+
*
4+
* @link /FRAMEWORK_ROOT/#APP_ID#/assets/js/app.js
5+
*/
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
namespace DummyNamespace;
4+
5+
use Dissonance\Contracts\{CoreInterface, BootstrapInterface};
6+
use Dissonance\HttpKernel\{HttpKernel, HttpRunner, RoutingHandler};
7+
8+
9+
class DummyClass implements BootstrapInterface
10+
{
11+
12+
/**
13+
* @param CoreInterface|\Dissonance\Core | array $app = [
14+
* // Сервисы доступные сразу
15+
*
16+
* 'config' => new \Dissonance\Config(),
17+
* 'events' => new \Dissonance\Contracts\Events\Dispatcher(), //{@see \Dissonance\Bootstrap\EventBootstrap::bootstrap()}
18+
* 'listeners' => new \Dissonance\Events\ListenerProvider(), //{@see \Dissonance\Bootstrap\EventBootstrap::bootstrap()}
19+
*
20+
* // Сервисы которых может еще не быть, но они доступны сразу после отработки всех бутстраперов
21+
*
22+
* 'apps' => new \Dissonance\Contracts\Apps\AppsRepository(), //{@see \Dissonance\Apps\Bootstrap::bootstrap()}
23+
* 'cache' => new \Dissonance\SimpleCache\Cache(), // может и не быть пакета
24+
* 'resources' => new \Dissonance\Packages\Resources(), //{@see \Dissonance\Packages\ResourcesBootstrap::bootstrap()}
25+
* 'http_factory' => new \Dissonance\Http\PsrHttpFactory(), //{@see \Dissonance\Http\Bootstrap::bootstrap()}
26+
*
27+
* // Сервисы из провайдеров, доступны после бутстрапа ядра {@see HttpRunner::run(), HttpKernel::bootstrap()}
28+
*
29+
* // HTTP сервисы, используются в {@see HttpKernel::handle(), RoutingHandler::handle()}
30+
* 'router' => new \Dissonance\Contracts\Routing\Router(), //{@see \Dissonance\Routing\Provider::registerRouter()}
31+
* 'request' => new \Dissonance\Http\ServerRequest(), //{@see HttpKernel::handle()}
32+
* 'cookie' => new \Dissonance\Http\Cookie\CookiesInterface(),//{@see \Dissonance\Http\Cookie\CookiesProvider::register()}
33+
* // Доступен только при обработке в контроллерах!!!
34+
* 'route' => new \Dissonance\Contracts\Routing\RouteInterface(), //{@see \Dissonance\HttpKernel\RouteHandler::handle()}
35+
* ]
36+
*/
37+
public function bootstrap(CoreInterface $app): void
38+
{
39+
// тут можно добавить свои расширения ядра и сервисы
40+
}
41+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace DummyNamespace;
4+
5+
use Dissonance\Contracts\{App\AppConfigInterface, App\ApplicationInterface, CoreInterface, Routing\RouteInterface};
6+
use Dissonance\Packages\Contracts\ResourcesRepositoryInterface;
7+
use Dissonance\View\View;
8+
use Psr\Http\Message\{ResponseInterface, ServerRequestInterface};
9+
10+
11+
class DummyClass
12+
{
13+
14+
public function index()
15+
{
16+
/**
17+
* path #APP_ID#/resources/views/frontend/home.blade.php
18+
*/
19+
return View::make('frontend/index');
20+
}
21+
22+
23+
}

0 commit comments

Comments
 (0)