mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-13 08:48:43 +00:00
test fixes and changes for release
This commit is contained in:
parent
2bd6708ec0
commit
7a91d0b537
|
|
@ -8,7 +8,7 @@
|
||||||
"uri": "{/lang}/{/app}/editor/list",
|
"uri": "{/lang}/{/app}/editor/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 75,
|
"order": 20,
|
||||||
"from": "Editor",
|
"from": "Editor",
|
||||||
"permission": { "permission": 2, "category": null, "element": null },
|
"permission": { "permission": 2, "category": null, "element": null },
|
||||||
"parent": 1003301001,
|
"parent": 1003301001,
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ class EditorDocType implements \JsonSerializable
|
||||||
* @var string|EditorDocTypeL11n
|
* @var string|EditorDocTypeL11n
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $title;
|
protected $title = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
@ -100,7 +100,7 @@ class EditorDocType implements \JsonSerializable
|
||||||
{
|
{
|
||||||
if ($title instanceof EditorDocTypeL11n) {
|
if ($title instanceof EditorDocTypeL11n) {
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
} elseif (isset($this->title) && $this->title instanceof EditorDocTypeL11n) {
|
} elseif ($this->title instanceof EditorDocTypeL11n) {
|
||||||
$this->title->title = $title;
|
$this->title->title = $title;
|
||||||
} else {
|
} else {
|
||||||
$this->title = new EditorDocTypeL11n();
|
$this->title = new EditorDocTypeL11n();
|
||||||
|
|
|
||||||
|
|
@ -197,6 +197,30 @@ class TextView extends View
|
||||||
return $this->printHtml($this->tplValue);
|
return $this->printHtml($this->tplValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render template value path
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function renderTplValuePath() : string
|
||||||
|
{
|
||||||
|
return $this->printHtml($this->tplValuePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render text value path
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function renderTextValuePath() : string
|
||||||
|
{
|
||||||
|
return $this->printHtml($this->textValuePath);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -257,6 +257,25 @@ $CONFIG = [
|
||||||
'root' => '/',
|
'root' => '/',
|
||||||
'https' => false,
|
'https' => false,
|
||||||
],
|
],
|
||||||
|
'app' => [
|
||||||
|
'path' => __DIR__,
|
||||||
|
'default' => [
|
||||||
|
'app' => 'Backend',
|
||||||
|
'id' => 'backend',
|
||||||
|
'lang' => 'en',
|
||||||
|
'theme' => 'Backend',
|
||||||
|
'org' => 1,
|
||||||
|
],
|
||||||
|
'domains' => [
|
||||||
|
'127.0.0.1' => [
|
||||||
|
'app' => 'Backend',
|
||||||
|
'id' => 'backend',
|
||||||
|
'lang' => 'en',
|
||||||
|
'theme' => 'Backend',
|
||||||
|
'org' => 1,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
'socket' => [
|
'socket' => [
|
||||||
'master' => [
|
'master' => [
|
||||||
'host' => '127.0.0.1',
|
'host' => '127.0.0.1',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user