save
This commit is contained in:
@@ -222,15 +222,15 @@
|
||||
"lrcPosition": [[15.83,20.58],[20.58,27.2],[27.2,30.18],[30.48,34.72],[34.93,39.66],[39.66,46.47],[46.47,50.39],[50.39,57.24],[57.24,62.07],[62.17,65.16],[65.82,71.27]]
|
||||
},
|
||||
{
|
||||
"id": "cg_IGx",
|
||||
"title": "A glass envelope",
|
||||
"titleTranslate": "玻璃信封",
|
||||
"text": "My daughter, Jane, never dreamed of receiving a letter from a girl of her own age in Holland. \nLast year, we were travelling across the Channel and Jane put a piece of paper with her name and address on it into a bottle. \nShe threw the bottle into the sea. \nShe never thought of it again, \nbut ten months later, she received a letter from a girl in Holland. \nBoth girls write to each other regularly now. \nHowever, they have decided to use the post office. \nLetters will cost a little more, but they will certainly travel faster.",
|
||||
"textTranslate": "我的女儿简从未想过会接到荷兰一位同龄姑娘的来信。 \n去年,当我们横渡英吉利海峡时,简把写有她姓名和住址的一张纸条装进了一只瓶子, \n又将瓶子扔进了大海。 \n此后她就再没去想那只瓶子。 \n但10个月以后,她收到了荷兰一位姑娘的来信。 \n现在这两位姑娘定期通信了。 \n然而她们还是决定利用邮局。 \n这样会稍微多花点钱,但肯定是快得多了。",
|
||||
"id": "78q16t",
|
||||
"title": "Across the Channel",
|
||||
"titleTranslate": "横渡海峡",
|
||||
"text": "Debbie Hart is going to swim across the English Channel tomorrow. \nShe is going to set out from the French coast at five oclock in the morning. \nDebbie is only eleven years old and she hopes to set up a new world record. \nShe is a strong swimmer and many people feel that she is sure to succeed. \nDebbies father will set out with her in a small boat. \nMr. Hart has trained his daughter for years. \nTomorrow he will be watching her anxiously as she swims the long distance to England. \nDebbie intends to take short rests every two hours. \nShe will have something to drink but she will not eat any solid food. \nMost of Debbies school friends will be waiting for her on the English coast. \nAmong them will be Debbies mother, who swam the Channel herself when she was a girl.",
|
||||
"textTranslate": "黛比.哈特准备明天横渡英吉利海峡。 \n她打算早上5点钟从法国海岸出发。 \n黛比只有11岁,她希望创一项新的世界纪录。 \n她是一个游泳能手,很多人认为她一定能成功。 \n黛比的父亲将乘一条小船同她一道出发。 \n哈特先生训练她的女儿已经多年了, \n明天他将焦急地注视着女儿游过这段漫长的距离到达英国。 \n黛比计划每两小时休息一下。 \n她将喝些饮料,但不吃固体食物。 \n黛比的大部分同学将在英国海岸等候她。 \n他们当中还会有黛比的母亲,她本人还是个姑娘时,也曾横渡过英吉利海峡!",
|
||||
"newWords": [],
|
||||
"textAllWords": [],
|
||||
"audioSrc": "/sound/article/nce2-1/A glass envelope.mp3",
|
||||
"lrcPosition": [[16.79,26.87],[26.87,37.71],[37.71,41.19],[41.19,43.75],[43.75,49.93],[49.93,54.19],[54.19,59.72],[59.72,65.8]]
|
||||
"audioSrc": "/sound/article/nce2-1/Across the Channel.mp3",
|
||||
"lrcPosition": [[15.11,20.06],[20.06,25.83],[26.53,33.21],[33.21,39.65],[40.07,45.64],[44.91,48.55],[48.55,56.48],[56.89,61.68],[61.68,67.12],[67.12,72.96],[72.96,80.49]]
|
||||
},
|
||||
{
|
||||
"id": "bDa9uD",
|
||||
|
||||
@@ -146,8 +146,9 @@ function save(option: 'save' | 'saveAndNext') {
|
||||
let d = cloneDeep(editArticle)
|
||||
if (!d.id) d.id = nanoid(6)
|
||||
delete d.sections
|
||||
// copy(console.json(d, 2))
|
||||
copy(JSON.stringify(d, null, 2))
|
||||
//这个console.json方法特意将array压缩了,而不压缩其他,方便可视化复制到文章的json里面去
|
||||
copy(console.json(d, 2))
|
||||
// copy(JSON.stringify(d, null, 2))
|
||||
const saveTemp = () => {
|
||||
emit(option as any, editArticle)
|
||||
return resolve(true)
|
||||
|
||||
Reference in New Issue
Block a user