diff --git a/package.json b/package.json index 1c1b3ae..e1dcc23 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "ali-oss": "^6.21.0", "ant-design-vue": "4.x", "clsx": "^2.1.1", + "crypto-js": "^4.2.0", "dayjs": "^1.11.13", "gsap": "^3.12.5", "localforage": "^1.10.0", @@ -41,6 +42,7 @@ "@rushstack/eslint-patch": "^1.8.0", "@tsconfig/node20": "^20.1.4", "@types/ali-oss": "^6.16.11", + "@types/crypto-js": "^4.2.2", "@types/node": "^20.14.5", "@types/sortablejs": "^1.15.8", "@types/ua-parser-js": "^0.7.39", diff --git a/public/bg/game.webp b/public/bg/game.webp new file mode 100644 index 0000000..a2828bf Binary files /dev/null and b/public/bg/game.webp differ diff --git a/public/icons/gameicon.webp b/public/icons/gameicon.webp new file mode 100644 index 0000000..bb54148 Binary files /dev/null and b/public/icons/gameicon.webp differ diff --git a/src/config.ts b/src/config.ts index 1691ee4..70064d9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -2,8 +2,13 @@ export const aIUrl = 'https://metaso.cn/?s=uitab&referrer_s=uitab&q=' export const translateUrl = 'https://fanyi.baidu.com/mtpe-individual/multimodal?lang=zh2en&query=' // oss地址 export const ossBase = import.meta.env.PROD - ? 'http://btab.oss-cn-hangzhou.aliyuncs.com' - : 'http://btab.oss-cn-hangzhou.aliyuncs.com' + ? 'http://newfatfox.oss-cn-beijing.aliyuncs.com' + : 'http://newfatfox.oss-cn-beijing.aliyuncs.com' + +// 前端地址 +export const frontAddress = import.meta.env.PROD + ? 'http://goosetab.com' + : 'http://goosetab.com' // oss cdn 加速地址 export const ossCdnBase = import.meta.env.PROD ? ossBase : ossBase diff --git a/src/layout/adder/AdderPage.tsx b/src/layout/adder/AdderPage.tsx index 14dc5d5..4d34101 100644 --- a/src/layout/adder/AdderPage.tsx +++ b/src/layout/adder/AdderPage.tsx @@ -154,17 +154,15 @@ export default defineComponent(() => { diff --git a/src/layout/adder/HotAdder.tsx b/src/layout/adder/HotAdder.tsx index f70d939..4793773 100644 --- a/src/layout/adder/HotAdder.tsx +++ b/src/layout/adder/HotAdder.tsx @@ -35,18 +35,35 @@ export const LinkItem = defineComponent({ const addTo = inject(AddToToken) return () => (
+
{ + window.open(props.content.url, '_blank') + }} + class={ + 'h-0 w-0 absolute right-0 top-0 border-t-[38px] cursor-pointer border-l-[38px] group border-t-[#fff1e2] hover:border-t-[#ffaa4e] border-l-transparent' + } + > +

+ 预览 +

+
@@ -82,10 +99,10 @@ export const LinkItem = defineComponent({ layout.addBlock( { id: uuid(), - link: '', + link: props.content.url, name: props.content.name, label: props.content.name, - icon: '', + icon: props.content.icon, text: '', background: '', color: '', @@ -150,10 +167,10 @@ export default defineComponent(() => { select: (text: string) => (