This repository was archived by the owner on Jul 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default Vue.extend({
1919 },
2020 async created () {
2121 fetch (
22- " https://beta.notiontoblog.workers.dev/v1/page/28eac3eed25a47b2bcbb6bb957537f16 "
22+ " https://beta.notiontoblog.workers.dev/v1/page/f36a63918d1246909206813dcec928ea "
2323 )
2424 .then (async (data ) => {
2525 this .data = await data .json ();
Original file line number Diff line number Diff line change 11<template >
22 <section >
3- <div v-for =" block in blocks" :key =" block.id" :id =" block.id" >
3+ {{ blocks }}
4+ <div
5+ style =" margin-bottom :15px "
6+ v-for =" (block, i) in blocks"
7+ :key =" block.id"
8+ :id =" block.id"
9+ >
10+ <ol
11+ style =" margin :0 ;padding :0 "
12+ v-if ="
13+ block.type == 'numbered_list_item' && block.numbered_list_item.text
14+ "
15+ >
16+ <span v-if =" blocks[--i].type != 'numbered_list_item'"
17+ >{{ (listCount = 1) }}.
18+ </span >
19+ <span v-else > {{ ++listCount }}. </span >
20+
21+ <Txt :p =" block.numbered_list_item.text" />
22+ </ol >
423 <!-- Column List -->
524 <div
625 style =" display :flex ;align-items :flex-start ;flex :wrap ;gap :25px "
2544<script >
2645import { format } from " ./utils/u_format" ;
2746import blocks from " ./blocks.vue" ;
47+ import Txt from " ./blocks/Txt.vue" ;
2848export default {
2949 name: " render" ,
3050 components: {
3151 blocks,
52+ Txt,
3253 },
3354 props: {
3455 unofficial: Boolean ,
@@ -49,6 +70,7 @@ export default {
4970 getBlocks () {
5071 if (this .unofficial === true ) {
5172 let blocks = format (this .data );
73+ console .log (" ff" , blocks);
5274 let ids = [];
5375 blocks .map ((block ) => {
5476 if (block .type == " u_toggle" ) {
You can’t perform that action at this time.
0 commit comments