This commit is contained in:
2025-05-13 10:19:23 -07:00
parent fd46e2c501
commit 1c25399993
13 changed files with 2338 additions and 23 deletions

119
vendor/bin/getIcon vendored Executable file
View File

@@ -0,0 +1,119 @@
#!/usr/bin/env php
<?php
/**
* Proxy PHP file generated by Composer
*
* This file includes the referenced bin path (../open-function-computers-llc/rad-theme-engine/bin/getIcon)
* using a stream wrapper to prevent the shebang from being output on PHP<8
*
* @generated
*/
namespace Composer;
$GLOBALS['_composer_bin_dir'] = __DIR__;
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php';
if (PHP_VERSION_ID < 80000) {
if (!class_exists('Composer\BinProxyWrapper')) {
/**
* @internal
*/
final class BinProxyWrapper
{
private $handle;
private $position;
private $realpath;
public function stream_open($path, $mode, $options, &$opened_path)
{
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution
$opened_path = substr($path, 17);
$this->realpath = realpath($opened_path) ?: $opened_path;
$opened_path = $this->realpath;
$this->handle = fopen($this->realpath, $mode);
$this->position = 0;
return (bool) $this->handle;
}
public function stream_read($count)
{
$data = fread($this->handle, $count);
if ($this->position === 0) {
$data = preg_replace('{^#!.*\r?\n}', '', $data);
}
$this->position += strlen($data);
return $data;
}
public function stream_cast($castAs)
{
return $this->handle;
}
public function stream_close()
{
fclose($this->handle);
}
public function stream_lock($operation)
{
return $operation ? flock($this->handle, $operation) : true;
}
public function stream_seek($offset, $whence)
{
if (0 === fseek($this->handle, $offset, $whence)) {
$this->position = ftell($this->handle);
return true;
}
return false;
}
public function stream_tell()
{
return $this->position;
}
public function stream_eof()
{
return feof($this->handle);
}
public function stream_stat()
{
return array();
}
public function stream_set_option($option, $arg1, $arg2)
{
return true;
}
public function url_stat($path, $flags)
{
$path = substr($path, 17);
if (file_exists($path)) {
return stat($path);
}
return false;
}
}
}
if (
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
) {
return include("phpvfscomposer://" . __DIR__ . '/..'.'/open-function-computers-llc/rad-theme-engine/bin/getIcon');
}
}
return include __DIR__ . '/..'.'/open-function-computers-llc/rad-theme-engine/bin/getIcon';

View File

@@ -54,17 +54,17 @@
},
{
"name": "open-function-computers-llc/rad-theme-engine",
"version": "v1.0.26",
"version_normalized": "1.0.26.0",
"version": "v1.0.29",
"version_normalized": "1.0.29.0",
"source": {
"type": "git",
"url": "https://github.com/open-function-computers-llc/rad-theme-engine.git",
"reference": "17f231ae60eb6b90c5819d11d7c1e540a805f3a6"
"reference": "13207fdf9e9241003106958db5a98cc2f0d03f01"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/17f231ae60eb6b90c5819d11d7c1e540a805f3a6",
"reference": "17f231ae60eb6b90c5819d11d7c1e540a805f3a6",
"url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/13207fdf9e9241003106958db5a98cc2f0d03f01",
"reference": "13207fdf9e9241003106958db5a98cc2f0d03f01",
"shasum": ""
},
"require": {
@@ -75,7 +75,10 @@
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"time": "2025-05-06T15:27:11+00:00",
"time": "2025-05-13T16:23:34+00:00",
"bin": [
"bin/getIcon"
],
"type": "library",
"installation-source": "dist",
"autoload": {
@@ -95,7 +98,7 @@
],
"support": {
"issues": "https://github.com/open-function-computers-llc/rad-theme-engine/issues",
"source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.26"
"source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.29"
},
"install-path": "../open-function-computers-llc/rad-theme-engine"
},

View File

@@ -3,7 +3,7 @@
'name' => 'open-function-computers-llc/wp-theme',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => 'db52cd69338635ed28050c3df73492e8d38fb98f',
'reference' => 'fd46e2c501b0ea93cef8440b9aed659128ed2f75',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -20,9 +20,9 @@
'dev_requirement' => false,
),
'open-function-computers-llc/rad-theme-engine' => array(
'pretty_version' => 'v1.0.26',
'version' => '1.0.26.0',
'reference' => '17f231ae60eb6b90c5819d11d7c1e540a805f3a6',
'pretty_version' => 'v1.0.29',
'version' => '1.0.29.0',
'reference' => '13207fdf9e9241003106958db5a98cc2f0d03f01',
'type' => 'library',
'install_path' => __DIR__ . '/../open-function-computers-llc/rad-theme-engine',
'aliases' => array(),
@@ -31,7 +31,7 @@
'open-function-computers-llc/wp-theme' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => 'db52cd69338635ed28050c3df73492e8d38fb98f',
'reference' => 'fd46e2c501b0ea93cef8440b9aed659128ed2f75',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),

View File

@@ -1,3 +1,4 @@
vendor/
composer.lock
.php.result.cache
.php.result.cache
.phpunit.result.cache

View File

@@ -1 +0,0 @@
{"version":1,"defects":{"ofc\\tests\\UtilTest::weCanSlugifyAString":3},"times":{"ofc\\tests\\UtilTest::weCanSlugifyAString":0.002}}

View File

@@ -0,0 +1,37 @@
#!/usr/bin/env php
<?php
$autoloadPaths = [
__DIR__ . '/../../../autoload.php', // typical path when symlinked in vendor/bin
__DIR__ . '/../vendor/autoload.php', // fallback if run directly from source
];
$found = false;
foreach ($autoloadPaths as $path) {
if (file_exists($path)) {
require $path;
$found = true;
break;
}
}
if (!$found) {
fwrite(STDERR, "Could not locate Composer autoloader.\n");
exit(1);
}
use ofc\IconGetter;
if ($argc !== 2) {
fwrite(STDERR, "Usage: getIcon <icon-name>\n");
exit(1);
}
$icon = trim(strtolower($argv[1]));
try {
IconGetter::get($icon);
} catch (Exception $e) {
fwrite(STDERR, "Error: ".$e->getMessage().PHP_EOL);
exit(1);
}

View File

@@ -10,7 +10,11 @@
"phpunit/phpunit": "^9.5"
},
"license": "MIT",
"keywords": ["wordpress", "handlebars", "theme"],
"keywords": [
"wordpress",
"handlebars",
"theme"
],
"minimum-stability": "stable",
"autoload": {
"psr-4": {
@@ -19,5 +23,8 @@
},
"scripts": {
"post-create-project-cmd": "ofc\\RadThemeEngine::setup"
}
}
},
"bin": [
"bin/getIcon"
]
}

File diff suppressed because it is too large Load Diff