Skip to content

Commit cb6e58a

Browse files
committed
Release 1.0.0-alpha.1
1 parent 68f6fb4 commit cb6e58a

File tree

13 files changed

+55
-33
lines changed

13 files changed

+55
-33
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rocox-codex",
33
"private": false,
4-
"version": "1.0.0-beta.1",
4+
"version": "1.0.0-alpha.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rocox-codex"
3-
version = "1.0.0-beta.1"
3+
version = "1.0.0-alpha.1"
44
description = "Rocox Codex"
55
authors = ["NeserCode"]
66
license = "MIT"

src-tauri/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ fn main() {
4444
.Headers()
4545
.unwrap()
4646
.SetHeader(
47+
// Origin
4748
PCWSTR::from_raw(str_to_pcwstr("referrer").as_ptr()),
4849
PCWSTR::from_raw(
4950
str_to_pcwstr("https://rocotime.com").as_ptr(),

src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
},
99
"package": {
1010
"productName": "RoCoX Codex",
11-
"version": "1.0.0-beta.1"
11+
"version": "1.0.0-alpha.1"
1212
},
1313
"tauri": {
1414
"allowlist": {
1515
"all": true
1616
},
1717
"bundle": {
1818
"active": true,
19-
"targets": "all",
19+
"targets": "nsis",
2020
"identifier": "com.nesercode.rocox-codex.dev",
2121
"icon": [
2222
"icons/32x32.png",

src/components/ChainItem.vue

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ interface ChainItemProp {
1414
}
1515
</script>
1616
<script lang="ts" setup>
17+
// @ts-ignore
1718
import { BoltIcon } from "@heroicons/vue/20/solid"
1819
import { Ref, ref, toRefs } from "vue"
1920
@@ -23,7 +24,7 @@ import { useStorage } from "@vueuse/core"
2324
import { WindowCreator } from "../composables/useWindow"
2425
2526
const $props = defineProps<{
26-
chainTo: ChainItemProp
27+
chainTo: ChainItemProp | ChainItemProp[]
2728
}>()
2829
const { chainTo } = toRefs($props)
2930
const { iconStaticURL } = useApi()
@@ -37,10 +38,6 @@ const iconSrc = (hash: string, angelId: string) => {
3738
return `${iconStaticURL}${id < 100 ? "0" : ""}${id}-.png`
3839
}
3940
40-
const lastLevelClass = (to: string | ChainItemProp[]) => {
41-
return to == "0" ? "last-level-in-chain" : null
42-
}
43-
4441
const $router = useRouter()
4542
const alwaysTargetNewWindow = useStorage("rocox-new-window-target", false)
4643
const angelPageTitle = useStorage("rocox-angel-page-title", "")
@@ -67,9 +64,9 @@ function goAngelView(hash: string) {
6764
</script>
6865

6966
<template>
70-
<div :class="['chain-item', lastLevelClass(chainTo.to)]">
67+
<div class="chain-item">
7168
<template
72-
v-if="chainTo.start && !Array.isArray(chainTo)"
69+
v-if="!Array.isArray(chainTo) && chainTo.start"
7370
class="chain-children"
7471
>
7572
<span
@@ -88,15 +85,15 @@ function goAngelView(hash: string) {
8885
</span>
8986
<span class="option">
9087
<BoltIcon class="icon" />
91-
<span class="lv" v-if="chainTo.lv">lv {{ chainTo.lv }}</span>
88+
<span class="lv" v-if="chainTo.lv">Level {{ chainTo.lv }}</span>
9289
<span class="lv" v-else>Super</span>
9390
</span>
9491
<chainItem
9592
v-if="!(typeof chainTo.to === 'string')"
9693
:chainTo="chainTo.to"
9794
/>
9895
</template>
99-
<template v-if="!chainTo.start && Array.isArray(chainTo)">
96+
<template v-if="Array.isArray(chainTo)">
10097
<span v-for="item of chainTo" class="chain-children">
10198
<span
10299
class="angel-item"

src/components/ItemList.vue

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ watch(listData, (val: any[]) => {
5757
listSize: val.length,
5858
pageSize: pageSize.value,
5959
total: totalFromID.value,
60+
canJump: false,
6061
})
6162
console.log(listData.value)
6263
})
@@ -66,7 +67,8 @@ watch(listData, (val: any[]) => {
6667
<div class="item-list-main custom-scrollbar">
6768
<div class="item-card" v-for="item in listData" :key="item.hash">
6869
<span class="name-text">
69-
<span class="id">#{{ item.id }}</span> ·
70+
<span class="id">#{{ item.id }}</span>
71+
<span class="font-bold inline-block mx-1"> · </span>
7072
<span class="name">{{ item.name }}</span>
7173
</span>
7274
<span class="details">
@@ -78,17 +80,19 @@ watch(listData, (val: any[]) => {
7880
alt="item image"
7981
draggable="false"
8082
/>
81-
<CubeTransparentIcon v-else class="icon" />
83+
<CubeTransparentIcon v-else class="icon placeholder" />
8284
<span class="text">
8385
<span class="unique"
8486
>持有 · {{ parseInt(item.Unique) ? "" : "不" }}唯一</span
8587
>
8688
<span class="price">售价 · {{ item.Price }}</span>
87-
<span class="desc">描述 · {{ item.Desc }}</span>
89+
<span class="desc"
90+
>描述 · {{ item.Desc ?? "这是一段空白的描述" }}</span
91+
>
8892
</span>
8993
</span>
9094
</div>
91-
<Transition name="slidedown" mode="in-out" :appear="true">
95+
<Transition name="slideup" mode="in-out" appear>
9296
<div class="empty-palceholder" v-if="isEmpty">
9397
<span class="empty-icons">
9498
<CubeTransparentIcon class="icon" /> ·
@@ -109,28 +113,40 @@ watch(listData, (val: any[]) => {
109113
}
110114
111115
.item-card {
112-
@apply inline-flex flex-col;
116+
@apply inline-flex flex-col items-center justify-center max-w-xs mb-0.5
117+
snap-start;
113118
}
114119
115120
.name-text {
116-
@apply inline-flex items-center
117-
font-semibold text-base;
121+
@apply inline-flex w-full items-center justify-start my-1
122+
font-bold text-sm;
118123
}
119124
.details {
120-
@apply inline-flex;
125+
@apply inline-flex w-full items-center justify-center;
121126
}
122127
.details .icon {
123-
@apply w-12 h-12;
128+
@apply inline-flex justify-center items-center w-16 h-fit box-content mr-1
129+
border-2 rounded transition-all
130+
border-slate-300 dark:border-slate-600;
131+
}
132+
.placeholder {
133+
@apply w-16 p-0.5 px-1;
124134
}
125135
.details .text {
126-
@apply inline-flex flex-wrap;
136+
@apply inline-flex flex-wrap justify-between items-center;
127137
}
128138
129139
.text .unique,
130140
.text .price,
131141
.text .desc {
132-
@apply inline-block px-1 py-0.5 mr-1 mb-1
133-
border-2 rounded;
142+
@apply inline-flex items-center h-fit px-1 py-0.5 mr-1 mb-1
143+
text-gray-700 dark:text-gray-300
144+
border-slate-300 dark:border-slate-600
145+
border-2 rounded text-sm font-bold text-opacity-75 dark:text-opacity-75
146+
transition-all;
147+
}
148+
.text .desc {
149+
@apply w-full mb-0;
134150
}
135151
136152
.empty-palceholder {

src/components/SearchFilter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import { ref, inject, watch, computed } from "vue"
2+
import { ref, inject, watch } from "vue"
33
import { UpdateSearchFunctionalKey } from "../tokens"
44
import { useStorage } from "@vueuse/core"
55
const innerValue = ref("")

src/components/SkillList.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ function goSkillView(hash: string) {
104104
class="icon property"
105105
:src="getFeatureIconSrc(skill.property)"
106106
alt="skill property"
107+
draggable="false"
107108
/>
108109
<img
109110
v-if="skill.power !== '--'"
111+
draggable="false"
110112
class="icon damage"
111113
:src="damageTypeStaticMap.get(skill.damageType)"
112114
:alt="skill.damageType === '1' ? '物理伤害' : '魔法伤害'"

src/composables/useApi.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ const headers = {
77
authority: "api.rocotime.com",
88
accept: "application/json, text/plain, */*",
99
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
10-
"content-type": "application/json",
11-
"Access-Control-Allow-Origin": "*",
12-
"Access-Control-Allow-Credentials": "true",
10+
// "content-type": "application/json",
11+
// "Access-Control-Allow-Credentials": "true",
1312
// dnt: "1",
1413
// origin: "https://rocotime.com",
1514
// "sec-ch-ua":

0 commit comments

Comments
 (0)