mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-02 03:38:41 +00:00
Make app,localization in url optional+tld+subdomain
This commit is contained in:
parent
29f3d74802
commit
6e66e4006d
|
|
@ -1,11 +1,11 @@
|
|||
[
|
||||
{
|
||||
"id": 1005301001,
|
||||
"pid": "/backend",
|
||||
"pid": "/",
|
||||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Editor",
|
||||
"uri": "{/lang}/backend/editor/list?{?}",
|
||||
"uri": "{/prefix}editor/list?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 75,
|
||||
|
|
@ -15,11 +15,11 @@
|
|||
"children": [
|
||||
{
|
||||
"id": 1005302001,
|
||||
"pid": "/backend/editor",
|
||||
"pid": "/editor",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/lang}/backend/editor/list?{?}",
|
||||
"uri": "{/prefix}editor/list?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -30,11 +30,11 @@
|
|||
},
|
||||
{
|
||||
"id": 1005302101,
|
||||
"pid": "/backend/editor",
|
||||
"pid": "/editor",
|
||||
"type": 3,
|
||||
"subtype": 5,
|
||||
"name": "Create",
|
||||
"uri": "{/lang}/backend/editor/create?{?}",
|
||||
"uri": "{/prefix}editor/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 15,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
|
|||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
return [
|
||||
'^.*/api/editor.*$' => [
|
||||
'^.*/editor.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Editor\Controller\ApiController:apiEditorCreate',
|
||||
'verb' => RouteVerb::PUT,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
|
|||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
return [
|
||||
'^.*/backend/editor/create.*$' => [
|
||||
'^.*/editor/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Editor\Controller\BackendController:setUpEditorEditor',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -26,7 +26,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/editor/list.*$' => [
|
||||
'^.*/editor/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Editor\Controller\BackendController:viewEditorList',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -37,7 +37,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/editor/single.*$' => [
|
||||
'^.*/editor/single.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Editor\Controller\BackendController:viewEditorSingle',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<section class="box wf-100">
|
||||
<div class="inner">
|
||||
<form id="fEditor" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
|
||||
<form id="fEditor" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('{/api}editor?{?}&csrf={$CSRF}'); ?>">
|
||||
<div class="ipt-wrap">
|
||||
<div class="ipt-first"><input name="title" type="text" class="wf-100"></div>
|
||||
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save') ?>"></div>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td colspan="3">
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($docs as $key => $value) : ++$count;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/editor/single?{?}&id=' . $value->getId()); ?>
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}editor/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getTitle()); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedBy()->getName1()); ?></a>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<section class="box wf-100">
|
||||
<div class="inner">
|
||||
<form id="fEditor" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
|
||||
<form id="fEditor" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}editor?{?}&csrf={$CSRF}'); ?>">
|
||||
<div class="ipt-wrap">
|
||||
<div class="ipt-first"><input name="title" type="text" class="wf-100" value="<?= $doc->getTitle(); ?>"></div>
|
||||
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save') ?>"></div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user