Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From v0.10.0 To v0.9.0
2023-03-27
| ||
14:37 | Version 0.11.0 ... (check-in: 331cad470c user: stern tags: release, trunk, v0.11.0) | |
14:34 | Version 0.11.0 ... (check-in: 712c21afc8 user: stern tags: release, trunk, v0.10.0) | |
2023-03-20
| ||
13:26 | SHTML: remove unneeded TransformInline method ... (check-in: f18740e1e8 user: stern tags: trunk) | |
2022-12-15
| ||
18:39 | Add constants to merge endpoint into /z ... (check-in: e93b6cc96d user: stern tags: trunk) | |
2022-12-12
| ||
12:50 | Version 0.9.0 ... (check-in: 668f89b43e user: stern tags: release, trunk, v0.9.0) | |
11:22 | Remove Deepsource integration, because it still fails on Go 1.18 elements ... (check-in: 201e5b2e91 user: stern tags: trunk) | |
Changes to LICENSE.txt.
| 1 2 3 4 5 6 7 8 | - + |
|
︙ |
Changes to api/api.go.
1 | 1 2 3 4 5 6 7 8 9 | - + | //----------------------------------------------------------------------------- |
︙ | |||
92 93 94 95 96 97 98 | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | - - - - - - | ID ZettelID `json:"id"` Meta ZettelMeta `json:"meta"` Encoding string `json:"encoding"` Content string `json:"content"` Rights ZettelRights `json:"rights"` } |
︙ |
Changes to api/const.go.
1 | 1 2 3 4 5 6 7 8 9 | - + | //----------------------------------------------------------------------------- |
︙ | |||
96 97 98 99 100 101 102 | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - | KeyForward = "forward" KeyLang = "lang" KeyLicense = "license" KeyModified = "modified" KeyPrecursor = "precursor" KeyPredecessor = "predecessor" KeyPublished = "published" |
︙ | |||
148 149 150 151 152 153 154 | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | - - - - + + + + - - - - - + + + + - - + - - - - + - - - | HeaderContentType = "Content-Type" HeaderDestination = "Destination" HeaderLocation = "Location" ) // Values for HTTP query parameter. const ( |
︙ | |||
215 216 217 218 219 220 221 | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | - - + + - - - | // Values for EncoderEnum const ( EncoderUnknown EncodingEnum = iota EncoderHTML EncoderMD EncoderSexpr |
︙ |
Changes to api/urlbuilder.go.
1 | 1 2 3 4 5 6 7 8 9 | - + | //----------------------------------------------------------------------------- |
︙ | |||
109 110 111 112 113 114 115 | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | - - - - - - - - - | ub.rawLocal = "" ub.fragment = s return ub } // String produces a string value. func (ub *URLBuilder) String() string { |
︙ | |||
142 143 144 145 146 147 148 | 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | - + | sb.WriteByte('#') sb.WriteString(ub.fragment) } for i, q := range ub.query { if i == 0 { sb.WriteByte('?') } else { |
Changes to attrs/attrs.go.
1 | 1 2 3 4 5 6 7 8 9 | - + | //----------------------------------------------------------------------------- |
︙ |
Changes to attrs/attrs_test.go.
1 | 1 2 3 4 5 6 7 8 9 | - + | //----------------------------------------------------------------------------- |
︙ |
Changes to client/client.go.
1 | 1 2 3 4 5 6 7 8 9 | - + | //----------------------------------------------------------------------------- |
︙ | |||
21 22 23 24 25 26 27 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | - + + | "net/http" "net/url" "strconv" "strings" "time" "codeberg.org/t73fde/sxpf" |
︙ | |||
231 232 233 234 235 236 237 | 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | - + | // CreateZettelJSON creates a new zettel and returns its URL. func (c *Client) CreateZettelJSON(ctx context.Context, data *api.ZettelDataJSON) (api.ZettelID, error) { var buf bytes.Buffer if err := encodeZettelData(&buf, data); err != nil { return api.InvalidZID, err } |
︙ | |||
268 269 270 271 272 273 274 | 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | - + - - - - + | func (c *Client) ListZettel(ctx context.Context, query string) ([][]byte, error) { ub := c.newURLBuilder('z').AppendQuery(query) resp, err := c.buildAndExecuteRequest(ctx, http.MethodGet, ub, nil, nil) if err != nil { return nil, err } defer resp.Body.Close() |
︙ | |||
316 317 318 319 320 321 322 | 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | - + - - - - + - - - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - - - + + - - - + + + - - - + + + - - - + + + - - - - + - + - - | ub.AppendKVQuery(api.QueryKeyPart, part) } resp, err := c.buildAndExecuteRequest(ctx, http.MethodGet, ub, nil, nil) if err != nil { return nil, err } defer resp.Body.Close() |
︙ | |||
539 540 541 542 543 544 545 | 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 | - + | // UpdateZettelJSON updates an existing zettel. func (c *Client) UpdateZettelJSON(ctx context.Context, zid api.ZettelID, data *api.ZettelDataJSON) error { var buf bytes.Buffer if err := encodeZettelData(&buf, data); err != nil { return err } |
︙ | |||
616 617 618 619 620 621 622 | 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 | - + | // QueryMapMeta returns a map of all metadata values with the given query action to the // list of zettel IDs containing this value. func (c *Client) QueryMapMeta(ctx context.Context, query string) (api.MapMeta, error) { err := c.updateToken(ctx) if err != nil { return nil, err } |
︙ |
Changes to client/client_test.go.
1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | - + + - + | //----------------------------------------------------------------------------- |
︙ | |||
41 42 43 44 45 46 47 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | - + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + - + + + + + + + + + + + + | } else { t.Error(err) } return } } |
︙ |
Changes to go.mod.
1 2 | 1 2 3 4 5 | - + - - - + - | module zettelstore.de/c |
Changes to go.sum.
| 1 2 | - - - - + + |
|
Added html/html.go.