master
maizhijian 3 years ago
parent a71c54216f
commit ef5d121756
  1. 383
      _ide_helper.php
  2. 5
      app/Http/Controllers/Home/MapsController.php
  3. 2
      app/Http/Controllers/Home/TranslateController.php
  4. 1
      composer.json
  5. 194
      composer.lock
  6. 3
      config/app.php
  7. 0
      public/index.html
  8. 24
      resources/views/blueberry/home/index/maps.blade.php

@ -2842,6 +2842,8 @@
/**
*
*
* @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, mixed $owner = null)
* @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner)
* @see \Illuminate\Cache\CacheManager
* @see \Illuminate\Cache\Repository
*/
@ -3397,33 +3399,6 @@
{
/** @var \Illuminate\Cache\Repository $instance */
return $instance->macroCall($method, $parameters);
}
/**
* Get a lock instance.
*
* @param string $name
* @param int $seconds
* @param string|null $owner
* @return \Illuminate\Contracts\Cache\Lock
* @static
*/
public static function lock($name, $seconds = 0, $owner = null)
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->lock($name, $seconds, $owner);
}
/**
* Restore a lock instance using the owner identifier.
*
* @param string $name
* @param string $owner
* @return \Illuminate\Contracts\Cache\Lock
* @static
*/
public static function restoreLock($name, $owner)
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->restoreLock($name, $owner);
}
/**
* Remove all items from the cache.
@ -3433,42 +3408,30 @@
*/
public static function flush()
{
/** @var \Illuminate\Cache\RedisStore $instance */
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->flush();
}
/**
* Get the Redis connection instance.
*
* @return \Illuminate\Redis\Connections\Connection
* @static
*/
public static function connection()
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->connection();
}
/**
* Set the connection name to be used.
* Get the Filesystem instance.
*
* @param string $connection
* @return void
* @return \Illuminate\Filesystem\Filesystem
* @static
*/
public static function setConnection($connection)
public static function getFilesystem()
{
/** @var \Illuminate\Cache\RedisStore $instance */
$instance->setConnection($connection);
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->getFilesystem();
}
/**
* Get the Redis database instance.
* Get the working directory of the cache.
*
* @return \Illuminate\Contracts\Redis\Factory
* @return string
* @static
*/
public static function getRedis()
public static function getDirectory()
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->getRedis();
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->getDirectory();
}
/**
* Get the cache key prefix.
@ -3478,20 +3441,8 @@
*/
public static function getPrefix()
{
/** @var \Illuminate\Cache\RedisStore $instance */
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->getPrefix();
}
/**
* Set the cache key prefix.
*
* @param string $prefix
* @return void
* @static
*/
public static function setPrefix($prefix)
{
/** @var \Illuminate\Cache\RedisStore $instance */
$instance->setPrefix($prefix);
}
}
@ -15781,6 +15732,311 @@
}
}
namespace SimpleSoftwareIO\QrCode\Facades {
/**
*
*
*/
class QrCode {
/**
* Generates the QrCode.
*
* @param string $text
* @param string|null $filename
* @return void|\Illuminate\Support\HtmlString|string
* @throws WriterException
* @throws InvalidArgumentException
* @static
*/
public static function generate($text, $filename = null)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->generate($text, $filename);
}
/**
* Merges an image over the QrCode.
*
* @param string $filepath
* @param float $percentage
* @param \SimpleSoftwareIO\QrCode\SimpleSoftwareIO\QrCode\boolean|bool $absolute
* @return \Generator
* @static
*/
public static function merge($filepath, $percentage = 0.2, $absolute = false)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->merge($filepath, $percentage, $absolute);
}
/**
* Merges an image string with the center of the QrCode.
*
* @param string $content
* @param float $percentage
* @return \Generator
* @static
*/
public static function mergeString($content, $percentage = 0.2)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->mergeString($content, $percentage);
}
/**
* Sets the size of the QrCode.
*
* @param int $pixels
* @return \Generator
* @static
*/
public static function size($pixels)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->size($pixels);
}
/**
* Sets the format of the QrCode.
*
* @param string $format
* @return \Generator
* @throws InvalidArgumentException
* @static
*/
public static function format($format)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->format($format);
}
/**
* Sets the foreground color of the QrCode.
*
* @param int $red
* @param int $green
* @param int $blue
* @param null|int $alpha
* @return \Generator
* @static
*/
public static function color($red, $green, $blue, $alpha = null)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->color($red, $green, $blue, $alpha);
}
/**
* Sets the background color of the QrCode.
*
* @param int $red
* @param int $green
* @param int $blue
* @param null|int $alpha
* @return \Generator
* @static
*/
public static function backgroundColor($red, $green, $blue, $alpha = null)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->backgroundColor($red, $green, $blue, $alpha);
}
/**
* Sets the eye color for the provided eye index.
*
* @param int $eyeNumber
* @param int $innerRed
* @param int $innerGreen
* @param int $innerBlue
* @param int $outterRed
* @param int $outterGreen
* @param int $outterBlue
* @return \Generator
* @throws InvalidArgumentException
* @static
*/
public static function eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed = 0, $outterGreen = 0, $outterBlue = 0)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed, $outterGreen, $outterBlue);
}
/**
*
*
* @static
*/
public static function gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type);
}
/**
* Sets the eye style.
*
* @param string $style
* @return \Generator
* @throws InvalidArgumentException
* @static
*/
public static function eye($style)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->eye($style);
}
/**
* Sets the style of the blocks for the QrCode.
*
* @param string $style
* @param float $size
* @return \Generator
* @throws InvalidArgumentException
* @static
*/
public static function style($style, $size = 0.5)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->style($style, $size);
}
/**
* Sets the encoding for the QrCode.
*
* Possible values are
* ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6,
* ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11,
* ISO-8859-12, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16,
* SHIFT-JIS, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1256,
* UTF-16BE, UTF-8, ASCII, GBK, EUC-KR.
*
* @param string $encoding
* @return \Generator
* @static
*/
public static function encoding($encoding)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->encoding($encoding);
}
/**
* Sets the error correction for the QrCode.
*
* L: 7% loss.
* M: 15% loss.
* Q: 25% loss.
* H: 30% loss.
*
* @param string $errorCorrection
* @return \Generator
* @static
*/
public static function errorCorrection($errorCorrection)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->errorCorrection($errorCorrection);
}
/**
* Sets the margin of the QrCode.
*
* @param int $margin
* @return \Generator
* @static
*/
public static function margin($margin)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->margin($margin);
}
/**
* Fetches the Writer.
*
* @param \SimpleSoftwareIO\QrCode\ImageRenderer $renderer
* @return \SimpleSoftwareIO\QrCode\Writer
* @static
*/
public static function getWriter($renderer)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->getWriter($renderer);
}
/**
* Fetches the Image Renderer.
*
* @return \SimpleSoftwareIO\QrCode\ImageRenderer
* @static
*/
public static function getRenderer()
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->getRenderer();
}
/**
* Returns the Renderer Style.
*
* @return \SimpleSoftwareIO\QrCode\RendererStyle
* @static
*/
public static function getRendererStyle()
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->getRendererStyle();
}
/**
* Fetches the formatter.
*
* @return \SimpleSoftwareIO\QrCode\ImageBackEndInterface
* @static
*/
public static function getFormatter()
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->getFormatter();
}
/**
* Fetches the module.
*
* @return \SimpleSoftwareIO\QrCode\ModuleInterface
* @static
*/
public static function getModule()
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->getModule();
}
/**
* Fetches the eye style.
*
* @return \SimpleSoftwareIO\QrCode\EyeInterface
* @static
*/
public static function getEye()
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->getEye();
}
/**
* Fetches the color fill.
*
* @return \SimpleSoftwareIO\QrCode\Fill
* @static
*/
public static function getFill()
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->getFill();
}
/**
* Creates a RGB or Alpha channel color.
*
* @param int $red
* @param int $green
* @param int $blue
* @param null|int $alpha
* @return \SimpleSoftwareIO\QrCode\ColorInterface
* @static
*/
public static function createColor($red, $green, $blue, $alpha = null)
{
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */
return $instance->createColor($red, $green, $blue, $alpha);
}
}
}
@ -18768,6 +19024,7 @@ namespace {
class Feed extends \Laravelium\Feed\Feed {}
class Purifier extends \Mews\Purifier\Facades\Purifier {}
class Sentry extends \Sentry\Laravel\Facade {}
class QrCode extends \SimpleSoftwareIO\QrCode\Facades\QrCode {}
}

@ -5,19 +5,22 @@ declare(strict_types=1);
namespace App\Http\Controllers\Home;
use SimpleSoftwareIO\QrCode\Facades\QrCode;
class MapsController extends Controller
{
public function index()
{
$assign = [
'category_id' => 'openSource',
'title' => '翻2译',
'title' => '二维码测试',
'head' => [
'title' => 'Transl2ate',
'keywords' => '',
'description' => '',
],
];
return view('home.index.maps', $assign);
}

@ -17,7 +17,7 @@ class TranslateController extends Controller
'description' => '',
],
];
return view('home.index.maps', $assign);
return view('home.index.translate', $assign);
}
public function store ()

@ -51,6 +51,7 @@
"paquettg/php-html-parser": "^2.1",
"predis/predis": "^1.1",
"sentry/sentry-laravel": "1.7.0",
"simplesoftwareio/simple-qrcode": "^4.2",
"socialiteproviders/qq": "^3.0",
"socialiteproviders/vkontakte": "^4.0",
"socialiteproviders/weibo": "^3.0",

194
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "2e0b0096c8d80253a254b611636552c2",
"content-hash": "0f2c81427eb5acfd7c263ed1fedc53d0",
"packages": [
{
"name": "algolia/algoliasearch-client-php",
@ -320,6 +320,62 @@
],
"time": "2019-12-24T22:41:47+00:00"
},
{
"name": "bacon/bacon-qr-code",
"version": "2.0.6",
"source": {
"type": "git",
"url": "https://github.com/Bacon/BaconQrCode.git",
"reference": "0069435e2a01a57193b25790f105a5d3168653c1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/0069435e2a01a57193b25790f105a5d3168653c1",
"reference": "0069435e2a01a57193b25790f105a5d3168653c1",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"dasprid/enum": "^1.0.3",
"ext-iconv": "*",
"php": "^7.1 || ^8.0"
},
"require-dev": {
"phly/keep-a-changelog": "^2.1",
"phpunit/phpunit": "^7 | ^8 | ^9",
"spatie/phpunit-snapshot-assertions": "^4.2.9",
"squizlabs/php_codesniffer": "^3.4"
},
"suggest": {
"ext-imagick": "to generate QR code images"
},
"type": "library",
"autoload": {
"psr-4": {
"BaconQrCode\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Ben Scholzen 'DASPRiD'",
"email": "mail@dasprids.de",
"homepage": "https://dasprids.de/",
"role": "Developer"
}
],
"description": "BaconQrCode is a QR code generator for PHP.",
"homepage": "https://github.com/Bacon/BaconQrCode",
"time": "2022-02-04T20:16:05+00:00"
},
{
"name": "baidu/aip-sdk",
"version": "2.2.12.0",
@ -421,6 +477,7 @@
}
],
"description": "flash message",
"abandoned": true,
"time": "2019-04-01T15:32:14+00:00"
},
{
@ -516,6 +573,7 @@
}
],
"description": "plugin manager",
"abandoned": true,
"time": "2019-04-10T13:26:06+00:00"
},
{
@ -563,6 +621,7 @@
"laravel",
"print"
],
"abandoned": true,
"time": "2018-09-28T04:31:50+00:00"
},
{
@ -778,6 +837,7 @@
}
],
"description": "toastr",
"abandoned": true,
"time": "2018-08-13T07:37:01+00:00"
},
{
@ -843,12 +903,12 @@
"version": "4.0.11",
"source": {
"type": "git",
"url": "https://github.com/caouecs/Laravel-lang.git",
"url": "https://github.com/caouecs/lang.git",
"reference": "134e1cbf9be14d97fc7937d7df784eae2d4bfa3c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/caouecs/Laravel-lang/zipball/134e1cbf9be14d97fc7937d7df784eae2d4bfa3c",
"url": "https://api.github.com/repos/caouecs/lang/zipball/134e1cbf9be14d97fc7937d7df784eae2d4bfa3c",
"reference": "134e1cbf9be14d97fc7937d7df784eae2d4bfa3c",
"shasum": "",
"mirrors": [
@ -885,6 +945,7 @@
"laravel",
"lpm"
],
"abandoned": "https://github.com/Laravel-Lang/lang",
"time": "2020-03-17T15:24:26+00:00"
},
{
@ -892,12 +953,12 @@
"version": "v1.4.1",
"source": {
"type": "git",
"url": "https://github.com/clue/php-stream-filter.git",
"url": "https://github.com/clue/stream-filter.git",
"reference": "5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/clue/php-stream-filter/zipball/5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71",
"url": "https://api.github.com/repos/clue/stream-filter/zipball/5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71",
"reference": "5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71",
"shasum": "",
"mirrors": [
@ -1087,6 +1148,55 @@
],
"time": "2020-01-13T12:06:48+00:00"
},
{
"name": "dasprid/enum",
"version": "1.0.3",
"source": {
"type": "git",
"url": "https://github.com/DASPRiD/Enum.git",
"reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/DASPRiD/Enum/zipball/5abf82f213618696dda8e3bf6f64dd042d8542b2",
"reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require-dev": {
"phpunit/phpunit": "^7 | ^8 | ^9",
"squizlabs/php_codesniffer": "^3.4"
},
"type": "library",
"autoload": {
"psr-4": {
"DASPRiD\\Enum\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Ben Scholzen 'DASPRiD'",
"email": "mail@dasprids.de",
"homepage": "https://dasprids.de/",
"role": "Developer"
}
],
"description": "PHP 7.1 enum implementation",
"keywords": [
"enum",
"map"
],
"time": "2020-10-02T16:03:48+00:00"
},
{
"name": "davejamesmiller/laravel-breadcrumbs",
"version": "5.3.2",
@ -1150,7 +1260,7 @@
"keywords": [
"laravel"
],
"abandoned": true,
"abandoned": "diglactic/laravel-breadcrumbs",
"time": "2019-12-30T22:50:51+00:00"
},
{
@ -4101,6 +4211,7 @@
"laravelium",
"rss"
],
"abandoned": true,
"time": "2020-03-28T10:53:42+00:00"
},
{
@ -7383,6 +7494,76 @@
],
"time": "2020-02-26T09:01:08+00:00"
},
{
"name": "simplesoftwareio/simple-qrcode",
"version": "4.2.0",
"source": {
"type": "git",
"url": "https://github.com/SimpleSoftwareIO/simple-qrcode.git",
"reference": "916db7948ca6772d54bb617259c768c9cdc8d537"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/SimpleSoftwareIO/simple-qrcode/zipball/916db7948ca6772d54bb617259c768c9cdc8d537",
"reference": "916db7948ca6772d54bb617259c768c9cdc8d537",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"bacon/bacon-qr-code": "^2.0",
"ext-gd": "*",
"php": ">=7.2|^8.0"
},
"require-dev": {
"mockery/mockery": "~1",
"phpunit/phpunit": "~9"
},
"suggest": {
"ext-imagick": "Allows the generation of PNG QrCodes.",
"illuminate/support": "Allows for use within Laravel."
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"SimpleSoftwareIO\\QrCode\\QrCodeServiceProvider"
],
"aliases": {
"QrCode": "SimpleSoftwareIO\\QrCode\\Facades\\QrCode"
}
}
},
"autoload": {
"psr-4": {
"SimpleSoftwareIO\\QrCode\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Simple Software LLC",
"email": "support@simplesoftware.io"
}
],
"description": "Simple QrCode is a QR code generator made for Laravel.",
"homepage": "https://www.simplesoftware.io/#/docs/simple-qrcode",
"keywords": [
"Simple",
"generator",
"laravel",
"qrcode",
"wrapper"
],
"time": "2021-02-08T20:43:55+00:00"
},
{
"name": "socialiteproviders/manager",
"version": "v3.5",
@ -7902,6 +8083,7 @@
"mail",
"mailer"
],
"abandoned": "symfony/mailer",
"time": "2019-11-12T09:31:26+00:00"
},
{

@ -202,6 +202,8 @@ return [
* Extension
*/
App\Providers\ExtensionServiceProvider::class,
SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class,
],
/*
@ -256,6 +258,7 @@ return [
'Image' => Intervention\Image\Facades\Image::class,
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
'Markdown' => GrahamCampbell\Markdown\Facades\Markdown::class,
'QrCode' => SimpleSoftwareIO\QrCode\Facades\QrCode::class,
],
];

@ -82,29 +82,7 @@
</div>
</div>
@endif
<div class="row b-chat">
<select id="sel1" name="lang1">
<option value="zh">中文</option>
<option value="yue">粤语</option>
<option value="en">英文</option>
</select>
>>>
<select id="sel2" name="lang2">
<option value="yue">粤语</option>
<option value="zh">中文</option>
<option value="en">英文</option>
</select>
<div class="col-xs-12 col-md-12 col-lg-12 b-breadcrumb">
<textarea name="up" id="sendtxt" cols="30" rows="10" style="width: 100%" onfocus="if(value=='请输入文字'){value=''}"
onblur="if (value ==''){value='请输入文字'}">请输入文字</textarea>
</div>
<button id="but">翻译</button>
<div class="col-xs-12 col-md-12 col-lg-12 b-breadcrumb">
<textarea readonly="readonly" name="down" id="loadtxt" cols="30" rows="10" style="width: 100%"></textarea>
<button onclick="copyText()">复制</button>
</div>
</div>
{!! QrCode::generate('https://www.simplesoftware.io'); !!}
</div>
{{--左侧开源项目结束--}}
@endsection

Loading…
Cancel
Save