create-vitex
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "create-vitex", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Start an opinioned vite project", | ||
@@ -28,2 +28,3 @@ "type": "module", | ||
"format": "prettier --write .", | ||
"sync": "./scripts/sync.sh download", | ||
"build": "zx ./scripts/build.mjs", | ||
@@ -30,0 +31,0 @@ "snapshot": "zx ./scripts/snapshot.mjs", |
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.vscode-typescript-vue-plugin", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
] | ||
} | ||
} |
@@ -22,3 +22,3 @@ { | ||
"html.format.wrapAttributesIndentSize": 2, | ||
"html.format.wrapAttributes": "force-expand-multiline", //volar格式化template的选项 | ||
"html.format.wrapAttributes": "force-expand-multiline", //volar format template's option | ||
"html.format.wrapLineLength": 80, | ||
@@ -25,0 +25,0 @@ "[javascript]": { |
@@ -12,3 +12,7 @@ import { reactive } from "vue"; | ||
id: null, | ||
username: "tourist", | ||
username: "", | ||
nickname: "游客", | ||
permission: 0, | ||
openid: "", | ||
avatar: "", | ||
}, | ||
@@ -15,0 +19,0 @@ roles: {}, |
@@ -31,7 +31,22 @@ { | ||
"@vueuse/integrations": "^9.11.0", | ||
"@xiangnanscu/docx": "^8.5.1", | ||
"@xnscu/xlsx-template": "^1.4.5", | ||
"ant-design-vue": "3.2.20", | ||
"axios": "^1.2.1", | ||
"docx": "^8.6.0", | ||
"docx-templates": "^4.13.0", | ||
"file-saver": "^2.0.5", | ||
"nanoid": "4.0.2", | ||
"primeflex": "^3.3.1", | ||
"primeicons": "^7.0.0", | ||
"primelocale": "^0.0.1", | ||
"primevue": "^3.29.1", | ||
"qrcode": "^1.5.1", | ||
"universal-cookie": "^7.2.0", | ||
"vue": "^3.4.21", | ||
"vue-router": "^4.3.0" | ||
"vue-router": "^4.3.0", | ||
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.2/xlsx-0.19.2.tgz" | ||
}, | ||
"devDependencies": { | ||
"@originjs/vite-plugin-require-context": "^1.0.9", | ||
"@rushstack/eslint-patch": "^1.8.0", | ||
@@ -38,0 +53,0 @@ "@tsconfig/node20": "^20.1.4", |
@@ -1,11 +0,32 @@ | ||
import "./assets/main.css"; | ||
import { createApp } from "vue"; | ||
import PrimeVue from "primevue/config"; | ||
import "primevue/resources/themes/aura-light-cyan/theme.css"; | ||
import "primeicons/primeicons.css"; | ||
import primelocale from "primelocale/zh-CN.json"; | ||
import "primeflex/primeflex.css"; | ||
import router from "./router"; | ||
import App from "./App.vue"; | ||
import router from "./router"; | ||
import { Model } from "~/lib/model"; | ||
import { BaseField } from "~/lib/model/field.mjs"; | ||
import { request } from "~/lib/Http"; | ||
Model.request = request; | ||
BaseField.request = request; | ||
const app = createApp(App); | ||
app.use(router); | ||
app.use(PrimeVue, { | ||
inputStyle: "filled", | ||
ripple: true, | ||
locale: primelocale["zh-CN"], | ||
}); | ||
app.mount("#app"); | ||
app.config.errorHandler = (err, instance, info) => { | ||
if (typeof err == "object") { | ||
if (err.message !== "") { | ||
// Http.post抛出的错误是空字符串,暂时不展示 | ||
console.error(`${err.response?.data || err.message || "未知错误"}`); | ||
} | ||
} | ||
}; |
{ | ||
"extends": "@vue/tsconfig/tsconfig.dom.json", | ||
"include": [ | ||
"env.d.ts", | ||
"vite-env.d.ts", | ||
"lib/**/*", | ||
@@ -6,0 +6,0 @@ "composables/**/*", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 10 instances in 1 package
517999
75
10112
21
6