refactor(shop_frontend): 重构为纯 PHP 落地页,移除全部 Vue/Vite/SPA 代码
27 个文件变更
+414
-3382
13172193298@163.com
| •app_plugins/shop_frontend/README.md | +39 -46 |
| •app_plugins/shop_frontend/bootstrap.php | +57 -662 |
| •app_plugins/shop_frontend/lib/shop_frontend.php | +0 -48 |
| •app_plugins/shop_frontend/plugin.json | +2 -2 |
| •app_plugins/shop_frontend/views/admin/settings.php | +1 -1 |
| •app_plugins/shop_frontend/views/homepage.php | +315 -0 |
| •app_plugins/shop_frontend/views/spa/index.html | +0 -13 |
| •app_plugins/shop_frontend/views/spa/package-lock.json | +0 -2070 |
| •app_plugins/shop_frontend/views/spa/package.json | +0 -24 |
| •app_plugins/shop_frontend/views/spa/src/App.vue | +0 -14 |
| •app_plugins/shop_frontend/views/spa/src/api/index.js | +0 -8 |
| •app_plugins/shop_frontend/views/spa/src/components/AppFooter.vue | +0 -7 |
| •app_plugins/shop_frontend/views/spa/src/components/AppHeader.vue | +0 -43 |
| •app_plugins/shop_frontend/views/spa/src/components/PlanCard.vue | +0 -27 |
| •app_plugins/shop_frontend/views/spa/src/main.js | +0 -15 |
| •app_plugins/shop_frontend/views/spa/src/router/index.js | +0 -26 |
| •app_plugins/shop_frontend/views/spa/src/stores/user.js | +0 -26 |
| •app_plugins/shop_frontend/views/spa/src/views/BalancePage.vue | +0 -55 |
| •app_plugins/shop_frontend/views/spa/src/views/DashboardPage.vue | +0 -27 |
| •app_plugins/shop_frontend/views/spa/src/views/HomePage.vue | +0 -60 |
| •app_plugins/shop_frontend/views/spa/src/views/LoginPage.vue | +0 -32 |
| •app_plugins/shop_frontend/views/spa/src/views/OrdersPage.vue | +0 -27 |
| •app_plugins/shop_frontend/views/spa/src/views/PlanDetail.vue | +0 -51 |
| •app_plugins/shop_frontend/views/spa/src/views/ProfilePage.vue | +0 -21 |
| •app_plugins/shop_frontend/views/spa/src/views/RegisterPage.vue | +0 -37 |
| •app_plugins/shop_frontend/views/spa/src/views/ShopPage.vue | +0 -22 |
| •app_plugins/shop_frontend/views/spa/vite.config.js | +0 -18 |
变更内容
diff --git a/app_plugins/shop_frontend/README.md b/app_plugins/shop_frontend/README.md
index 02e4e7c..ed94742 100644
--- a/app_plugins/shop_frontend/README.md
+++ b/app_plugins/shop_frontend/README.md
@@ -1,61 +1,54 @@
# 售卖前端
-基于 Vue 3 + Vuetify 3 的 SPA 售卖网站插件。
+接管站点首页的落地页插件,展示品牌信息与套餐列表,所有功能按钮链接到对应插件路由。
## 前置依赖
-- `user_info` — 用户注册/登录/个人信息
-- `balance` — 余额管理
-- `hosting_shop` — 主机套餐/订单/资产管理
+- `user_info` — 用户注册/登录(`/account/login`、`/account/register`、`/account/logout`)
+- `balance` — 余额管理(`/balance`)
+- `hosting_shop` — 主机套餐/订单/资产管理(`/shop`、`/shop/orders`、`/shop/order/{id}`)
## 功能
-- 接管系统首页,渲染 SPA 售卖网站
-- 套餐浏览 / 下单购买
-- 用户登录注册
-- 个人信息 / 余额管理 / 我的主机 / 订单
-- 后台可配置站点名称、Logo、主题色
+- 接管站点首页 `/`,渲染品牌落地页
+- 展示站点标题、Logo、主色调、Hero 标语
+- 展示可用套餐信息(前 3 个热门套餐)
+- 所有按钮链接到对应插件的 `index.php?_r=/path` 路由
+- 后台配置:站点标题、Logo、主色调、强调色、Hero 标语、底部版权、Favicon
## 目录结构
```
shop_frontend/
-├── plugin.json
-├── bootstrap.php # 路由注册 / 首页接管 / 后台菜单
-├── lib/shop_frontend.php # 工具函数
-├── views/
-│ ├── entry.php # SPA HTML 入口(由 Vite build 或 CDN 加载)
-│ ├── admin/settings.php # 后台设置页
-│ └── spa/ # Vue 3 + Vuetify 3 源码
-│ ├── package.json
-│ ├── vite.config.js
-│ ├── index.html # 开发入口
-│ └── src/
-│ ├── main.js
-│ ├── App.vue
-│ ├── router/
-│ ├── views/
-│ ├── components/
-│ ├── stores/
-│ ├── api/
-│ └── styles/
-└── assets/
+├── plugin.json # 插件元信息
+├── bootstrap.php # 入口:首页接管 + 后台菜单 + AJAX
+├── lib/shop_frontend.php # 工具函数(配置读取、用户获取、套餐查询)
+├── views/homepage.php # 首页 HTML 模板(可直接编辑)
+├── views/admin/settings.php # 后台设置页
+└── README.md
```
-## 开发
-
-```bash
-cd app_plugins/shop_frontend/views/spa
-npm install
-npm run dev
-```
-
-Vite 开发服务器已配置 proxy 到 PHP 后端,可直接开发调试。
-
-## 构建
-
-```bash
-npm run build
-```
-
-构建产物输出到 `views/spa/dist/`,PHP 入口自动加载。
+## 使用
+
+1. 确保 `user_info`、`balance`、`hosting_shop` 已安装并启用
+2. 后台 → 系统管理 → 插件管理 → 安装并启用「售卖前端」
+3. 后台 → 售卖前端 → 前端设置 → 配置站点信息
+4. 刷新首页查看效果
+
+## 自定义
+
+编辑 `views/homepage.php` 即可修改首页外观。模板中可用变量:
+
+| 变量 | 说明 |
+|------|------|
+| `$title` | 站点标题 |
+| `$logo` | Logo URL |
+| `$primary` | 主色调 |
+| `$accent` | 强调色 |
+| `$hero` | Hero 标语 |
+| `$footer` | 底部版权文字 |
+| `$favicon` | Favicon URL |
+| `$user` | 当前登录用户数组(未登录为 null) |
+| `$features` | 特性列表数组(icon/title/desc) |
+| `$planCards` | 套餐卡片数组(id/name/desc/price/feats) |
+| `$url($path)` | 生成 `index.php?_r=/path` 格式链接 |
diff --git a/app_plugins/shop_frontend/bootstrap.php b/app_plugins/shop_frontend/bootstrap.php
index 8c10180..2e7e413 100644
--- a/app_plugins/shop_frontend/bootstrap.php
+++ b/app_plugins/shop_frontend/bootstrap.php
@@ -1,7 +1,7 @@
<?php
/**
- * 售卖前端 - 主入口
- * 接管首页,提供 Vue + Vuetify SPA + REST API
+ * 售卖前端 - 美观首页
+ * 接管站点首页,展示品牌信息与套餐列表,所有功能链接跳转到对应插件
*/
if (!defined('IN_CRONLITE')) { exit; }
@@ -9,684 +9,79 @@ $pluginDir = __DIR__;
require_once $pluginDir . '/lib/shop_frontend.php';
/* ============================================================
- * 1) 商店首页接管 — mnbt_register_home + 直接渲染 SPA
+ * 1) 首页接管
* ============================================================ */
mnbt_register_home(function ($ctx) {
- shop_frontend_serve_spa();
+ shop_frontend_render_homepage();
return true;
}, 100);
/* ============================================================
- * 2) SPA 路由 — Vue Router createWebHistory 要求服务端同返 index.html
+ * 2) 首页渲染
* ============================================================ */
-$spaPaths = ['/shop', '/shop/{id}', '/login', '/register', '/dashboard', '/orders', '/balance', '/profile'];
-foreach ($spaPaths as $path) {
- mnbt_register_route('GET', $path, function () {
- shop_frontend_serve_spa();
- });
-}
-
-function shop_frontend_serve_spa() {
- $spaDir = __DIR__ . '/views/spa';
- $distIndex = $spaDir . '/dist/index.html';
- if (is_file($distIndex)) {
- readfile($distIndex);
- exit;
- }
- // 开发/回退:直接输出入口 HTML
- ?>
-<!DOCTYPE html>
-<html lang="zh-CN">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title><?= htmlspecialchars(shop_frontend_option('site_title', 'MNBT 主机售卖')) ?></title>
- <link rel="icon" type="image/ico" href="<?= htmlspecialchars(shop_frontend_option('site_favicon', '')) ?>">
- <link href="https://cdn.jsdelivr.net/npm/vuetify@3.7.0/dist/vuetify.min.css" rel="stylesheet">
- <link href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css" rel="stylesheet">
- <style>
- *{margin:0;padding:0;box-sizing:border-box}
- body{font-family:Roboto,sans-serif;background:#f5f5f5}
- #app{min-height:100vh}
- .v-application__wrap{min-height:100vh}
- </style>
-</head>
-<body>
-<div id="app"></div>
-<script src="https://cdn.jsdelivr.net/npm/vue@3.5.0/dist/vue.global.prod.js"></script>
-<script src="https://cdn.jsdelivr.net/npm/vuetify@3.7.0/dist/vuetify.min.js"></script>
-<script src="https://cdn.jsdelivr.net/npm/vue-router@4.4.0/dist/vue-router.global.prod.js"></script>
-<script src="https://cdn.jsdelivr.net/npm/axios@1.7.0/dist/axios.min.js"></script>
-<script>window.VueDemi={};['onBeforeMount','onMounted','onBeforeUpdate','onUpdated','ref','computed','watch','isVue2','isVue3','h','markRaw'].forEach(function(k){VueDemi[k]=Vue[k]||function(){}});VueDemi.install=function(){};</script>
-<script src="https://cdn.jsdelivr.net/npm/pinia@2.1.7/dist/pinia.iife.prod.js"></script>
-<?php shop_frontend_render_inline_spa(); ?>
-</body>
-</html>
- <?php
- exit;
-}
-
-/* ============================================================
- * 3) 内联 SPA 渲染(CDN 模式回退方案)
- * ============================================================ */
-function shop_frontend_render_inline_spa() {
- $apiBase = shop_frontend_api_url('');
- $siteOpts = [
- 'title' => shop_frontend_option('site_title', 'MNBT 主机售卖'),
- 'logo' => shop_frontend_option('site_logo', ''),
- 'primary' => shop_frontend_option('site_primary', '#1867C0'),
- 'accent' => shop_frontend_option('site_accent', '#FF5722'),
- 'hero' => shop_frontend_option('site_hero', '高性能虚拟主机,即买即用'),
- 'footer' => shop_frontend_option('site_footer', '© 2026 MNBT Hosting. All rights reserved.'),
- 'currency'=> '¥',
- ];
- $optsJson = json_encode($siteOpts, JSON_UNESCAPED_UNICODE);
- echo "<script>window.__SHOP__={apiBase:" . json_encode($apiBase) . ",opts:{$optsJson}};</script>\n";
-
- // SPA 主脚本
- ?>
-<script>
-const { createApp, ref, computed, onMounted, watch } = Vue;
-const { createRouter, createWebHistory } = VueRouter;
-const { createPinia, defineStore } = Pinia;
-
-const API = window.__SHOP__.apiBase;
-const OPTS = window.__SHOP__.opts;
-
-const api = axios.create({ baseURL: API, timeout: 15000 });
-function fmt(yuan){ return '¥'+(Number(yuan)||0).toFixed(2); }
-function fmtDate(d){ if(!d)return'-'; try{ return new Date(d).toLocaleString('zh-CN'); }catch(e){return d;} }
-
-const useUser = defineStore('user', {
- state:()=>({user:null,loaded:false}),
- getters:{isLogin:(s)=>!!s.user},
- actions:{
- async fetch(){
- try{ const r=await api.get('user'); this.user=r.data.user; }catch(e){this.user=null;}
- this.loaded=true;
- },
- async login(u,p){
- const r=await api.post('login',{username:u,password:p});
- if(r.data.redirect){ await this.fetch(); return true; }
- throw new Error(r.data.code||'登录失败');
- },
- async register(d){
- const r=await api.post('register',d);
- if(r.data.redirect){ await this.fetch(); return true; }
- throw new Error(r.data.code||'注册失败');
- },
- async logout(){
- await api.post('logout'); this.user=null;
- }
- }
-});
-
-/* --- 组件 --- */
-const AppHeader = {
- template:`
-<v-app-bar app elevation="1" color="white">
- <v-container class="d-flex align-items-center">
- <v-app-bar-title>
- <a href="/" style="text-decoration:none;color:inherit;display:flex;align-items:center;gap:8px;">
- <v-avatar v-if="opts.logo" size="32"><v-img :src="opts.logo" cover /></v-avatar>
- <span class="text-h6 font-weight-bold">{{opts.title}}</span>
- </a>
- </v-app-bar-title>
- <v-spacer />
- <template v-for="h in homeLinks.filter(l=>l.show==null||l.show)" :key="h.to">
- <v-btn variant="text" :to="h.to">{{h.label}}</v-btn>
- </template>
- <template v-if="user.isLogin">
- <v-btn variant="text" prepend-icon="mdi-wallet" @click="$router.push('/balance')">余额: {{user.user?.balance||'0.00'}}</v-btn>
- <v-menu>
- <template #activator="{props}">
- <v-btn icon v-bind="props"><v-icon>mdi-account-circle</v-icon></v-btn>
- </template>
- <v-list density="compact">
- <v-list-item prepend-icon="mdi-view-dashboard" to="/dashboard" title="我的主机" />
- <v-list-item prepend-icon="mdi-receipt" to="/orders" title="订单" />
- <v-list-item prepend-icon="mdi-account-edit" to="/profile" title="个人信息" />
- <v-divider />
- <v-list-item prepend-icon="mdi-logout" title="退出" @click="doLogout" />
- </v-list>
- </v-menu>
- </template>
- <template v-else>
- <v-btn variant="outlined" to="/login" class="mr-2">登录</v-btn>
- <v-btn color="primary" to="/register">注册</v-btn>
- </template>
- </v-container>
-</v-app-bar>`,
- setup(){
- const user = useUser();
- const router = VueRouter.useRouter();
- const homeLinks = computed(()=>[
- {label:'首页',to:'/'},
- {label:'套餐',to:'/shop'},
- {label:'余额充值',to:'/balance',show:user.isLogin},
- ]);
- async function doLogout(){ await user.logout(); router.push('/'); }
- return { opts:OPTS, user, homeLinks, doLogout };
- }
-};
-
-const AppFooter = {
- template:`<v-footer app class="bg-grey-lighten-1"><v-container class="text-center text-caption text-medium-emphasis"><div v-html="opts.footer"></div></v-container></v-footer>`,
- setup(){ return { opts:OPTS }; }
-};
-
-const PlanCard = {
- props:['plan'],
- template:`
-<v-card hover @click="$router.push('/shop/'+plan.id)" class="cursor-pointer h-100">
- <v-card-item>
- <v-card-title>{{plan.name}} <v-chip size="small" color="primary" variant="tonal" class="ml-2">{{plan.spec_type==1?'CDN':'虚拟主机'}}</v-chip></v-card-title>
- <v-card-text class="text-body-2 text-medium-emphasis">{{plan.description || '高性能虚拟主机'}}</v-card-text>
- <v-divider class="my-2" />
- <div class="text-caption px-4">
- <v-row dense>
- <v-col cols="6"><v-icon size="14">mdi-harddisk</v-icon> {{plan.spec_web}} MB</v-col>
- <v-col cols="6"><v-icon size="14">mdi-database</v-icon> {{plan.spec_sql}} MB</v-col>
- <v-col cols="6"><v-icon size="14">mdi-swap-horizontal</v-icon> {{plan.spec_flow>0?plan.spec_flow+'G':'不限'}}</v-col>
- <v-col cols="6"><v-icon size="14">mdi-web</v-icon> {{plan.spec_domain}} 域名</v-col>
- </v-row>
- </div>
- </v-card-item>
- <v-card-actions class="px-4 pb-3">
- <div>
- <template v-if="plan.price_month_cents>0">
- <span class="text-h6 font-weight-bold text-primary">{{fmt(plan.price_month_cents/100)}}</span>
- <span class="text-caption text-medium-emphasis">/月</span>
- </template>
- <template v-if="plan.price_year_cents>0">
- <span v-if="plan.price_month_cents>0" class="mx-1">|</span>
- <span class="text-body-2 font-weight-bold">{{fmt(plan.price_year_cents/100)}}</span>
- <span class="text-caption text-medium-emphasis">/年</span>
- </template>
- </div>
- <v-spacer />
- <v-btn color="primary" size="small">立即购买</v-btn>
- </v-card-actions>
-</v-card>`,
- setup(p){ return { fmt, plan:p.plan }; }
-};
-
-/* --- 页面 --- */
-const HomePage = {
- template:`
-<div>
- <v-parallax :src="'data:image/svg+xml,'+encodeURIComponent('<svg xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 1440 320\\'><path fill=\\'%231867C0\\' fill-opacity=\\'0.1\\' d=\\'M0,192L48,197C96,203,192,213,288,229C384,245,480,267,576,256C672,245,768,203,864,181C960,160,1056,160,1152,181C1248,203,1344,245,1392,267L1440,288L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z\\'></path></svg>')" height="300">
- <v-container class="fill-height">
- <v-row align="center" justify="center">
- <v-col cols="12" md="8" class="text-center">
- <h1 class="text-h3 font-weight-bold mb-4">{{opts.hero}}</h1>
- <p class="text-h6 text-medium-emphasis mb-6">稳定、快速、安全的虚拟主机服务</p>
- <v-btn color="primary" size="large" to="/shop" class="mr-3">查看套餐</v-btn>
- <v-btn variant="outlined" size="large" to="/register">免费注册</v-btn>
- </v-col>
- </v-row>
- </v-container>
- </v-parallax>
- <v-container class="py-10">
- <h2 class="text-center text-h4 font-weight-bold mb-8">为什么选择我们</h2>
- <v-row>
- <v-col v-for="f in features" :key="f.icon" cols="12" sm="4">
- <v-card variant="flat" class="text-center pa-4">
- <v-icon size="48" color="primary">{{f.icon}}</v-icon>
- <h3 class="text-h6 mt-3">{{f.title}}</h3>
- <p class="text-body-2 text-medium-emphasis">{{f.desc}}</p>
- </v-card>
- </v-col>
- </v-row>
- </v-container>
- <v-container v-if="plans.length" class="pb-10">
- <h2 class="text-center text-h4 font-weight-bold mb-8">热门套餐</h2>
- <v-row>
- <v-col v-for="p in plans.slice(0,3)" :key="p.id" cols="12" md="4">
- <PlanCard :plan="p" />
- </v-col>
- </v-row>
- <div class="text-center mt-6">
- <v-btn variant="outlined" to="/shop" size="large">查看全部套餐</v-btn>
- </div>
- </v-container>
-</div>`,
- components:{PlanCard},
- setup(){
- const plans = ref([]);
- onMounted(async()=>{ try{ const r=await api.get('plans'); plans.value=r.data.plans||[]; }catch(e){} });
- const features = [
- {icon:'mdi-shield-check',title:'99.9% 在线率',desc:'企业级硬件,稳定可靠'},
- {icon:'mdi-flash',title:'快速部署',desc:'支付完成后自动开通主机'},
- {icon:'mdi-headset',title:'技术支持',desc:'专业技术团队在线支持'},
- ];
- return {opts:OPTS,plans,features};
- }
-};
-
-const ShopPage = {
- template:`
-<div><v-container class="py-8"><h1 class="text-h4 font-weight-bold mb-2">主机套餐</h1><p class="text-body-1 text-medium-emphasis mb-6">选择适合您的套餐</p>
-<v-row v-if="plans.length"><v-col v-for="p in plans" :key="p.id" cols="12" md="6" lg="4"><PlanCard :plan="p" /></v-col></v-row>
-<v-card v-else class="pa-8 text-center"><p class="text-body-1 text-medium-emphasis">暂无可购买的套餐</p></v-card>
-</v-container></div>`,
- components:{PlanCard},
- setup(){const plans=ref([]);onMounted(async()=>{try{const r=await api.get('plans');plans.value=r.data.plans||[];}catch(e){}});return{plans};}
-};
+function shop_frontend_render_homepage() {
+ $title = shop_frontend_option('site_title', 'MNBT 主机售卖');
+ $logo = shop_frontend_option('site_logo', '');
+ $primary = shop_frontend_option('site_primary', '#1867C0');
+ $accent = shop_frontend_option('site_accent', '#FF5722');
+ $hero = shop_frontend_option('site_hero', '高性能虚拟主机,即买即用');
+ $footer = shop_frontend_option('site_footer', '© ' . date('Y') . ' MNBT. All rights reserved.');
+ $favicon = shop_frontend_option('site_favicon', '');
-const PlanDetail = {
- template:`
-<v-container v-if="plan" class="py-8" style="max-width:600px">
- <v-btn variant="text" prepend-icon="mdi-arrow-left" to="/shop" class="mb-4">返回套餐列表</v-btn>
- <v-card>
- <v-card-item>
- <v-card-title class="text-h5">{{plan.name}}</v-card-title>
- <v-card-subtitle>{{plan.description}}</v-card-subtitle>
- </v-card-item>
- <v-card-text>
- <v-list density="compact">
- <v-list-item prepend-icon="mdi-harddisk" title="网页空间" :subtitle="plan.spec_web+' MB'" />
- <v-list-item prepend-icon="mdi-database" title="数据库" :subtitle="plan.spec_sql+' MB'" />
- <v-list-item prepend-icon="mdi-swap-horizontal" title="流量" :subtitle="plan.spec_flow>0?plan.spec_flow+' GB':'不限'" />
- <v-list-item prepend-icon="mdi-web" title="域名绑定" :subtitle="plan.spec_domain+' 个'" />
- </v-list>
- <v-divider class="my-3" />
- <v-radio-group v-model="period" inline>
- <v-radio v-if="plan.price_month_cents>0" label="月付 ¥"+fmt(plan.price_month_cents/100) value="month" />
- <v-radio v-if="plan.price_year_cents>0" label="年付 ¥"+fmt(plan.price_year_cents/100) value="year" />
- </v-radio-group>
- <v-select v-if="nodes.length" v-model="node" :items="nodes" item-title="btdh" item-value="btdh" label="开通节点" variant="outlined" density="compact">
- <template #item="{item}">{{item.btdh}}({{item.btip}},{{item.btos==1?'Linux':'Windows'}})</template>
- </v-select>
- <v-alert v-if="!user.isLogin" type="warning" variant="tonal" class="mt-2">
- 请先<a href="/login" style="color:inherit">登录</a>后再购买
- </v-alert>
- </v-card-text>
- <v-card-actions class="pa-4">
- <v-btn color="primary" block size="large" @click="buy" :loading="loading" :disabled="!user.isLogin">确认购买</v-btn>
- </v-card-actions>
- </v-card>
- <v-snackbar v-model="snack" :color="snackColor">{{snackMsg}}</v-snackbar>
-</v-container>
-<v-container v-else class="py-8 text-center"><p>套餐不存在</p></v-container>`,
- setup(){
- const route=VueRouter.useRoute();const user=useUser();const plan=ref(null);const nodes=ref([]);
- const period=ref('month');const node=ref('');const loading=ref(false);const snack=ref(false);const snackMsg=ref('');const snackColor=ref('success');
- onMounted(async()=>{
- try{const r=await api.get('plans');const plans=r.data.plans||[];plan.value=plans.find(p=>p.id==route.params.id)||null;}catch(e){}
- try{const r=await api.get('nodes');nodes.value=r.data.nodes||[];if(nodes.value.length)node.value=nodes.value[0].btdh;}catch(e){}
- });
- async function buy(){
- loading.value=true;
- try{const r=await api.post('create_order',{plan_id:route.params.id,period:period.value,node:node.value});if(r.data.html){document.open();document.write(r.data.html);document.close();}}catch(e){snackMsg.value='创建订单失败';snackColor.value='error';snack.value=true;}
- loading.value=false;
- }
- return { plan,nodes,period,node,loading,snack,snackMsg,snackColor,buy,user,fmt };
- }
-};
-
-const LoginPage = {
- template:`
-<v-container style="max-width:400px" class="py-8">
- <v-card><v-card-item><v-card-title class="text-center">登录</v-card-title></v-card-item>
- <v-card-text>
- <v-text-field v-model="username" label="用户名" variant="outlined" density="compact" autocomplete="username" />
- <v-text-field v-model="password" label="密码" type="password" variant="outlined" density="compact" autocomplete="current-password" @keyup.enter="doLogin" />
- </v-card-text>
- <v-card-actions class="pa-4"><v-btn color="primary" block @click="doLogin" :loading="loading">登录</v-btn></v-card-actions>
- <div class="text-center pb-4"><a href="/register" class="text-caption">还没有账号?立即注册</a></div>
- </v-card>
- <v-snackbar v-model="snack" color="error">{{snackMsg}}</v-snackbar>
-</v-container>`,
- setup(){
- const user=useUser();const router=VueRouter.useRouter();
- const username=ref('');const password=ref('');const loading=ref(false);const snack=ref(false);const snackMsg=ref('');
- async function doLogin(){
- loading.value=true;
- try{await user.login(username.value,password.value);router.push(user.isLogin?'/dashboard':'/');}catch(e){snackMsg.value=e.message;snack.value=true;}
- loading.value=false;
- }
- return{username,password,loading,snack,snackMsg,doLogin};
- }
-};
-
-const RegisterPage = {
- template:`
-<v-container style="max-width:400px" class="py-8">
- <v-card><v-card-item><v-card-title class="text-center">注册</v-card-title></v-card-item>
- <v-card-text>
- <v-text-field v-model="username" label="用户名" variant="outlined" density="compact" />
- <v-text-field v-model="password" label="密码" type="password" variant="outlined" density="compact" />
- <v-text-field v-model="password2" label="确认密码" type="password" variant="outlined" density="compact" />
- <v-text-field v-model="email" label="邮箱(选填)" variant="outlined" density="compact" />
- <v-text-field v-model="qq" label="QQ(选填)" variant="outlined" density="compact" />
- </v-card-text>
- <v-card-actions class="pa-4"><v-btn color="primary" block @click="doReg" :loading="loading">注册</v-btn></v-card-actions>
- <div class="text-center pb-4"><a href="/login" class="text-caption">已有账号?立即登录</a></div>
- </v-card>
- <v-snackbar v-model="snack" color="error">{{snackMsg}}</v-snackbar>
-</v-container>`,
- setup(){
- const user=useUser();const router=VueRouter.useRouter();
- const username=ref('');const password=ref('');const password2=ref('');const email=ref('');const qq=ref('');
- const loading=ref(false);const snack=ref(false);const snackMsg=ref('');
- async function doReg(){
- if(!username.value||!password.value){snackMsg.value='请填写用户名和密码';snack.value=true;return;}
- if(password.value!==password2.value){snackMsg.value='两次密码不一致';snack.value=true;return;}
- loading.value=true;
- try{await user.register({username:username.value,password:password.value,password2:password2.value,email:email.value,qq:qq.value});router.push('/dashboard');}catch(e){snackMsg.value=e.message;snack.value=true;}
- loading.value=false;
- }
- return{username,password,password2,email,qq,loading,snack,snackMsg,doReg};
- }
-};
-
-const DashboardPage = {
- template:`
-<v-container class="py-8">
- <h1 class="text-h4 font-weight-bold mb-2">我的主机</h1>
- <v-card v-if="!assets.length" class="pa-8 text-center"><p class="text-body-1 text-medium-emphasis">暂无开通的主机</p><v-btn color="primary" to="/shop">去购买</v-btn></v-card>
- <v-table v-else>
- <thead><tr><th>套餐</th><th>主机账号</th><th>节点</th><th>开通时间</th><th>到期时间</th><th>状态</th></tr></thead>
- <tbody><tr v-for="a in assets" :key="a.id"><td>{{a.plan_name}}</td><td>{{a.host_user||'-'}}</td><td>{{a.ssbt||'-'}}</td><td>{{fmtDate(a.created_at)}}</td><td>{{fmtDate(a.expire_at)}}</td><td><v-chip size="small" :color="a.status==='active'?'success':'error'">{{a.status==='active'?'正常':'已到期'}}</v-chip></td></tr></tbody>
- </v-table>
-</v-container>`,
- setup(){
- const assets=ref([]);
- onMounted(async()=>{try{const r=await api.get('assets');assets.value=r.data.assets||[];}catch(e){}});
- return{assets,fmtDate};
- }
-};
-
-const OrdersPage = {
- template:`
-<v-container class="py-8">
- <h1 class="text-h4 font-weight-bold mb-2">我的订单</h1>
- <v-table v-if="orders.length">
- <thead><tr><th>订单号</th><th>套餐</th><th>周期</th><th>金额</th><th>状态</th><th>时间</th></tr></thead>
- <tbody><tr v-for="o in orders" :key="o.id"><td class="text-caption">{{o.order_no}}</td><td>{{o.plan_name}}</td><td>{{o.period==='year'?'年付':'月付'}}</td><td>{{fmt(o.amount_cents/100)}}</td><td><v-chip size="small" :color="statusColor(o.status)">{{statusLabel(o.status)}}</v-chip></td><td>{{fmtDate(o.created_at)}}</td></tr></tbody>
- </v-table>
- <v-card v-else class="pa-8 text-center"><p class="text-body-1 text-medium-emphasis">暂无订单</p></v-card>
-</v-container>`,
- setup(){
- const orders=ref([]);
- onMounted(async()=>{try{const r=await api.get('orders');orders.value=r.data.orders||[];}catch(e){}});
- const sl={pending:'待支付',paid:'已支付',opened:'已开通',failed:'失败',cancelled:'已取消'};
- const sc={pending:'warning',paid:'info',opened:'success',failed:'error',cancelled:'error'};
- function statusLabel(s){return sl[s]||s;}
- function statusColor(s){return sc[s]||'grey';}
- return{orders,fmt,fmtDate,statusLabel,statusColor};
- }
-};
-
-const BalancePage = {
- template:`
-<v-container class="py-8">
- <v-card>
- <v-card-item><v-card-title>我的余额</v-card-title></v-card-item>
- <v-card-text>
- <div class="text-center my-4"><span class="text-h2 font-weight-bold text-primary">{{fmt(balance/100)}}</span></div>
- <v-btn color="primary" block size="large" @click="showRecharge=!showRecharge">充值</v-btn>
- <v-expand-transition>
- <v-card v-if="showRecharge" variant="outlined" class="mt-4 pa-4">
- <v-text-field v-model="amount" label="充值金额(元)" type="number" min="1" variant="outlined" density="compact" />
- <div class="d-flex gap-2 mb-3"><v-btn v-for="a in [10,50,100,500]" :key="a" size="small" variant="outlined" @click="amount=a">{{a}}元</v-btn></div>
- <v-btn color="primary" block @click="recharge" :loading="reLoading">立即充值</v-btn>
- </v-card>
- </v-expand-transition>
- </v-card-text>
- </v-card>
- <v-card class="mt-6"><v-card-item><v-card-title>交易记录</v-card-title></v-card-item>
- <v-table><thead><tr><th>时间</th><th>类型</th><th>金额</th><th>备注</th></tr></thead>
- <tbody><tr v-for="l in logs" :key="l.id"><td>{{fmtDate(l.created_at)}}</td><td>{{typeLabel(l.type)}}</td><td :class="l.amount>=0?'text-success':'text-error'">{{l.amount>=0?'+':''}}{{fmt(Math.abs(l.amount)/100)}}</td><td>{{l.remark||'-'}}</td></tr></tbody></v-table>
- </v-card>
-</v-container>`,
- setup(){
- const balance=ref(0);const logs=ref([]);const amount=ref(10);const showRecharge=ref(false);const reLoading=ref(false);
- async function fetch(){try{const r=await api.get('balance');balance.value=r.data.balance_cents||0;logs.value=r.data.logs||[];}catch(e){}}
- onMounted(fetch);
- async function recharge(){
- reLoading.value=true;
- try{const r=await api.post('recharge',{amount:amount.value});if(r.data.html){document.open();document.write(r.data.html);document.close();}}catch(e){}
- reLoading.value=false;
- }
- const tl={recharge:'充值',consume:'消费',refund:'退款',adjust:'调整'};
- function typeLabel(t){return tl[t]||t;}
- return{balance,logs,amount,showRecharge,reLoading,fetch,recharge,typeLabel,fmt,fmtDate};
- }
-};
-
-const ProfilePage = {
- template:`
-<v-container style="max-width:500px" class="py-8">
- <v-card><v-card-item><v-card-title>个人信息</v-card-title></v-card-item>
- <v-card-text>
- <v-list density="compact">
- <v-list-item title="用户名" :subtitle="user.user?.username||''" />
- <v-list-item title="注册时间" :subtitle="fmtDate(user.user?.created_at)" />
- <v-list-item title="邮箱" :subtitle="user.user?.email||'未设置'" />
- <v-list-item title="QQ" :subtitle="user.user?.qq||'未设置'" />
- </v-list>
- </v-card-text>
- </v-card>
-</v-container>`,
- setup(){const user=useUser();return{user,fmtDate};}
-};
-
-/* --- 路由 --- */
-const routes=[
- {path:'/',component:HomePage,meta:{public:true}},
- {path:'/shop',component:ShopPage,meta:{public:true}},
- {path:'/shop/:id',component:PlanDetail,meta:{public:true}},
- {path:'/login',component:LoginPage,meta:{guest:true}},
- {path:'/register',component:RegisterPage,meta:{guest:true}},
- {path:'/dashboard',component:DashboardPage},
- {path:'/orders',component:OrdersPage},
- {path:'/balance',component:BalancePage},
- {path:'/profile',component:ProfilePage},
-];
-const router = createRouter({history:createWebHistory(),routes});
-router.beforeEach(async(to,from,next)=>{
- const user=useUser();
- if(!user.loaded) await user.fetch();
- if(to.meta.guest && user.isLogin) return next('/dashboard');
- if(!to.meta.public && !user.isLogin) return next('/login');
- next();
-});
-
-/* --- 应用 --- */
-const pinia = createPinia();
-const app = createApp({
- template:`
-<v-app>
- <AppHeader />
- <v-main><router-view /></v-main>
- <AppFooter v-if="!$route.meta.guest" />
-</v-app>`,
- components:{AppHeader,AppFooter},
-});
-app.use(pinia);
-app.use(router);
-app.use(Vuetify.createVuetify({theme:{defaultTheme:'light'}}));
-app.mount('#app');
-</script>
-<?php
-}
-
-/* ============================================================
- * 4) REST API 路由(供 SPA 调用)
- * ============================================================ */
-mnbt_register_route('GET', '/shop_api/user', function () {
- $user = shop_frontend_get_current_user();
- if ($user) {
- $bal = shop_frontend_get_user_balance((int)$user['id']);
- $user['balance'] = @($bal['balance_cents'] / 100);
- }
- echo json_encode(['user' => $user], JSON_UNESCAPED_UNICODE);
- exit;
-});
-
-mnbt_register_route('GET', '/shop_api/plans', function () {
$plans = shop_frontend_get_plans();
- echo json_encode(['plans' => $plans], JSON_UNESCAPED_UNICODE);
- exit;
-});
-
-mnbt_register_route('GET', '/shop_api/nodes', function () {
- $nodes = shop_frontend_get_hosting_nodes();
- echo json_encode(['nodes' => $nodes], JSON_UNESCAPED_UNICODE);
- exit;
-});
-
-mnbt_register_route('GET', '/shop_api/assets', function () {
$user = shop_frontend_get_current_user();
- if (!$user) { echo json_encode(['code'=>'请登录']); exit; }
- $assets = shop_frontend_get_user_assets((int)$user['id']);
- echo json_encode(['assets' => $assets], JSON_UNESCAPED_UNICODE);
- exit;
-});
-mnbt_register_route('GET', '/shop_api/orders', function () {
- $user = shop_frontend_get_current_user();
- if (!$user) { echo json_encode(['code'=>'请登录']); exit; }
- $orders = shop_frontend_get_user_orders((int)$user['id']);
- echo json_encode(['orders' => $orders['list']], JSON_UNESCAPED_UNICODE);
- exit;
-});
-
-mnbt_register_route('GET', '/shop_api/balance', function () {
- $user = shop_frontend_get_current_user();
- if (!$user) { echo json_encode(['code'=>'请登录']); exit; }
- $bal = shop_frontend_get_user_balance((int)$user['id']);
- $logs = shop_frontend_get_balance_logs((int)$user['id']);
- echo json_encode(['balance_cents' => $bal['balance_cents'], 'logs' => $logs['list']], JSON_UNESCAPED_UNICODE);
- exit;
-});
-
-mnbt_register_route('POST', '/shop_api/login', function () {
- $username = trim((string)($_POST['username'] ?? ''));
- $password = (string)($_POST['password'] ?? '');
- if ($username === '' || $password === '') {
- echo json_encode(['code' => '请填写用户名和密码']);
- exit;
- }
- global $DB;
- $user = $DB->get_row_prepare("SELECT * FROM MN_plugin_user WHERE username=? LIMIT 1", [$username]);
- if (!$user || !password_verify($password, $user['password_hash'])) {
- echo json_encode(['code' => '用户名或密码错误']);
- exit;
- }
- if ((int)$user['status'] !== 1) {
- echo json_encode(['code' => '账户已被禁用']);
- exit;
- }
- $session = $user['id'] . "\t" . md5($user['id'] . $user['password_hash'] . SYS_KEY);
- $token = authcode($session, 'ENCODE', SYS_KEY);
- setcookie('account_token', $token, time() + 86400 * 7, '/');
- $_COOKIE['account_token'] = $token;
- echo json_encode(['code' => '登录成功', 'redirect' => '/']);
- exit;
-});
-
-mnbt_register_route('POST', '/shop_api/register', function () {
- $username = trim((string)($_POST['username'] ?? ''));
- $password = (string)($_POST['password'] ?? '');
- $password2 = (string)($_POST['password2'] ?? '');
- $email = trim((string)($_POST['email'] ?? ''));
- $qq = trim((string)($_POST['qq'] ?? ''));
- if ($username === '' || $password === '') { echo json_encode(['code'=>'请填写用户名和密码']); exit; }
- if (mb_strlen($username) < 3 || mb_strlen($username) > 32) { echo json_encode(['code'=>'用户名需 3-32 位']); exit; }
- if (!preg_match('/^[a-zA-Z0-9_]+$/', $username)) { echo json_encode(['code'=>'用户名只能包含字母、数字、下划线']); exit; }
- if (strlen($password) < 6) { echo json_encode(['code'=>'密码至少 6 位']); exit; }
- if ($password !== $password2) { echo json_encode(['code'=>'两次密码不一致']); exit; }
- global $DB;
- $exists = $DB->get_row_prepare("SELECT id FROM MN_plugin_user WHERE username=? LIMIT 1", [$username]);
- if ($exists) { echo json_encode(['code'=>'用户名已存在']); exit; }
- $hash = password_hash($password, PASSWORD_BCRYPT);
- $now = date('Y-m-d H:i:s');
- $DB->query_prepare("INSERT INTO MN_plugin_user (username,password_hash,email,qq,status,created_at,updated_at) VALUES (?,?,?,?,1,?,?)", [$username, $hash, $email, $qq, $now, $now]);
- $uid = $DB->lastInsertId();
- $session = $uid . "\t" . md5($uid . $hash . SYS_KEY);
- $token = authcode($session, 'ENCODE', SYS_KEY);
- setcookie('account_token', $token, time() + 86400 * 7, '/');
- $_COOKIE['account_token'] = $token;
- echo json_encode(['code' => '注册成功', 'redirect' => '/']);
- exit;
-});
-
-mnbt_register_route('POST', '/shop_api/logout', function () {
- setcookie('account_token', '', time() - 3600, '/');
- echo json_encode(['code' => '已退出']);
- exit;
-});
+ // URL 构建 — 与 user_info / balance / hosting_shop 插件完全一致的格式
+ $script = isset($_SERVER['SCRIPT_NAME']) ? str_replace('\\', '/', $_SERVER['SCRIPT_NAME']) : '';
+ $base = rtrim(str_replace('\\', '/', dirname($script)), '/');
+ if ($base === '.' || $base === '/') { $base = ''; }
+ $url = function(string $path) use ($base): string {
+ $p = ltrim($path, '/');
+ return $base . '/index.php?_r=/' . $p;
+ };
+
+ $features = [
+ ['icon' => 'mdi-shield-check', 'title' => '99.9% 在线率', 'desc' => '企业级硬件架构,稳定可靠,SLA 保障'],
+ ['icon' => 'mdi-flash', 'title' => '极速部署', 'desc' => '支付成功后自动开通,即买即用,无需等待'],
+ ['icon' => 'mdi-headset', 'title' => '专业支持', 'desc' => '技术团队 7×24 小时响应,工单优先处理'],
+ ['icon' => 'mdi-server', 'title' => '高性能节点', 'desc' => '全 SSD 存储,BGP 多线接入,低延迟体验'],
+ ['icon' => 'mdi-backup-restore','title' => '自动备份', 'desc' => '每日自动备份数据,灾备无忧'],
+ ['icon' => 'mdi-lock', 'title' => '安全防护', 'desc' => 'DDoS 清洗 + WAF 规则,网站安全有保障'],
+ ];
-mnbt_register_route('POST', '/shop_api/create_order', function () {
- $user = shop_frontend_get_current_user();
- if (!$user) { echo json_encode(['code'=>'请登录']); exit; }
- $planId = (int)($_POST['plan_id'] ?? 0);
- $period = $_POST['period'] === 'year' ? 'year' : 'month';
- $node = trim((string)($_POST['node'] ?? ''));
- if ($planId <= 0 || $node === '') { echo json_encode(['code'=>'参数不完整']); exit; }
- global $DB;
- $plan = $DB->get_row_prepare("SELECT * FROM MN_plugin_hosting_plan WHERE id=? AND status=1 LIMIT 1", [$planId]);
- if (!$plan) { echo json_encode(['code'=>'套餐不存在']); exit; }
- $amountCents = $period === 'year' ? (int)$plan['price_year_cents'] : (int)$plan['price_month_cents'];
- if ($amountCents <= 0) { echo json_encode(['code'=>'套餐价格配置错误']); exit; }
- $orderNo = 'SF' . date('YmdHis') . rand(1000, 9999);
- $DB->query_prepare("INSERT INTO MN_plugin_hosting_order (user_id,plan_id,plan_name,period,amount_cents,order_no,node,status,created_at) VALUES (?,?,?,?,?,?,?,'pending',?)", [$user['id'], $planId, $plan['name'], $period, $amountCents, $orderNo, $node, date('Y-m-d H:i:s')]);
- $hostOrderId = $DB->lastInsertId();
- // 创建 MN_dd 支付订单
- $pOrderNo = 'MN' . date('YmdHis') . rand(100, 999);
- $DB->query_prepare("INSERT INTO MN_dd (user_id,order_no,lx,money_cents,cs,created_at,status) VALUES (?,?,?,?,?,?,'pending')", [$user['id'], $pOrderNo, 'hosting', $amountCents, json_encode(['hosting_order_id'=>$hostOrderId]), date('Y-m-d H:i:s')]);
- $mnOrderId = $DB->lastInsertId();
- // 触发支付
- $methods = shop_frontend_get_payment_methods();
- if (!empty($methods)) {
- $firstMethod = reset($methods);
- $payPlugin = $firstMethod['plugin'] ?? '';
- $payMethod = $firstMethod['method'] ?? '';
- if ($payPlugin && $payMethod) {
- // 调用支付插件生成支付 HTML
- $GLOBALS['mnbt_plugin_current'] = $payPlugin;
- $paymentHtml = mnbt_apply_filters('payment_gateway_html', '', [$pOrderNo, $amountCents, $mnOrderId, $payMethod]);
- if ($paymentHtml) {
- echo json_encode(['code'=>'ok','html'=>$paymentHtml]);
- exit;
- }
+ $planCards = [];
+ foreach ($plans as $p) {
+ $minPrice = 0;
+ if ($p['price_month_cents'] > 0) {
+ $minPrice = $p['price_month_cents'] / 100;
}
- }
- echo json_encode(['code'=>'ok','redirect'=>'/orders']);
- exit;
-});
-
-mnbt_register_route('POST', '/shop_api/recharge', function () {
- $user = shop_frontend_get_current_user();
- if (!$user) { echo json_encode(['code'=>'请登录']); exit; }
- $amount = max(1, min(50000, (float)($_POST['amount'] ?? 10)));
- $amountCents = (int)round($amount * 100);
- global $DB;
- $orderNo = 'RC' . date('YmdHis') . rand(100, 999);
- $DB->query_prepare("INSERT INTO MN_dd (user_id,order_no,lx,money_cents,cs,created_at,status) VALUES (?,?,?,?,?,?,'pending')", [$user['id'], $orderNo, 'recharge', $amountCents, json_encode(['user_id'=>$user['id']]), date('Y-m-d H:i:s')]);
- $methods = shop_frontend_get_payment_methods();
- if (!empty($methods)) {
- $firstMethod = reset($methods);
- $payPlugin = $firstMethod['plugin'] ?? '';
- $payMethod = $firstMethod['method'] ?? '';
- if ($payPlugin && $payMethod) {
- $GLOBALS['mnbt_plugin_current'] = $payPlugin;
- $paymentHtml = mnbt_apply_filters('payment_gateway_html', '', [$orderNo, $amountCents, $DB->lastInsertId(), $payMethod]);
- if ($paymentHtml) {
- echo json_encode(['code'=>'ok','html'=>$paymentHtml]);
- exit;
+ if ($p['price_year_cents'] > 0) {
+ $yearPrice = $p['price_year_cents'] / 100;
+ if ($minPrice == 0 || $yearPrice / 12 < $minPrice) {
+ $minPrice = $yearPrice / 12;
}
}
+ $priceStr = $minPrice > 0 ? '¥' . number_format($minPrice, 2) . ' 起/月' : '免费';
+ $feats = [];
+ if (!empty($p['spec_web'])) $feats[] = "网页空间 " . $p['spec_web'] . " MB";
+ if (!empty($p['spec_sql'])) $feats[] = "数据库 " . $p['spec_sql'] . " MB";
+ if (!empty($p['spec_flow'])) $feats[] = "月流量 " . $p['spec_flow'] . " GB";
+ if (!empty($p['spec_domain'])) $feats[] = "可绑定 " . $p['spec_domain'] . " 个域名";
+ $planCards[] = [
+ 'id' => $p['id'],
+ 'name' => $p['name'],
+ 'desc' => $p['description'] ?? '',
+ 'price' => $priceStr,
+ 'feats' => $feats,
+ ];
}
- echo json_encode(['code'=>'ok','redirect'=>'/balance']);
+
+ include __DIR__ . '/views/homepage.php';
exit;
-});
+}
/* ============================================================
- * 5) 管理员页面
+ * 3) 管理员页面
* ============================================================ */
mnbt_register_page('admin', 'settings', 'views/admin/settings.php', '售卖前端设置');
@@ -700,7 +95,7 @@ mnbt_register_menu('admin', [
]);
/* ============================================================
- * 6) 管理员 AJAX:保存设置
+ * 4) 管理员 AJAX:保存设置
* ============================================================ */
mnbt_register_ajax('admin', 'shop_frontend_save_settings', function () {
mnbt_plugin_require_admin();
diff --git a/app_plugins/shop_frontend/lib/shop_frontend.php b/app_plugins/shop_frontend/lib/shop_frontend.php
index d0e4627..8c7ef6d 100644
--- a/app_plugins/shop_frontend/lib/shop_frontend.php
+++ b/app_plugins/shop_frontend/lib/shop_frontend.php
@@ -4,10 +4,6 @@
*/
if (!defined('IN_CRONLITE')) { exit; }
-function shop_frontend_plugin_path(): string {
- return __DIR__;
-}
-
function shop_frontend_asset_url(string $path): string {
$slug = 'shop_frontend';
if (function_exists('mnbt_plugin_asset_url')) {
@@ -23,13 +19,6 @@ function shop_frontend_option(string $key, $default = null) {
return $default;
}
-function shop_frontend_api_url(string $path): string {
- if (function_exists('shop_frontend_route_url')) {
- return shop_frontend_route_url('shop_api/' . ltrim($path, '/'));
- }
- return 'index.php?_r=/shop_api/' . ltrim($path, '/');
-}
-
function shop_frontend_get_current_user(): ?array {
if (empty($_COOKIE['account_token'])) return null;
$token = $_COOKIE['account_token'];
@@ -52,40 +41,3 @@ function shop_frontend_get_plans(): array {
$rows = $DB->get_all_prepare("SELECT * FROM MN_plugin_hosting_plan WHERE status=1 ORDER BY sort ASC, id ASC") ?: [];
return $rows;
}
-
-function shop_frontend_get_user_assets(int $userId): array {
- global $DB;
- return $DB->get_all_prepare("SELECT * FROM MN_plugin_hosting_asset WHERE user_id=? AND status='active' ORDER BY id DESC", [$userId]) ?: [];
-}
-
-function shop_frontend_get_user_orders(int $userId, int $page = 1, int $perPage = 15): array {
- global $DB;
- $total = (int)$DB->count_prepare("SELECT count(*) FROM MN_plugin_hosting_order WHERE user_id=?", [$userId]);
- $offset = ($page - 1) * $perPage;
- $list = $DB->get_all_prepare("SELECT * FROM MN_plugin_hosting_order WHERE user_id=? ORDER BY id DESC LIMIT ?,?", [$userId, $offset, $perPage]) ?: [];
- return ['list' => $list, 'total' => $total, 'page' => $page, 'per_page' => $perPage];
-}
-
-function shop_frontend_get_user_balance(int $userId): array {
- global $DB;
- $row = $DB->get_row_prepare("SELECT * FROM MN_plugin_balance WHERE user_id=?", [$userId]);
- return ['balance_cents' => (int)($row['balance'] ?? 0)];
-}
-
-function shop_frontend_get_balance_logs(int $userId, int $page = 1, int $perPage = 15): array {
- global $DB;
- $total = (int)$DB->count_prepare("SELECT count(*) FROM MN_plugin_balance_log WHERE user_id=?", [$userId]);
- $offset = ($page - 1) * $perPage;
- $list = $DB->get_all_prepare("SELECT * FROM MN_plugin_balance_log WHERE user_id=? ORDER BY id DESC LIMIT ?,?", [$userId, $offset, $perPage]) ?: [];
- return ['list' => $list, 'total' => $total, 'page' => $page, 'per_page' => $perPage];
-}
-
-function shop_frontend_get_payment_methods(): array {
- if (!function_exists('mnbt_apply_filters')) return [];
- return mnbt_apply_filters('payment_methods', []);
-}
-
-function shop_frontend_get_hosting_nodes(): array {
- global $DB;
- return $DB->get_all_prepare("SELECT * FROM MN_bt WHERE 1") ?: [];
-}
diff --git a/app_plugins/shop_frontend/plugin.json b/app_plugins/shop_frontend/plugin.json
index 1034b48..69c661b 100644
--- a/app_plugins/shop_frontend/plugin.json
+++ b/app_plugins/shop_frontend/plugin.json
@@ -1,8 +1,8 @@
{
"id": "shop_frontend",
"name": "售卖前端",
- "version": "1.0.0",
- "description": "基于 Vue 3 + Vuetify 的售卖网站 SPA 前端,接管首页,深度融合 hosting_shop / user_info / balance",
+ "version": "1.1.0",
+ "description": "接管站点首页的美观落地页,展示品牌信息与套餐列表,所有功能按钮链接到对应插件",
"author": "MNBT",
"type": ["business"],
"requires_plugins": ["user_info", "balance", "hosting_shop"]
diff --git a/app_plugins/shop_frontend/views/admin/settings.php b/app_plugins/shop_frontend/views/admin/settings.php
index dcfaa39..d581421 100644
--- a/app_plugins/shop_frontend/views/admin/settings.php
+++ b/app_plugins/shop_frontend/views/admin/settings.php
@@ -11,7 +11,7 @@ foreach ($fields as $f) {
<div class="card">
<div class="card-header bg-info"><h4>售卖前端设置</h4></div>
<div class="card-body">
- <div class="alert alert-info">配置 Vue SPA 售卖网站的显示内容。保存后需刷新前台页面。</div>
+ <div class="alert alert-info">配置售卖网站首页的显示内容。保存后需刷新前台页面。</div>
<form id="settingsForm">
<div class="form-group">
<label>站点标题</label>
diff --git a/app_plugins/shop_frontend/views/homepage.php b/app_plugins/shop_frontend/views/homepage.php
new file mode 100644
index 0000000..a8870ec
--- /dev/null
+++ b/app_plugins/shop_frontend/views/homepage.php
@@ -0,0 +1,315 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title><?= htmlspecialchars($title) ?></title>
+<?php if ($favicon): ?><link rel="icon" href="<?= htmlspecialchars($favicon) ?>"><?php endif; ?>
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css">
+<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
+<style>
+:root {
+ --brand: <?= htmlspecialchars($primary ?: '#2563eb') ?>;
+ --brand-soft: color-mix(in srgb, var(--brand) 8%, #fff);
+ --brand-light: color-mix(in srgb, var(--brand) 90%, #fff);
+ --text: #0f172a;
+ --text-2: #475569;
+ --text-3: #94a3b8;
+ --border: #e2e8f0;
+ --bg: #f8fafc;
+ --white: #fff;
+ --r: 16px;
+ --rs: 10px;
+}
+*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
+html{scroll-behavior:smooth}
+body{
+ font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
+ color:var(--text);background:var(--white);line-height:1.6;
+ -webkit-font-smoothing:antialiased;font-size:15px;
+}
+a{text-decoration:none;color:inherit}
+img{max-width:100%;display:block}
+.w{width:min(1160px,calc(100% - 48px));margin:0 auto}
+
+/* ── Navbar ── */
+.navbar{
+ position:sticky;top:0;z-index:100;
+ background:rgba(255,255,255,.88);
+ border-bottom:1px solid var(--border);
+ backdrop-filter:blur(12px);
+}
+.navbar .w{height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px}
+.nav-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.1rem;color:var(--text);letter-spacing:-.02em}
+.nav-brand img{height:34px;width:auto;border-radius:8px}
+.nav-brand .mark{
+ width:36px;height:36px;border-radius:8px;background:var(--brand);color:#fff;
+ display:grid;place-items:center;font-weight:800;font-size:15px;
+}
+.nav-links{display:flex;align-items:center;gap:4px}
+.nav-links a{
+ padding:8px 14px;border-radius:8px;font-size:14px;font-weight:500;color:var(--text-2);transition:.15s;
+}
+.nav-links a:hover{background:var(--bg);color:var(--text)}
+
+.btn{
+ display:inline-flex;align-items:center;justify-content:center;gap:7px;
+ padding:10px 18px;border-radius:var(--rs);font-weight:600;font-size:14px;
+ border:1px solid transparent;transition:.15s;cursor:pointer;
+ white-space:nowrap;
+}
+.btn-fill{background:var(--brand);color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08)}
+.btn-fill:hover{background:var(--brand-light)}
+.btn-outline{border:1px solid var(--border);color:var(--text);background:var(--white)}
+.btn-outline:hover{background:var(--bg)}
+.btn-ghost{color:var(--text-2);background:transparent}
+.btn-ghost:hover{background:var(--bg)}
+.btn-lg{padding:14px 26px;font-size:15px;border-radius:12px}
+
+/* ── Hero ── */
+.hero{text-align:center;padding:96px 0 88px}
+.hero .badge{
+ display:inline-flex;align-items:center;gap:6px;margin-bottom:20px;
+ padding:6px 14px;border-radius:999px;border:1px solid var(--border);
+ background:var(--brand-soft);color:var(--brand);font-size:13px;font-weight:600;
+}
+.hero h1{
+ font-size:clamp(2.6rem, 6vw, 4.2rem);
+ font-weight:900;letter-spacing:-.05em;line-height:1.08;
+ max-width:16ch;margin:0 auto 16px;
+ color:var(--text);
+}
+.hero h1 span{color:var(--brand)}
+.hero .sub{
+ font-size:1.12rem;color:var(--text-2);max-width:48ch;margin:0 auto 32px;line-height:1.75;
+}
+.hero .btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:40px}
+.hero .stats-row{
+ display:inline-flex;gap:32px;flex-wrap:wrap;justify-content:center;
+ padding:14px 24px;border:1px solid var(--border);border-radius:var(--r);
+ background:var(--bg);
+}
+.hero .stat{text-align:center}
+.hero .stat .num{display:block;font-size:1.25rem;font-weight:700;color:var(--text)}
+.hero .stat .label{font-size:12px;color:var(--text-3);margin-top:2px}
+
+/* ── Section ── */
+.sec{padding:80px 0}
+.sec.dim{background:var(--bg);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
+.sec-head{text-align:center;max-width:520px;margin:0 auto 48px}
+.sec-head .tag{
+ display:inline-block;margin-bottom:10px;padding:5px 12px;border-radius:999px;
+ background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
+}
+.sec-head h2{font-size:2rem;font-weight:800;letter-spacing:-.03em;line-height:1.2;margin-bottom:10px}
+.sec-head p{color:var(--text-3);font-size:15px}
+
+/* ── Feature grid ── */
+.g-feat{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
+.g-feat .card{
+ padding:28px 24px;background:var(--white);border:1px solid var(--border);
+ border-radius:var(--r);transition:.2s;
+}
+.g-feat .card:hover{border-color:#cbd5e1;box-shadow:0 4px 16px rgba(15,23,42,.04)}
+.g-feat .card .icon{
+ width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
+ background:var(--brand-soft);color:var(--brand);font-size:22px;margin-bottom:14px;
+}
+.g-feat .card h3{font-size:1rem;margin-bottom:6px}
+.g-feat .card p{color:var(--text-3);font-size:14px;line-height:1.6}
+
+/* ── Plans ── */
+.g-plan{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
+.g-plan .card{
+ background:var(--white);border:1px solid var(--border);border-radius:var(--r);
+ display:flex;flex-direction:column;transition:.2s;
+}
+.g-plan .card:hover{border-color:#cbd5e1;box-shadow:0 6px 24px rgba(15,23,42,.05)}
+.g-plan .card.pop{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
+.g-plan .card-top{padding:28px 24px;border-bottom:1px solid var(--border)}
+.g-plan .card-top .chip{
+ display:inline-block;padding:4px 10px;border-radius:999px;
+ background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:700;margin-bottom:10px;
+}
+.g-plan .card-top h3{font-size:1.2rem;letter-spacing:-.02em;margin-bottom:4px}
+.g-plan .card-top .desc{color:var(--text-3);font-size:14px;min-height:36px}
+.g-plan .card-body{padding:24px;display:flex;flex-direction:column;flex:1}
+.g-plan .price{margin-bottom:20px}
+.g-plan .price .num{font-size:2rem;font-weight:800;letter-spacing:-.03em}
+.g-plan .price .sub{color:var(--text-3);font-size:13px}
+.g-plan ul{list-style:none;display:grid;gap:10px;margin-bottom:24px;flex:1}
+.g-plan ul li{display:flex;gap:10px;font-size:14px;color:var(--text-2)}
+.g-plan ul li .mdi{color:var(--brand);font-size:17px;line-height:1.3;flex-shrink:0}
+.g-plan .card .btn{width:100%}
+
+.empty{
+ text-align:center;padding:64px 20px;border:1px dashed var(--border);border-radius:var(--r);color:var(--text-3);
+}
+.empty .mdi{font-size:48px;margin-bottom:10px}
+.more{margin-top:32px;text-align:center}
+
+/* ── CTA banner ── */
+.banner{
+ background:var(--brand);color:#fff;border-radius:var(--r);
+ padding:40px 48px;display:flex;align-items:center;justify-content:space-between;
+ gap:24px;flex-wrap:wrap;margin:0 0 80px;
+}
+.banner h2{font-size:1.4rem;font-weight:700;letter-spacing:-.02em;margin-bottom:6px}
+.banner p{color:rgba(255,255,255,.8);font-size:15px}
+.banner .btn-fill{background:#fff;color:var(--brand)}
+.banner .btn-fill:hover{background:rgba(255,255,255,.92)}
+
+/* ── Footer ── */
+.foot{border-top:1px solid var(--border);background:var(--bg);padding:28px 0;color:var(--text-3);font-size:13px;text-align:center}
+
+@media(max-width:860px){
+ .g-feat,.g-plan{grid-template-columns:1fr}
+ .hero{padding:64px 0 56px}
+ .banner{flex-direction:column;text-align:center;padding:32px 24px}
+}
+@media(max-width:540px){
+ .navbar .w{height:auto;padding:12px 0;flex-wrap:wrap;gap:10px}
+ .nav-links{width:100%;justify-content:flex-end}
+ .hero .btns{flex-direction:column;align-items:center}
+}
+</style>
+</head>
+<body>
+
+<header class="navbar">
+ <div class="w">
+ <a class="nav-brand" href="/">
+ <?php if ($logo): ?>
+ <img src="<?= htmlspecialchars($logo) ?>" alt="<?= htmlspecialchars($title) ?>">
+ <?php else: ?>
+ <span class="mark"><?= htmlspecialchars(mb_substr($title, 0, 1, 'UTF-8')) ?></span>
+ <?php endif; ?>
+ <?= htmlspecialchars($title) ?>
+ </a>
+ <nav class="nav-links">
+ <a href="<?= $url('/shop') ?>">套餐</a>
+ <?php if ($user): ?>
+ <a href="<?= $url('/shop/orders') ?>">订单</a>
+ <a href="<?= $url('/balance') ?>">余额</a>
+ <a class="btn btn-ghost" style="font-weight:600" href="<?= $url('/user') ?>">
+ <span class="mdi mdi-account-circle"></span> <?= htmlspecialchars($user['username']) ?>
+ </a>
+ <a class="btn btn-outline" href="<?= $url('/account/logout') ?>">退出</a>
+ <?php else: ?>
+ <a href="<?= $url('/account/login') ?>">登录</a>
+ <a class="btn btn-fill" href="<?= $url('/account/register') ?>">免费注册</a>
+ <?php endif; ?>
+ </nav>
+ </div>
+</header>
+
+<section class="hero">
+ <div class="w">
+ <div class="badge">
+ <span class="mdi mdi-lightning-bolt"></span> 高性能 · 即开即用 · 自动部署
+ </div>
+ <h1><?= htmlspecialchars($hero ?: $title) ?></h1>
+ <p class="sub">为企业与开发者打造的虚拟主机平台。全 SSD 存储、BGP 多线接入——支付完成后自动开通,分钟级上线。</p>
+ <div class="btns">
+ <a class="btn btn-fill btn-lg" href="<?= $url('/shop') ?>">
+ <span class="mdi mdi-package-variant-closed"></span> 查看全部套餐
+ </a>
+ <a class="btn btn-outline btn-lg" href="<?= $url($user ? '/shop/assets' : '/account/register') ?>">
+ <?= $user ? '<span class="mdi mdi-server"></span> 我的主机' : '免费注册' ?>
+ </a>
+ </div>
+ <div class="stats-row">
+ <?php foreach ([['99.9%','服务可用性'],['< 1 min','平均开通时间'],['7×24','技术支持']] as $s): ?>
+ <div class="stat"><span class="num"><?= $s[0] ?></span><span class="label"><?= $s[1] ?></span></div>
+ <?php endforeach; ?>
+ </div>
+ </div>
+</section>
+
+<section class="sec dim">
+ <div class="w">
+ <div class="sec-head">
+ <div class="tag">Features</div>
+ <h2>稳定交付,从开通开始</h2>
+ <p>不只是卖主机。我们把开通、运维、支持做成可预期的服务标准。</p>
+ </div>
+ <div class="g-feat">
+ <?php foreach ($features as $f): ?>
+ <div class="card">
+ <div class="icon"><span class="mdi <?= htmlspecialchars($f['icon']) ?>"></span></div>
+ <h3><?= htmlspecialchars($f['title']) ?></h3>
+ <p><?= htmlspecialchars($f['desc']) ?></p>
+ </div>
+ <?php endforeach; ?>
+ </div>
+ </div>
+</section>
+
+<section class="sec">
+ <div class="w">
+ <div class="sec-head">
+ <div class="tag">Pricing</div>
+ <h2>选择适合的套餐</h2>
+ <p>按需选择,随时升级。价格透明,开通简单。</p>
+ </div>
+ <?php if (empty($planCards)): ?>
+ <div class="empty">
+ <div class="mdi mdi-package-variant"></div>
+ <p>暂无可购买套餐,请联系管理员</p>
+ </div>
+ <?php else: ?>
+ <div class="g-plan">
+ <?php foreach (array_slice($planCards, 0, 3) as $i => $plan): ?>
+ <div class="card<?= $i === 1 ? ' pop' : '' ?>">
+ <div class="card-top">
+ <?php if ($i === 1): ?><span class="chip">推荐</span><?php endif; ?>
+ <h3><?= htmlspecialchars($plan['name']) ?></h3>
+ <div class="desc"><?= htmlspecialchars($plan['desc'] ?: '适合中小站点快速上线') ?></div>
+ </div>
+ <div class="card-body">
+ <div class="price">
+ <div class="num"><?= htmlspecialchars($plan['price']) ?></div>
+ <div class="sub">含基础资源与自动开通</div>
+ </div>
+ <ul>
+ <?php foreach ($plan['feats'] as $feat): ?>
+ <li><span class="mdi mdi-check-circle"></span><?= htmlspecialchars($feat) ?></li>
+ <?php endforeach; ?>
+ <?php if (empty($plan['feats'])): ?>
+ <li><span class="mdi mdi-check-circle"></span>高性能节点资源</li>
+ <li><span class="mdi mdi-check-circle"></span>一键开通部署</li>
+ <?php endif; ?>
+ </ul>
+ <a class="btn btn-fill" href="<?= $url('/shop/order/' . $plan['id']) ?>">立即购买</a>
+ </div>
+ </div>
+ <?php endforeach; ?>
+ </div>
+ <div class="more">
+ <a class="btn btn-outline btn-lg" href="<?= $url('/shop') ?>">查看全部套餐 <span class="mdi mdi-arrow-right"></span></a>
+ </div>
+ <?php endif; ?>
+ </div>
+</section>
+
+<section class="sec" style="padding-top:0">
+ <div class="w">
+ <div class="banner">
+ <div>
+ <h2>准备好开始了?</h2>
+ <p>注册账号,选择套餐,分钟级完成主机开通。</p>
+ </div>
+ <div style="display:flex;gap:10px;flex-wrap:wrap">
+ <a class="btn btn-fill btn-lg" href="<?= $url('/shop') ?>">浏览套餐</a>
+ <?php if (!$user): ?>
+ <a class="btn btn-outline btn-lg" style="border-color:rgba(255,255,255,.3);color:#fff" href="<?= $url('/account/register') ?>">创建账号</a>
+ <?php endif; ?>
+ </div>
+ </div>
+ </div>
+</section>
+
+<footer class="foot"><div class="w"><?= htmlspecialchars($footer) ?></div></footer>
+
+</body>
+</html>
diff --git a/app_plugins/shop_frontend/views/spa/index.html b/app_plugins/shop_frontend/views/spa/index.html
deleted file mode 100644
index 10b4c82..0000000
--- a/app_plugins/shop_frontend/views/spa/index.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html lang="zh-CN">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>MNBT 主机售卖</title>
- <link rel="icon" type="image/ico" href="">
-</head>
-<body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
-</body>
-</html>
diff --git a/app_plugins/shop_frontend/views/spa/package-lock.json b/app_plugins/shop_frontend/views/spa/package-lock.json
deleted file mode 100644
index 10f411d..0000000
--- a/app_plugins/shop_frontend/views/spa/package-lock.json
+++ /dev/null
@@ -1,2070 +0,0 @@
-{
- "name": "shop-frontend-spa",
- "version": "1.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "shop-frontend-spa",
- "version": "1.0.0",
- "dependencies": {
- "@mdi/font": "^7.4.47",
- "axios": "^1.7.0",
- "pinia": "^2.2.0",
- "vue": "^3.5.0",
- "vue-router": "^4.4.0",
- "vuetify": "^3.7.0"
- },
- "devDependencies": {
- "@vitejs/plugin-vue": "^5.1.0",
- "sass": "^1.77.0",
- "vite": "^5.4.0"
- }
- },
- "node_modules/@babel/helper-string-parser": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
- "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helper-validator-identifier": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
- "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/parser": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz",
- "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==",
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^7.29.7"
- },
- "bin": {
- "parser": "bin/babel-parser.js"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/@babel/types": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz",
- "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==",
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^7.29.7",
- "@babel/helper-validator-identifier": "^7.29.7"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@esbuild/aix-ppc64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
- "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "aix"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/android-arm": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
- "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/android-arm64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
- "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/android-x64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
- "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/darwin-arm64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
- "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/darwin-x64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
- "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/freebsd-arm64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
- "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/freebsd-x64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
- "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-arm": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
- "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-arm64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
- "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-ia32": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
- "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-loong64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
- "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-mips64el": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
- "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
- "cpu": [
- "mips64el"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-ppc64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
- "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-riscv64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
- "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-s390x": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
- "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-x64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
- "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/netbsd-x64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
- "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "netbsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/openbsd-x64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
- "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openbsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/sunos-x64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
- "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "sunos"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-arm64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
- "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-ia32": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
- "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-x64": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
- "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@jridgewell/sourcemap-codec": {
- "version": "1.5.5",
- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
- "license": "MIT"
- },
- "node_modules/@mdi/font": {
- "version": "7.4.47",
- "resolved": "https://registry.npmjs.org/@mdi/font/-/font-7.4.47.tgz",
- "integrity": "sha512-43MtGpd585SNzHZPcYowu/84Vz2a2g31TvPMTm9uTiCSWzaheQySUcSyUH/46fPnuPQWof2yd0pGBtzee/IQWw==",
- "license": "Apache-2.0"
- },
- "node_modules/@parcel/watcher": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz",
- "integrity": "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "detect-libc": "^2.0.3",
- "is-glob": "^4.0.3",
- "node-addon-api": "^7.0.0",
- "picomatch": "^4.0.3"
- },
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- },
- "optionalDependencies": {
- "@parcel/watcher-android-arm64": "2.5.6",
- "@parcel/watcher-darwin-arm64": "2.5.6",
- "@parcel/watcher-darwin-x64": "2.5.6",
- "@parcel/watcher-freebsd-x64": "2.5.6",
- "@parcel/watcher-linux-arm-glibc": "2.5.6",
- "@parcel/watcher-linux-arm-musl": "2.5.6",
- "@parcel/watcher-linux-arm64-glibc": "2.5.6",
- "@parcel/watcher-linux-arm64-musl": "2.5.6",
- "@parcel/watcher-linux-x64-glibc": "2.5.6",
- "@parcel/watcher-linux-x64-musl": "2.5.6",
- "@parcel/watcher-win32-arm64": "2.5.6",
- "@parcel/watcher-win32-ia32": "2.5.6",
- "@parcel/watcher-win32-x64": "2.5.6"
- }
- },
- "node_modules/@parcel/watcher-android-arm64": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.6.tgz",
- "integrity": "sha512-YQxSS34tPF/6ZG7r/Ih9xy+kP/WwediEUsqmtf0cuCV5TPPKw/PQHRhueUo6JdeFJaqV3pyjm0GdYjZotbRt/A==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-darwin-arm64": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.6.tgz",
- "integrity": "sha512-Z2ZdrnwyXvvvdtRHLmM4knydIdU9adO3D4n/0cVipF3rRiwP+3/sfzpAwA/qKFL6i1ModaabkU7IbpeMBgiVEA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-darwin-x64": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.6.tgz",
- "integrity": "sha512-HgvOf3W9dhithcwOWX9uDZyn1lW9R+7tPZ4sug+NGrGIo4Rk1hAXLEbcH1TQSqxts0NYXXlOWqVpvS1SFS4fRg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-freebsd-x64": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.6.tgz",
- "integrity": "sha512-vJVi8yd/qzJxEKHkeemh7w3YAn6RJCtYlE4HPMoVnCpIXEzSrxErBW5SJBgKLbXU3WdIpkjBTeUNtyBVn8TRng==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-linux-arm-glibc": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.6.tgz",
- "integrity": "sha512-9JiYfB6h6BgV50CCfasfLf/uvOcJskMSwcdH1PHH9rvS1IrNy8zad6IUVPVUfmXr+u+Km9IxcfMLzgdOudz9EQ==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-linux-arm-musl": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.6.tgz",
- "integrity": "sha512-Ve3gUCG57nuUUSyjBq/MAM0CzArtuIOxsBdQ+ftz6ho8n7s1i9E1Nmk/xmP323r2YL0SONs1EuwqBp2u1k5fxg==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-linux-arm64-glibc": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.6.tgz",
- "integrity": "sha512-f2g/DT3NhGPdBmMWYoxixqYr3v/UXcmLOYy16Bx0TM20Tchduwr4EaCbmxh1321TABqPGDpS8D/ggOTaljijOA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-linux-arm64-musl": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.6.tgz",
- "integrity": "sha512-qb6naMDGlbCwdhLj6hgoVKJl2odL34z2sqkC7Z6kzir8b5W65WYDpLB6R06KabvZdgoHI/zxke4b3zR0wAbDTA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-linux-x64-glibc": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz",
- "integrity": "sha512-kbT5wvNQlx7NaGjzPFu8nVIW1rWqV780O7ZtkjuWaPUgpv2NMFpjYERVi0UYj1msZNyCzGlaCWEtzc+exjMGbQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-linux-x64-musl": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.6.tgz",
- "integrity": "sha512-1JRFeC+h7RdXwldHzTsmdtYR/Ku8SylLgTU/reMuqdVD7CtLwf0VR1FqeprZ0eHQkO0vqsbvFLXUmYm/uNKJBg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-win32-arm64": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.6.tgz",
- "integrity": "sha512-3ukyebjc6eGlw9yRt678DxVF7rjXatWiHvTXqphZLvo7aC5NdEgFufVwjFfY51ijYEWpXbqF5jtrK275z52D4Q==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-win32-ia32": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.6.tgz",
- "integrity": "sha512-k35yLp1ZMwwee3Ez/pxBi5cf4AoBKYXj00CZ80jUz5h8prpiaQsiRPKQMxoLstNuqe2vR4RNPEAEcjEFzhEz/g==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-win32-x64": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.6.tgz",
- "integrity": "sha512-hbQlYcCq5dlAX9Qx+kFb0FHue6vbjlf0FrNzSKdYK2APUf7tGfGxQCk2ihEREmbR6ZMc0MVAD5RIX/41gpUzTw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@rollup/rollup-android-arm-eabi": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz",
- "integrity": "sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ]
- },
- "node_modules/@rollup/rollup-android-arm64": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.2.tgz",
- "integrity": "sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ]
- },
- "node_modules/@rollup/rollup-darwin-arm64": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.2.tgz",
- "integrity": "sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ]
- },
- "node_modules/@rollup/rollup-darwin-x64": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.2.tgz",
- "integrity": "sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ]
- },
- "node_modules/@rollup/rollup-freebsd-arm64": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.2.tgz",
- "integrity": "sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ]
- },
- "node_modules/@rollup/rollup-freebsd-x64": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.2.tgz",
- "integrity": "sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ]
- },
- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.2.tgz",
- "integrity": "sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-arm-musleabihf": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.2.tgz",
- "integrity": "sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-arm64-gnu": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.2.tgz",
- "integrity": "sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-arm64-musl": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.2.tgz",
- "integrity": "sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-loong64-gnu": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.2.tgz",
- "integrity": "sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-loong64-musl": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.2.tgz",
- "integrity": "sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-ppc64-gnu": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.2.tgz",
- "integrity": "sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-ppc64-musl": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.2.tgz",
- "integrity": "sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-riscv64-gnu": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.2.tgz",
- "integrity": "sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-riscv64-musl": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.2.tgz",
- "integrity": "sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-s390x-gnu": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.2.tgz",
- "integrity": "sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-x64-gnu": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.2.tgz",
- "integrity": "sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-x64-musl": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.2.tgz",
- "integrity": "sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-openbsd-x64": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.2.tgz",
- "integrity": "sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openbsd"
- ]
- },
- "node_modules/@rollup/rollup-openharmony-arm64": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.2.tgz",
- "integrity": "sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openharmony"
- ]
- },
- "node_modules/@rollup/rollup-win32-arm64-msvc": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.2.tgz",
- "integrity": "sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
- },
- "node_modules/@rollup/rollup-win32-ia32-msvc": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.2.tgz",
- "integrity": "sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
- },
- "node_modules/@rollup/rollup-win32-x64-gnu": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.2.tgz",
- "integrity": "sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
- },
- "node_modules/@rollup/rollup-win32-x64-msvc": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.2.tgz",
- "integrity": "sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
- },
- "node_modules/@types/estree": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
- "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@vitejs/plugin-vue": {
- "version": "5.2.4",
- "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz",
- "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^18.0.0 || >=20.0.0"
- },
- "peerDependencies": {
- "vite": "^5.0.0 || ^6.0.0",
- "vue": "^3.2.25"
- }
- },
- "node_modules/@vue/compiler-core": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.40.tgz",
- "integrity": "sha512-39E8IgOhTbVDnoJFMKc2DvYnypcZwUqgUhQkccva/0m6FUwtIKSGV7n1hpVmYcFaoRAwf9pBcwnKlCEsN63ZEQ==",
- "license": "MIT",
- "dependencies": {
- "@babel/parser": "^7.29.7",
- "@vue/shared": "3.5.40",
- "entities": "^7.0.1",
- "estree-walker": "^2.0.2",
- "source-map-js": "^1.2.1"
- }
- },
- "node_modules/@vue/compiler-dom": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.40.tgz",
- "integrity": "sha512-pwkx4vqlqOspFstrcmzwkKLePVMD3PT65imRzLhanU2V1Fj4K13g6OXjanOyzw3aTAuRk84BOmY8f3rEHqPaVA==",
- "license": "MIT",
- "dependencies": {
- "@vue/compiler-core": "3.5.40",
- "@vue/shared": "3.5.40"
- }
- },
- "node_modules/@vue/compiler-sfc": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.40.tgz",
- "integrity": "sha512-gIf497P4kpuALcvs5n3AEg1Vdn0pSY4XbjASIfHNYF1/MP3T2Mf2STERTubysBxCRxzJGJYtF/O7vwJrxFB3Vw==",
- "license": "MIT",
- "dependencies": {
- "@babel/parser": "^7.29.7",
- "@vue/compiler-core": "3.5.40",
- "@vue/compiler-dom": "3.5.40",
- "@vue/compiler-ssr": "3.5.40",
- "@vue/shared": "3.5.40",
- "estree-walker": "^2.0.2",
- "magic-string": "^0.30.21",
- "postcss": "^8.5.19",
- "source-map-js": "^1.2.1"
- }
- },
- "node_modules/@vue/compiler-ssr": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.40.tgz",
- "integrity": "sha512-rrE5xiXG663+vHCHa3J9p2z5OcBRjXmoqenprJxAFQxg5pSshzeBiCE6pu46axapRJ2Adk0YDA2BRZVjiHXnhg==",
- "license": "MIT",
- "dependencies": {
- "@vue/compiler-dom": "3.5.40",
- "@vue/shared": "3.5.40"
- }
- },
- "node_modules/@vue/devtools-api": {
- "version": "6.6.4",
- "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz",
- "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==",
- "license": "MIT"
- },
- "node_modules/@vue/reactivity": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.40.tgz",
- "integrity": "sha512-B7ot9UlUZOi1zbq61/LvE88ZLTV8IlajTdiZTAEiDQgrnIMIZoPr9kGw0Zw46ObW62O9+H/Be3kMbfb7kYPQZA==",
- "license": "MIT",
- "dependencies": {
- "@vue/shared": "3.5.40"
- }
- },
- "node_modules/@vue/runtime-core": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.40.tgz",
- "integrity": "sha512-KAZLweuZ6uUJPK1PMSQPgBU5gCjgrrfjUhSglmU9NhH+Zjepa8cnwSydPWDWHDwOgY4g3VcZ+PljbiHlURNCbw==",
- "license": "MIT",
- "dependencies": {
- "@vue/reactivity": "3.5.40",
- "@vue/shared": "3.5.40"
- }
- },
- "node_modules/@vue/runtime-dom": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.40.tgz",
- "integrity": "sha512-ZfrX8ssZQds900L9pr8AuK05ddnMsR4MPMZr8cPN9GoqoPWcXLhjvvbIA2SMv+7a97sJ1vv9pj/zxK0Cq/eEFQ==",
- "license": "MIT",
- "dependencies": {
- "@vue/reactivity": "3.5.40",
- "@vue/runtime-core": "3.5.40",
- "@vue/shared": "3.5.40",
- "csstype": "^3.2.3"
- }
- },
- "node_modules/@vue/server-renderer": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.40.tgz",
- "integrity": "sha512-XNJym9WpevhTVt1HuwOrCRJ5Q+9z4BjTMrDtjTrvx74SmUll8spNTw6whWJa9mEkO4PKn5TihI/bm/8ds2QVJw==",
- "license": "MIT",
- "dependencies": {
- "@vue/compiler-ssr": "3.5.40",
- "@vue/runtime-dom": "3.5.40",
- "@vue/shared": "3.5.40"
- }
- },
- "node_modules/@vue/shared": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.40.tgz",
- "integrity": "sha512-WxnBtruIqOoV3rA4jeKDWzrYI5h7Cp4+pjwDi8kWGHz+IslhiN+wguLVVhtv2l8VoU02rzDCVfDjgCl1lNpZVg==",
- "license": "MIT"
- },
- "node_modules/agent-base": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
- "license": "MIT",
- "dependencies": {
- "debug": "4"
- },
- "engines": {
- "node": ">= 6.0.0"
- }
- },
- "node_modules/asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
- "license": "MIT"
- },
- "node_modules/axios": {
- "version": "1.18.1",
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.18.1.tgz",
- "integrity": "sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==",
- "license": "MIT",
- "dependencies": {
- "follow-redirects": "^1.16.0",
- "form-data": "^4.0.5",
- "https-proxy-agent": "^5.0.1",
- "proxy-from-env": "^2.1.0"
- }
- },
- "node_modules/call-bind-apply-helpers": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
- "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/chokidar": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz",
- "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "readdirp": "^5.0.0"
- },
- "engines": {
- "node": ">= 20.19.0"
- },
- "funding": {
- "url": "https://paulmillr.com/funding/"
- }
- },
- "node_modules/combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "license": "MIT",
- "dependencies": {
- "delayed-stream": "~1.0.0"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/csstype": {
- "version": "3.2.3",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
- "license": "MIT"
- },
- "node_modules/debug": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
- "license": "MIT",
- "dependencies": {
- "ms": "^2.1.3"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
- "license": "MIT",
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/detect-libc": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/dunder-proto": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
- "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
- "license": "MIT",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.1",
- "es-errors": "^1.3.0",
- "gopd": "^1.2.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/entities": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz",
- "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=0.12"
- },
- "funding": {
- "url": "https://github.com/fb55/entities?sponsor=1"
- }
- },
- "node_modules/es-define-property": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/es-errors": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/es-object-atoms": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
- "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/es-set-tostringtag": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
- "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.6",
- "has-tostringtag": "^1.0.2",
- "hasown": "^2.0.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/esbuild": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
- "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "bin": {
- "esbuild": "bin/esbuild"
- },
- "engines": {
- "node": ">=12"
- },
- "optionalDependencies": {
- "@esbuild/aix-ppc64": "0.21.5",
- "@esbuild/android-arm": "0.21.5",
- "@esbuild/android-arm64": "0.21.5",
- "@esbuild/android-x64": "0.21.5",
- "@esbuild/darwin-arm64": "0.21.5",
- "@esbuild/darwin-x64": "0.21.5",
- "@esbuild/freebsd-arm64": "0.21.5",
- "@esbuild/freebsd-x64": "0.21.5",
- "@esbuild/linux-arm": "0.21.5",
- "@esbuild/linux-arm64": "0.21.5",
- "@esbuild/linux-ia32": "0.21.5",
- "@esbuild/linux-loong64": "0.21.5",
- "@esbuild/linux-mips64el": "0.21.5",
- "@esbuild/linux-ppc64": "0.21.5",
- "@esbuild/linux-riscv64": "0.21.5",
- "@esbuild/linux-s390x": "0.21.5",
- "@esbuild/linux-x64": "0.21.5",
- "@esbuild/netbsd-x64": "0.21.5",
- "@esbuild/openbsd-x64": "0.21.5",
- "@esbuild/sunos-x64": "0.21.5",
- "@esbuild/win32-arm64": "0.21.5",
- "@esbuild/win32-ia32": "0.21.5",
- "@esbuild/win32-x64": "0.21.5"
- }
- },
- "node_modules/estree-walker": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
- "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
- "license": "MIT"
- },
- "node_modules/follow-redirects": {
- "version": "1.16.0",
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",
- "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",
- "funding": [
- {
- "type": "individual",
- "url": "https://github.com/sponsors/RubenVerborgh"
- }
- ],
- "license": "MIT",
- "engines": {
- "node": ">=4.0"
- },
- "peerDependenciesMeta": {
- "debug": {
- "optional": true
- }
- }
- },
- "node_modules/form-data": {
- "version": "4.0.6",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",
- "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",
- "license": "MIT",
- "dependencies": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.8",
- "es-set-tostringtag": "^2.1.0",
- "hasown": "^2.0.4",
- "mime-types": "^2.1.35"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/fsevents": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
- "node_modules/function-bind": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/get-intrinsic": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
- "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
- "license": "MIT",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.2",
- "es-define-property": "^1.0.1",
- "es-errors": "^1.3.0",
- "es-object-atoms": "^1.1.1",
- "function-bind": "^1.1.2",
- "get-proto": "^1.0.1",
- "gopd": "^1.2.0",
- "has-symbols": "^1.1.0",
- "hasown": "^2.0.2",
- "math-intrinsics": "^1.1.0"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/get-proto": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
- "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
- "license": "MIT",
- "dependencies": {
- "dunder-proto": "^1.0.1",
- "es-object-atoms": "^1.0.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/gopd": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has-symbols": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
- "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has-tostringtag": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
- "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
- "license": "MIT",
- "dependencies": {
- "has-symbols": "^1.0.3"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/hasown": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
- "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
- "license": "MIT",
- "dependencies": {
- "function-bind": "^1.1.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/https-proxy-agent": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
- "license": "MIT",
- "dependencies": {
- "agent-base": "6",
- "debug": "4"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/immutable": {
- "version": "5.1.9",
- "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.9.tgz",
- "integrity": "sha512-m8nVez3rwrgmWxtLMt1ZYXB2Lv7OKYn/disyxAlSDYAlKSlFoPPfIAmAM/M5xqL4m4C/wAPw7S2/CNaUii1Hxg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-glob": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "is-extglob": "^2.1.1"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/magic-string": {
- "version": "0.30.21",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
- "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
- "license": "MIT",
- "dependencies": {
- "@jridgewell/sourcemap-codec": "^1.5.5"
- }
- },
- "node_modules/math-intrinsics": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
- "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/mime-db": {
- "version": "1.52.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/mime-types": {
- "version": "2.1.35",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
- "license": "MIT",
- "dependencies": {
- "mime-db": "1.52.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/ms": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
- "license": "MIT"
- },
- "node_modules/nanoid": {
- "version": "3.3.16",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz",
- "integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
- "engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
- }
- },
- "node_modules/node-addon-api": {
- "version": "7.1.1",
- "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz",
- "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/picocolors": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
- "license": "ISC"
- },
- "node_modules/picomatch": {
- "version": "4.0.5",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",
- "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
- "node_modules/pinia": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/pinia/-/pinia-2.3.1.tgz",
- "integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==",
- "license": "MIT",
- "dependencies": {
- "@vue/devtools-api": "^6.6.3",
- "vue-demi": "^0.14.10"
- },
- "funding": {
- "url": "https://github.com/sponsors/posva"
- },
- "peerDependencies": {
- "typescript": ">=4.4.4",
- "vue": "^2.7.0 || ^3.5.11"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/postcss": {
- "version": "8.5.19",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.19.tgz",
- "integrity": "sha512-Mz8SaolMd8nB+G13WkORcxQKHZ/NE4xXevtkJHVuG+guo9/wYKlIMTKAqGdEmYOXR2ijPjTYNHssizdaVSUNdQ==",
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/postcss"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "nanoid": "^3.3.12",
- "picocolors": "^1.1.1",
- "source-map-js": "^1.2.1"
- },
- "engines": {
- "node": "^10 || ^12 || >=14"
- }
- },
- "node_modules/proxy-from-env": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
- "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",
- "license": "MIT",
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/readdirp": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.0.0.tgz",
- "integrity": "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 20.19.0"
- },
- "funding": {
- "type": "individual",
- "url": "https://paulmillr.com/funding/"
- }
- },
- "node_modules/rollup": {
- "version": "4.62.2",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz",
- "integrity": "sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/estree": "1.0.9"
- },
- "bin": {
- "rollup": "dist/bin/rollup"
- },
- "engines": {
- "node": ">=18.0.0",
- "npm": ">=8.0.0"
- },
- "optionalDependencies": {
- "@rollup/rollup-android-arm-eabi": "4.62.2",
- "@rollup/rollup-android-arm64": "4.62.2",
- "@rollup/rollup-darwin-arm64": "4.62.2",
- "@rollup/rollup-darwin-x64": "4.62.2",
- "@rollup/rollup-freebsd-arm64": "4.62.2",
- "@rollup/rollup-freebsd-x64": "4.62.2",
- "@rollup/rollup-linux-arm-gnueabihf": "4.62.2",
- "@rollup/rollup-linux-arm-musleabihf": "4.62.2",
- "@rollup/rollup-linux-arm64-gnu": "4.62.2",
- "@rollup/rollup-linux-arm64-musl": "4.62.2",
- "@rollup/rollup-linux-loong64-gnu": "4.62.2",
- "@rollup/rollup-linux-loong64-musl": "4.62.2",
- "@rollup/rollup-linux-ppc64-gnu": "4.62.2",
- "@rollup/rollup-linux-ppc64-musl": "4.62.2",
- "@rollup/rollup-linux-riscv64-gnu": "4.62.2",
- "@rollup/rollup-linux-riscv64-musl": "4.62.2",
- "@rollup/rollup-linux-s390x-gnu": "4.62.2",
- "@rollup/rollup-linux-x64-gnu": "4.62.2",
- "@rollup/rollup-linux-x64-musl": "4.62.2",
- "@rollup/rollup-openbsd-x64": "4.62.2",
- "@rollup/rollup-openharmony-arm64": "4.62.2",
- "@rollup/rollup-win32-arm64-msvc": "4.62.2",
- "@rollup/rollup-win32-ia32-msvc": "4.62.2",
- "@rollup/rollup-win32-x64-gnu": "4.62.2",
- "@rollup/rollup-win32-x64-msvc": "4.62.2",
- "fsevents": "~2.3.2"
- }
- },
- "node_modules/sass": {
- "version": "1.101.0",
- "resolved": "https://registry.npmjs.org/sass/-/sass-1.101.0.tgz",
- "integrity": "sha512-OL3GoQyoUdDt843DpVmDO6y2k1sc5IhUDSpu8XucEI+35neq5QivZ1iuegnpraEVTJXlQGK1gl27zKcTLEPbQw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "chokidar": "^5.0.0",
- "immutable": "^5.1.5",
- "source-map-js": ">=0.6.2 <2.0.0"
- },
- "bin": {
- "sass": "sass.js"
- },
- "engines": {
- "node": ">=20.19.0"
- },
- "optionalDependencies": {
- "@parcel/watcher": "^2.4.1"
- }
- },
- "node_modules/source-map-js": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
- "license": "BSD-3-Clause",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/vite": {
- "version": "5.4.21",
- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
- "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "esbuild": "^0.21.3",
- "postcss": "^8.4.43",
- "rollup": "^4.20.0"
- },
- "bin": {
- "vite": "bin/vite.js"
- },
- "engines": {
- "node": "^18.0.0 || >=20.0.0"
- },
- "funding": {
- "url": "https://github.com/vitejs/vite?sponsor=1"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.3"
- },
- "peerDependencies": {
- "@types/node": "^18.0.0 || >=20.0.0",
- "less": "*",
- "lightningcss": "^1.21.0",
- "sass": "*",
- "sass-embedded": "*",
- "stylus": "*",
- "sugarss": "*",
- "terser": "^5.4.0"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- },
- "less": {
- "optional": true
- },
- "lightningcss": {
- "optional": true
- },
- "sass": {
- "optional": true
- },
- "sass-embedded": {
- "optional": true
- },
- "stylus": {
- "optional": true
- },
- "sugarss": {
- "optional": true
- },
- "terser": {
- "optional": true
- }
- }
- },
- "node_modules/vue": {
- "version": "3.5.40",
- "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.40.tgz",
- "integrity": "sha512-+8PJ4SJXdn/cHGImF4CKdxlWHIN5Dkt7DoufRREM6h6uVCx2m7QxgcEQmmzyOK8A9mcafg7sFbJFYsdFVubTig==",
- "license": "MIT",
- "dependencies": {
- "@vue/compiler-dom": "3.5.40",
- "@vue/compiler-sfc": "3.5.40",
- "@vue/runtime-dom": "3.5.40",
- "@vue/server-renderer": "3.5.40",
- "@vue/shared": "3.5.40"
- },
- "peerDependencies": {
- "typescript": "*"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/vue-demi": {
- "version": "0.14.10",
- "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz",
- "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==",
- "hasInstallScript": true,
- "license": "MIT",
- "bin": {
- "vue-demi-fix": "bin/vue-demi-fix.js",
- "vue-demi-switch": "bin/vue-demi-switch.js"
- },
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/antfu"
- },
- "peerDependencies": {
- "@vue/composition-api": "^1.0.0-rc.1",
- "vue": "^3.0.0-0 || ^2.6.0"
- },
- "peerDependenciesMeta": {
- "@vue/composition-api": {
- "optional": true
- }
- }
- },
- "node_modules/vue-router": {
- "version": "4.6.4",
- "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.4.tgz",
- "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==",
- "license": "MIT",
- "dependencies": {
- "@vue/devtools-api": "^6.6.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/posva"
- },
- "peerDependencies": {
- "vue": "^3.5.0"
- }
- },
- "node_modules/vuetify": {
- "version": "3.12.10",
- "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-3.12.10.tgz",
- "integrity": "sha512-6u/sWsIoUqWap3FxaIXZ/JObN/E2Z/BWAaliHh3GEl3Ik162zkpcIFYYLTnQiJ8PcyvMSFr+Lzyz7VoERob7JA==",
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/johnleider"
- },
- "peerDependencies": {
- "typescript": ">=4.7",
- "vite-plugin-vuetify": ">=2.1.0",
- "vue": "^3.5.0",
- "webpack-plugin-vuetify": ">=3.1.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- },
- "vite-plugin-vuetify": {
- "optional": true
- },
- "webpack-plugin-vuetify": {
- "optional": true
- }
- }
- }
- }
-}
diff --git a/app_plugins/shop_frontend/views/spa/package.json b/app_plugins/shop_frontend/views/spa/package.json
deleted file mode 100644
index c4f19dc..0000000
--- a/app_plugins/shop_frontend/views/spa/package.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "shop-frontend-spa",
- "private": true,
- "version": "1.0.0",
- "type": "module",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview"
- },
- "dependencies": {
- "vue": "^3.5.0",
- "vue-router": "^4.4.0",
- "vuetify": "^3.7.0",
- "pinia": "^2.2.0",
- "axios": "^1.7.0",
- "@mdi/font": "^7.4.47"
- },
- "devDependencies": {
- "@vitejs/plugin-vue": "^5.1.0",
- "vite": "^5.4.0",
- "sass": "^1.77.0"
- }
-}
diff --git a/app_plugins/shop_frontend/views/spa/src/App.vue b/app_plugins/shop_frontend/views/spa/src/App.vue
deleted file mode 100644
index 21ad10a..0000000
--- a/app_plugins/shop_frontend/views/spa/src/App.vue
+++ /dev/null
@@ -1,14 +0,0 @@
-<template>
- <v-app>
- <AppHeader />
- <v-main>
- <router-view />
- </v-main>
- <AppFooter v-if="!$route.meta.guest" />
- </v-app>
-</template>
-
-<script setup>
-import AppHeader from './components/AppHeader.vue';
-import AppFooter from './components/AppFooter.vue';
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/api/index.js b/app_plugins/shop_frontend/views/spa/src/api/index.js
deleted file mode 100644
index 21c0bc6..0000000
--- a/app_plugins/shop_frontend/views/spa/src/api/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import axios from 'axios';
-
-const api = axios.create({
- baseURL: '/shop_api/',
- timeout: 15000,
-});
-
-export default api;
diff --git a/app_plugins/shop_frontend/views/spa/src/components/AppFooter.vue b/app_plugins/shop_frontend/views/spa/src/components/AppFooter.vue
deleted file mode 100644
index ca8e020..0000000
--- a/app_plugins/shop_frontend/views/spa/src/components/AppFooter.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-<template>
- <v-footer app class="bg-grey-lighten-1">
- <v-container class="text-center text-caption text-medium-emphasis">
- © 2026 MNBT Hosting. All rights reserved.
- </v-container>
- </v-footer>
-</template>
diff --git a/app_plugins/shop_frontend/views/spa/src/components/AppHeader.vue b/app_plugins/shop_frontend/views/spa/src/components/AppHeader.vue
deleted file mode 100644
index 3c7553f..0000000
--- a/app_plugins/shop_frontend/views/spa/src/components/AppHeader.vue
+++ /dev/null
@@ -1,43 +0,0 @@
-<template>
- <v-app-bar app elevation="1" color="white">
- <v-container class="d-flex align-center">
- <v-app-bar-title>
- <a href="/" class="text-decoration-none" style="color: inherit; display: flex; align-items: center; gap: 8px;">
- <v-avatar v-if="opts.logo" size="32"><v-img :src="opts.logo" cover /></v-avatar>
- <span class="text-h6 font-weight-bold">{{ opts.title }}</span>
- </a>
- </v-app-bar-title>
- <v-spacer />
- <v-btn variant="text" to="/">首页</v-btn>
- <v-btn variant="text" to="/shop">套餐</v-btn>
- <template v-if="user.isLogin">
- <v-btn variant="text" prepend-icon="mdi-wallet" @click="$router.push('/balance')">余额</v-btn>
- <v-menu>
- <template #activator="{ props }"><v-btn icon v-bind="props"><v-icon>mdi-account-circle</v-icon></v-btn></template>
- <v-list density="compact">
- <v-list-item prepend-icon="mdi-view-dashboard" to="/dashboard" title="我的主机" />
- <v-list-item prepend-icon="mdi-receipt" to="/orders" title="订单" />
- <v-list-item prepend-icon="mdi-account-edit" to="/profile" title="个人信息" />
- <v-divider />
- <v-list-item prepend-icon="mdi-logout" title="退出" @click="doLogout" />
- </v-list>
- </v-menu>
- </template>
- <template v-else>
- <v-btn variant="outlined" to="/login" class="mr-2">登录</v-btn>
- <v-btn color="primary" to="/register">注册</v-btn>
- </template>
- </v-container>
- </v-app-bar>
-</template>
-
-<script setup>
-import { useUserStore } from '../stores/user';
-import { useRouter } from 'vue-router';
-
-const user = useUserStore();
-const router = useRouter();
-const opts = { title: 'MNBT 主机售卖', logo: '' };
-
-async function doLogout() { await user.logout(); router.push('/'); }
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/components/PlanCard.vue b/app_plugins/shop_frontend/views/spa/src/components/PlanCard.vue
deleted file mode 100644
index 89dffa8..0000000
--- a/app_plugins/shop_frontend/views/spa/src/components/PlanCard.vue
+++ /dev/null
@@ -1,27 +0,0 @@
-<template>
- <v-card hover @click="$router.push('/shop/' + plan.id)" class="cursor-pointer h-100">
- <v-card-item>
- <v-card-title>{{ plan.name }}
- <v-chip size="small" color="primary" variant="tonal" class="ml-2">{{ plan.spec_type == 1 ? 'CDN' : '虚拟主机' }}</v-chip>
- </v-card-title>
- <v-card-text class="text-body-2 text-medium-emphasis">{{ plan.description }}</v-card-text>
- <v-divider class="my-2" />
- <v-row dense class="text-caption px-4">
- <v-col cols="6"><v-icon size="14">mdi-harddisk</v-icon> {{ plan.spec_web }} MB</v-col>
- <v-col cols="6"><v-icon size="14">mdi-database</v-icon> {{ plan.spec_sql }} MB</v-col>
- <v-col cols="6"><v-icon size="14">mdi-swap-horizontal</v-icon> {{ plan.spec_flow > 0 ? plan.spec_flow + 'G' : '不限' }}</v-col>
- <v-col cols="6"><v-icon size="14">mdi-web</v-icon> {{ plan.spec_domain }} 域名</v-col>
- </v-row>
- </v-card-item>
- <v-card-actions class="px-4 pb-3">
- <span class="text-h6 font-weight-bold text-primary">¥{{ (plan.price_month_cents / 100).toFixed(2) }}</span>
- <span class="text-caption text-medium-emphasis">/月</span>
- <v-spacer />
- <v-btn color="primary" size="small">购买</v-btn>
- </v-card-actions>
- </v-card>
-</template>
-
-<script setup>
-defineProps({ plan: Object });
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/main.js b/app_plugins/shop_frontend/views/spa/src/main.js
deleted file mode 100644
index ab4eaf4..0000000
--- a/app_plugins/shop_frontend/views/spa/src/main.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import { createApp } from 'vue';
-import { createPinia } from 'pinia';
-import { createVuetify } from 'vuetify';
-import App from './App.vue';
-import router from './router';
-import 'vuetify/styles';
-import '@mdi/font/css/materialdesignicons.css';
-
-const app = createApp(App);
-app.use(createPinia());
-app.use(router);
-app.use(createVuetify({
- theme: { defaultTheme: 'light' },
-}));
-app.mount('#app');
diff --git a/app_plugins/shop_frontend/views/spa/src/router/index.js b/app_plugins/shop_frontend/views/spa/src/router/index.js
deleted file mode 100644
index 7a43123..0000000
--- a/app_plugins/shop_frontend/views/spa/src/router/index.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import { createRouter, createWebHistory } from 'vue-router';
-import { useUserStore } from '../stores/user';
-
-const routes = [
- { path: '/', component: () => import('../views/HomePage.vue'), meta: { public: true } },
- { path: '/shop', component: () => import('../views/ShopPage.vue'), meta: { public: true } },
- { path: '/shop/:id', component: () => import('../views/PlanDetail.vue'), meta: { public: true } },
- { path: '/login', component: () => import('../views/LoginPage.vue'), meta: { guest: true } },
- { path: '/register', component: () => import('../views/RegisterPage.vue'), meta: { guest: true } },
- { path: '/dashboard', component: () => import('../views/DashboardPage.vue') },
- { path: '/orders', component: () => import('../views/OrdersPage.vue') },
- { path: '/balance', component: () => import('../views/BalancePage.vue') },
- { path: '/profile', component: () => import('../views/ProfilePage.vue') },
-];
-
-const router = createRouter({ history: createWebHistory(), routes });
-
-router.beforeEach(async (to, from, next) => {
- const user = useUserStore();
- if (!user.loaded) await user.fetch();
- if (to.meta.guest && user.isLogin) return next('/dashboard');
- if (!to.meta.public && !user.isLogin) return next('/login');
- next();
-});
-
-export default router;
diff --git a/app_plugins/shop_frontend/views/spa/src/stores/user.js b/app_plugins/shop_frontend/views/spa/src/stores/user.js
deleted file mode 100644
index 5dd33a6..0000000
--- a/app_plugins/shop_frontend/views/spa/src/stores/user.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import { defineStore } from 'pinia';
-import api from '../api';
-
-export const useUserStore = defineStore('user', {
- state: () => ({ user: null, loaded: false }),
- getters: {
- isLogin: (s) => !!s.user,
- },
- actions: {
- async fetch() {
- try { const r = await api.get('user'); this.user = r.data.user; } catch (e) { this.user = null; }
- this.loaded = true;
- },
- async login(u, p) {
- const r = await api.post('login', { username: u, password: p });
- if (r.data.redirect) { await this.fetch(); return true; }
- throw new Error(r.data.code || '登录失败');
- },
- async register(d) {
- const r = await api.post('register', d);
- if (r.data.redirect) { await this.fetch(); return true; }
- throw new Error(r.data.code || '注册失败');
- },
- async logout() { await api.post('logout'); this.user = null; },
- },
-});
diff --git a/app_plugins/shop_frontend/views/spa/src/views/BalancePage.vue b/app_plugins/shop_frontend/views/spa/src/views/BalancePage.vue
deleted file mode 100644
index 2e34e45..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/BalancePage.vue
+++ /dev/null
@@ -1,55 +0,0 @@
-<template>
- <v-container class="py-8">
- <v-card>
- <v-card-item><v-card-title>我的余额</v-card-title></v-card-item>
- <v-card-text>
- <div class="text-center my-4"><span class="text-h2 font-weight-bold text-primary">¥{{ (balance / 100).toFixed(2) }}</span></div>
- <v-btn color="primary" block size="large" @click="showRecharge = !showRecharge">充值</v-btn>
- <v-expand-transition>
- <v-card v-if="showRecharge" variant="outlined" class="mt-4 pa-4">
- <v-text-field v-model.number="amount" label="充值金额" type="number" min="1" max="50000" variant="outlined" density="compact" />
- <div class="d-flex gap-2 mb-3">
- <v-btn v-for="a in [10,50,100,500]" :key="a" size="small" variant="outlined" @click="amount = a">{{ a }}元</v-btn>
- </div>
- <v-btn color="primary" block @click="recharge" :loading="loading">立即充值</v-btn>
- </v-card>
- </v-expand-transition>
- </v-card-text>
- </v-card>
-
- <v-card class="mt-6">
- <v-card-item><v-card-title>交易记录</v-card-title></v-card-item>
- <v-table>
- <thead><tr><th>时间</th><th>类型</th><th>金额</th><th>备注</th></tr></thead>
- <tbody>
- <tr v-for="l in logs" :key="l.id">
- <td>{{ fmtDate(l.created_at) }}</td><td>{{ tl[l.type] || l.type }}</td>
- <td :class="l.amount >= 0 ? 'text-success' : 'text-error'">{{ l.amount >= 0 ? '+' : '' }}{{ Math.abs(l.amount / 100).toFixed(2) }}</td>
- <td>{{ l.remark || '-' }}</td>
- </tr>
- </tbody>
- </v-table>
- </v-card>
- </v-container>
-</template>
-
-<script setup>
-import { ref, onMounted } from 'vue';
-import api from '../api';
-const balance = ref(0); const logs = ref([]); const amount = ref(10);
-const showRecharge = ref(false); const loading = ref(false);
-const tl = { recharge: '充值', consume: '消费', refund: '退款', adjust: '调整' };
-function fmtDate(d) { if (!d) return '-'; try { return new Date(d).toLocaleString('zh-CN'); } catch (e) { return d; } }
-
-async function fetch() {
- try { const r = await api.get('balance'); balance.value = r.data.balance_cents || 0; logs.value = r.data.logs || []; } catch (e) {}
-}
-onMounted(fetch);
-
-async function recharge() {
- loading.value = true;
- try { const r = await api.post('recharge', { amount: amount.value }); if (r.data.html) { document.open(); document.write(r.data.html); document.close(); } }
- catch (e) {}
- loading.value = false;
-}
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/views/DashboardPage.vue b/app_plugins/shop_frontend/views/spa/src/views/DashboardPage.vue
deleted file mode 100644
index c5c3653..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/DashboardPage.vue
+++ /dev/null
@@ -1,27 +0,0 @@
-<template>
- <v-container class="py-8">
- <h1 class="text-h4 font-weight-bold mb-4">我的主机</h1>
- <v-card v-if="!assets.length" class="pa-8 text-center">
- <p class="mb-4">暂无开通的主机</p>
- <v-btn color="primary" to="/shop">去购买</v-btn>
- </v-card>
- <v-table v-else>
- <thead><tr><th>套餐</th><th>主机账号</th><th>节点</th><th>开通时间</th><th>到期时间</th><th>状态</th></tr></thead>
- <tbody>
- <tr v-for="a in assets" :key="a.id">
- <td>{{ a.plan_name }}</td><td>{{ a.host_user || '-' }}</td><td>{{ a.ssbt || '-' }}</td>
- <td>{{ fmtDate(a.created_at) }}</td><td>{{ fmtDate(a.expire_at) }}</td>
- <td><v-chip size="small" :color="a.status==='active'?'success':'error'">{{ a.status==='active'?'正常':'已到期' }}</v-chip></td>
- </tr>
- </tbody>
- </v-table>
- </v-container>
-</template>
-
-<script setup>
-import { ref, onMounted } from 'vue';
-import api from '../api';
-const assets = ref([]);
-function fmtDate(d) { if (!d) return '-'; try { return new Date(d).toLocaleString('zh-CN'); } catch (e) { return d; } }
-onMounted(async () => { try { const r = await api.get('assets'); assets.value = r.data.assets || []; } catch (e) {} });
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/views/HomePage.vue b/app_plugins/shop_frontend/views/spa/src/views/HomePage.vue
deleted file mode 100644
index ce78909..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/HomePage.vue
+++ /dev/null
@@ -1,60 +0,0 @@
-<template>
- <div>
- <v-parallax :src="bg" height="300">
- <v-container class="fill-height">
- <v-row align="center" justify="center">
- <v-col cols="12" md="8" class="text-center text-white">
- <h1 class="text-h3 font-weight-bold mb-4">高性能虚拟主机,即买即用</h1>
- <p class="text-h6 mb-6">稳定、快速、安全的虚拟主机服务</p>
- <v-btn color="primary" size="large" to="/shop" class="mr-3">查看套餐</v-btn>
- <v-btn variant="outlined" size="large" to="/register">免费注册</v-btn>
- </v-col>
- </v-row>
- </v-container>
- </v-parallax>
-
- <v-container class="py-10">
- <h2 class="text-center text-h4 font-weight-bold mb-8">为什么选择我们</h2>
- <v-row>
- <v-col v-for="f in features" :key="f.icon" cols="12" sm="4">
- <v-card variant="flat" class="text-center pa-4">
- <v-icon size="48" color="primary">{{ f.icon }}</v-icon>
- <h3 class="text-h6 mt-3">{{ f.title }}</h3>
- <p class="text-body-2 text-medium-emphasis">{{ f.desc }}</p>
- </v-card>
- </v-col>
- </v-row>
- </v-container>
-
- <v-container v-if="plans.length" class="pb-10">
- <h2 class="text-center text-h4 font-weight-bold mb-8">热门套餐</h2>
- <v-row>
- <v-col v-for="p in plans.slice(0, 3)" :key="p.id" cols="12" md="4">
- <PlanCard :plan="p" />
- </v-col>
- </v-row>
- <div class="text-center mt-6">
- <v-btn variant="outlined" to="/shop" size="large">查看全部套餐</v-btn>
- </div>
- </v-container>
- </div>
-</template>
-
-<script setup>
-import { ref, onMounted } from 'vue';
-import api from '../api';
-import PlanCard from '../components/PlanCard.vue';
-
-const plans = ref([]);
-const bg = 'data:image/svg+xml,' + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="300"><rect width="1440" height="300" fill="#1867C0"/></svg>');
-
-onMounted(async () => {
- try { const r = await api.get('plans'); plans.value = r.data.plans || []; } catch (e) {}
-});
-
-const features = [
- { icon: 'mdi-shield-check', title: '99.9% 在线率', desc: '企业级硬件,稳定可靠' },
- { icon: 'mdi-flash', title: '快速部署', desc: '支付完成后自动开通主机' },
- { icon: 'mdi-headset', title: '技术支持', desc: '专业技术团队在线支持' },
-];
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/views/LoginPage.vue b/app_plugins/shop_frontend/views/spa/src/views/LoginPage.vue
deleted file mode 100644
index d150beb..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/LoginPage.vue
+++ /dev/null
@@ -1,32 +0,0 @@
-<template>
- <v-container style="max-width: 400px" class="py-8">
- <v-card>
- <v-card-item><v-card-title class="text-center">登录</v-card-title></v-card-item>
- <v-card-text>
- <v-text-field v-model="username" label="用户名" variant="outlined" density="compact" />
- <v-text-field v-model="password" label="密码" type="password" variant="outlined" density="compact" @keyup.enter="doLogin" />
- </v-card-text>
- <v-card-actions class="pa-4"><v-btn color="primary" block @click="doLogin" :loading="loading">登录</v-btn></v-card-actions>
- <div class="text-center pb-4"><a href="/register" class="text-caption">注册账号</a></div>
- </v-card>
- <v-snackbar v-model="snack" color="error">{{ snackMsg }}</v-snackbar>
- </v-container>
-</template>
-
-<script setup>
-import { ref } from 'vue';
-import { useRouter } from 'vue-router';
-import { useUserStore } from '../stores/user';
-
-const user = useUserStore();
-const router = useRouter();
-const username = ref(''); const password = ref('');
-const loading = ref(false); const snack = ref(false); const snackMsg = ref('');
-
-async function doLogin() {
- loading.value = true;
- try { await user.login(username.value, password.value); router.push('/dashboard'); }
- catch (e) { snackMsg.value = e.message; snack.value = true; }
- loading.value = false;
-}
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/views/OrdersPage.vue b/app_plugins/shop_frontend/views/spa/src/views/OrdersPage.vue
deleted file mode 100644
index efd9507..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/OrdersPage.vue
+++ /dev/null
@@ -1,27 +0,0 @@
-<template>
- <v-container class="py-8">
- <h1 class="text-h4 font-weight-bold mb-4">我的订单</h1>
- <v-table v-if="orders.length">
- <thead><tr><th>订单号</th><th>套餐</th><th>周期</th><th>金额</th><th>状态</th><th>时间</th></tr></thead>
- <tbody>
- <tr v-for="o in orders" :key="o.id">
- <td class="text-caption">{{ o.order_no }}</td><td>{{ o.plan_name }}</td>
- <td>{{ o.period === 'year' ? '年付' : '月付' }}</td><td>¥{{ (o.amount_cents / 100).toFixed(2) }}</td>
- <td><v-chip size="small" :color="sc[o.status]||'grey'">{{ sl[o.status] || o.status }}</v-chip></td>
- <td>{{ fmtDate(o.created_at) }}</td>
- </tr>
- </tbody>
- </v-table>
- <v-card v-else class="pa-8 text-center"><p>暂无订单</p></v-card>
- </v-container>
-</template>
-
-<script setup>
-import { ref, onMounted } from 'vue';
-import api from '../api';
-const orders = ref([]);
-const sl = { pending: '待支付', paid: '已支付', opened: '已开通', failed: '失败', cancelled: '已取消' };
-const sc = { pending: 'warning', paid: 'info', opened: 'success', failed: 'error', cancelled: 'error' };
-function fmtDate(d) { if (!d) return '-'; try { return new Date(d).toLocaleString('zh-CN'); } catch (e) { return d; } }
-onMounted(async () => { try { const r = await api.get('orders'); orders.value = r.data.orders || []; } catch (e) {} });
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/views/PlanDetail.vue b/app_plugins/shop_frontend/views/spa/src/views/PlanDetail.vue
deleted file mode 100644
index 31c9945..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/PlanDetail.vue
+++ /dev/null
@@ -1,51 +0,0 @@
-<template>
- <v-container v-if="plan" style="max-width: 600px" class="py-8">
- <v-btn variant="text" prepend-icon="mdi-arrow-left" to="/shop" class="mb-4">返回套餐列表</v-btn>
- <v-card>
- <v-card-item><v-card-title class="text-h5">{{ plan.name }}</v-card-title><v-card-subtitle>{{ plan.description }}</v-card-subtitle></v-card-item>
- <v-card-text>
- <v-list density="compact">
- <v-list-item prepend-icon="mdi-harddisk" title="网页空间" :subtitle="plan.spec_web + ' MB'" />
- <v-list-item prepend-icon="mdi-database" title="数据库" :subtitle="plan.spec_sql + ' MB'" />
- <v-list-item prepend-icon="mdi-swap-horizontal" title="流量" :subtitle="plan.spec_flow > 0 ? plan.spec_flow + ' GB' : '不限'" />
- <v-list-item prepend-icon="mdi-web" title="域名绑定" :subtitle="plan.spec_domain + ' 个'" />
- </v-list>
- <v-divider class="my-3" />
- <v-radio-group v-model="period" inline>
- <v-radio v-if="plan.price_month_cents > 0" label="月付 ¥" + (plan.price_month_cents / 100).toFixed(2) value="month" />
- <v-radio v-if="plan.price_year_cents > 0" label="年付 ¥" + (plan.price_year_cents / 100).toFixed(2) value="year" />
- </v-radio-group>
- <v-select v-if="nodes.length" v-model="node" :items="nodes" item-title="btdh" item-value="btdh" label="开通节点" variant="outlined" density="compact" />
- <v-alert v-if="!user.isLogin" type="warning" variant="tonal" class="mt-2">请先<a href="/login" style="color:inherit">登录</a>后再购买</v-alert>
- </v-card-text>
- <v-card-actions class="pa-4">
- <v-btn color="primary" block size="large" @click="buy" :loading="loading" :disabled="!user.isLogin">确认购买</v-btn>
- </v-card-actions>
- </v-card>
- <v-snackbar v-model="snack" color="error">{{ snackMsg }}</v-snackbar>
- </v-container>
- <v-container v-else class="py-8 text-center"><p>套餐不存在</p></v-container>
-</template>
-
-<script setup>
-import { ref, onMounted } from 'vue';
-import { useRoute } from 'vue-router';
-import { useUserStore } from '../stores/user';
-import api from '../api';
-
-const route = useRoute(); const user = useUserStore();
-const plan = ref(null); const nodes = ref([]); const period = ref('month');
-const node = ref(''); const loading = ref(false); const snack = ref(false); const snackMsg = ref('');
-
-onMounted(async () => {
- try { const r = await api.get('plans'); plan.value = (r.data.plans || []).find(p => p.id == route.params.id) || null; } catch (e) {}
- try { const r = await api.get('nodes'); nodes.value = r.data.nodes || []; if (nodes.value.length) node.value = nodes.value[0].btdh; } catch (e) {}
-});
-
-async function buy() {
- loading.value = true;
- try { const r = await api.post('create_order', { plan_id: route.params.id, period: period.value, node: node.value }); if (r.data.html) { document.open(); document.write(r.data.html); document.close(); } }
- catch (e) { snackMsg.value = '创建订单失败'; snack.value = true; }
- loading.value = false;
-}
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/views/ProfilePage.vue b/app_plugins/shop_frontend/views/spa/src/views/ProfilePage.vue
deleted file mode 100644
index 781d24a..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/ProfilePage.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-<template>
- <v-container style="max-width: 500px" class="py-8">
- <v-card>
- <v-card-item><v-card-title>个人信息</v-card-title></v-card-item>
- <v-card-text>
- <v-list density="compact">
- <v-list-item title="用户名" :subtitle="user.user?.username || ''" />
- <v-list-item title="注册时间" :subtitle="fmtDate(user.user?.created_at)" />
- <v-list-item title="邮箱" :subtitle="user.user?.email || '未设置'" />
- <v-list-item title="QQ" :subtitle="user.user?.qq || '未设置'" />
- </v-list>
- </v-card-text>
- </v-card>
- </v-container>
-</template>
-
-<script setup>
-import { useUserStore } from '../stores/user';
-function fmtDate(d) { if (!d) return '-'; try { return new Date(d).toLocaleString('zh-CN'); } catch (e) { return d; } }
-const user = useUserStore();
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/views/RegisterPage.vue b/app_plugins/shop_frontend/views/spa/src/views/RegisterPage.vue
deleted file mode 100644
index 75cc943..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/RegisterPage.vue
+++ /dev/null
@@ -1,37 +0,0 @@
-<template>
- <v-container style="max-width: 400px" class="py-8">
- <v-card>
- <v-card-item><v-card-title class="text-center">注册</v-card-title></v-card-item>
- <v-card-text>
- <v-text-field v-model="form.username" label="用户名" variant="outlined" density="compact" />
- <v-text-field v-model="form.password" label="密码" type="password" variant="outlined" density="compact" />
- <v-text-field v-model="form.password2" label="确认密码" type="password" variant="outlined" density="compact" />
- <v-text-field v-model="form.email" label="邮箱(选填)" variant="outlined" density="compact" />
- <v-text-field v-model="form.qq" label="QQ(选填)" variant="outlined" density="compact" />
- </v-card-text>
- <v-card-actions class="pa-4"><v-btn color="primary" block @click="doReg" :loading="loading">注册</v-btn></v-card-actions>
- <div class="text-center pb-4"><a href="/login" class="text-caption">已有账号?登录</a></div>
- </v-card>
- <v-snackbar v-model="snack" color="error">{{ snackMsg }}</v-snackbar>
- </v-container>
-</template>
-
-<script setup>
-import { ref, reactive } from 'vue';
-import { useRouter } from 'vue-router';
-import { useUserStore } from '../stores/user';
-
-const user = useUserStore();
-const router = useRouter();
-const form = reactive({ username: '', password: '', password2: '', email: '', qq: '' });
-const loading = ref(false); const snack = ref(false); const snackMsg = ref('');
-
-async function doReg() {
- if (!form.username || !form.password) { snackMsg.value = '请填写用户名和密码'; snack.value = true; return; }
- if (form.password !== form.password2) { snackMsg.value = '两次密码不一致'; snack.value = true; return; }
- loading.value = true;
- try { await user.register(form); router.push('/dashboard'); }
- catch (e) { snackMsg.value = e.message; snack.value = true; }
- loading.value = false;
-}
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/src/views/ShopPage.vue b/app_plugins/shop_frontend/views/spa/src/views/ShopPage.vue
deleted file mode 100644
index 0cca6f9..0000000
--- a/app_plugins/shop_frontend/views/spa/src/views/ShopPage.vue
+++ /dev/null
@@ -1,22 +0,0 @@
-<template>
- <v-container class="py-8">
- <h1 class="text-h4 font-weight-bold mb-6">主机套餐</h1>
- <v-row v-if="plans.length">
- <v-col v-for="p in plans" :key="p.id" cols="12" md="6" lg="4">
- <PlanCard :plan="p" />
- </v-col>
- </v-row>
- <v-card v-else class="pa-8 text-center"><p class="text-body-1 text-medium-emphasis">暂无可购买的套餐</p></v-card>
- </v-container>
-</template>
-
-<script setup>
-import { ref, onMounted } from 'vue';
-import api from '../api';
-import PlanCard from '../components/PlanCard.vue';
-
-const plans = ref([]);
-onMounted(async () => {
- try { const r = await api.get('plans'); plans.value = r.data.plans || []; } catch (e) {}
-});
-</script>
diff --git a/app_plugins/shop_frontend/views/spa/vite.config.js b/app_plugins/shop_frontend/views/spa/vite.config.js
deleted file mode 100644
index 7a4b943..0000000
--- a/app_plugins/shop_frontend/views/spa/vite.config.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import { defineConfig } from 'vite';
-import vue from '@vitejs/plugin-vue';
-
-export default defineConfig({
- plugins: [vue()],
- base: '/',
- build: {
- outDir: 'dist',
- emptyOutDir: true,
- },
- server: {
- port: 5173,
- proxy: {
- '/api': 'http://localhost:8087',
- '/shop_api': 'http://localhost:8087',
- },
- },
-});