|
| 1 | +export const snapshot = {}; |
| 2 | + |
| 3 | +snapshot[`getCodeBlocks() 1`] = ` |
| 4 | +[ |
| 5 | + { |
| 6 | + bodyLines: [ |
| 7 | + { |
| 8 | + created: 1672982822, |
| 9 | + id: "63b7b1261280f00000c9bc27", |
| 10 | + text: ' print("Hello World!")', |
| 11 | + updated: 1672982822, |
| 12 | + userId: "5ef2bdebb60650001e1280f0", |
| 13 | + }, |
| 14 | + ], |
| 15 | + filename: "コードブロック.py", |
| 16 | + lang: "py", |
| 17 | + nextLine: { |
| 18 | + created: 1672982822, |
| 19 | + id: "63b7b1261280f00000c9bc28", |
| 20 | + text: "無名コードブロック", |
| 21 | + updated: 1672983021, |
| 22 | + userId: "5ef2bdebb60650001e1280f0", |
| 23 | + }, |
| 24 | + pageInfo: { |
| 25 | + pageTitle: "コードブロック記法", |
| 26 | + projectName: "takker", |
| 27 | + }, |
| 28 | + titleLine: { |
| 29 | + created: 1672982821, |
| 30 | + id: "63b7b1261280f00000c9bc26", |
| 31 | + text: "code:コードブロック.py", |
| 32 | + updated: 1672982822, |
| 33 | + userId: "5ef2bdebb60650001e1280f0", |
| 34 | + }, |
| 35 | + }, |
| 36 | + { |
| 37 | + bodyLines: [ |
| 38 | + { |
| 39 | + created: 1672982822, |
| 40 | + id: "63b7b1261280f00000c9bc2a", |
| 41 | + text: ' print("Hello World!")', |
| 42 | + updated: 1672982822, |
| 43 | + userId: "5ef2bdebb60650001e1280f0", |
| 44 | + }, |
| 45 | + ], |
| 46 | + filename: "py", |
| 47 | + lang: "py", |
| 48 | + nextLine: { |
| 49 | + created: 1672982822, |
| 50 | + id: "63b7b1261280f00000c9bc2b", |
| 51 | + text: "インデントつき", |
| 52 | + updated: 1672982822, |
| 53 | + userId: "5ef2bdebb60650001e1280f0", |
| 54 | + }, |
| 55 | + pageInfo: { |
| 56 | + pageTitle: "コードブロック記法", |
| 57 | + projectName: "takker", |
| 58 | + }, |
| 59 | + titleLine: { |
| 60 | + created: 1672982822, |
| 61 | + id: "63b7b1261280f00000c9bc29", |
| 62 | + text: "code:py", |
| 63 | + updated: 1672982822, |
| 64 | + userId: "5ef2bdebb60650001e1280f0", |
| 65 | + }, |
| 66 | + }, |
| 67 | + { |
| 68 | + bodyLines: [ |
| 69 | + { |
| 70 | + created: 1672982822, |
| 71 | + id: "63b7b1261280f00000c9bc2d", |
| 72 | + text: " - インデント", |
| 73 | + updated: 1672982822, |
| 74 | + userId: "5ef2bdebb60650001e1280f0", |
| 75 | + }, |
| 76 | + { |
| 77 | + created: 1672982822, |
| 78 | + id: "63b7b1261280f00000c9bc2e", |
| 79 | + text: " - インデント", |
| 80 | + updated: 1672982822, |
| 81 | + userId: "5ef2bdebb60650001e1280f0", |
| 82 | + }, |
| 83 | + ], |
| 84 | + filename: "インデント.md", |
| 85 | + lang: "md", |
| 86 | + nextLine: { |
| 87 | + created: 1672982822, |
| 88 | + id: "63b7b1261280f00000c9bc2f", |
| 89 | + text: "言語を強制", |
| 90 | + updated: 1672982822, |
| 91 | + userId: "5ef2bdebb60650001e1280f0", |
| 92 | + }, |
| 93 | + pageInfo: { |
| 94 | + pageTitle: "コードブロック記法", |
| 95 | + projectName: "takker", |
| 96 | + }, |
| 97 | + titleLine: { |
| 98 | + created: 1672982822, |
| 99 | + id: "63b7b1261280f00000c9bc2c", |
| 100 | + text: " code:インデント.md", |
| 101 | + updated: 1672982822, |
| 102 | + userId: "5ef2bdebb60650001e1280f0", |
| 103 | + }, |
| 104 | + }, |
| 105 | + { |
| 106 | + bodyLines: [ |
| 107 | + { |
| 108 | + created: 1672982822, |
| 109 | + id: "63b7b1261280f00000c9bc31", |
| 110 | + text: \` console.log("I'm JavaScript");\`, |
| 111 | + updated: 1672982822, |
| 112 | + userId: "5ef2bdebb60650001e1280f0", |
| 113 | + }, |
| 114 | + ], |
| 115 | + filename: "python", |
| 116 | + lang: "js", |
| 117 | + nextLine: { |
| 118 | + created: 1672982822, |
| 119 | + id: "63b7b1261280f00000c9bc32", |
| 120 | + text: "文芸的プログラミング", |
| 121 | + updated: 1672982825, |
| 122 | + userId: "5ef2bdebb60650001e1280f0", |
| 123 | + }, |
| 124 | + pageInfo: { |
| 125 | + pageTitle: "コードブロック記法", |
| 126 | + projectName: "takker", |
| 127 | + }, |
| 128 | + titleLine: { |
| 129 | + created: 1672982822, |
| 130 | + id: "63b7b1261280f00000c9bc30", |
| 131 | + text: " code:python(js)", |
| 132 | + updated: 1672982822, |
| 133 | + userId: "5ef2bdebb60650001e1280f0", |
| 134 | + }, |
| 135 | + }, |
| 136 | + { |
| 137 | + bodyLines: [ |
| 138 | + { |
| 139 | + created: 1672982822, |
| 140 | + id: "63b7b1261280f00000c9bc35", |
| 141 | + text: " #include <iostream>", |
| 142 | + updated: 1672982822, |
| 143 | + userId: "5ef2bdebb60650001e1280f0", |
| 144 | + }, |
| 145 | + { |
| 146 | + created: 1672982822, |
| 147 | + id: "63b7b1261280f00000c9bc36", |
| 148 | + text: " ", |
| 149 | + updated: 1672982822, |
| 150 | + userId: "5ef2bdebb60650001e1280f0", |
| 151 | + }, |
| 152 | + ], |
| 153 | + filename: "main.cpp", |
| 154 | + lang: "cpp", |
| 155 | + nextLine: { |
| 156 | + created: 1672982822, |
| 157 | + id: "63b7b1261280f00000c9bc37", |
| 158 | + text: " main函数の定義", |
| 159 | + updated: 1672982822, |
| 160 | + userId: "5ef2bdebb60650001e1280f0", |
| 161 | + }, |
| 162 | + pageInfo: { |
| 163 | + pageTitle: "コードブロック記法", |
| 164 | + projectName: "takker", |
| 165 | + }, |
| 166 | + titleLine: { |
| 167 | + created: 1672982822, |
| 168 | + id: "63b7b1261280f00000c9bc34", |
| 169 | + text: " code:main.cpp", |
| 170 | + updated: 1672982822, |
| 171 | + userId: "5ef2bdebb60650001e1280f0", |
| 172 | + }, |
| 173 | + }, |
| 174 | + { |
| 175 | + bodyLines: [ |
| 176 | + { |
| 177 | + created: 1672982822, |
| 178 | + id: "63b7b1261280f00000c9bc39", |
| 179 | + text: " int main() {", |
| 180 | + updated: 1672982822, |
| 181 | + userId: "5ef2bdebb60650001e1280f0", |
| 182 | + }, |
| 183 | + { |
| 184 | + created: 1672982822, |
| 185 | + id: "63b7b1261280f00000c9bc3a", |
| 186 | + text: ' std::cout << "Hello, C++" << "from scrapbox.io" << std::endl;', |
| 187 | + updated: 1672982822, |
| 188 | + userId: "5ef2bdebb60650001e1280f0", |
| 189 | + }, |
| 190 | + { |
| 191 | + created: 1672982822, |
| 192 | + id: "63b7b1261280f00000c9bc3b", |
| 193 | + text: " }", |
| 194 | + updated: 1672982822, |
| 195 | + userId: "5ef2bdebb60650001e1280f0", |
| 196 | + }, |
| 197 | + { |
| 198 | + created: 1672982822, |
| 199 | + id: "63b7b1261280f00000c9bc3c", |
| 200 | + text: " ", |
| 201 | + updated: 1672982822, |
| 202 | + userId: "5ef2bdebb60650001e1280f0", |
| 203 | + }, |
| 204 | + ], |
| 205 | + filename: "main.cpp", |
| 206 | + lang: "cpp", |
| 207 | + nextLine: { |
| 208 | + created: 1672982673, |
| 209 | + id: "63b7b0911280f00000c9bc23", |
| 210 | + text: "", |
| 211 | + updated: 1672982673, |
| 212 | + userId: "5ef2bdebb60650001e1280f0", |
| 213 | + }, |
| 214 | + pageInfo: { |
| 215 | + pageTitle: "コードブロック記法", |
| 216 | + projectName: "takker", |
| 217 | + }, |
| 218 | + titleLine: { |
| 219 | + created: 1672982822, |
| 220 | + id: "63b7b1261280f00000c9bc38", |
| 221 | + text: " code:main.cpp", |
| 222 | + updated: 1672982822, |
| 223 | + userId: "5ef2bdebb60650001e1280f0", |
| 224 | + }, |
| 225 | + }, |
| 226 | +] |
| 227 | +`; |
| 228 | +
|
| 229 | +snapshot[`getCodeBlocks() > filename filter 1`] = ` |
| 230 | +[ |
| 231 | + { |
| 232 | + bodyLines: [ |
| 233 | + { |
| 234 | + created: 1672982822, |
| 235 | + id: "63b7b1261280f00000c9bc2d", |
| 236 | + text: " - インデント", |
| 237 | + updated: 1672982822, |
| 238 | + userId: "5ef2bdebb60650001e1280f0", |
| 239 | + }, |
| 240 | + { |
| 241 | + created: 1672982822, |
| 242 | + id: "63b7b1261280f00000c9bc2e", |
| 243 | + text: " - インデント", |
| 244 | + updated: 1672982822, |
| 245 | + userId: "5ef2bdebb60650001e1280f0", |
| 246 | + }, |
| 247 | + ], |
| 248 | + filename: "インデント.md", |
| 249 | + lang: "md", |
| 250 | + nextLine: { |
| 251 | + created: 1672982822, |
| 252 | + id: "63b7b1261280f00000c9bc2f", |
| 253 | + text: "言語を強制", |
| 254 | + updated: 1672982822, |
| 255 | + userId: "5ef2bdebb60650001e1280f0", |
| 256 | + }, |
| 257 | + pageInfo: { |
| 258 | + pageTitle: "コードブロック記法", |
| 259 | + projectName: "takker", |
| 260 | + }, |
| 261 | + titleLine: { |
| 262 | + created: 1672982822, |
| 263 | + id: "63b7b1261280f00000c9bc2c", |
| 264 | + text: " code:インデント.md", |
| 265 | + updated: 1672982822, |
| 266 | + userId: "5ef2bdebb60650001e1280f0", |
| 267 | + }, |
| 268 | + }, |
| 269 | +] |
| 270 | +`; |
| 271 | +
|
| 272 | +snapshot[`getCodeBlocks() > language name filter 1`] = ` |
| 273 | +[ |
| 274 | + { |
| 275 | + bodyLines: [ |
| 276 | + { |
| 277 | + created: 1672982822, |
| 278 | + id: "63b7b1261280f00000c9bc27", |
| 279 | + text: ' print("Hello World!")', |
| 280 | + updated: 1672982822, |
| 281 | + userId: "5ef2bdebb60650001e1280f0", |
| 282 | + }, |
| 283 | + ], |
| 284 | + filename: "コードブロック.py", |
| 285 | + lang: "py", |
| 286 | + nextLine: { |
| 287 | + created: 1672982822, |
| 288 | + id: "63b7b1261280f00000c9bc28", |
| 289 | + text: "無名コードブロック", |
| 290 | + updated: 1672983021, |
| 291 | + userId: "5ef2bdebb60650001e1280f0", |
| 292 | + }, |
| 293 | + pageInfo: { |
| 294 | + pageTitle: "コードブロック記法", |
| 295 | + projectName: "takker", |
| 296 | + }, |
| 297 | + titleLine: { |
| 298 | + created: 1672982821, |
| 299 | + id: "63b7b1261280f00000c9bc26", |
| 300 | + text: "code:コードブロック.py", |
| 301 | + updated: 1672982822, |
| 302 | + userId: "5ef2bdebb60650001e1280f0", |
| 303 | + }, |
| 304 | + }, |
| 305 | + { |
| 306 | + bodyLines: [ |
| 307 | + { |
| 308 | + created: 1672982822, |
| 309 | + id: "63b7b1261280f00000c9bc2a", |
| 310 | + text: ' print("Hello World!")', |
| 311 | + updated: 1672982822, |
| 312 | + userId: "5ef2bdebb60650001e1280f0", |
| 313 | + }, |
| 314 | + ], |
| 315 | + filename: "py", |
| 316 | + lang: "py", |
| 317 | + nextLine: { |
| 318 | + created: 1672982822, |
| 319 | + id: "63b7b1261280f00000c9bc2b", |
| 320 | + text: "インデントつき", |
| 321 | + updated: 1672982822, |
| 322 | + userId: "5ef2bdebb60650001e1280f0", |
| 323 | + }, |
| 324 | + pageInfo: { |
| 325 | + pageTitle: "コードブロック記法", |
| 326 | + projectName: "takker", |
| 327 | + }, |
| 328 | + titleLine: { |
| 329 | + created: 1672982822, |
| 330 | + id: "63b7b1261280f00000c9bc29", |
| 331 | + text: "code:py", |
| 332 | + updated: 1672982822, |
| 333 | + userId: "5ef2bdebb60650001e1280f0", |
| 334 | + }, |
| 335 | + }, |
| 336 | +] |
| 337 | +`; |
0 commit comments