Browse Source

remove mock data

陈帅 6 years atrás
parent
commit
a349ab4f98
2 changed files with 65 additions and 104 deletions
  1. 3 1
      config/config.ts
  2. 62 103
      lambda/mock/index.js

+ 3 - 1
config/config.ts

@@ -4,7 +4,9 @@ import slash from 'slash2';
 import { IPlugin, IConfig } from 'umi-types';
 import defaultSettings from './defaultSettings';
 import webpackPlugin from './plugin.config';
-const { pwa, primaryColor } = defaultSettings; // preview.pro.ant.design only do not use in your production ;
+const { pwa, primaryColor } = defaultSettings;
+
+// preview.pro.ant.design only do not use in your production ;
 // preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
 
 const { ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION, TEST, NODE_ENV } = process.env;

+ 62 - 103
lambda/mock/index.js

@@ -3996,109 +3996,68 @@
       signature: '海纳百川,有容乃大',
       title: '交互专家',
       group: '蚂蚁金服-某某某事业群-某某平台部-某某技术部-UED',
-      notice: [{
-        id: '000000001',
-        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
-        title: '你收到了 14 份新周报',
-        datetime: '2017-08-09',
-        type: 'notification'
-      }, {
-        id: '000000002',
-        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png',
-        title: '你推荐的 曲妮妮 已通过第三轮面试',
-        datetime: '2017-08-08',
-        type: 'notification'
-      }, {
-        id: '000000003',
-        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png',
-        title: '这种模板可以区分多种通知类型',
-        datetime: '2017-08-07',
-        read: true,
-        type: 'notification'
-      }, {
-        id: '000000004',
-        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png',
-        title: '左侧图标用于区分不同的类型',
-        datetime: '2017-08-07',
-        type: 'notification'
-      }, {
-        id: '000000005',
-        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
-        title: '内容不要超过两行字,超出时自动截断',
-        datetime: '2017-08-07',
-        type: 'notification'
-      }, {
-        id: '000000006',
-        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
-        title: '曲丽丽 评论了你',
-        description: '描述信息描述信息描述信息',
-        datetime: '2017-08-07',
-        type: 'message',
-        clickClose: true
-      }, {
-        id: '000000007',
-        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
-        title: '朱偏右 回复了你',
-        description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像',
-        datetime: '2017-08-07',
-        type: 'message',
-        clickClose: true
-      }, {
-        id: '000000008',
-        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
-        title: '标题',
-        description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像',
-        datetime: '2017-08-07',
-        type: 'message',
-        clickClose: true
-      }, {
-        id: '000000009',
-        title: '任务名称',
-        description: '任务需要在 2017-01-12 20:00 前启动',
-        extra: '未开始',
-        status: 'todo',
-        type: 'event'
-      }, {
-        id: '000000010',
-        title: '第三方紧急代码变更',
-        description: '冠霖提交于 2017-01-06,需在 2017-01-07 前完成代码变更任务',
-        extra: '马上到期',
-        status: 'urgent',
-        type: 'event'
-      }, {
-        id: '000000011',
-        title: '信息安全考试',
-        description: '指派竹尔于 2017-01-09 前完成更新并发布',
-        extra: '已耗时 8 天',
-        status: 'doing',
-        type: 'event'
-      }, {
-        id: '000000012',
-        title: 'ABCD 版本发布',
-        description: '冠霖提交于 2017-01-06,需在 2017-01-07 前完成代码变更任务',
-        extra: '进行中',
-        status: 'processing',
-        type: 'event'
-      }],
-      tags: [{
-        key: '0',
-        label: '很有想法的'
-      }, {
-        key: '1',
-        label: '专注设计'
-      }, {
-        key: '2',
-        label: '辣~'
-      }, {
-        key: '3',
-        label: '大长腿'
-      }, {
-        key: '4',
-        label: '川妹子'
-      }, {
-        key: '5',
-        label: '海纳百川'
-      }],
+      notice: [
+        {
+          id: 'xxx1',
+          title: titles[0],
+          logo: avatars[0],
+          description: '那是一种内在的东西,他们到达不了,也无法触及的',
+          updatedAt: new Date(),
+          member: '科学搬砖组',
+          href: '',
+          memberLink: '',
+        },
+        {
+          id: 'xxx2',
+          title: titles[1],
+          logo: avatars[1],
+          description: '希望是一个好东西,也许是最好的,好东西是不会消亡的',
+          updatedAt: new Date('2017-07-24'),
+          member: '全组都是吴彦祖',
+          href: '',
+          memberLink: '',
+        },
+        {
+          id: 'xxx3',
+          title: titles[2],
+          logo: avatars[2],
+          description: '城镇中有那么多的酒馆,她却偏偏走进了我的酒馆',
+          updatedAt: new Date(),
+          member: '中二少女团',
+          href: '',
+          memberLink: '',
+        },
+        {
+          id: 'xxx4',
+          title: titles[3],
+          logo: avatars[3],
+          description: '那时候我只会想自己想要什么,从不想自己拥有什么',
+          updatedAt: new Date('2017-07-23'),
+          member: '程序员日常',
+          href: '',
+          memberLink: '',
+        },
+        {
+          id: 'xxx5',
+          title: titles[4],
+          logo: avatars[4],
+          description: '凛冬将至',
+          updatedAt: new Date('2017-07-23'),
+          member: '高逼格设计天团',
+          href: '',
+          memberLink: '',
+        },
+        {
+          id: 'xxx6',
+          title: titles[5],
+          logo: avatars[5],
+          description: '生命就像一盒巧克力,结果往往出人意料',
+          updatedAt: new Date('2017-07-23'),
+          member: '骗你来学计算机',
+          href: '',
+          memberLink: '',
+        },
+      ],
       notifyCount: 12,
       unreadCount: 11,
       country: 'China',