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
9ef2796b
Commit
9ef2796b
authored
Jun 30, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - test beautify on element config file. beautified and the author was replaced.
parent
ab7444be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
25 deletions
+32
-25
Config.php
src/Views/Limitless/Element/Config.php
+32
-25
No files found.
src/Views/Limitless/Element/Config.php
View file @
9ef2796b
<?php
/*
|------------------------------------------------------------------------------------------------
| Information
...
...
@@ -8,8 +9,8 @@
| This file is beautified by the command "sidekick:CodebeautifierCommand" of the ceetrox
| sidekick package.
|
| Author:
Marco Schmiedel <marco.schmiedel
@itmax.email>
| Update: 2022-06-
15 10:07:09
| Author:
Kevin Almond Roe Yumang <kevin.yumang
@itmax.email>
| Update: 2022-06-
30 02:04:35
|
*/
namespace
Ceetrox\Sidekick\Views\Limitless\Element
;
...
...
@@ -20,10 +21,9 @@
| Dependencies
|------------------------------------------------------------------------------------------------
*/
use
Ceetrox\Views\Limitless\Element\LoremIpsum\JoshtronicLoremIpsum
;
use
View
;
/*
|------------------------------------------------------------------------------------------------
| Class "Config"
...
...
@@ -37,22 +37,24 @@
|--------------------------------------------------------------------------------------------
*/
public
$methodAllocation
=
[
'Limitless::Alert'
=>
'alert'
,
'Limitless::ElementCardStart'
=>
'cardStart'
,
'Limitless::ElementCardStop'
=>
'cardStop'
,
'Limitless::LoremIpsum'
=>
'loremIpsum'
,
'Limitless::RandomSelect'
=>
'randomSelect'
,
'Limitless::Divider'
=>
'divider'
,
'Limitless::Example'
=>
'example'
,
'Limitless::Alert'
=>
'alert'
,
'Limitless::ElementCardStart'
=>
'cardStart'
,
'Limitless::ElementCardStop'
=>
'cardStop'
,
'Limitless::LoremIpsum'
=>
'loremIpsum'
,
'Limitless::RandomSelect'
=>
'randomSelect'
,
'Limitless::Divider'
=>
'divider'
,
'Limitless::Example'
=>
'example'
,
];
public
$assetAllocation
=
[
'Limitless::Example'
=>
[
'Example/example.js'
,
'Example/example.css'
]
'Limitless::Example'
=>
[
'Example/example.js'
,
'Example/example.css'
]
];
/*
|--------------------------------------------------------------------------------------------
| Method "alert"
...
...
@@ -61,17 +63,18 @@
public
function
alert
(
$parameters
)
{
return
View
(
'Limitless::Element.Alert.Alert'
)
->
withDefault
(
$parameters
[
'default'
]
??
true
)
->
withType
(
$parameters
[
'type'
]
??
'primary'
)
->
withBorder
(
isset
(
$parameters
[
'border'
])
?
(
string
)
$parameters
[
'border'
]
:
null
)
->
withStyled
(
$parameters
[
'styled'
]
??
null
)
->
withRounded
(
$parameters
[
'rounded'
]
??
false
)
->
withDismissible
(
$parameters
[
'dismissible'
]
??
false
)
->
withTitle
(
$parameters
[
'title'
]
??
'No title.'
)
->
withMessage
(
$parameters
[
'message'
]
??
'No message.'
);
->
withDefault
(
$parameters
[
'default'
]
??
true
)
->
withType
(
$parameters
[
'type'
]
??
'primary'
)
->
withBorder
(
isset
(
$parameters
[
'border'
])
?
(
string
)
$parameters
[
'border'
]
:
null
)
->
withStyled
(
$parameters
[
'styled'
]
??
null
)
->
withRounded
(
$parameters
[
'rounded'
]
??
false
)
->
withDismissible
(
$parameters
[
'dismissible'
]
??
false
)
->
withTitle
(
$parameters
[
'title'
]
??
'No title.'
)
->
withMessage
(
$parameters
[
'message'
]
??
'No message.'
);
}
/*
|--------------------------------------------------------------------------------------------
| Method "cardStart"
...
...
@@ -100,6 +103,7 @@
}
/*
|--------------------------------------------------------------------------------------------
| Method "loremIpsum"
...
...
@@ -108,9 +112,11 @@
public
function
loremIpsum
(
$parameters
)
{
return
View
(
'Limitless::Element.LoremIpsum.LoremIpsum'
)
->
withLength
(
$parameters
==
[]
?
20
:
$parameters
);
->
withLength
(
$parameters
==
[]
?
20
:
$parameters
);
}
/*
|--------------------------------------------------------------------------------------------
| Method "divider"
...
...
@@ -122,6 +128,7 @@
}
/*
|--------------------------------------------------------------------------------------------
| Method "randomSelect"
...
...
@@ -130,7 +137,7 @@
public
function
randomSelect
(
$items
)
{
return
View
(
'Limitless::Element.RandomSelect.RandomSelect'
)
->
withItems
(
$items
);
->
withItems
(
$items
);
}
...
...
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