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,127 @@
<?php namespace System\Console;
use Str;
use Illuminate\Console\Command;
use System\Classes\UpdateManager;
use Symfony\Component\Console\Input\InputOption;
/**
* Console command to perform a system update.
*
* This updates Winter CMS and all plugins, database and files. It uses the
* Winter gateway to receive the files via a package manager, then saves
* the latest build number to the system.
*
* @package winter\wn-system-module
* @author Alexey Bobkov, Samuel Georges
*/
class WinterUpdate extends Command
{
/**
* The console command name.
*/
protected $name = 'winter:update';
/**
* The console command description.
*/
protected $description = 'Updates Winter CMS and all plugins, database and files.';
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
// Register aliases for backwards compatibility with October
$this->setAliases(['october:update']);
}
/**
* Execute the console command.
*/
public function handle()
{
$this->output->writeln('<info>Updating Winter...</info>');
$manager = UpdateManager::instance()->setNotesOutput($this->output);
$forceUpdate = $this->option('force');
/*
* Check for disabilities
*/
$disableCore = $disablePlugins = $disableThemes = false;
if ($this->option('plugins')) {
$disableCore = true;
$disableThemes = true;
}
if ($this->option('core')) {
$disablePlugins = true;
$disableThemes = true;
}
/*
* Perform update
*/
$updateList = $manager->requestUpdateList($forceUpdate);
$updates = (int) array_get($updateList, 'update', 0);
if ($updates == 0) {
$this->output->writeln('<info>No new updates found</info>');
return;
}
$this->output->writeln(sprintf('<info>Found %s new %s!</info>', $updates, Str::plural('update', $updates)));
$coreHash = $disableCore ? null : array_get($updateList, 'core.hash');
$coreBuild = array_get($updateList, 'core.build');
if ($coreHash) {
$this->output->writeln('<info>Downloading application files</info>');
$manager->downloadCore($coreHash);
}
$plugins = $disablePlugins ? [] : array_get($updateList, 'plugins');
foreach ($plugins as $code => $plugin) {
$pluginName = array_get($plugin, 'name');
$pluginHash = array_get($plugin, 'hash');
$this->output->writeln(sprintf('<info>Downloading plugin: %s</info>', $pluginName));
$manager->downloadPlugin($code, $pluginHash);
}
if ($coreHash) {
$this->output->writeln('<info>Unpacking application files</info>');
$manager->extractCore();
$manager->setBuild($coreBuild, $coreHash);
}
foreach ($plugins as $code => $plugin) {
$pluginName = array_get($plugin, 'name');
$pluginHash = array_get($plugin, 'hash');
$this->output->writeln(sprintf('<info>Unpacking plugin: %s</info>', $pluginName));
$manager->extractPlugin($code, $pluginHash);
}
/*
* Run migrations
*/
$this->call('winter:up');
}
/**
* Get the console command options.
* @return array
*/
protected function getOptions()
{
return [
['force', null, InputOption::VALUE_NONE, 'Force updates.'],
['core', null, InputOption::VALUE_NONE, 'Update core application files only.'],
['plugins', null, InputOption::VALUE_NONE, 'Update plugin files only.'],
];
}
}