Pārlūkot izejas kodu

build: 合并v5.5.7,清除多余文件

laiqi 11 mēneši atpakaļ
vecāks
revīzija
65f5a447d6

+ 0 - 28
apps/backend-mock/api/demo/bigint.ts

@@ -1,28 +0,0 @@
-export default eventHandler(async (event) => {
-  const userinfo = verifyAccessToken(event);
-  if (!userinfo) {
-    return unAuthorizedResponse(event);
-  }
-  const data = `
-  {
-    "code": 0,
-    "message": "success",
-    "data": [
-              {
-                "id": 123456789012345678901234567890123456789012345678901234567890,
-                "name": "John Doe",
-                "age": 30,
-                "email": "john-doe@demo.com"
-                },
-                {
-                "id": 987654321098765432109876543210987654321098765432109876543210,
-                "name": "Jane Smith",
-                "age": 25,
-                "email": "jane@demo.com"
-                }
-            ]
-  }
-  `;
-  setHeader(event, 'Content-Type', 'application/json');
-  return data;
-});

+ 0 - 16
docs/src/demos/vben-ellipsis-text/auto-display/index.vue

@@ -1,16 +0,0 @@
-<script lang="ts" setup>
-import { EllipsisText } from '@vben/common-ui';
-
-const text = `
-Vben Admin 是一个基于 Vue3.0、Vite、 TypeScript 的后台解决方案,目标是为开发中大型项目提供开箱即用的解决方案。
-`;
-</script>
-<template>
-  <EllipsisText :line="2" :tooltip-when-ellipsis="true">
-    {{ text }}
-  </EllipsisText>
-
-  <EllipsisText :line="3" :tooltip-when-ellipsis="true">
-    {{ text }}
-  </EllipsisText>
-</template>

+ 0 - 10
playground/src/api/examples/json-bigint.ts

@@ -1,10 +0,0 @@
-import { requestClient } from '#/api/request';
-
-/**
- * 发起请求
- */
-async function getBigIntData() {
-  return requestClient.get('/demo/bigint');
-}
-
-export { getBigIntData };

+ 0 - 39
playground/src/views/demos/features/json-bigint/index.vue

@@ -1,39 +0,0 @@
-<script lang="ts" setup>
-import { ref } from 'vue';
-
-import { Page } from '@vben/common-ui';
-
-import { Alert, Button, Card } from 'ant-design-vue';
-
-import { getBigIntData } from '#/api/examples/json-bigint';
-
-const response = ref('');
-function fetchData() {
-  getBigIntData().then((res) => {
-    response.value = res;
-  });
-}
-</script>
-<template>
-  <Page
-    title="JSON BigInt Support"
-    description="解析后端返回的长整数(long/bigInt)。代码位置:playground/src/api/request.ts中的transformResponse"
-  >
-    <Card>
-      <Alert>
-        <template #message>
-          有些后端接口返回的ID是长整数,但javascript原生的JSON解析是不支持超过2^53-1的长整数的。
-          这种情况可以建议后端返回数据前将长整数转换为字符串类型。如果后端不接受我们的建议😡……
-          <br />
-          下面的按钮点击后会发起请求,接口返回的JSON数据中的id字段是超出整数范围的数字,已自动将其解析为字符串
-        </template>
-      </Alert>
-      <Button class="mt-4" type="primary" @click="fetchData">发起请求</Button>
-      <div>
-        <pre>
-        {{ response }}
-        </pre>
-      </div>
-    </Card>
-  </Page>
-</template>