This commit is contained in:
wmn 2022-05-03 12:41:51 +08:00
parent a21539f8d2
commit 28edb1cab5
14 changed files with 13005 additions and 16 deletions

View File

@ -67,7 +67,7 @@ const ThemeChange = (val: string | number | boolean) => {
>
<a
href="https://github.com/MaleWeb/fast-vue3"
href="https://github.com/wmn1525/grasscutterTools"
target="_bank"
class="block ml-6 text-slate-400 hover:text-slate-500 dark:hover:text-slate-300"
>

View File

@ -17,6 +17,14 @@ const value = computed(() => {
})
const options = reactive(
[
{
"label": "角色经验",
"value": 101
},
{
"label": "冒险阅历",
"value": 102
},
{
label: "原石",
value: 201,
@ -80,14 +88,14 @@ function copyvalue() {
<div>
物品:
</div>
<n-select v-model:value="value2" :options="options" />
<n-select filterable v-model:value="value2" :options="options" />
</div>
<div class="commuse-item">
<div>
数量:
</div>
<n-input-number v-model:value="num" clearable />
<n-input-number v-model:value="num" clearable />
</div>
<div class="generate">
<n-input id="input" v-model:value="value" type="text" placeholder="" />
@ -95,10 +103,16 @@ function copyvalue() {
复制
</n-button>
</div>
</div>
<div>
</div>
</template>
<style lang="less">
<style lang="less" scoped>
.commuse {
width: 500px;
margin: auto;

View File

@ -124,7 +124,7 @@ function copyvalue() {
</div>
</template>
<style lang="less">
<style lang="less" scoped>
.commuse {
width: 500px;
margin: auto;

View File

@ -0,0 +1,267 @@
[
{
"label": "生命值",
"value": 10001
},
{
"label": "生命值百分比",
"value": 10002
},
{
"label": "攻击力",
"value": 10003
},
{
"label": "攻击力百分比",
"value": 10004
},
{
"label": "防御力",
"value": 10005
},
{
"label": "防御力百分比",
"value": 10006
},
{
"label": "元素充能效率",
"value": 10007
},
{
"label": "元素精通",
"value": 10008
},
{
"label": "火元素抗性",
"value": 10009
},
{
"label": "雷元素抗性",
"value": 10010
},
{
"label": "冰元素抗性",
"value": 10011
},
{
"label": "水元素抗性",
"value": 10012
},
{
"label": "风元素抗性",
"value": 10013
},
{
"label": "岩元素抗性",
"value": 10014
},
{
"label": "草元素抗性",
"value": 10015
},
{
"label": "攻击力",
"value": 12001
},
{
"label": "生命值",
"value": 13001
},
{
"label": "生命值百分比",
"value": 13002
},
{
"label": "攻击力",
"value": 13003
},
{
"label": "攻击力百分比",
"value": 13004
},
{
"label": "防御力",
"value": 13005
},
{
"label": "防御力百分比",
"value": 13006
},
{
"label": "暴击率",
"value": 13007
},
{
"label": "暴击伤害",
"value": 13008
},
{
"label": "治疗加成",
"value": 13009
},
{
"label": "元素精通",
"value": 13010
},
{
"label": "生命值",
"value": 14001
},
{
"label": "生命值",
"value": 15001
},
{
"label": "生命值百分比",
"value": 15002
},
{
"label": "攻击力",
"value": 15003
},
{
"label": "攻击力百分比",
"value": 15004
},
{
"label": "防御力",
"value": 15005
},
{
"label": "防御力百分比",
"value": 15006
},
{
"label": "元素精通",
"value": 15007
},
{
"label": "火元素伤害加成",
"value": 15008
},
{
"label": "雷元素伤害加成",
"value": 15009
},
{
"label": "冰元素伤害加成",
"value": 15010
},
{
"label": "水元素伤害加成",
"value": 15011
},
{
"label": "风元素伤害加成",
"value": 15012
},
{
"label": "岩元素伤害加成",
"value": 15013
},
{
"label": "草元素伤害加成",
"value": 15014
},
{
"label": "物理伤害加成",
"value": 15015
},
{
"label": "攻击力百分比",
"value": 10990
},
{
"label": "生命值百分比",
"value": 10980
},
{
"label": "防御力百分比",
"value": 10970
},
{
"label": "元素充能效率",
"value": 10960
},
{
"label": "元素精通",
"value": 10950
},
{
"label": "攻击力百分比",
"value": 30990
},
{
"label": "生命值百分比",
"value": 30980
},
{
"label": "防御力百分比",
"value": 30970
},
{
"label": "暴击率",
"value": 30960
},
{
"label": "暴击伤害",
"value": 30950
},
{
"label": "治疗加成",
"value": 30940
},
{
"label": "元素精通",
"value": 30930
},
{
"label": "攻击力百分比",
"value": 50990
},
{
"label": "生命值百分比",
"value": 50980
},
{
"label": "防御力百分比",
"value": 50970
},
{
"label": "火元素伤害加成",
"value": 50960
},
{
"label": "雷元素伤害加成",
"value": 50950
},
{
"label": "冰元素伤害加成",
"value": 50940
},
{
"label": "水元素伤害加成",
"value": 50930
},
{
"label": "风元素伤害加成",
"value": 50920
},
{
"label": "岩元素伤害加成",
"value": 50910
},
{
"label": "草元素伤害加成",
"value": 50900
},
{
"label": "物理伤害加成",
"value": 50890
},
{
"label": "元素精通",
"value": 50880
}
]

File diff suppressed because it is too large Load Diff

View File

@ -66,7 +66,7 @@ function copyvalue() {
</div>
</template>
<style lang="less">
<style lang="less" scoped>
.commuse {
width: 500px;
margin: auto;

View File

@ -0,0 +1,116 @@
<script setup lang="ts">
import { reactive, ref, computed } from 'vue'
import { useClipboard } from '@vueuse/core'
import { useMessage } from 'naive-ui'
const { text, isSupported, copy } = useClipboard()
const options = reactive(
[
{
title: "治疗队伍中所有角色",
isuse: '仅客户端',
value: "/heal"
},
{
title: "列出在线玩家",
isuse: '均可使用',
value: "/list"
},
{
title: "获取当前坐标",
isuse: '仅客户端',
value: "/position"
},
{
title: "重载服务器配置",
isuse: '均可使用',
value: "/position"
},
{
title: "重启服务端",
isuse: '均可使用',
value: "/position"
},
{
title: "停止服务器",
isuse: '均可使用',
value: "/stop"
},
{
title: "世界等级8",
isuse: '仅客户端',
value: "/setworldlevel 8"
}
]
)
const message = useMessage()
function copyvalue(value: string) {
copy(value)
if (isSupported) {
message.success(
`已复制${value}`
)
}
}
</script>
<template>
<div class="commuse">
<div v-for="(item, index) in options">
<div>{{ item.title }}</div>
<div>
<n-input v-model:value="item.value" type="text" disabled />
</div>
<div>
<n-button type="tertiary" @click="copyvalue(item.value)">
复制
</n-button>
</div>
<div>
<n-gradient-text gradient="linear-gradient(90deg, red 0%, green 50%, blue 100%)">
{{ item.isuse }}
</n-gradient-text>
</div>
</div>
</div>
</template>
<style lang="less" scoped>
.commuse {
width: 500px;
margin: auto;
>div {
margin: 10px 0;
display: flex;
align-items: center;
color: #000;
>div {
&:nth-child(1) {
width: 130px;
}
margin: 0 5px;
}
}
}
.generate {
display: flex;
align-items: center;
margin-left: 100px;
}
</style>

View File

@ -0,0 +1,98 @@
<script setup lang="ts">
import { reactive, ref, computed } from 'vue'
import { useClipboard } from '@vueuse/core'
import { useMessage } from 'naive-ui'
import role from './json/role.json'
const { text, isSupported, copy } = useClipboard()
var value2 = ref()
var num = ref()
const value = computed(() => {
return `/setstats ${value2.value} ${num.value}`
})
const options = reactive(
role
)
const message = useMessage()
function copyvalue() {
copy(value.value)
if (isSupported) {
message.success(
`已复制${value.value}`
)
}
}
</script>
<template>
<div class="commuse">
<div class="title">
直接修改当前角色的面板
</div>
<div class="commuse-item">
<div>
属性:
</div>
<n-select v-model:value="value2" :options="options" placeholder=""/>
</div>
<div class="commuse-item">
<div>
数值:
</div>
<n-input v-model:value="num" type="text" placeholder="" />
</div>
<div class="generate">
<n-input id="input" v-model:value="value" type="text" placeholder="" />
<n-button type="tertiary" @click="copyvalue">
复制
</n-button>
</div>
</div>
</template>
<style lang="less" scoped>
.commuse {
width: 500px;
margin: auto;
}
.title {
text-align: center;
font-size: 16px;
margin: 10px 0;
}
.commuse-item {
display: flex;
align-items: center;
color: #000;
margin: 18px 0;
>div {
&:nth-child(1) {
width: 150px;
text-align: right;
padding-right: 10px;
}
}
}
.generate {
display: flex;
align-items: center;
margin-left: 100px;
}
</style>

View File

@ -8,7 +8,7 @@ const datav = reactive([
{ name: '其它', path: "/start/other" },
{ name: '武器', path: "/start/weapon" },
{ name: '物品', path: "/start/thing" },
{ name: '角色', path: "/start/role" },
{ name: '角色属性', path: "/start/role" },
])
</script>
@ -21,7 +21,7 @@ const datav = reactive([
</div>
</div>
</template>
<style lang="less">
<style lang="less" scoped>
.nav {
height: 600px;
width: 120px;

View File

@ -0,0 +1,115 @@
<script setup lang="ts">
import { reactive, ref, computed } from 'vue'
import { useClipboard } from '@vueuse/core'
import { useMessage } from 'naive-ui'
import thing from './json/thing.json'
const { text, isSupported, copy } = useClipboard()
var value2 = ref()
var value3 = ref("/give")
var uid = ref()
var num = ref()
const value = computed(() => {
return `${value3.value} ${uid.value} ${value2.value} ${num.value}`
})
const options = reactive(
thing
)
const options2 = reactive(
[
{
"label": "给予指定玩家一定数量的物品",
"value": "/give"
},
{
"label": "在指定玩家周围掉落指定物品",
"value": "/drop"
},
]
)
const message = useMessage()
function copyvalue() {
copy(value.value)
if (isSupported) {
message.success(
`已复制${value.value}`
)
}
}
</script>
<template>
<div class="commuse">
<div class="commuse-item">
<div>
UID:
</div>
<n-input v-model:value="uid" type="text" placeholder="" />
</div>
<div class="commuse-item">
<div>
获取方式:
</div>
<n-select filterable v-model:value="value3" :options="options2" />
</div>
<div class="commuse-item">
<div>
物品:
</div>
<n-select filterable v-model:value="value2" :options="options" />
</div>
<div class="commuse-item">
<div>
数量:
</div>
<n-input-number v-model:value="num" clearable />
</div>
<div class="generate">
<n-input id="input" v-model:value="value" type="text" placeholder="" />
<n-button type="tertiary" @click="copyvalue">
复制
</n-button>
</div>
</div>
</template>
<style lang="less" scoped>
.commuse {
width: 500px;
margin: auto;
}
.commuse-item {
display: flex;
align-items: center;
color: #000;
margin: 18px 0;
>div {
&:nth-child(1) {
width: 150px;
text-align: right;
padding-right: 10px;
}
}
}
.generate {
display: flex;
align-items: center;
margin-left: 100px;
}
</style>

View File

@ -79,7 +79,7 @@ function copyvalue() {
</div>
</template>
<style lang="less">
<style lang="less" scoped>
.commuse {
width: 500px;
margin: auto;

View File

@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import Header from '@/components/Header/index.vue'
import startnav from './components/startnav.vue'
import holyrelic from './components/holyrelic.vue'
import other from './components/other.vue'
</script>
@ -11,8 +11,7 @@ import holyrelic from './components/holyrelic.vue'
<div class="cont">
<startnav />
<div class="selectcom">
<h1>未开发</h1>
<other />
</div>
</div>
@ -22,6 +21,7 @@ import holyrelic from './components/holyrelic.vue'
width: 1366px;
margin: auto;
display: flex;
.selectcom {
width: 1000px;
}

View File

@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import Header from '@/components/Header/index.vue'
import startnav from './components/startnav.vue'
import holyrelic from './components/holyrelic.vue'
import role from './components/role.vue'
</script>
@ -11,7 +11,7 @@ import holyrelic from './components/holyrelic.vue'
<div class="cont">
<startnav />
<div class="selectcom">
<h1>未开发</h1>
<role />
</div>
</div>

View File

@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import Header from '@/components/Header/index.vue'
import startnav from './components/startnav.vue'
import holyrelic from './components/holyrelic.vue'
import thing from './components/thing.vue'
</script>
@ -11,7 +11,7 @@ import holyrelic from './components/holyrelic.vue'
<div class="cont">
<startnav />
<div class="selectcom">
<h1>未开发</h1>
<thing />
</div>
</div>
@ -22,6 +22,7 @@ import holyrelic from './components/holyrelic.vue'
width: 1366px;
margin: auto;
display: flex;
.selectcom {
width: 1000px;
}