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
b759a483
Commit
b759a483
authored
Jun 27, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - added loremipsum element
parent
f2c94dda
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
472 additions
and
8 deletions
+472
-8
Config.php
src/Views/Limitless/Element/Config.php
+17
-3
Core.php
src/Views/Limitless/Element/LoremIpsum/Attachments/Core.php
+382
-0
Index.blade.php
...imitless/Element/LoremIpsum/Documentation/Index.blade.php
+59
-0
LoremIpsum.blade.php
src/Views/Limitless/Element/LoremIpsum/LoremIpsum.blade.php
+5
-0
Config.php
src/Views/Limitless/Help/Config.php
+6
-3
Master.blade.php
src/Views/Limitless/Help/Layout/Master.blade.php
+3
-2
No files found.
src/Views/Limitless/Element/Config.php
View file @
b759a483
<?php
/*
|------------------------------------------------------------------------------------------------
| Information
...
...
@@ -21,8 +20,9 @@
| Dependencies
|------------------------------------------------------------------------------------------------
*/
use
View
;
use
Ceetrox\Views\Limitless\Element\LoremIpsum\JoshtronicLoremIpsum
;
use
View
;
/*
|------------------------------------------------------------------------------------------------
...
...
@@ -39,6 +39,7 @@
public
$methodAllocation
=
[
'Limitless::ElementCardStart'
=>
'cardStart'
,
'Limitless::ElementCardStop'
=>
'cardStop'
,
'Limitless::LoremIpsum'
=>
'loremIpsum'
,
'Limitless::Divider'
=>
'divider'
,
'Limitless::Example'
=>
'example'
,
];
...
...
@@ -55,7 +56,6 @@
|--------------------------------------------------------------------------------------------
| Method "cardStart"
|--------------------------------------------------------------------------------------------
| Method "CardStart"
*/
public
function
cardStart
(
$parameters
)
{
...
...
@@ -80,6 +80,20 @@
}
/*
|--------------------------------------------------------------------------------------------
| Method "loremIpsum"
|--------------------------------------------------------------------------------------------
*/
public
function
loremIpsum
(
$parameters
)
{
return
View
(
'Limitless::Element.LoremIpsum.LoremIpsum'
)
->
withLength
(
isset
(
$parameters
[
'length'
])
?
(
ctype_digit
((
string
)
$parameters
[
'length'
])
?
$parameters
[
'length'
]
:
0
)
:
0
);
}
/*
|--------------------------------------------------------------------------------------------
| Method "divider"
...
...
src/Views/Limitless/Element/LoremIpsum/Attachments/Core.php
0 → 100644
View file @
b759a483
This diff is collapsed.
Click to expand it.
src/Views/Limitless/Element/LoremIpsum/Documentation/Index.blade.php
0 → 100644
View file @
b759a483
{{
--
Layout
Reference
--
}}
@
extends
(
'Limitless::Help.Layout.Master'
)
@
section
(
'Limitless::Content'
)
{{
--
Description
--
}}
@
Limitless
::
ElementCardStart
([
'title'
=>
"Lorem Ipsum"
,
'icon'
=>
'icon-bubble-lines3'
])
<
p
>
Generates
Lorem
ipsum
based
on
passed
parameter
<
i
>
length
</
i
>.</
p
>
@
Limitless
::
ElementCardStop
{{
--
Elements
--
}}
@
Limitless
::
ElementCardStart
([
'title'
=>
"Fragments"
,
'icon'
=>
'icon-grid5'
])
<
div
class
="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">LoremIpsum</h6>
<p class="
mb
-
3
text
-
muted
">Generates Lorem ipsum based on passed parameter <i>length</i>.</p>
<p class="
font
-
italic
font
-
size
-
lg
">Parameters</p>
<div class="
row
mt
-
2
">
@Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])
@Limitless::TableAutofillHeader([
['name' => 'Key'],
['name' => 'Type'],
['name' => 'Description']
])
@Limitless::TableAutofillBody([
[
['value' => 'length'],
['value' => '<i>Integer|Numeric String</i> [Default = <code>0</code>]', 'secure' => false],
['value' => 'The length of random words to generate.']
]
])
@Limitless::TableStop
</div>
</div>
@Limitless::ElementCardStop
{{-- Sample Output --}}
@Limitless::ElementCardStart(['title' => "
Sample
Output
", 'icon' => 'icon-display4' ] )
@Limitless::LoremIpsum(['length' => 10])
@Limitless::Divider
@Limitless::LoremIpsum(['length' => '20'])
@Limitless::ElementCardStop
@php
$example
= base64_decode("
QExpbWl0bGVzczo6TG9yZW1JcHN1bShbJ2xlbmd0aCcgPT4gMTBdKQpATGltaXRsZXNzOjpEaXZpZGVyCkBMaW1pdGxlc3M6OkxvcmVtSXBzdW0oWydsZW5ndGgnID0
+
ICcyMCddKQ
==
");
@endphp
{{-- Sample Code --}}
@Limitless::ElementCardStart(['title' => "
Sample
Code
", 'icon' => 'icon-circle-code' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' =>
$example
])
@Limitless::ElementCardStop
@stop
src/Views/Limitless/Element/LoremIpsum/LoremIpsum.blade.php
0 → 100644
View file @
b759a483
@
php
$output
=
(
new
Ceetrox\Views\Limitless\Element\LoremIpsum\Attachments\Core
())
->
words
(
$length
);
@
endphp
{{
$output
}}
\ No newline at end of file
src/Views/Limitless/Help/Config.php
View file @
b759a483
...
...
@@ -51,15 +51,18 @@
case
"example"
:
$path
=
'Limitless::Element.Example.Documentation.Index'
;
break
;
case
"divider"
:
$path
=
'Limitless::Element.Divider.Documentation.Index'
;
break
;
case
"card"
:
$path
=
'Limitless::Element.Card.Documentation.Index'
;
break
;
case
"codemirror"
:
$path
=
'Limitless::Codemirror.Documentation.Index'
;
break
;
case
"divider"
:
$path
=
'Limitless::Element.Divider.Documentation.Index'
;
break
;
case
"loremipsum"
:
$path
=
'Limitless::Element.LoremIpsum.Documentation.Index'
;
break
;
case
"navigation"
:
$path
=
'Limitless::Navigation.Documentation.Index'
;
break
;
...
...
src/Views/Limitless/Help/Layout/Master.blade.php
View file @
b759a483
...
...
@@ -28,9 +28,10 @@
@
Limitless
::
NavigationMenuSectionTitle
([
'title'
=>
'Elements'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=example'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-exclamation'
,
'title'
=>
'Example'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=card'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-newspaper'
,
'title'
=>
'Card'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=table'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-table2'
,
'title'
=>
'Table'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=codemirror'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-circle-code'
,
'title'
=>
'Code Mirror'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=navigation'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-menu8'
,
'title'
=>
'Navigation'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=divider'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-minus2'
,
'title'
=>
'Divider'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=loremipsum'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-bubble-lines3'
,
'title'
=>
'Lorem Ipsum'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=navigation'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-menu8'
,
'title'
=>
'Navigation'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=table'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-table2'
,
'title'
=>
'Table'
])
@
Limitless
::
NavigationStop
@
stop
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