feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
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:
2026-08-21 19:29:00 -06:00
commit 1f72193a64
3266 changed files with 531480 additions and 0 deletions

View File

@@ -0,0 +1,105 @@
+function ($) { "use strict";
var Base = $.wn.foundation.base,
BaseProto = Base.prototype
var PermissionEditor = function() {
Base.call(this)
this.init()
}
PermissionEditor.prototype = Object.create(BaseProto)
PermissionEditor.prototype.constructor = PermissionEditor
PermissionEditor.prototype.init = function() {
$(document).on('click', '.permissioneditor table th.permission-type', this.proxy(this.onPermissionTypeClick))
$(document).on('click', '.permissioneditor table td.permission-name', this.proxy(this.onPermissionNameClick))
$(document).on('click', '.permissioneditor table tr.mode-checkbox input[type=checkbox]', this.proxy(this.onPermissionCheckboxClick))
$(document).on('click', '.permissioneditor table tr.mode-radio input[type=radio]', this.proxy(this.onPermissionRadioClick))
}
// EVENT HANDLERS
// ============================
PermissionEditor.prototype.onPermissionTypeClick = function (ev) {
var $rows = $(ev.target).closest('tr').nextUntil('tr.section')
var index = $(ev.target).index()
var allChecked = true
for (let i = 0; i < $rows.length; i++) {
var $row = $rows.eq(i)
var $check = $row.find('td:nth-child(' + (index + 1) + ') input[type=radio], td:nth-child(' + (index + 1) + ') input[type=checkbox]').eq(0)
if ($check.length > 0) {
if (!$check[0].checked) {
allChecked = false
break
}
}
}
for (let i = 0; i < $rows.length; i++) {
var $row = $rows.eq(i)
var $check = $row.find('td:nth-child(' + (index + 1) + ') input[type=radio], td:nth-child(' + (index + 1) + ') input[type=checkbox]').eq(0)
if ($check.length > 0) {
if ($check.is('input[type=checkbox]')) {
$check.prop('checked', !allChecked)
} else {
$check.prop('checked', true)
}
}
}
};
PermissionEditor.prototype.onPermissionNameClick = function(ev) {
var $row = $(ev.target).closest('tr'),
$checkbox = $row.find('input[type=checkbox]')
if ($checkbox.length) {
$checkbox.trigger('click')
}
else {
var $radios = $row.find('input[type=radio]')
if ($radios.length != 3) {
return
}
var nextIndex = 0
for (var i=2; i>=0; i--) {
if ($radios.get(i).checked) {
nextIndex = i+1;
break
}
}
if (nextIndex > 2) {
nextIndex = 0
}
$($radios.get(nextIndex)).trigger('click')
}
}
PermissionEditor.prototype.onPermissionCheckboxClick = function(ev) {
var $row = $(ev.target).closest('tr')
$row.toggleClass('disabled', !ev.target.checked)
}
PermissionEditor.prototype.onPermissionRadioClick = function(ev) {
var $row = $(ev.target).closest('tr')
$row.toggleClass('disabled', ev.target.value == -1)
}
// INITIALIZATION
// ============================
$(document).ready(function(){
new PermissionEditor()
})
}(window.jQuery);