Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Privat - Marco Schmiedel
sidekick
Commits
2af84351
Commit
2af84351
authored
Apr 13, 2022
by
Marco Schmiedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9bb85d7d
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
139 additions
and
68 deletions
+139
-68
BashColorDemoCommand.php
src/Commands/BashColorDemoCommand/BashColorDemoCommand.php
+3
-3
CodebeautifierCommand.php
src/Commands/CodebeautifierCommand/CodebeautifierCommand.php
+23
-14
BeautifyManager.php
src/Managers/BeautifyManager/BeautifyManager.php
+6
-3
Template.tpl
src/Managers/BeautifyManager/Template.tpl
+1
-1
DirectoryManager.php
src/Managers/DirectoryManager/DirectoryManager.php
+44
-15
AssetHelper.php
src/Managers/PicassoManager/AssetHelper.php
+14
-4
BladeManagement.php
src/Managers/PicassoManager/BladeManagement.php
+1
-1
ResourcePublisherManager.php
...ers/ResourcePublisherManager/ResourcePublisherManager.php
+2
-3
TerminalManager.php
src/Managers/TerminalManager/TerminalManager.php
+5
-5
CommandServiceProvider.php
...oviders/CommandServiceProvider/CommandServiceProvider.php
+1
-1
CoreServiceProvider.php
src/Providers/CoreServiceProvider.php
+2
-2
PicassoServiceProvider.php
...oviders/PicassoServiceProvider/PicassoServiceProvider.php
+3
-3
Config.php
src/Views/Limitless/Element/Config.php
+13
-0
Div.php
src/Views/Limitless/Element/Example/Div.php
+1
-0
example.css
src/Views/Limitless/Element/Example/example.css
+4
-0
example.js
src/Views/Limitless/Element/Example/example.js
+3
-0
Config.php
src/Views/Limitless/Help/Config.php
+3
-7
Home.blade.php
src/Views/Limitless/Help/Pages/Home.blade.php
+1
-0
Master.blade.php
src/Views/Limitless/Layout/Dark/Master.blade.php
+9
-6
No files found.
src/Commands/BashColorDemoCommand/BashColorDemoCommand.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2021-12-20 15:08:24
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Commands\BashColorDemoCommand
;
...
...
@@ -54,7 +54,7 @@
*/
public
function
handle
()
{
$this
->
info
(
TerminalManager
::
d
emo
()
);
$this
->
info
(
TerminalManager
::
showColorD
emo
()
);
}
...
...
src/Commands/CodebeautifierCommand/CodebeautifierCommand.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2022-04-13 07:39:40
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Commands\CodebeautifierCommand
;
...
...
@@ -21,9 +21,9 @@
| Dependencies
|------------------------------------------------------------------------------------------------
*/
use
Ceetrox\Managers\DirectoryManager\DirectoryManager
;
use
Ceetrox\Managers\TerminalManager\TerminalManager
;
use
Ceetrox\Managers\BeautifyManager\BeautifyManager
;
use
Ceetrox\Managers\DirectoryManager\DirectoryManager
;
use
Illuminate\Console\Command
;
...
...
@@ -64,14 +64,19 @@
/*
|----------------------------------------------------------------------------------------
| Check if the given
file exists
.
| Check if the given
path is a single file..
.
*/
if
(
file_exists
(
$path
)
and
!
is_dir
(
$path
))
{
$this
->
singleC
leaning
(
$path
);
$this
->
c
leaning
(
$path
);
return
;
}
/*
|----------------------------------------------------------------------------------------
| Abort if the given path is not a directory...
*/
elseif
(
!
is_dir
(
$path
))
{
$this
->
error
(
'Please enter a valid path!'
);
...
...
@@ -81,47 +86,51 @@
/*
|----------------------------------------------------------------------------------------
|
Drop info for a wrong file path
.
|
Ask if the command must clean the whole path..
.
*/
$this
->
error
(
$path
);
if
(
$this
->
confirm
(
'This is not a valid php file. Do you want to clean the whole path?'
))
{
dd
(
DirectoryManager
::
getFilesWithFiletypeForDirectory
(
$path
,
'php'
)
);
}
$paths
=
DirectoryManager
::
getFilesWithFiletypeForDirectory
(
$path
,
'php'
);
foreach
(
$paths
as
$path
)
{
$this
->
cleaning
(
$path
);
}
}
}
/*
|--------------------------------------------------------------------------------------------
| Method "
singleC
leaning"
| Method "
c
leaning"
|--------------------------------------------------------------------------------------------
*/
private
function
singleC
leaning
(
$file
)
private
function
c
leaning
(
$file
)
{
/*
|----------------------------------------------------------------------------------------
| Copy a backup to the vendor folder.
| Copy a backup to the vendor folder.
..
*/
copy
(
$file
,
__DIR__
.
'/BACKUP_'
.
time
()
.
md5
(
microtime
())
);
/*
|----------------------------------------------------------------------------------------
| Boot the Beautifier class.
| Boot the Beautifier class.
..
*/
$beauty
=
new
BeautifyManager
();
/*
|----------------------------------------------------------------------------------------
| Analyse the given file.
| Analyse the given file.
..
*/
$beauty
->
analyseDocument
(
$file
);
/*
|----------------------------------------------------------------------------------------
| Render the given file.
| Render the given file.
..
*/
$beauty
->
renderDocument
(
$file
);
...
...
src/Managers/BeautifyManager/BeautifyManager.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2022-04-12 07:37:59
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Managers\BeautifyManager
;
...
...
@@ -354,7 +354,10 @@
*/
$classes
=
$this
->
matchBetweenTwoPatterns
(
$this
->
content
,
$openPattern
,
$closePattern
);
// Exit when now class was found
/*
|----------------------------------------------------------------------------------------
| Exit when now class was found
*/
if
(
$classes
==
false
)
{
exit
();
...
...
src/Managers/BeautifyManager/Template.tpl
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
|
sidekick
package
.
|
|
Author:
%
author
%
|
D
ate:
%
timestasmp
%
|
Upd
ate:
%
timestasmp
%
|
*/
%
namespace
%
...
...
src/Managers/DirectoryManager/DirectoryManager.php
View file @
2af84351
<?php
/*
|------------------------------------------------------------------------------------------------
| Information
|------------------------------------------------------------------------------------------------
|
| This file is beautified by the command "sidekick:CodebeautifierCommand" of the ceetrox
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
| Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Managers\DirectoryManager
;
/*
|------------------------------------------------------------------------------------------------
| Dependencies
|------------------------------------------------------------------------------------------------
*/
/*
|------------------------------------------------------------------------------------------------
| Class "DirectoryManager"
|------------------------------------------------------------------------------------------------
*/
class
DirectoryManager
{
/*
|--------------------------------------------------------------------------------------------
| Method "getFilesWithFiletypeForDirectory"
|--------------------------------------------------------------------------------------------
*/
static
function
getFilesWithFiletypeForDirectory
(
$directory
,
$type
)
{
$files
=
glob
(
$directory
.
'/*'
);
$data
=
array
();
foreach
(
$files
as
$file
)
{
if
(
is_dir
(
$file
))
{
$data
=
array_merge
(
$data
,
self
::
getFilesWithFiletypeForDirectory
(
$file
,
$type
));
}
elseif
(
substr
(
$file
,
-
4
)
==
'.'
.
$type
)
{
foreach
(
$files
as
$file
)
{
if
(
is_dir
(
$file
))
{
$data
=
array_merge
(
$data
,
self
::
getFilesWithFiletypeForDirectory
(
$file
,
$type
));
}
elseif
(
substr
(
$file
,
(
strlen
(
$type
)
+
1
)
*
-
1
)
==
'.'
.
$type
)
{
$data
[]
=
$file
;
}
}
return
$data
;
}
}
...
...
src/Managers/PicassoManager/AssetHelper.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2022-04-12 13:45:45
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Sidekick\Managers\PicassoManager
;
...
...
@@ -43,6 +43,7 @@
*/
static
function
generateAssetTag
(
$configCls
,
$currentNamespace
,
$currentFolder
,
$currentKey
)
{
/*
|----------------------------------------------------------------------------------------
| Define a defaultempty return value.
...
...
@@ -61,6 +62,7 @@
*/
foreach
(
$configCls
->
assetAllocation
[
$currentKey
]
as
$asset
)
{
/*
|--------------------------------------------------------------------------------
| Check if the asset is a external url or a private hostet path.
...
...
@@ -71,11 +73,13 @@
|----------------------------------------------------------------------------
| Build array for the secure publisher in case of a private path.
*/
$path
=
__DIR__
.
'/../Views/'
.
$currentNamespace
.
'/'
.
$currentFolder
.
'/'
.
$asset
;
$path
=
__DIR__
.
'/../../Views/'
.
$currentNamespace
.
'/'
.
$currentFolder
.
'/'
.
$asset
;
$array
=
[
'path'
=>
$path
,
'code'
=>
md5
(
env
(
'APP_KEY'
)
.
$path
)
];
}
else
{
...
...
@@ -93,7 +97,7 @@
|--------------------------------------------------------------------------------
| Get the correct mimetype of the source.
*/
$RP
=
new
ResourcePublisher
();
$RP
=
new
ResourcePublisher
Manager
();
$mime
=
$RP
->
getMime
(
$path
);
/*
...
...
@@ -130,6 +134,8 @@
*/
static
function
resolveAssetTagCategory
(
$__env
,
$type
)
{
/*
|----------------------------------------------------------------------------------------
| First define a virtual storage for all elements that should be send to the master
...
...
@@ -149,6 +155,7 @@
*/
foreach
(
$__env
->
getSections
()
as
$section
)
{
/*
|------------------------------------------------------------------------------------
| Filter the picasso tags with preg_match_all.
...
...
@@ -161,6 +168,8 @@
*/
if
(
$picassoTag
[
0
])
{
/*
|--------------------------------------------------------------------------------
| Loop all found picasso tags.
...
...
@@ -218,6 +227,7 @@
*/
if
(
$type
==
'javascript'
)
{
$storage
.=
'<script src="'
.
$url
.
'"></script>'
;
}
}
...
...
src/Managers/PicassoManager/BladeManagement.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2022-04-12 13:40:18
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Sidekick\Managers\PicassoManager
;
...
...
src/Managers/ResourcePublisherManager/ResourcePublisherManager.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2022-04-12 08:54:3
2
|
Update: 2022-04-13 08:07:2
2
|
*/
namespace
Ceetrox\Sidekick\Managers\ResourcePublisherManager
;
...
...
@@ -167,7 +167,6 @@
{
dd
(
'PATH NOT FOUND'
);
}
}
}
...
...
src/Managers/TerminalManager/TerminalManager.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2021-12-23 19:51:17
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Managers\TerminalManager
;
...
...
@@ -95,11 +95,11 @@
/*
|--------------------------------------------------------------------------------------------
| Method "
d
emo"
| Method "
showColorD
emo"
|--------------------------------------------------------------------------------------------
| This method generates all available terminal colors for a demo output.
|
Method "demo"
This method generates all available terminal colors for a demo output.
*/
static
function
d
emo
()
static
function
showColorD
emo
()
{
/*
|----------------------------------------------------------------------------------------
...
...
src/Providers/CommandServiceProvider/CommandServiceProvider.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2022-04-12 13:15:28
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Providers\CommandServiceProvider
;
...
...
src/Providers/CoreServiceProvider.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2022-04-12 13:14:23
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Providers
;
...
...
src/Providers/PicassoServiceProvider/PicassoServiceProvider.php
View file @
2af84351
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
|
Date: 2022-04-12 13:16:30
|
Update: 2022-04-13 08:07:22
|
*/
namespace
Ceetrox\Providers\PicassoServiceProvider
;
...
...
@@ -80,7 +80,7 @@
| This route can load non public files when you follow their implemented security
| pattern.
*/
Route
::
get
(
'ceetrox/sidekick/resource/private/{var}'
,
'Ceetrox\Sidekick\Managers\ResourcePublisherManager@stageSecure'
);
Route
::
get
(
'ceetrox/sidekick/resource/private/{var}'
,
'Ceetrox\Sidekick\Managers\ResourcePublisherManager
\ResourcePublisherManager
@stageSecure'
);
}
...
...
src/Views/Limitless/Element/Config.php
View file @
2af84351
...
...
@@ -39,9 +39,17 @@
public
$methodAllocation
=
[
'Limitless::ElementCardStart'
=>
'cardStart'
,
'Limitless::ElementCardStop'
=>
'cardStop'
,
'Limitless::Example'
=>
'example'
,
];
public
$assetAllocation
=
[
'Limitless::Example'
=>
[
'Example/example.js'
,
'Example/example.css'
]
];
/*
|--------------------------------------------------------------------------------------------
| Method "CardStart"
...
...
@@ -62,6 +70,11 @@
return
View
(
'Limitless::Element.Card.Stop'
);
}
public
function
example
()
{
return
View
(
'Limitless::Element.Example.Div'
);
}
}
...
...
src/Views/Limitless/Element/Example/Div.php
0 → 100644
View file @
2af84351
<div
id=
"limitlessElementExampleDiv"
></div>
src/Views/Limitless/Element/Example/example.css
0 → 100644
View file @
2af84351
#limitlessElementExampleDiv
{
border
:
1px
solid
white
;
padding
:
10px
;
}
src/Views/Limitless/Element/Example/example.js
0 → 100644
View file @
2af84351
$
(
document
).
ready
(
function
(){
$
(
'
#limitlessElementExampleDiv
'
).
html
(
"
This div was created by custom javascript and stylesheet files ...
"
);
});
src/Views/Limitless/Help/Config.php
View file @
2af84351
...
...
@@ -37,16 +37,12 @@
|--------------------------------------------------------------------------------------------
*/
public
$methodAllocation
=
[
'Limitless::Help'
=>
'
exampleManagement
'
,
'Limitless::Help'
=>
'
internalNavigation
'
,
];
/*
|--------------------------------------------------------------------------------------------
| Method "exampleManagement"
|--------------------------------------------------------------------------------------------
*/
public
function
exampleManagement
(
$parameters
)
public
function
internalNavigation
(
$parameters
)
{
return
View
(
'Limitless::Help.Pages.Home'
);
...
...
src/Views/Limitless/Help/Pages/Home.blade.php
View file @
2af84351
...
...
@@ -13,6 +13,7 @@
The
raw
design
is
available
via
the
emulated
<
a
target
=
"_blank"
href
=
"
{
{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/layout_1/LTR/dark/full/index.html')}
}
"
>
<
u
>
CDN
</
u
>
</
a
>
of
the
<
i
>
ceetrox
/
sidekick
</
i
>
package
.
@
Limitless
::
ElementCardStop
@
Limitless
::
Example
@
stop
...
...
src/Views/Limitless/Layout/Dark/Master.blade.php
View file @
2af84351
...
...
@@ -15,7 +15,7 @@
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"@yield('Limitless::GlobalFavicon')"
>
@endif
<!-- Global stylesheets -->
{{-- Global stylesheets --}}
<link
href=
"https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"{{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/css/icons/icomoon/styles.min.css')}}"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"{{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/layout_1/LTR/dark/full/assets/css/bootstrap.min.css')}}"
rel=
"stylesheet"
type=
"text/css"
>
...
...
@@ -26,17 +26,20 @@
<link
href=
"{{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/fontawesome/css/allmin.css')}}"
rel=
"stylesheet"
type=
"text/css"
>
@php
echo
Polaris\Picasso\Generators\AssetHelperGenerato
r::resolveAssetTagCategory($__env,'stylesheet');
echo
Ceetrox\Sidekick\Managers\PicassoManager\AssetHelpe
r::resolveAssetTagCategory($__env,'stylesheet');
@endphp
<!-- Global javascripts -->
{{-- Hide picasso / enable for debug --}}
<style>picasso
{
display
:
none
;}
</style>
{{-- Global javascripts --}}
<script
src=
"{{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/main/jquery.min.js')}}"
></script>
<script
src=
"{{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/main/bootstrap.bundle.min.js')}}"
></script>
<script
src=
"{{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/plugins/loaders/blockui.min.js')}}"
></script>
<script
src=
"{{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/layout_1/LTR/dark/full/assets/js/app.js')}}"
></script>
@php
echo
Polaris\Picasso\Generators\AssetHelperGenerato
r::resolveAssetTagCategory($__env,'javascript');
echo
Ceetrox\Sidekick\Managers\PicassoManager\AssetHelpe
r::resolveAssetTagCategory($__env,'javascript');
@endphp
@yield('Limitless::Stylesheet')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment