feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
4
modules/system/controllers/requestlogs/_hint.php
Normal file
4
modules/system/controllers/requestlogs/_hint.php
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
<p>
|
||||
<?= e(trans('system::lang.request_log.hint')) ?>
|
||||
</p>
|
||||
31
modules/system/controllers/requestlogs/_list_toolbar.php
Normal file
31
modules/system/controllers/requestlogs/_list_toolbar.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<div data-control="toolbar" class="loading-indicator-container">
|
||||
<a
|
||||
href="javascript:;"
|
||||
data-request="onRefresh"
|
||||
data-load-indicator="<?= e(trans('backend::lang.list.updating')) ?>"
|
||||
class="btn btn-primary wn-icon-refresh">
|
||||
<?= e(trans('backend::lang.list.refresh')) ?>
|
||||
</a>
|
||||
<a
|
||||
href="javascript:;"
|
||||
data-request="onEmptyLog"
|
||||
data-request-confirm="<?= e(trans('backend::lang.list.delete_selected_confirm')) ?>"
|
||||
data-load-indicator="<?= e(trans('system::lang.request_log.empty_loading')) ?>"
|
||||
class="btn btn-default wn-icon-eraser">
|
||||
<?= e(trans('system::lang.request_log.empty_link')) ?>
|
||||
</a>
|
||||
<button
|
||||
class="btn btn-danger wn-icon-trash-o"
|
||||
disabled="disabled"
|
||||
onclick="$(this).data('request-data', {
|
||||
checked: $('.control-list').listWidget('getChecked')
|
||||
})"
|
||||
data-request="onDelete"
|
||||
data-trigger-action="enable"
|
||||
data-trigger=".control-list input[type=checkbox]"
|
||||
data-trigger-condition="checked"
|
||||
data-request-success="$(this).prop('disabled', true)"
|
||||
data-stripe-load-indicator>
|
||||
<?= e(trans('backend::lang.list.delete_selected')) ?>
|
||||
</button>
|
||||
</div>
|
||||
11
modules/system/controllers/requestlogs/_referer_field.php
Normal file
11
modules/system/controllers/requestlogs/_referer_field.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php if ($formModel->referer && count($formModel->referer) > 0): ?>
|
||||
<div class="form-control control-simplelist with-icons">
|
||||
<ul>
|
||||
<?php foreach ((array) $formModel->referer as $referer): ?>
|
||||
<li class="wn-icon-file-o"><?= e($referer) ?></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="form-control"><em>There were no detected referers to this URL.</em></div>
|
||||
<?php endif ?>
|
||||
19
modules/system/controllers/requestlogs/config_form.yaml
Normal file
19
modules/system/controllers/requestlogs/config_form.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
# ===================================
|
||||
# Form Behavior Config
|
||||
# ===================================
|
||||
|
||||
# Record name
|
||||
name: system::lang.event_log.menu_label
|
||||
|
||||
# Model Form Field configuration
|
||||
form: ~/modules/system/models/requestlog/fields.yaml
|
||||
|
||||
# Model Class name
|
||||
modelClass: System\Models\RequestLog
|
||||
|
||||
# Default redirect location
|
||||
defaultRedirect: system/requestlogs
|
||||
|
||||
# Preview page
|
||||
preview:
|
||||
title: system::lang.request_log.preview_title
|
||||
20
modules/system/controllers/requestlogs/config_list.yaml
Normal file
20
modules/system/controllers/requestlogs/config_list.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
# ===================================
|
||||
# List Behavior Config
|
||||
# ===================================
|
||||
|
||||
title: system::lang.request_log.menu_label
|
||||
list: ~/modules/system/models/requestlog/columns.yaml
|
||||
modelClass: System\Models\RequestLog
|
||||
recordUrl: system/requestlogs/preview/:id
|
||||
noRecordsMessage: backend::lang.list.no_records
|
||||
recordsPerPage: 30
|
||||
showSetup: true
|
||||
showCheckboxes: true
|
||||
defaultSort:
|
||||
column: count
|
||||
direction: desc
|
||||
|
||||
toolbar:
|
||||
buttons: list_toolbar
|
||||
search:
|
||||
prompt: backend::lang.list.search_prompt
|
||||
5
modules/system/controllers/requestlogs/index.php
Normal file
5
modules/system/controllers/requestlogs/index.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="padded-container container-flush">
|
||||
<?= $this->makeHintPartial('system_requestlogs_hint', 'hint') ?>
|
||||
</div>
|
||||
|
||||
<?= $this->listRender() ?>
|
||||
45
modules/system/controllers/requestlogs/preview.php
Normal file
45
modules/system/controllers/requestlogs/preview.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php Block::put('breadcrumb') ?>
|
||||
<ul>
|
||||
<li><a href="<?= Backend::url('system/requestlogs') ?>"><?= e(trans('system::lang.request_log.menu_label')) ?></a></li>
|
||||
<li><?= e(trans($this->pageTitle)) ?></li>
|
||||
</ul>
|
||||
<?php Block::endPut() ?>
|
||||
|
||||
<?php if (!$this->fatalError): ?>
|
||||
|
||||
<div class="scoreboard">
|
||||
<div data-control="toolbar">
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.request_log.id_label')) ?></h4>
|
||||
<p>#<?= $formModel->id ?></p>
|
||||
</div>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.request_log.status_code')) ?></h4>
|
||||
<p><?= $formModel->status_code ?></p>
|
||||
</div>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.request_log.count')) ?></h4>
|
||||
<p><?= $formModel->count ?></p>
|
||||
</div>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.request_log.referer')) ?></h4>
|
||||
<p><?= $formModel->referer ? count($formModel->referer) : 0 ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layout-item stretch layout-column">
|
||||
<?= $this->formRenderPreview() ?>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<p>
|
||||
<a href="<?= Backend::url('system/requestlogs') ?>" class="btn btn-default wn-icon-chevron-left">
|
||||
<?= e(trans('system::lang.request_log.return_link')) ?>
|
||||
</a>
|
||||
</p>
|
||||
Reference in New Issue
Block a user