master
parent
29fb515fe0
commit
62c04d7342
@ -0,0 +1,151 @@
|
||||
{
|
||||
"excluded_patterns": [
|
||||
".git",
|
||||
".gitignore",
|
||||
"gradle",
|
||||
"gradlew",
|
||||
"gradlew.*",
|
||||
"node_modules",
|
||||
".snapshots",
|
||||
".idea",
|
||||
".vscode",
|
||||
"*.log",
|
||||
"*.tmp",
|
||||
"target",
|
||||
"dist",
|
||||
"build",
|
||||
".DS_Store",
|
||||
"*.bak",
|
||||
"*.swp",
|
||||
"*.swo",
|
||||
"*.lock",
|
||||
"*.iml",
|
||||
"coverage",
|
||||
"*.min.js",
|
||||
"*.min.css",
|
||||
"__pycache__",
|
||||
".marketing",
|
||||
".env",
|
||||
".env.*",
|
||||
"*.jpg",
|
||||
"*.jpeg",
|
||||
"*.png",
|
||||
"*.gif",
|
||||
"*.bmp",
|
||||
"*.tiff",
|
||||
"*.ico",
|
||||
"*.svg",
|
||||
"*.webp",
|
||||
"*.psd",
|
||||
"*.ai",
|
||||
"*.eps",
|
||||
"*.indd",
|
||||
"*.raw",
|
||||
"*.cr2",
|
||||
"*.nef",
|
||||
"*.mp4",
|
||||
"*.mov",
|
||||
"*.avi",
|
||||
"*.wmv",
|
||||
"*.flv",
|
||||
"*.mkv",
|
||||
"*.webm",
|
||||
"*.m4v",
|
||||
"*.wfp",
|
||||
"*.prproj",
|
||||
"*.aep",
|
||||
"*.psb",
|
||||
"*.xcf",
|
||||
"*.sketch",
|
||||
"*.fig",
|
||||
"*.xd",
|
||||
"*.db",
|
||||
"*.sqlite",
|
||||
"*.sqlite3",
|
||||
"*.mdb",
|
||||
"*.accdb",
|
||||
"*.frm",
|
||||
"*.myd",
|
||||
"*.myi",
|
||||
"*.ibd",
|
||||
"*.dbf",
|
||||
"*.rdb",
|
||||
"*.aof",
|
||||
"*.pdb",
|
||||
"*.sdb",
|
||||
"*.s3db",
|
||||
"*.ddb",
|
||||
"*.db-shm",
|
||||
"*.db-wal",
|
||||
"*.sqlitedb",
|
||||
"*.sql.gz",
|
||||
"*.bak.sql",
|
||||
"dump.sql",
|
||||
"dump.rdb",
|
||||
"*.vsix",
|
||||
"*.jar",
|
||||
"*.war",
|
||||
"*.ear",
|
||||
"*.zip",
|
||||
"*.tar",
|
||||
"*.tar.gz",
|
||||
"*.tgz",
|
||||
"*.rar",
|
||||
"*.7z",
|
||||
"*.exe",
|
||||
"*.dll",
|
||||
"*.so",
|
||||
"*.dylib",
|
||||
"*.app",
|
||||
"*.dmg",
|
||||
"*.iso",
|
||||
"*.msi",
|
||||
"*.deb",
|
||||
"*.rpm",
|
||||
"*.apk",
|
||||
"*.aab",
|
||||
"*.ipa",
|
||||
"*.pkg",
|
||||
"*.nupkg",
|
||||
"*.snap",
|
||||
"*.whl",
|
||||
"*.gem",
|
||||
"*.pyc",
|
||||
"*.pyo",
|
||||
"*.pyd",
|
||||
"*.class",
|
||||
"*.o",
|
||||
"*.obj",
|
||||
"*.lib",
|
||||
"*.a",
|
||||
"*.map",
|
||||
".npmrc"
|
||||
],
|
||||
"default": {
|
||||
"default_prompt": "Enter your prompt here",
|
||||
"default_include_all_files": false,
|
||||
"default_include_entire_project_structure": true
|
||||
},
|
||||
"included_patterns": [
|
||||
"build.gradle",
|
||||
"settings.gradle",
|
||||
"gradle.properties",
|
||||
"pom.xml",
|
||||
"Makefile",
|
||||
"CMakeLists.txt",
|
||||
"package.json",
|
||||
"requirements.txt",
|
||||
"Pipfile",
|
||||
"Gemfile",
|
||||
"composer.json",
|
||||
".editorconfig",
|
||||
".eslintrc.json",
|
||||
".eslintrc.js",
|
||||
".prettierrc",
|
||||
".babelrc",
|
||||
".dockerignore",
|
||||
".gitattributes",
|
||||
".stylelintrc",
|
||||
".npmrc"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
# Snapshots Directory
|
||||
|
||||
This directory contains snapshots of your code for AI interactions. Each snapshot is a markdown file that includes relevant code context and project structure information.
|
||||
|
||||
## What's included in snapshots?
|
||||
- Selected code files and their contents
|
||||
- Project structure (if enabled)
|
||||
- Your prompt/question for the AI
|
||||
|
||||
## Configuration
|
||||
You can customize snapshot behavior in `config.json`.
|
||||
@ -0,0 +1,44 @@
|
||||
# Thank you for using Snapshots for AI
|
||||
|
||||
Thanks for using Snapshots for AI. We hope this tool has helped you solve a problem or two.
|
||||
|
||||
If you would like to support our work, please help us by considering the following offers and requests:
|
||||
|
||||
## Ways to Support
|
||||
|
||||
### Join the GBTI Network!!! 🙏🙏🙏
|
||||
The GBTI Network is a community of developers who are passionate about open source and community-driven development. Members enjoy access to exclussive tools, resources, a private MineCraft server, a listing in our members directory, co-op opportunities and more.
|
||||
|
||||
- Support our work by becoming a [GBTI Network member](https://gbti.network/membership/).
|
||||
|
||||
### Try out BugHerd 🐛
|
||||
BugHerd is a visual feedback and bug-tracking tool designed to streamline website development by enabling users to pin feedback directly onto web pages. This approach facilitates clear communication among clients, designers, developers, and project managers.
|
||||
|
||||
- Start your free trial with [BugHerd](https://partners.bugherd.com/55z6c8az8rvr) today.
|
||||
|
||||
### Hire Developers from Codeable 👥
|
||||
Codeable connects you with top-tier professionals skilled in frameworks and technologies such as Laravel, React, Django, Node, Vue.js, Angular, Ruby on Rails, and Node.js. Don't let the WordPress focus discourage you. Codeable experts do it all.
|
||||
|
||||
- Visit [Codeable](https://www.codeable.io/developers/?ref=z8h3e) to hire your next team member.
|
||||
|
||||
### Lead positive reviews on our marketplace listing ⭐⭐⭐⭐⭐
|
||||
- Rate us on [VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=GBTI.snapshots-for-ai)
|
||||
- Review us on [Cursor marketplace](https://open-vsx.org/extension/GBTI/snapshots-for-ai)
|
||||
|
||||
### Star Our GitHub Repository ⭐
|
||||
- Star and watch our [repository](https://github.com/gbti-network/vscode-snapshots-for-ai)
|
||||
|
||||
### 📡 Stay Connected
|
||||
Follow us on your favorite platforms for updates, news, and community discussions:
|
||||
- **[Twitter/X](https://twitter.com/gbti_network)**
|
||||
- **[GitHub](https://github.com/gbti-network)**
|
||||
- **[YouTube](https://www.youtube.com/channel/UCh4FjB6r4oWQW-QFiwqv-UA)**
|
||||
- **[Dev.to](https://dev.to/gbti)**
|
||||
- **[Daily.dev](https://dly.to/zfCriM6JfRF)**
|
||||
- **[Hashnode](https://gbti.hashnode.dev/)**
|
||||
- **[Discord Community](https://gbti.network)**
|
||||
- **[Reddit Community](https://www.reddit.com/r/GBTI_network)**
|
||||
|
||||
---
|
||||
|
||||
Thank you for supporting open source software! 🙏
|
||||
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Forms;
|
||||
|
||||
use Kris\LaravelFormBuilder\Form;
|
||||
use Kris\LaravelFormBuilder\Field;
|
||||
|
||||
class AlipayAccountForm extends Form
|
||||
{
|
||||
public function buildForm()
|
||||
{
|
||||
$this->add("id", Field::HIDDEN);
|
||||
$this->add("name", Field::TEXT, ["label" => "名称", "rules" => "required"]);
|
||||
$this->add("appid", Field::TEXT, ["label" => "应用ID", "rules" => "required"]);
|
||||
$this->add("public_key", Field::TEXTAREA, ["label" => "应用公钥", "rules" => "required", "attr" => ["rows" => 4]]);
|
||||
$this->add("alipay_key", Field::TEXTAREA, ["label" => "支付宝密钥", "rules" => "required", "attr" => ["rows" => 4]]);
|
||||
$this->add('buttons', 'buttongroup', ["splitted" => true, "buttons" => [
|
||||
["label" => "保存", "attr" => ["class" => "btn btn-primary mr-1", "type" => "submit"]],
|
||||
["label" => "返回", "attr" => ["class" => "btn btn-light btn-back", "type" => "button"]]
|
||||
]]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: weizongsong
|
||||
* Date: 2025-10-13
|
||||
* Time: 21:00
|
||||
*/
|
||||
|
||||
namespace App\Http\Controllers\Admin;
|
||||
|
||||
use App\Forms\AlipayAccountForm;
|
||||
use App\Models\AlipayAccount;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class AlipayAccountController extends CommonController
|
||||
{
|
||||
public $bladePath = "admin.alipay-account";
|
||||
public $urlPrefix = "admin/alipay-account";
|
||||
public $modelName = "支付宝账号";
|
||||
public $modelClass = AlipayAccount::class;
|
||||
public $formClass = AlipayAccountForm::class;
|
||||
|
||||
public function index(Request $request)
|
||||
{
|
||||
$data = $this->model->paginate(10);
|
||||
return view($this->bladePath . ".index", compact("data"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class AlipayAccount extends SoftDeletesModel
|
||||
{
|
||||
protected $table = "alipay_account";
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class UpdateProjectAddAlipayAccountId extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table("project", function (Blueprint $table) {
|
||||
$table->integer('alipay_account_id')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateAlipayAccount extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('alipay_account', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->string("appid")->nullable()->comment("应用ID");
|
||||
$table->string("public_key",1024)->nullable()->comment("应用公钥");
|
||||
$table->string("alipay_key",1024)->nullable()->comment("支付宝密钥");
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('alipay_account');
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
@extends("admin.layouts.layout")
|
||||
|
||||
@php
|
||||
$pageTitle = __("actions.".last(explode("/",request()->url()))).$modelName;
|
||||
@endphp
|
||||
|
||||
@section("content")
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
@include("public._form")
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@ -0,0 +1,57 @@
|
||||
@extends("admin.layouts.layout")
|
||||
|
||||
@section("content")
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<a class="btn btn-primary" href="{{url($urlPrefix.'/create')}}">
|
||||
@lang("icons.action_create") @lang('actions.create'){{$modelName}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<table class="table table-bordered" id="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
{{$modelName}}
|
||||
</th>
|
||||
<th>应用ID</th>
|
||||
<th>应用公钥</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($data as $row)
|
||||
<tr data-id="{{$row->id}}">
|
||||
<td>
|
||||
{{ $row->name }}
|
||||
</td>
|
||||
<td>{{ $row->appid }}</td>
|
||||
<td>{{ Str::limit($row->public_key, 50) }}</td>
|
||||
<td>
|
||||
<a class="btn btn-sm btn-primary"
|
||||
href="{{url("{$urlPrefix}/edit?id={$row['id']}")}}">@lang("icons.action_edit") @lang("actions.edit")</a>
|
||||
<a class="btn btn-sm btn-danger btn-delete" data-id="{{$row['id']}}"
|
||||
href="javascript:;">@lang("icons.action_delete") @lang("actions.delete")</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@include("public._pages")
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include("public._delete")
|
||||
@endsection
|
||||
|
||||
@push("footer")
|
||||
<script>
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
Loading…
Reference in new issue