1/* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import {SysDefFolder, SysDefFolderUuid, FolderType, NoteType, Favorite, Top, Delete} from './EnumData' 17 18export default { 19 /** 20 * db info 21 */ 22 dbInfo: { 23 db_name: { 24 name: "note.db" // 数据库名称 25 }, 26 db_verison: 1 // 数据库版本 27 }, 28 29 /** 30 * system defined folder 31 */ 32 sys_def_allNotes: { 33 "id": 1, 34 "name": SysDefFolder.AllNotes, 35 "uuid": SysDefFolderUuid.AllNotes, 36 "color": "#ffffff", 37 "folder_type": FolderType.SysDef, 38 "is_deleted": Delete.No, 39 "created_time": 1641863695000, 40 "modified_time": 1641863695000 41 }, 42 43 sys_def_unClassified: { 44 "id": 2, 45 "name": SysDefFolder.UnClassified, 46 "uuid": SysDefFolderUuid.UnClassified, 47 "color": "#ffffff", 48 "folder_type": FolderType.SysDef, 49 "is_deleted": Delete.No, 50 "created_time": 1641860095000, 51 "modified_time": 1641860095000 52 }, 53 54 sys_def_myFavorites: { 55 "id": 3, 56 "name": SysDefFolder.MyFavorites, 57 "uuid": SysDefFolderUuid.MyFavorites, 58 "color": "#ffffff", 59 "folder_type": FolderType.FeatureDef, 60 "is_deleted": Delete.No, 61 "created_time": 1641856088000, 62 "modified_time": 1641856088000 63 }, 64 65 sys_def_recentDeletes: { 66 "id": 4, 67 "name": SysDefFolder.RecentDeletes, 68 "uuid": SysDefFolderUuid.RecentDeletes, 69 "color": "#ffffff", 70 "folder_type": FolderType.FeatureDef, 71 "is_deleted": Delete.No, 72 "created_time": 1641848898000, 73 "modified_time": 1641848898000 74 }, 75 76 sys_def_personal: { 77 "id": 5, 78 "name": "个人", 79 "uuid": SysDefFolderUuid.Personal, 80 "color": "#41ba41", 81 "folder_type": FolderType.CusDef, 82 "is_deleted": Delete.No, 83 "created_time": 1641677288000, 84 "modified_time": 1641677288000 85 }, 86 87 sys_def_life: { 88 "id": 6, 89 "name": "生活", 90 "uuid": SysDefFolderUuid.Life, 91 "color": "#00aaee", 92 "folder_type": FolderType.CusDef, 93 "is_deleted": Delete.No, 94 "created_time": 1641676108000, 95 "modified_time": 1641676108000 96 }, 97 98 sys_def_work: { 99 "id": 7, 100 "name": "工作", 101 "uuid": SysDefFolderUuid.Work, 102 "color": "#f86d05", 103 "folder_type": FolderType.CusDef, 104 "is_deleted": Delete.No, 105 "created_time": 1641636508000, 106 "modified_time": 1641636508000 107 }, 108 109 /** 110 * system defined note 111 */ 112 sys_def_note1: { 113 "id": 1, 114 "title": "数学公式", 115 "uuid": "note1_uuid", 116 "folder_uuid": SysDefFolderUuid.UnClassified, 117 "content_text": '<text>好好学习,天天向上</text>', 118 "content_img": "", 119 "note_type": NoteType.SysDef, 120 "is_top": Top.Yes, 121 "is_favorite": Favorite.Yes, 122 "is_deleted": Delete.No, 123 "created_time": 1641869573000, 124 "modified_time": 1641869573000, 125 "deleted_time": 0, 126 "slider_value":0 127 }, 128 129 sys_def_note2: { 130 "id": 2, 131 "title": "UX会议纪要", 132 "uuid": "note2_uuid", 133 "folder_uuid": SysDefFolderUuid.Work, 134 "content_text": "", 135 "content_img": "", 136 "note_type": NoteType.SysDef, 137 "is_top": Top.Yes, 138 "is_favorite": Favorite.No, 139 "is_deleted": Delete.No, 140 "created_time": 1640999288000, 141 "modified_time": 1640999288000, 142 "deleted_time": 0, 143 "slider_value":0 144 }, 145 146 sys_def_note3: { 147 "id": 3, 148 "title": "旅游心得", 149 "uuid": "note3_uuid", 150 "folder_uuid": SysDefFolderUuid.Work, 151 "content_text": '<div style="line-height:1.4;"><text>要想整个旅程无遗憾,关键是心态,首先要对即将到的目的地有一个正确的认识和恰当的期望。</text></div>', 152 "content_img": "", 153 "note_type": NoteType.SysDef, 154 "is_top": Top.No, 155 "is_favorite": Favorite.No, 156 "is_deleted": Delete.No, 157 "created_time": 1641385708000, 158 "modified_time": 1641385708000, 159 "deleted_time": 0, 160 "slider_value":0 161 }, 162 163 sys_def_note4: { 164 "id": 4, 165 "title": "蛋糕做法", 166 "uuid": "note4_uuid", 167 "folder_uuid": SysDefFolderUuid.Life, 168 "content_text": '<div>' + 169 '<input name="checkbox" type="checkbox" onclick="onCheckChange(this)" class="note-checkbox" checked="checked">' + 170 '<span style="line-height:22.4px;" class="note-checkbox-txt">糖60g</span><br>' + 171 '<input name="checkbox" type="checkbox" onclick="onCheckChange(this)" class="note-checkbox">' + 172 '<span style="line-height:22.4px;" class="note-checkbox-txt">玉米油40g</span><br><div>' + 173 '<div><text style="line-height:22.4px;"> 1. 添加鸡蛋、盐、糖、蛋糕粉<br>' + 174 ' 2. 加入玉米油、牛奶,烤箱预热15分钟<br>' + 175 ' 3. 加入葡萄干、核桃仁,烤箱定时40分钟<br><br></text><div>', 176 "content_img": "", 177 "note_type": NoteType.CusDef, 178 "is_top": Top.No, 179 "is_favorite": Favorite.Yes, 180 "is_deleted": Delete.No, 181 "created_time": 1640909288000, 182 "modified_time": 1640909288000, 183 "deleted_time": 0, 184 "slider_value":0 185 } 186}