-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
独角卡2.0.6二开版
- Loading branch information
kxkxpack
committed
Jul 7, 2024
1 parent
7268ca3
commit 9c5b6a6
Showing
1,227 changed files
with
330,686 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
APP_NAME={title} | ||
APP_ENV=local | ||
APP_KEY={app_key} | ||
APP_DEBUG=true | ||
APP_URL={app_url} | ||
|
||
LOG_CHANNEL=stack | ||
|
||
# 数据库配置 | ||
DB_CONNECTION=mysql | ||
DB_HOST={db_host} | ||
DB_PORT={db_port} | ||
DB_DATABASE={db_database} | ||
DB_USERNAME={db_username} | ||
DB_PASSWORD={db_password} | ||
|
||
# redis配置 | ||
REDIS_HOST={redis_host} | ||
REDIS_PASSWORD={redis_password} | ||
REDIS_PORT={redis_port} | ||
|
||
BROADCAST_DRIVER=log | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
|
||
# 缓存配置 | ||
# file为磁盘文件 redis为内存级别 | ||
# redis为内存需要安装好redis服务端并配置 | ||
CACHE_DRIVER=redis | ||
|
||
# 异步消息队列 | ||
# sync为同步 redis为异步 | ||
# 使用redis异步需要安装好redis服务端并配置 | ||
QUEUE_CONNECTION=redis | ||
|
||
# 后台语言 | ||
## zh_CN 简体中文 | ||
## zh_TW 繁体中文 | ||
## en 英文 | ||
DUJIAO_ADMIN_LANGUAGE=zh_CN | ||
|
||
# 后台登录地址 | ||
ADMIN_ROUTE_PREFIX={admin_path} | ||
|
||
# 是否开启https (前端开启了后端也必须为true) | ||
# 后台登录出现0err或者其他登录异常问题,大概率是开启了https而后台没有开启,把下面的false改为true即可 | ||
ADMIN_HTTPS=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto | ||
*.css linguist-vendored | ||
*.scss linguist-vendored | ||
*.js linguist-vendored | ||
CHANGELOG.md export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/node_modules | ||
/public/hot | ||
/public/storage | ||
/public/uploads | ||
/storage/*.key | ||
/vendor | ||
.env | ||
.env.backup | ||
.phpunit.result.cache | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log | ||
.idea | ||
install.lock | ||
.env.buck | ||
test3.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
php: | ||
preset: laravel | ||
disabled: | ||
- unused_use | ||
finder: | ||
not-name: | ||
- index.php | ||
- server.php | ||
js: | ||
finder: | ||
not-name: | ||
- webpack.mix.js | ||
css: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM webdevops/php-nginx:7.4 | ||
COPY . /app | ||
WORKDIR /app | ||
RUN [ "sh", "-c", "composer install --ignore-platform-reqs" ] | ||
RUN [ "sh", "-c", "chmod -R 777 /app" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 assimon/dujiaoka | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# dujiaokauser | ||
独角发卡魔改用户版,只适配hyper模板 | ||
独角发卡2.0.6二开用户版,只适配hyper模板 | ||
https://t.me/dujiaouser |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
/** | ||
* The file was created by Assimon. | ||
* | ||
* @author assimon<[email protected]> | ||
* @copyright assimon<[email protected]> | ||
* @link http://utf8.hk/ | ||
*/ | ||
|
||
namespace App\Admin\Actions\Post; | ||
|
||
|
||
use Dcat\Admin\Grid\BatchAction; | ||
use Illuminate\Http\Request; | ||
|
||
class BatchRestore extends BatchAction | ||
{ | ||
|
||
protected $title; | ||
|
||
protected $model; | ||
|
||
// 注意构造方法的参数必须要有默认值 | ||
public function __construct(string $model = null) | ||
{ | ||
$this->title = admin_trans('dujiaoka.restore'); | ||
$this->model = $model; | ||
} | ||
|
||
public function handle(Request $request) | ||
{ | ||
$model = $request->get('model'); | ||
|
||
foreach ((array) $this->getKey() as $key) { | ||
$model::withTrashed()->findOrFail($key)->restore(); | ||
} | ||
|
||
return $this->response()->success(admin_trans('dujiaoka.restored'))->refresh(); | ||
} | ||
|
||
public function confirm() | ||
{ | ||
return [admin_trans('dujiaoka.are_you_restore_sure')]; | ||
} | ||
|
||
public function parameters() | ||
{ | ||
return [ | ||
'model' => $this->model, | ||
]; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/** | ||
* The file was created by Assimon. | ||
* | ||
* @author assimon<[email protected]> | ||
* @copyright assimon<[email protected]> | ||
* @link http://utf8.hk/ | ||
*/ | ||
|
||
namespace App\Admin\Actions\Post; | ||
|
||
|
||
use Dcat\Admin\Grid\RowAction; | ||
use Illuminate\Http\Request; | ||
|
||
class Restore extends RowAction | ||
{ | ||
|
||
protected $title; | ||
|
||
protected $model; | ||
|
||
// 注意构造方法的参数必须要有默认值 | ||
public function __construct(string $model = null) | ||
{ | ||
$this->title = admin_trans('dujiaoka.restore'); | ||
$this->model = $model; | ||
} | ||
|
||
public function handle(Request $request) | ||
{ | ||
$key = $this->getKey(); | ||
$model = $request->get('model'); | ||
|
||
$model::withTrashed()->findOrFail($key)->restore(); | ||
|
||
return $this->response()->success(admin_trans('dujiaoka.restored'))->refresh(); | ||
} | ||
|
||
public function confirm() | ||
{ | ||
return [admin_trans('dujiaoka.are_you_restore_sure')]; | ||
} | ||
|
||
public function parameters() | ||
{ | ||
return [ | ||
'model' => $this->model, | ||
]; | ||
} | ||
|
||
} |
Oops, something went wrong.